Now I'm trying to do the same for MS Windows and been following the windows cross-compile guide. A few barriers that I encountered were that nsis needed to be installed for mxe (i.e. run "make nsis" in the mingw-cross-env/ directory - missing in step 3 of the guide). The other one was the PKG_CONFIG_PATH_i686_pc_mingw32 configuration described by Stu's forum post. Without that the configure script couldn't find QT. Oh and the fonts to copy where in the /usr/share/fonts/dejavu/ but that's probably just because I run fedora. The first two would be good to document in the guide.
Anyway, the make fails at:
Code: Select all
../lib/ivis_opengl/libivis_opengl.a(png_util.o): In function `Z17iV_saveImage_JPEGPKcPK8iV_Image':
/home/git/warzone2100/lib/ivis_opengl/png_util.cpp:328: undefined reference to `jpeg_encode_image(unsigned char*, unsigned char*, unsigned int, unsigned int, unsigned int, unsigned int)'
collect2: error: ld returned 1 exit status
make[3]: *** [warzone2100.exe] Fehler 1
make[3]: Leaving directory `/home/git/warzone2100/src'
make[2]: *** [all] Fehler 2
make[2]: Leaving directory `/home/git/warzone2100/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/home/git/warzone2100'
make: *** [all] Fehler 2