configure: error: PhysicsFS header not found

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
User avatar
Zoloom
Trained
Trained
Posts: 83
Joined: 20 Aug 2008, 16:21
Location: France

configure: error: PhysicsFS header not found

Post by Zoloom »

Hello,

I try to compile manually wz2100 and i can't find PhysicsFS header on Ubuntu Hardy (Linux)...
checking for physfs.h... no
configure: error: PhysicsFS header not found.
Is someone can help me ?

Thanks
French helper / Assistant Français (envoyez moi des messages privés si vous cherchez des réponses en français (dans la limite de mes capacités)).

Xfire : zoloom

"Software is like sex, it's better when it's free"
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: configure: error: PhysicsFS header not found

Post by Buginator »

Zoloom wrote:Hello,

I try to compile manually wz2100 and i can't find PhysicsFS header on Ubuntu Hardy (Linux)...
checking for physfs.h... no
configure: error: PhysicsFS header not found.
Is someone can help me ?

Thanks
It should be available in the repo... if not, you can get it from :
http://icculus.org/physfs/
Just remember, we are using 1.0, not the newest 1.1.x since there seems to be a bug in that one.
User avatar
Zoloom
Trained
Trained
Posts: 83
Joined: 20 Aug 2008, 16:21
Location: France

Re: configure: error: PhysicsFS header not found

Post by Zoloom »

I didn't see the download link...sorry -.-"

So, i compile warzone 2100 and i have a strange error :
zoloom@zoloom-desktop:~/Downloads/warzone2100-2.1_beta4$ make
make all-recursive
make[1]: entrant dans le répertoire « /home/zoloom/Downloads/warzone2100-2.1_beta4 »
Making all in build_tools
make[2]: entrant dans le répertoire « /home/zoloom/Downloads/warzone2100-2.1_beta4/build_tools »
Making all in autorevision
make[3]: entrant dans le répertoire « /home/zoloom/Downloads/warzone2100-2.1_beta4/build_tools/autorevision »
./autorevision +cstr -v ../.. ../../src/autorevision.h
svn: Path '../..' ends in '..', which is unsupported for this operation
sh: git-svn: not found
sh: git-rev-list: not found
Warning: could not open input file.
This does not seem to be a revision controlled project.
Warning: could not open input file.
This does not seem to be a revision controlled project.
Error: failed retrieving version information.
Warning: using 0 as revision.
Revision unchanged (0). Skipping.
old = "0"; new = "0"
make[3]: quittant le répertoire « /home/zoloom/Downloads/warzone2100-2.1_beta4/build_tools/autorevision »
make[3]: entrant dans le répertoire « /home/zoloom/Downloads/warzone2100-2.1_beta4/build_tools »
make[3]: Rien à faire pour « all-am ».
make[3]: quittant le répertoire « /home/zoloom/Downloads/warzone2100-2.1_beta4/build_tools »
make[2]: quittant le répertoire « /home/zoloom/Downloads/warzone2100-2.1_beta4/build_tools »
Making all in win32
make[2]: entrant dans le répertoire « /home/zoloom/Downloads/warzone2100-2.1_beta4/win32 »
make[2]: Rien à faire pour « all ».
make[2]: quittant le répertoire « /home/zoloom/Downloads/warzone2100-2.1_beta4/win32 »
Making all in lib
make[2]: entrant dans le répertoire « /home/zoloom/Downloads/warzone2100-2.1_beta4/lib »
Making all in framework
make[3]: entrant dans le répertoire « /home/zoloom/Downloads/warzone2100-2.1_beta4/lib/framework »
make all-am
make[4]: entrant dans le répertoire « /home/zoloom/Downloads/warzone2100-2.1_beta4/lib/framework »
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -DYY_NO_INPUT -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -DNDEBUG -DDATADIR="\"/usr/local/share/warzone2100\"" -DLOCALEDIR="\"/usr/local/share/locale\"" -I../.. -g -Wall -Wwrite-strings -MT resource_lexer.lex.o -MD -MP -MF .deps/resource_lexer.lex.Tpo -c -o resource_lexer.lex.o resource_lexer.lex.c
resource_lexer.lex.c: Dans la fonction «yy_get_next_buffer» :
resource_lexer.lex.c:1189: attention : déclaration implicite de la fonction « «res_get_extra» »
resource_lexer.lex.c:1189: attention : passing argument 1 of «lexer_input» makes pointer from integer without a cast
resource_lexer.l: Hors de toute fonction :
resource_lexer.l:129: erreur: conflicting types for «res_get_extra»
resource_lexer.lex.c:1189: erreur: previous implicit declaration of «res_get_extra» was here
make[4]: *** [resource_lexer.lex.o] Erreur 1
make[4]: quittant le répertoire « /home/zoloom/Downloads/warzone2100-2.1_beta4/lib/framework »
make[3]: *** [all] Erreur 2
make[3]: quittant le répertoire « /home/zoloom/Downloads/warzone2100-2.1_beta4/lib/framework »
make[2]: *** [all-recursive] Erreur 1
make[2]: quittant le répertoire « /home/zoloom/Downloads/warzone2100-2.1_beta4/lib »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /home/zoloom/Downloads/warzone2100-2.1_beta4 »
make: *** [all] Erreur 2
Miss i something ?

