GP2X_Coder
Member
I just wish if that someone that had sucess compiling the new lib's would just put them up for people to download.
I just wish if that someone that had sucess compiling the new lib's would just put them up for people to download.
I get an error on compiling libungif-4.1.4
Code:make[1]: Entering directory `/home/ryo/gp2xdev/libs/libungif-4.1.4' make all-recursive make[2]: Entering directory `/home/ryo/gp2xdev/libs/libungif-4.1.4' Making all in lib make[3]: Entering directory `/home/ryo/gp2xdev/libs/libungif-4.1.4/lib' if gp2x-gcc -O3 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/usr/local/gp2xdev/include -I/usr/local/gp2xdev/include/libxml2 -L/usr/local/gp2xdev/lib -DHAVE_CONFIG_H -I. -I. -I.. -O3 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/usr/local/gp2xdev/include -I/usr/local/gp2xdev/include/libxml2 -I/usr/X11R6/include -Wall -O3 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/usr/local/gp2xdev/include -I/usr/local/gp2xdev/include/libxml2 -MT getarg.o -MD -MP -MF ".deps/getarg.Tpo" -c -o getarg.o getarg.c; \ then mv -f ".deps/getarg.Tpo" ".deps/getarg.Po"; else rm -f ".deps/getarg.Tpo"; exit 1; fi getarg.c: In function 'GAGetArgs': getarg.c:174: warning: implicit declaration of function 'strcpy' getarg.c:174: warning: incompatible implicit declaration of built-in function 'strcpy' getarg.c: In function 'GATestAllSatis': getarg.c:239: error: 'NULL' undeclared (first use in this function) getarg.c:239: error: (Each undeclared identifier is reported only once [snip...] The build of the toolchain had no problem, I used gp2xdev-20060525.tar.bz2. Can anyone help me? [/quote]
I get an error on compiling libungif-4.1.4
The build of the toolchain had no problem, I used gp2xdev-20060525.tar.bz2.
Can anyone help me?
Sphinxter posted on Oct 1 2006 at 09:23 PM said:I look at the make output:
gp2x-gcc -O3 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/usr/local/gp2xdev/include -I/usr/local/gp2xdev/include/libxml2 -L/usr/local/gp2xdev/lib -DHAVE_CONFIG_H -I. -I. -I.. -O3 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/usr/local/gp2xdev/include -I/usr/local/gp2xdev/include/libxml2 -I/usr/X11R6/include -Wall -O3 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/usr/local/gp2xdev/include -I/usr/local/gp2xdev/include/libxml2 -MT getarg.o -MD -MP -MF ".deps/getarg.Tpo" -c -o getarg.o getarg.c
pretty dirty, stop that stuttering and it's:
gp2x-gcc -O2 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/usr/local/gp2xdev/include -I/usr/local/gp2xdev/include/libxml2 -L/usr/local/gp2xdev/lib -I. -I.. -Wall -O2 -MT getarg.o -MD -MP -MF ".deps/getarg.Tpo" -c -o getarg.o getarg.c
getarg.c:206: error: syntax error before '--' token
getarg.c:212: warning: type defaults to 'int' in declaration of 'Option'
getarg.c:212: error: 'argv' undeclared here (not in a function)
getarg.c:212: warning: data definition has no type or storage class
getarg.c:213: error: syntax error before 'if'
Looking at the line above the error I see what's not defined and if we change it to:
gp2x-gcc -O2 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/usr/local/gp2xdev/include -I/usr/local/gp2xdev/include/libxml2 -L/usr/local/gp2xdev/lib -I. -I.. -Wall -O2 -MT getarg.o -MD -MP -MF ".deps/getarg.Tpo" -DHAVE_STDARG_H -c -o getarg.o getarg.c
It builds sweetly. Not sure exactly where to plug in HAVE_STDARG_H, but it's not being defined I think is our problem.
I get an error on compiling libungif-4.1.4
The build of the toolchain had no problem, I used gp2xdev-20060525.tar.bz2.
Can anyone help me?
Sphinxter posted on Oct 2 2006 at 01:23 AM said:I look at the make output:
gp2x-gcc -O3 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/usr/local/gp2xdev/include -I/usr/local/gp2xdev/include/libxml2 -L/usr/local/gp2xdev/lib -DHAVE_CONFIG_H -I. -I. -I.. -O3 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/usr/local/gp2xdev/include -I/usr/local/gp2xdev/include/libxml2 -I/usr/X11R6/include -Wall -O3 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/usr/local/gp2xdev/include -I/usr/local/gp2xdev/include/libxml2 -MT getarg.o -MD -MP -MF ".deps/getarg.Tpo" -c -o getarg.o getarg.c
pretty dirty, stop that stuttering and it's:
gp2x-gcc -O2 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/usr/local/gp2xdev/include -I/usr/local/gp2xdev/include/libxml2 -L/usr/local/gp2xdev/lib -I. -I.. -Wall -O2 -MT getarg.o -MD -MP -MF ".deps/getarg.Tpo" -c -o getarg.o getarg.c
getarg.c:206: error: syntax error before '--' token
getarg.c:212: warning: type defaults to 'int' in declaration of 'Option'
getarg.c:212: error: 'argv' undeclared here (not in a function)
getarg.c:212: warning: data definition has no type or storage class
getarg.c:213: error: syntax error before 'if'
Looking at the line above the error I see what's not defined and if we change it to:
gp2x-gcc -O2 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/usr/local/gp2xdev/include -I/usr/local/gp2xdev/include/libxml2 -L/usr/local/gp2xdev/lib -I. -I.. -Wall -O2 -MT getarg.o -MD -MP -MF ".deps/getarg.Tpo" -DHAVE_STDARG_H -c -o getarg.o getarg.c
It builds sweetly. Not sure exactly where to plug in HAVE_STDARG_H, but it's not being defined I think is our problem.
I get an error on compiling libungif-4.1.4
The build of the toolchain had no problem, I used gp2xdev-20060525.tar.bz2.
Can anyone help me?
GP2XDEV="/gp2xdev"
export GP2XDEV
PATH="$PATH:$GP2XDEV/bin"
export PATH
LIBDIR=$GP2XDEV/lib
export LIBDIR
CC=gp2x-gcc
CPP=gp2x-gcc
CXX=gp2x-g++
export CC CXX CPP
CFLAGS=-I$GP2XDEV/include
CPPFLAGS=-I$GP2XDEV/include
CXXFLAGS=-I$GP2XDEV/include
export CFLAGS CPPFLAGS CXXFLAGS
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$LIBDIR
export LD_LIBRARY_PATH
LD_RUN_PATH=$LD_RUN_PATH:$LIBDIR
export LD_RUN_PATH
Gary Miller posted on Oct 2 2006 at 02:34 AM said:Are you building from the set I put the URL on or are you build from the archives?
When I did the tools build I sourced the following file prior to the build:
Code:GP2XDEV="/gp2xdev" export GP2XDEV PATH="$PATH:$GP2XDEV/bin" export PATH LIBDIR=$GP2XDEV/lib export LIBDIR CC=gp2x-gcc CPP=gp2x-gcc CXX=gp2x-g++ export CC CXX CPP CFLAGS=-I$GP2XDEV/include CPPFLAGS=-I$GP2XDEV/include CXXFLAGS=-I$GP2XDEV/include export CFLAGS CPPFLAGS CXXFLAGS LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$LIBDIR export LD_LIBRARY_PATH LD_RUN_PATH=$LD_RUN_PATH:$LIBDIR export LD_RUN_PATH
Of course in my case I was putting the tools in "/gp2xdev/..." Which is not what the directions state because I do not like mixing my cross compiling tools with my platform tools. I am built my tools on Fedora Core 5 with LOTS of developement tools loaded (and it's my web server).
I get an error on compiling libungif-4.1.4
Code:make[1]: Entering directory `/home/ryo/gp2xdev/libs/libungif-4.1.4' make all-recursive make[2]: Entering directory `/home/ryo/gp2xdev/libs/libungif-4.1.4' Making all in lib make[3]: Entering directory `/home/ryo/gp2xdev/libs/libungif-4.1.4/lib' if gp2x-gcc -O3 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/usr/local/gp2xdev/include -I/usr/local/gp2xdev/include/libxml2 -L/usr/local/gp2xdev/lib -DHAVE_CONFIG_H -I. -I. -I.. -O3 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/usr/local/gp2xdev/include -I/usr/local/gp2xdev/include/libxml2 -I/usr/X11R6/include -Wall -O3 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/usr/local/gp2xdev/include -I/usr/local/gp2xdev/include/libxml2 -MT getarg.o -MD -MP -MF ".deps/getarg.Tpo" -c -o getarg.o getarg.c; \ then mv -f ".deps/getarg.Tpo" ".deps/getarg.Po"; else rm -f ".deps/getarg.Tpo"; exit 1; fi getarg.c: In function 'GAGetArgs': getarg.c:174: warning: implicit declaration of function 'strcpy' getarg.c:174: warning: incompatible implicit declaration of built-in function 'strcpy' getarg.c: In function 'GATestAllSatis': make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/ryo/gp2xdev/libs/libungif-4.1.4' make: *** [/usr/local/gp2xdev/lib/libungif.a] Error 2
I know that strcpy should be defined in string.h which is included by getarg.c, configure seems to be ok:
Code: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
The build of the toolchain had no problem, I used gp2xdev-20060525.tar.bz2.
Can anyone help me?