Compiling with cegcc : declaration does not declare anything

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
junkie_crew
Blank Cone
Blank Cone
Posts: 35
Joined: 31 Jul 2007 15:28

Compiling with cegcc : declaration does not declare anything

Postby junkie_crew » 02 Oct 2007 17:39

Hi,

I am trying to compile vlc-0.8.6c for WinCE under cegcc. I use this configuration :
setenv CFLAGS "-D__stdcall= -D_OFF_T_ -D__USE_W32_SOCKETS -D__CEGCC__ -D_WIN32_WCE -DUNDER_CE -I/opt/cegcc/arm-wince-cegcc/include"
setenv LD_LIBRARY_PATH /opt/cegcc/arm-wince-cegcc/lib:$LD_LIBRARY_PATH
setenv PATH /opt/cegcc/arm-wince-cegcc/bin:$PATH
setenv LDFLAGS "-L/opt/cegcc/arm-wince-cegcc"
setenv "$LDFLAGS -L/opt/cegcc/arm-wince-cegcc"
setenv CC "gcc -mcpu=xscale"
and my configure is :
./configure --host=arm-wince-pe --target=arm-wince-pe --build=i686-linux --prefix=/usr/local/wince --includedir=/opt/cegcc/arm-wince-cegcc/include --includedir=/home/giraulte/vlc-0.8.6c/include --disable-sdl --disable-gtk --disable-dvdnav --disable-dvdread --disable-nls --disable-sout --disable-sap --disable-vlm --disable-wxwindows --disable-a52 --disable-libmpeg2 --disable-freetype --disable-fribidi --disable-mad --disable-plugins --enable-optimize-memory --enable-tremor --disable-faad --disable-ffmpeg --disable-gnomevfs --enable-shared-libvlc
I am quite closed to the end (hope) but I have go this error :
source='wince.cpp' object='libwince_a-wince.o' libtool=no \
depfile='.deps/libwince_a-wince.Po' tmpdepfile='.deps/libwince_a-wince.TPo' \
depmode=gcc3 /bin/sh ../../../autotools/depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -D_OFF_T_ -D_off_t=long -DSYS_MINGWCE -I../../../include `top_builddir="../../.." ../../../vlc-config --cxxflags builtin pic wince` -Wsign-compare -Wall -pipe -c -o libwince_a-wince.o `test -f 'wince.cpp' || echo './'`wince.cpp
/opt/cegcc/lib/gcc/arm-wince-cegcc/4.1.0/../../../../arm-wince-cegcc/include/sys/_types.h:14: error: declaration does not declare anything
It seems weird because I cannot find any file related to wince.cpp including this header. And the error message is for me kind of mysterious...

Thanks for your help !

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: Compiling with cegcc : declaration does not declare anything

Postby Jean-Baptiste Kempf » 02 Oct 2007 18:54

Have you tried to comment the

Code: Select all

#if defined( UNDER_CE ) && defined(__MINGW32__) /* This is a gross hack for the wince gcc cross-compiler */ #define _off_t long #endif
part?
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.

junkie_crew
Blank Cone
Blank Cone
Posts: 35
Joined: 31 Jul 2007 15:28

Re: Compiling with cegcc : declaration does not declare anything

Postby junkie_crew » 03 Oct 2007 09:33

Yeah unfortunatly it does not change anything...

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: Compiling with cegcc : declaration does not declare anything

Postby Jean-Baptiste Kempf » 03 Oct 2007 10:53

I am clueless... ask the cegcc folks or on our irc.
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.

junkie_crew
Blank Cone
Blank Cone
Posts: 35
Joined: 31 Jul 2007 15:28

Re: Compiling with cegcc : declaration does not declare anything

Postby junkie_crew » 05 Oct 2007 13:16

I finally found out what had to be changed. To solve this error, just comment the line 14 of sys/_types.h file :

Code: Select all

//typedef long _off_t; __extension__ typedef long long _off64_t;
Thank you j-b ;)

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: Compiling with cegcc : declaration does not declare anything

Postby Jean-Baptiste Kempf » 08 Oct 2007 06:04

\o/
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.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: Bing [Bot] and 19 guests