Thanks
French helper / Assistant Français (envoyez moi des messages privés si vous cherchez des réponses en français (dans la limite de mes capacités)).

Xfire : zoloom

"Software is like sex, it's better when it's free"
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: configure: error: PhysicsFS header not found

Post by Buginator »

Zoloom wrote:I didn't see the download link...sorry -.-"

So, i compile warzone 2100 and i have a strange error :

Miss i something ?

Thanks
It looks like your version of bison & flex are too old.

However, please try 2.1 or trunk, and not beta 4, and see if you still have the same issues.

svn co http://svn.gna.org/svn/warzone/branches/2.1

svn co http://svn.gna.org/svn/warzone/trunk
User avatar
Zoloom
Trained
Trained
Posts: 83
Joined: 20 Aug 2008, 16:21
Location: France

Re: configure: error: PhysicsFS header not found

Post by Zoloom »

Same error, but it's strange i look at official websites and i'm up to date :s

Thanks for help
French helper / Assistant Français (envoyez moi des messages privés si vous cherchez des réponses en français (dans la limite de mes capacités)).

Xfire : zoloom

"Software is like sex, it's better when it's free"
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: configure: error: PhysicsFS header not found

Post by Buginator »

Zoloom wrote:Same error, but it's strange i look at official websites and i'm up to date :s

Thanks for help
At command prompt type:
bison --version
and
flex --version

and post the output here.

Thanks.
User avatar
Zoloom
Trained
Trained
Posts: 83
Joined: 20 Aug 2008, 16:21
Location: France

Re: configure: error: PhysicsFS header not found

Post by Zoloom »

bison (GNU Bison) 2.3
flex 2.5.34
Here is it, thanks for help (and congratulations for your promotion ;) )
French helper / Assistant Français (envoyez moi des messages privés si vous cherchez des réponses en français (dans la limite de mes capacités)).

Xfire : zoloom

"Software is like sex, it's better when it's free"
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: configure: error: PhysicsFS header not found

Post by Buginator »

Zoloom wrote:
bison (GNU Bison) 2.3
flex 2.5.34
On my linux box (debian) I am using 2.3 & 2.5.35...
Here is it, thanks for help (and congratulations for your promotion ;) )
Heh...thanks. :)
User avatar
Zoloom
Trained
Trained
Posts: 83
Joined: 20 Aug 2008, 16:21
Location: France

Re: configure: error: PhysicsFS header not found

Post by Zoloom »

Same error with this version of flex.

