fatal error: windows.h: No such file or directory compilatio

VLC for Android and Chrome OS specific usage questions
ddbcg
New Cone
New Cone
Posts: 5
Joined: 24 Aug 2013 05:12

fatal error: windows.h: No such file or directory compilatio

Postby ddbcg » 04 Sep 2013 09:25

Thanks, again!

I have modified the libvlcjni-util.c class with the following change:
#include <windows.h>
...
and some others.


This is the message of output in the terminal:

jni/libvlcjni-util.c: At top level:
jni/libvlcjni-util.c:31:21: fatal error: windows.h: No such file or directory
compilation terminated.
make[1]: *** [obj/local/armeabi-v7a/objs/vlcjni/libvlcjni-util.o] Error 1
make[1]: Leaving directory `/usr/src/android/vlc-android'
make: *** [vlc-android/obj/local/armeabi-v7a/libvlcjni.so] Error 2
rm android-libs/libmedia.c android-libs/libutils.c android-libs/libstagefright.c android-libs/libbinder.c

edwardw
Big Cone-huna
Big Cone-huna
Posts: 2346
Joined: 24 Jun 2012 23:36
VLC version: 3.0.0-git

Re: fatal error: windows.h: No such file or directory compil

Postby edwardw » 04 Sep 2013 13:31

Of course it does not work, since Android is not Windows...

ddbcg
New Cone
New Cone
Posts: 5
Joined: 24 Aug 2013 05:12

Re: fatal error: windows.h: No such file or directory compil

Postby ddbcg » 05 Sep 2013 04:27

Of course it does not work, since Android is not Windows...
I use Function MultiByteToWideChar,how should I do?

edwardw
Big Cone-huna
Big Cone-huna
Posts: 2346
Joined: 24 Jun 2012 23:36
VLC version: 3.0.0-git

Re: fatal error: windows.h: No such file or directory compil

Postby edwardw » 05 Sep 2013 04:28

You do not. Android is NOT Windows.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: fatal error: windows.h: No such file or directory compil

Postby Jean-Baptiste Kempf » 06 Sep 2013 00:29

WTF
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

gmv
Blank Cone
Blank Cone
Posts: 15
Joined: 18 Feb 2013 18:46

Re: fatal error: windows.h: No such file or directory compil

Postby gmv » 07 Sep 2013 20:03

I believe that you want to include the header file named window.h (without "s"). It is located in the next path: $(ANDROID_NDK)/platforms/$(APP-PLATFORM)/$(ARCH)/usr/include/android/window.h.
For example, home/pepito/android-ndk-r9/platforms/android-18/arch-arm/usr/include/android/window.h.

Therefore, you should include it so:
#include <android/window.h>

I am beginner, so I'm not sure, but I hope to help you.

edwardw
Big Cone-huna
Big Cone-huna
Posts: 2346
Joined: 24 Jun 2012 23:36
VLC version: 3.0.0-git

Re: fatal error: windows.h: No such file or directory compil

Postby edwardw » 07 Sep 2013 20:17

I believe that you want to include the header file named window.h (without "s"). It is located in the next path: $(ANDROID_NDK)/platforms/$(APP-PLATFORM)/$(ARCH)/usr/include/android/window.h.
For example, home/pepito/android-ndk-r9/platforms/android-18/arch-arm/usr/include/android/window.h.

Therefore, you should include it so:
#include <android/window.h>

I am beginner, so I'm not sure, but I hope to help you.
Read carefully. MultiByteToWideChar is a Win32 function, which has nothing to do with ANativeWindow.


Return to “VLC for Android and Chrome OS”

Who is online

Users browsing this forum: No registered users and 10 guests