Ykkrosh, on 20 January 2012 - 01:48 PM, said:
Then set PATH and CXX, and run the 'make' command from inside workspaces/gcc/ (like in a normal build of the game, except now it's using the Android compiler).
Posted 20 January 2012 - 03:29 PM
Ykkrosh, on 20 January 2012 - 01:48 PM, said:
Posted 22 January 2012 - 10:01 AM
../../../source/lib/external_libraries/opengl.h:40:24: fatal error: GLES2/gl2.h: No such file or directoryEven though the file should exist:
afeder@ubuntu:~/android/0ad/build/workspaces/gcc$ ls `$CXX -print-sysroot`/usr/include/GLES2/gl2.h /home/afeder/android/toolchain/bin/../sysroot/usr/include/GLES2/gl2.hEdit: it seems the issue was that the makefile doesn't honor the $CXX environment variable - I had to pass it as a command-line option instead.
Edited by afeder, 23 January 2012 - 10:06 AM.
Posted 28 January 2012 - 01:00 PM
Edited by afeder, 28 January 2012 - 02:10 PM.
Posted 28 January 2012 - 03:05 PM
afeder, on 28 January 2012 - 01:00 PM, said:
Quote
Posted 28 January 2012 - 04:43 PM
Posted 28 January 2012 - 06:18 PM
Ykkrosh, on 28 January 2012 - 03:05 PM, said:
Ykkrosh, on 28 January 2012 - 04:43 PM, said:
Posted 28 January 2012 - 07:51 PM
afeder, on 28 January 2012 - 06:18 PM, said:
Posted 28 January 2012 - 10:36 PM
Posted 28 January 2012 - 11:41 PM
Posted 29 January 2012 - 01:14 AM
Ykkrosh, on 28 January 2012 - 11:41 PM, said:
Posted 31 January 2012 - 07:05 PM
In file included from /usr/include/libxml2/libxml/parser.h:807, from /usr/include/libxml2/libxml/hash.h:29, from /usr/include/libxml2/libxml/relaxng.h:14, from ../../../source/ps/XML/RelaxNG.cpp:26: /usr/include/libxml2/libxml/encoding.h:28:19: error: iconv.h: No such file or directory In file included from /usr/include/libxml2/libxml/parser.h:807, from /usr/include/libxml2/libxml/hash.h:29, from /usr/include/libxml2/libxml/relaxng.h:14, from ../../../source/ps/XML/RelaxNG.cpp:26: /usr/include/libxml2/libxml/encoding.h:146: error: 'iconv_t' does not name a type /usr/include/libxml2/libxml/encoding.h:147: error: 'iconv_t' does not name a type make[1]: *** [obj/engine_Debug/RelaxNG.o] Error 1Even though I have built libxml2 without bindings to iconv and hand-edited encoding.h to remove any reference to it:
afeder@ubuntu:~/android/0ad-game/build/workspaces/gcc$ cat $SYSROOT/usr/include/libxml2/libxml/encoding.h | grep iconv afeder@ubuntu:~/android/0ad-game/build/workspaces/gcc$I suspect the compiler is loading the encoding.h in my machine's absolute root instead of the $SYSROOT. Any idea why that might be happening? Perhaps there needs to be a --with-sysroot option in update-workspaces.sh? (I see many other packages has this.)
afeder@ubuntu:~/android/0ad-game/build/workspaces/gcc$ echo $SYSROOT /home/afeder/android/toolchain/sysroot afeder@ubuntu:~/android/0ad-game/build/workspaces/gcc$ echo $CXX arm-linux-androideabi-g++
Edited by afeder, 31 January 2012 - 07:54 PM.
Posted 31 January 2012 - 10:19 PM
afeder, on 31 January 2012 - 07:05 PM, said:
Posted 31 January 2012 - 11:11 PM
historic_bruno, on 31 January 2012 - 10:19 PM, said:
afeder@ubuntu:~/android/toolchain/sysroot/usr/include/libxml2$ pkg-config libxml-2.0 --cflags -I/usr/include/libxml2That should be good enough, if the compiler interprets it relative to $SYSROOT:
afeder@ubuntu:~/android/toolchain/sysroot/usr/include/libxml2$ ls $SYSROOT/usr/include/libxml2 libxmlI can't positively tell whether the other dependencies are included correctly, but at least I have not encountered other errors of this type. And the errors that I did encounter went away when I fixed them in the sysroot - not in the absolute root.
Edited by afeder, 31 January 2012 - 11:23 PM.
Posted 01 February 2012 - 12:24 AM
afeder, on 31 January 2012 - 11:11 PM, said:
Posted 01 February 2012 - 12:39 AM
afeder@ubuntu:~/android/toolchain/sysroot/usr/include/libxml2$ export PKG_CONFIG_SYSROOT_DIR=$SYSROOT afeder@ubuntu:~/android/toolchain/sysroot/usr/include/libxml2$ pkg-config libxml-2.0 --cflags -I/home/afeder/android/toolchain/sysroot/usr/include/libxml2Sysroot is a GCC option:
Quote
Edited by afeder, 01 February 2012 - 12:49 AM.
Posted 01 February 2012 - 12:56 AM
Posted 01 February 2012 - 01:25 AM
0 members, 0 guests, 0 anonymous users