But i have a strange error on ./configure :
configure:
configure: WARNING: Distributor unknown!
configure: Use --with-distributor when compiling package for distribution
make :
make all-recursive
make[1]: entrant dans le répertoire « /home/zoloom/2.1 »
Making all in build_tools
make[2]: entrant dans le répertoire « /home/zoloom/2.1/build_tools »
Making all in autorevision
make[3]: entrant dans le répertoire « /home/zoloom/2.1/build_tools/autorevision »
./autorevision +cstr -v ../.. ../../src/autorevision.h
Revision unchanged (5844). Skipping.
old = "5844"; new = "5844"
make[3]: quittant le répertoire « /home/zoloom/2.1/build_tools/autorevision »
make[3]: entrant dans le répertoire « /home/zoloom/2.1/build_tools »
make[3]: Rien à faire pour « all-am ».
make[3]: quittant le répertoire « /home/zoloom/2.1/build_tools »
make[2]: quittant le répertoire « /home/zoloom/2.1/build_tools »
Making all in win32
make[2]: entrant dans le répertoire « /home/zoloom/2.1/win32 »
make[2]: Rien à faire pour « all ».
make[2]: quittant le répertoire « /home/zoloom/2.1/win32 »
Making all in lib
make[2]: entrant dans le répertoire « /home/zoloom/2.1/lib »
Making all in framework
make[3]: entrant dans le répertoire « /home/zoloom/2.1/lib/framework »
make all-am
make[4]: entrant dans le répertoire « /home/zoloom/2.1/lib/framework »
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -DYY_NO_INPUT -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -DNDEBUG -DDATADIR="\"/usr/local/share/warzone2100\"" -DLOCALEDIR="\"/usr/local/share/locale\"" -I../.. -g -Wall -Wwrite-strings -MT resource_lexer.lex.o -MD -MP -MF .deps/resource_lexer.lex.Tpo -c -o resource_lexer.lex.o resource_lexer.lex.c
resource_lexer.lex.c: Dans la fonction «yy_get_next_buffer» :
resource_lexer.lex.c:1199: attention : déclaration implicite de la fonction « «res_get_extra» »
resource_lexer.lex.c:1199: attention : passing argument 1 of «lexer_input» makes pointer from integer without a cast
resource_lexer.l: Hors de toute fonction :
resource_lexer.l:139: erreur: conflicting types for «res_get_extra»
resource_lexer.lex.c:1199: erreur: previous implicit declaration of «res_get_extra» was here
make[4]: *** [resource_lexer.lex.o] Erreur 1
make[4]: quittant le répertoire « /home/zoloom/2.1/lib/framework »
make[3]: *** [all] Erreur 2
make[3]: quittant le répertoire « /home/zoloom/2.1/lib/framework »
make[2]: *** [all-recursive] Erreur 1
make[2]: quittant le répertoire « /home/zoloom/2.1/lib »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /home/zoloom/2.1 »
make: *** [all] Erreur 2
For the 2.1 version of wz2100.
French helper / Assistant Français (envoyez moi des messages privés si vous cherchez des réponses en français (dans la limite de mes capacités)).

Xfire : zoloom

"Software is like sex, it's better when it's free"
User avatar
jaakan
Trained
Trained
Posts: 75
Joined: 15 Jun 2008, 01:51

Re: configure: error: PhysicsFS header not found

Post by jaakan »

Zoloom wrote:Hello,

I try to compile manually wz2100 and i can't find PhysicsFS header on Ubuntu Hardy (Linux)...
checking for physfs.h... no
configure: error: PhysicsFS header not found.
Is someone can help me ?

Thanks
I think your missing a Your missing a lib/dev
whats the output of "ls /usr/include/physfs.h"

pull the trunk
"svn co http://svn.gna.org/svn/warzone/trunk warzone"
"cd warzone"
Whats that output of "./autogen.sh"
Giel
Regular
Regular
Posts: 725
Joined: 26 Dec 2006, 19:18
Contact:

Re: configure: error: PhysicsFS header not found

Post by Giel »

Zoloom wrote:

Code: Select all

checking for physfs.h... no
configure: error: PhysicsFS header not found.
This indicates that you haven't got PhysicsFS headers installed. You'll need to install the libphysfs-dev package. Make sure it isn't a 1.1 version of it though.
Zoloom wrote:

Code: Select all

flex 2.5.34
Flex 2.5.34 is known to be broken. You'll either need 2.5.33 or 2.5.35 or a more recent version.
Zoloom wrote:Same error with this version of flex.

