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:
Obviously it's not a coding error since it compiled for linux. So I assume that I'm missing something in my build process. Any help is welcome.
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: *** [warzone2100.exe] Fehler 1 make: Leaving directory `/home/git/warzone2100/src' make: *** [all] Fehler 2 make: Leaving directory `/home/git/warzone2100/src' make: *** [all-recursive] Fehler 1 make: Leaving directory `/home/git/warzone2100' make: *** [all] Fehler 2