[Vala] How compile Vala 0.17.7 under linux for Win32 (cross compile)



Hi,

I'm trying to cross-compile vala 0.17.7 (using github)... I'm under Ubuntu
12.04.

So I've installed these packages :
binutils-mingw-w64
gcc-mingw-w64
gcc-mingw-w64-base
gcc-mingw-w64-i686
gcc-mingw-w64-x86_64
binutils-mingw-w64
binutils-mingw-i686
binutils-mingw--x86_64
mingw-w64
mingw-w64-tools
build-essential
flexx
bison

i686-w64-mingw32-gcc (GCC) 4.6.3


Then :
/vala> ./autogen.sh
(blah blah blah)
/vala> ./configure --host=i686-w64-mingw32 --build=i686-w64-mingw32
--prefix=/opt/vala
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... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for i686-w64-mingw32-gcc... i686-w64-mingw32-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-w64-mingw32-gcc accepts -g... yes
checking for i686-w64-mingw32-gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of i686-w64-mingw32-gcc... gcc3
checking whether i686-w64-mingw32-gcc and cc understand -c and -o
together... yes
checking build system type... i686-w64-mingw32
checking host system type... i686-w64-mingw32
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by i686-w64-mingw32-gcc... /usr/bin/i686-w64-mingw32-ld
checking if the linker (/usr/bin/i686-w64-mingw32-ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 8192
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert i686-w64-mingw32 file names to i686-w64-mingw32
format... func_convert_file_msys_to_w32
checking how to convert i686-w64-mingw32 file names to toolchain format...
func_convert_file_msys_to_w32
checking for /usr/bin/i686-w64-mingw32-ld option to reload object files... -r
checking for i686-w64-mingw32-objdump... i686-w64-mingw32-objdump
checking how to recognize dependent libraries... file_magic ^x86 archive
import|^x86 DLL
checking for i686-w64-mingw32-dlltool... i686-w64-mingw32-dlltool
checking how to associate runtime and link libraries...
func_cygming_dll_for_implib
checking for i686-w64-mingw32-ar... i686-w64-mingw32-ar
checking for archiver @FILE support... @
checking for i686-w64-mingw32-strip... i686-w64-mingw32-strip
checking for i686-w64-mingw32-ranlib... i686-w64-mingw32-ranlib
checking command to parse /usr/bin/nm -B output from i686-w64-mingw32-gcc
object... failed
checking for sysroot... no
checking for i686-w64-mingw32-mt... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... i686-w64-mingw32-gcc -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 for dlfcn.h... no
checking for objdir... .libs
checking if i686-w64-mingw32-gcc supports -fno-rtti -fno-exceptions... no
checking for i686-w64-mingw32-gcc option to produce PIC... -DDLL_EXPORT -DPIC
checking if i686-w64-mingw32-gcc PIC flag -DDLL_EXPORT -DPIC works... yes
checking if i686-w64-mingw32-gcc static flag -static works... yes
checking if i686-w64-mingw32-gcc supports -c -o file.o... yes
checking if i686-w64-mingw32-gcc supports -c -o file.o... (cached) yes
checking whether the i686-w64-mingw32-gcc linker
(/usr/bin/i686-w64-mingw32-ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking whether ln -s works... yes
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... none needed
checking whether yytext is a pointer... no
checking for bison... bison -y
checking for valac... /usr/bin/valac
checking for i686-w64-mingw32-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GLIB... yes
checking for GMODULE... yes
checking for GTHREAD... yes
checking for xsltproc... :
checking whether make supports nested variables... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libvala.pc
config.status: creating gee/Makefile
config.status: creating ccode/Makefile
config.status: creating vala/Makefile
config.status: creating codegen/Makefile
config.status: creating compiler/Makefile
config.status: creating vapi/Makefile
config.status: creating tests/Makefile
config.status: creating doc/Makefile
config.status: creating doc/vala/Makefile
config.status: creating gobject-introspection/Makefile
config.status: creating vapigen/vapigen.pc
config.status: creating vapigen/Makefile
config.status: creating vapigen/vala-gen-introspect/Makefile
config.status: creating vapigen/vala-gen-introspect/vala-gen-introspect
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands

/vala> make
make  all-recursive
make[1]: entrant dans le répertoire « /compil/vala »
Making all in gee
make[2]: entrant dans le répertoire « /compil/vala/gee »
make  all-am
make[3]: entrant dans le répertoire « /compil/vala/gee »
make[3]: Rien à faire pour « all-am ».
make[3]: quittant le répertoire « /compil/vala/gee »
make[2]: quittant le répertoire « /compil/vala/gee »
Making all in ccode
make[2]: entrant dans le répertoire « /compil/vala/ccode »
make  all-am
make[3]: entrant dans le répertoire « /compil/vala/ccode »
make[3]: Rien à faire pour « all-am ».
make[3]: quittant le répertoire « /compil/vala/ccode »
make[2]: quittant le répertoire « /compil/vala/ccode »
Making all in vala
make[2]: entrant dans le répertoire « /compil/vala/vala »
make  all-am
make[3]: entrant dans le répertoire « /compil/vala/vala »
  CC     valacodecontext.lo
In file included from /usr/include/glib-2.0/glib.h:108:0,
                 from valacodecontext.c:26:
/usr/include/glib-2.0/glib/deprecated/gthread.h:123:21: fatal error:
pthread.h: No such file or directory
compilation terminated.
make[3]: *** [valacodecontext.lo] Erreur 1
make[3]: quittant le répertoire « /compil/vala/vala »
make[2]: *** [all] Erreur 2
make[2]: quittant le répertoire « /compil/vala/vala »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /compil/vala »
make: *** [all] Erreur 2

Do you have some hints ?? :)

Thanks

Raum



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]