But i have a strange error on ./configure :

Code: Select all

configure: 
configure: WARNING: Distributor unknown!
configure: Use --with-distributor when compiling package for distribution
Actually it's a warning, not an error. And as long as your not making a package for a GNU/Linux distribution you can safely ignore this.
User avatar
Zoloom
Trained
Trained
Posts: 83
Joined: 20 Aug 2008, 16:21
Location: France

Re: configure: error: PhysicsFS header not found

Post by Zoloom »

I copied physf.h et physf.c in /usr/include but it doesn't change anything.

Here is the commands :
zoloom@zoloom-desktop:~/2.1$ ./autogen.sh
+ checking for pkg-config >= 0.9 ... found 0.22, ok.
+ checking for xgettext >= 0.15 ... found 0.17, ok.
+ checking for msgfmt >= 0.15 ... found 0.17, ok.
+ checking for autoconf >= 2.56 ... found 2.61, ok.
+ checking for automake >= 1.10 ... found 1.10.1, ok.
+ checking for bison >= 1.31 ... found 2.3, ok.
+ checking for flex >= 2.5.33 ... found 2.5.35, ok.
+ checking for flex != 2.5.34 ... not found, good.
+ running aclocal ...
+ running autoheader ...
+ running autoconf ...
+ running automake ...
+ removing config.cache ...

