Closed kelson42 closed 7 years ago
A lot of changes have been made since this issue. kiwix build correctly on ubuntu trusty (14.04).
Can you confirm with a recent version of kiwix-build if the cross-compilation to windows is working or not ?
The command to run is ./kiwix-build.py --target-platform win32_dyn
and/or ./kiwix-build.py --target-platform win32_static
.
@mgautierfr Thx, I will check this
@mgautierfr I have tried again ./kiwix-build.py --target-platform win32_static and it fails with the following error:
[28/30] /usr/bin/i686-w64-mingw32-g++ -lwinmm -lws2_32 -lshlwapi -lrpcrt4 -lmsvcr90 -o src/libzim.dll 'src/zim@sha/article.cpp.obj' 'src/zim@sha/articlesource.cpp.obj' 'src/zim@sha/cluster.cpp.obj' 'src/zim@sha/dirent.cpp.obj' 'src/zim@sha/envvalue.cpp.obj' 'src/zim@sha/file.cpp.obj' 'src/zim@sha/fileheader.cpp.obj' 'src/zim@sha/fileimpl.cpp.obj' 'src/zim@sha/fstream.cpp.obj' 'src/zim@sha/md5.c.obj' 'src/zim@sha/md5stream.cpp.obj' 'src/zim@sha/ptrstream.cpp.obj' 'src/zim@sha/search.cpp.obj' 'src/zim@sha/search_iterator.cpp.obj' 'src/zim@sha/tee.cpp.obj' 'src/zim@sha/template.cpp.obj' 'src/zim@sha/unicode.cpp.obj' 'src/zim@sha/uuid.cpp.obj' 'src/zim@sha/zimcreator.cpp.obj' 'src/zim@sha/zintstream.cpp.obj' 'src/zim@sha/deflatestream.cpp.obj' 'src/zim@sha/inflatestream.cpp.obj' 'src/zim@sha/lzmastream.cpp.obj' 'src/zim@sha/unlzmastream.cpp.obj' 'src/zim@sha/xapian_htmlparse.cc.obj' 'src/zim@sha/xapian_myhtmlparse.cc.obj' '-L/home/kelson/kiwix-build/BUILD_win32_dyn/INSTALL/lib/x86_64-linux-gnu' '-L/home/kelson/kiwix-build/BUILD_win32_dyn/INSTALL/lib' '-L/home/kelson/kiwix-build/BUILD_win32_dyn/INSTALL/lib64' '-Wl,--no-undefined' '-Wl,--as-needed' '-shared' '-Wl,-soname,libzim.dll' '-Wl,--out-implib=src/libzim.dll.a' '-lz' '-llzma' '-Wl,--enable-runtime-pseudo-reloc' '-lxapian' '-licuin58' '-licuuc58' '-licudt58' '-lkernel32' '-luser32' '-lgdi32' '-lwinspool' '-lshell32' '-lole32' '-loleaut32' '-luuid' '-lcomdlg32' '-ladvapi32' '-Wl,-rpath,/home/kelson/kiwix-build/BUILD_win32_dyn/libzim/src'
FAILED: src/libzim.dll
/usr/bin/i686-w64-mingw32-g++ -lwinmm -lws2_32 -lshlwapi -lrpcrt4 -lmsvcr90 -o src/libzim.dll 'src/zim@sha/article.cpp.obj' 'src/zim@sha/articlesource.cpp.obj' 'src/zim@sha/cluster.cpp.obj' 'src/zim@sha/dirent.cpp.obj' 'src/zim@sha/envvalue.cpp.obj' 'src/zim@sha/file.cpp.obj' 'src/zim@sha/fileheader.cpp.obj' 'src/zim@sha/fileimpl.cpp.obj' 'src/zim@sha/fstream.cpp.obj' 'src/zim@sha/md5.c.obj' 'src/zim@sha/md5stream.cpp.obj' 'src/zim@sha/ptrstream.cpp.obj' 'src/zim@sha/search.cpp.obj' 'src/zim@sha/search_iterator.cpp.obj' 'src/zim@sha/tee.cpp.obj' 'src/zim@sha/template.cpp.obj' 'src/zim@sha/unicode.cpp.obj' 'src/zim@sha/uuid.cpp.obj' 'src/zim@sha/zimcreator.cpp.obj' 'src/zim@sha/zintstream.cpp.obj' 'src/zim@sha/deflatestream.cpp.obj' 'src/zim@sha/inflatestream.cpp.obj' 'src/zim@sha/lzmastream.cpp.obj' 'src/zim@sha/unlzmastream.cpp.obj' 'src/zim@sha/xapian_htmlparse.cc.obj' 'src/zim@sha/xapian_myhtmlparse.cc.obj' '-L/home/kelson/kiwix-build/BUILD_win32_dyn/INSTALL/lib/x86_64-linux-gnu' '-L/home/kelson/kiwix-build/BUILD_win32_dyn/INSTALL/lib' '-L/home/kelson/kiwix-build/BUILD_win32_dyn/INSTALL/lib64' '-Wl,--no-undefined' '-Wl,--as-needed' '-shared' '-Wl,-soname,libzim.dll' '-Wl,--out-implib=src/libzim.dll.a' '-lz' '-llzma' '-Wl,--enable-runtime-pseudo-reloc' '-lxapian' '-licuin58' '-licuuc58' '-licudt58' '-lkernel32' '-luser32' '-lgdi32' '-lwinspool' '-lshell32' '-lole32' '-loleaut32' '-luuid' '-lcomdlg32' '-ladvapi32' '-Wl,-rpath,/home/kelson/kiwix-build/BUILD_win32_dyn/libzim/src'
src/zim@sha/uuid.cpp.obj: In function `Z12gettimeofdayP7timevalPv':
/home/kelson/kiwix-build/BUILD_win32_dyn/libzim/../../SOURCE/libzim/src/uuid.cpp:33: undefined reference to `_imp__timeGetTime@0'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
What is your version of meson (meson -v
) ?
It looks like a meson's bug I've fixed here (https://github.com/mesonbuild/meson/pull/1363).
The fix is available in meson 0.39 so you will need this version of meson at least to compile a win32_static
version.
@mgautierfr thx, seems to work perfectly fine now.
@mgautierfr Is that the current symptom of the problem?