Now type './configure && make' to compile.
zoloom@zoloom-desktop:~/2.1$ ./configure && make
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... -std=gnu99
checking for gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99
checking for ranlib... ranlib
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for bison... bison -y
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking whether to build NSIS installer... no
checking whether to compile in debug mode... no
checking for SDL... yes
checking for OPENAL... yes
checking for PNG... yes
checking for OGGVORBIS... yes
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking popt.h usability... yes
checking popt.h presence... yes
checking for popt.h... yes
checking for poptGetContext in -lpopt... yes
checking physfs.h usability... yes
checking physfs.h presence... yes
checking for physfs.h... yes
checking for PHYSFS_init in -lphysfs... yes
checking SDL/SDL_net.h usability... yes
checking SDL/SDL_net.h presence... yes
checking for SDL/SDL_net.h... yes
checking for SDLNet_Init in -lSDL_net... yes
checking SDL/SDL_opengl.h usability... yes
checking SDL/SDL_opengl.h presence... yes
checking for SDL/SDL_opengl.h... yes
checking for main in -lGL... yes
checking for main in -lGLU... yes
checking GL/glc.h usability... yes
checking GL/glc.h presence... yes
checking for GL/glc.h... yes
checking for main in -lGLC... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating po/Makefile.in
config.status: creating doc/Makefile
config.status: creating build_tools/Makefile
config.status: creating build_tools/autorevision/Makefile
config.status: creating icons/Makefile
config.status: creating data/Makefile
config.status: creating data/mods/Makefile
config.status: creating data/mods/global/Makefile
config.status: creating data/mods/global/aivolution/multiplay/skirmish/Makefile
config.status: creating pkg/Makefile
config.status: creating pkg/nsis/Makefile
config.status: creating win32/Makefile
config.status: creating lib/Makefile
config.status: creating lib/framework/Makefile
config.status: creating lib/exceptionhandler/Makefile
config.status: creating lib/gamelib/Makefile
config.status: creating lib/ivis_opengl/Makefile
config.status: creating lib/ivis_common/Makefile
config.status: creating lib/netplay/Makefile
config.status: creating lib/script/Makefile
config.status: creating lib/sequence/Makefile
config.status: creating lib/sound/Makefile
config.status: creating lib/widget/Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
configure:
configure: WARNING: Distributor unknown!
configure: Use --with-distributor when compiling package for distribution
make all-recursive
make[1]: entrant dans le répertoire « /home/zoloom/2.1 »
Making all in build_tools
make[2]: entrant dans le répertoire « /home/zoloom/2.1/build_tools »
Making all in autorevision
make[3]: entrant dans le répertoire « /home/zoloom/2.1/build_tools/autorevision »
g++ -DHAVE_CONFIG_H -I. -I../.. -g -O2 -MT autorevision.o -MD -MP -MF .deps/autorevision.Tpo -c -o autorevision.o autorevision.cpp
mv -f .deps/autorevision.Tpo .deps/autorevision.Po
g++ -g -O2 -o autorevision autorevision.o
./autorevision +cstr -v ../.. ../../src/autorevision.h
Revision unchanged (5844). Skipping.
old = "5844"; new = "5844"
make[3]: quittant le répertoire « /home/zoloom/2.1/build_tools/autorevision »
make[3]: entrant dans le répertoire « /home/zoloom/2.1/build_tools »
make[3]: Rien à faire pour « all-am ».
make[3]: quittant le répertoire « /home/zoloom/2.1/build_tools »
make[2]: quittant le répertoire « /home/zoloom/2.1/build_tools »
Making all in win32
make[2]: entrant dans le répertoire « /home/zoloom/2.1/win32 »
make[2]: Rien à faire pour « all ».
make[2]: quittant le répertoire « /home/zoloom/2.1/win32 »
Making all in lib
make[2]: entrant dans le répertoire « /home/zoloom/2.1/lib »
Making all in framework
make[3]: entrant dans le répertoire « /home/zoloom/2.1/lib/framework »
make all-am
make[4]: entrant dans le répertoire « /home/zoloom/2.1/lib/framework »
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -DYY_NO_INPUT -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -DNDEBUG -DDATADIR="\"/usr/local/share/warzone2100\"" -DLOCALEDIR="\"/usr/local/share/locale\"" -I../.. -g -Wall -Wwrite-strings -MT configfile.o -MD -MP -MF .deps/configfile.Tpo -c -o configfile.o configfile.c
mv -f .deps/configfile.Tpo .deps/configfile.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -DYY_NO_INPUT -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -DNDEBUG -DDATADIR="\"/usr/local/share/warzone2100\"" -DLOCALEDIR="\"/usr/local/share/locale\"" -I../.. -g -Wall -Wwrite-strings -MT cursors.o -MD -MP -MF .deps/cursors.Tpo -c -o cursors.o cursors.c
mv -f .deps/cursors.Tpo .deps/cursors.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -DYY_NO_INPUT -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -DNDEBUG -DDATADIR="\"/usr/local/share/warzone2100\"" -DLOCALEDIR="\"/usr/local/share/locale\"" -I../.. -g -Wall -Wwrite-strings -MT cursors16.o -MD -MP -MF .deps/cursors16.Tpo -c -o cursors16.o cursors16.c
mv -f .deps/cursors16.Tpo .deps/cursors16.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -DYY_NO_INPUT -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -DNDEBUG -DDATADIR="\"/usr/local/share/warzone2100\"" -DLOCALEDIR="\"/usr/local/share/locale\"" -I../.. -g -Wall -Wwrite-strings -MT cursors32.o -MD -MP -MF .deps/cursors32.Tpo -c -o cursors32.o cursors32.c
mv -f .deps/cursors32.Tpo .deps/cursors32.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -DYY_NO_INPUT -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -DNDEBUG -DDATADIR="\"/usr/local/share/warzone2100\"" -DLOCALEDIR="\"/usr/local/share/locale\"" -I../.. -g -Wall -Wwrite-strings -MT debug.o -MD -MP -MF .deps/debug.Tpo -c -o debug.o debug.c
mv -f .deps/debug.Tpo .deps/debug.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -DYY_NO_INPUT -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -DNDEBUG -DDATADIR="\"/usr/local/share/warzone2100\"" -DLOCALEDIR="\"/usr/local/share/locale\"" -I../.. -g -Wall -Wwrite-strings -MT frame.o -MD -MP -MF .deps/frame.Tpo -c -o frame.o frame.c
mv -f .deps/frame.Tpo .deps/frame.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -DYY_NO_INPUT -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -DNDEBUG -DDATADIR="\"/usr/local/share/warzone2100\"" -DLOCALEDIR="\"/usr/local/share/locale\"" -I../.. -g -Wall -Wwrite-strings -MT frameresource.o -MD -MP -MF .deps/frameresource.Tpo -c -o frameresource.o frameresource.c
mv -f .deps/frameresource.Tpo .deps/frameresource.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -DYY_NO_INPUT -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -DNDEBUG -DDATADIR="\"/usr/local/share/warzone2100\"" -DLOCALEDIR="\"/usr/local/share/locale\"" -I../.. -g -Wall -Wwrite-strings -MT input.o -MD -MP -MF .deps/input.Tpo -c -o input.o input.c
mv -f .deps/input.Tpo .deps/input.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -DYY_NO_INPUT -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -DNDEBUG -DDATADIR="\"/usr/local/share/warzone2100\"" -DLOCALEDIR="\"/usr/local/share/locale\"" -I../.. -g -Wall -Wwrite-strings -MT lexer_input.o -MD -MP -MF .deps/lexer_input.Tpo -c -o lexer_input.o lexer_input.c
mv -f .deps/lexer_input.Tpo .deps/lexer_input.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -DYY_NO_INPUT -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -DNDEBUG -DDATADIR="\"/usr/local/share/warzone2100\"" -DLOCALEDIR="\"/usr/local/share/locale\"" -I../.. -g -Wall -Wwrite-strings -MT printf_ext.o -MD -MP -MF .deps/printf_ext.Tpo -c -o printf_ext.o printf_ext.c
mv -f .deps/printf_ext.Tpo .deps/printf_ext.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -DYY_NO_INPUT -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -DNDEBUG -DDATADIR="\"/usr/local/share/warzone2100\"" -DLOCALEDIR="\"/usr/local/share/locale\"" -I../.. -g -Wall -Wwrite-strings -MT resource_lexer.lex.o -MD -MP -MF .deps/resource_lexer.lex.Tpo -c -o resource_lexer.lex.o resource_lexer.lex.c
resource_lexer.lex.c: Dans la fonction «yy_get_next_buffer» :
resource_lexer.lex.c:1199: attention : déclaration implicite de la fonction « «res_get_extra» »
resource_lexer.lex.c:1199: attention : passing argument 1 of «lexer_input» makes pointer from integer without a cast
resource_lexer.l: Hors de toute fonction :
resource_lexer.l:139: erreur: conflicting types for «res_get_extra»
resource_lexer.lex.c:1199: erreur: previous implicit declaration of «res_get_extra» was here
make[4]: *** [resource_lexer.lex.o] Erreur 1
make[4]: quittant le répertoire « /home/zoloom/2.1/lib/framework »
make[3]: *** [all] Erreur 2
make[3]: quittant le répertoire « /home/zoloom/2.1/lib/framework »
make[2]: *** [all-recursive] Erreur 1
make[2]: quittant le répertoire « /home/zoloom/2.1/lib »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /home/zoloom/2.1 »
make: *** [all] Erreur 2
I have flex 2.5.35 and physfs-1.0.0.

Thanks for helping me :).
French helper / Assistant Français (envoyez moi des messages privés si vous cherchez des réponses en français (dans la limite de mes capacités)).

Xfire : zoloom

"Software is like sex, it's better when it's free"
User avatar
jaakan
Trained
Trained
Posts: 75
Joined: 15 Jun 2008, 01:51

Re: configure: error: PhysicsFS header not found

Post by jaakan »

I copied physf.h et physf.c in /usr/include but it doesn't change anything.
I just installed the dev's for that.

Make sure all the dev's are installed from
http://wiki.wz2100.net/Linux_Compile_Guide
http://wiki.wz2100.net/QuesoGLC

Code: Select all

sudo aptitude  libsdl1.2-dev libopenal-dev libpng12-devlibvorbis-dev libpopt-dev libphysfs-dev libsdl-net1.2-dev libwxgtk2.8-dev libfreetype6-dev libfontconfig1-dev gettext
Do you do the follow before you try to compile again?

Code: Select all

make uninstall && make clean
in ...warzone/ ( your local SVN copy )

_____ this is from my history _______________ gettext is not listed below because I installed it via the GUI

101 apt-get install subversion
102 apt-get install build-essential
103 apt-get install automake
104 apt-get install bison
105 apt-get install libsdl1.2-dev
106 apt-get install libopenal-dev
107 apt-get install libpng12-dev
108 apt-get install libvorbis-dev
109 apt-get install libpopt-dev
110 apt-get install libphysfs-dev
111 apt-get install libsdl-net1.2-dev
112 apt-get install libwxgtk2.8-dev
117 wget http://prdownloads.sourceforge.net/flex ... 2?download
118 tar -xjf flex-2.5.35.tar.bz2
119 cd flex-2.5.35
121 ./configure
122 make
123 make install
124 apt-get install libfreetype6-dev
125 apt-get install libfontconfig1-dev
126 apt-get install libfreetype6
127 apt-get install libfontconfig1
128 cd ..
129 wget http://downloads.sourceforge.net/quesog ... .1.tar.bz2
130 tar -xjf quesoglc-0.7.1.tar.bz2
131 cd quesoglc-0.7.1
132 ./configure
133 make
134 make install
135 ldconfig

169 cd flex-2.5.35
170 make uninstall
171 apt-get install flex
172 ./configure
173 make && make install

236 cd warzone/
237 make uninstall && make clean
238 cd ..
239 svn co http://svn.gna.org/svn/warzone/trunk warzone
240 cd warzone/
241 ./autogen.sh
242 ./configure && make && make install
User avatar
Zoloom
Trained
Trained
Posts: 83
Joined: 20 Aug 2008, 16:21
Location: France

Re: configure: error: PhysicsFS header not found

Post by Zoloom »

It works ! Thanks !
French helper / Assistant Français (envoyez moi des messages privés si vous cherchez des réponses en français (dans la limite de mes capacités)).

Xfire : zoloom

"Software is like sex, it's better when it's free"
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: configure: error: PhysicsFS header not found

Post by Buginator »

jaakan wrote:
I copied physf.h et physf.c in /usr/include but it doesn't change anything.
I just installed the dev's for that.

Make sure all the dev's are installed from
http://wiki.wz2100.net/Linux_Compile_Guide
http://wiki.wz2100.net/QuesoGLC

Code: Select all

sudo aptitude  libsdl1.2-dev libopenal-dev libpng12-devlibvorbis-dev libpopt-dev libphysfs-dev libsdl-net1.2-dev libwxgtk2.8-dev libfreetype6-dev libfontconfig1-dev gettext
Do you do the follow before you try to compile again?

Code: Select all

make uninstall && make clean
in ...warzone/ ( your local SVN copy )

_____ this is from my history _______________ gettext is not listed below because I installed it via the GUI

101 apt-get install subversion
102 apt-get install build-essential
103 apt-get install automake
104 apt-get install bison
105 apt-get install libsdl1.2-dev
106 apt-get install libopenal-dev
107 apt-get install libpng12-dev
108 apt-get install libvorbis-dev
109 apt-get install libpopt-dev
110 apt-get install libphysfs-dev
111 apt-get install libsdl-net1.2-dev
112 apt-get install libwxgtk2.8-dev
117 wget http://prdownloads.sourceforge.net/flex ... 2?download
118 tar -xjf flex-2.5.35.tar.bz2
119 cd flex-2.5.35
121 ./configure
122 make
123 make install
124 apt-get install libfreetype6-dev
125 apt-get install libfontconfig1-dev
126 apt-get install libfreetype6
127 apt-get install libfontconfig1
128 cd ..
129 wget http://downloads.sourceforge.net/quesog ... .1.tar.bz2
130 tar -xjf quesoglc-0.7.1.tar.bz2
131 cd quesoglc-0.7.1
132 ./configure
133 make
134 make install
135 ldconfig

169 cd flex-2.5.35
170 make uninstall
171 apt-get install flex
172 ./configure
173 make && make install

236 cd warzone/
237 make uninstall && make clean
238 cd ..
239 svn co http://svn.gna.org/svn/warzone/trunk warzone
240 cd warzone/
241 ./autogen.sh
242 ./configure && make && make install
Nice job. Hope this helps others. :)
Post Reply