kiwix / kiwix-build

Kiwix & openZIM build engine
GNU General Public License v3.0
90 stars 43 forks source link

Verify that Windows cross-compile works fine on Ubuntu 16.04 #2

Closed kelson42 closed 7 years ago

kelson42 commented 7 years ago

@mgautierfr Is that the current symptom of the problem?

$ rm -rf build/ ; mkdir build ; ./kiwix-build.py --build-target=win32 --build-static build
[INSTALL PACKAGES]
sudo apt-get install g++-mingw-w64-i686 gcc-mingw-w64-i686 gcc-mingw-w64-base mingw-w64-tools
Reading package lists... Done
Building dependency tree       
Reading state information... Done
g++-mingw-w64-i686 is already the newest version (5.3.1-8ubuntu3+17).
gcc-mingw-w64-base is already the newest version (5.3.1-8ubuntu3+17).
gcc-mingw-w64-i686 is already the newest version (5.3.1-8ubuntu3+17).
mingw-w64-tools is already the newest version (4.0.4-2).
0 upgraded, 0 newly installed, 0 to remove and 189 not upgraded.
[PREPARE]
prepare sources zlib :
  download zlib : OK
  extract zlib : OK
  patch zlib : OK
prepare sources xapian-core :
  download xapian-core : OK
  extract xapian-core : OK
  patch xapian-core : OK
prepare sources ctpp2 :
  download ctpp2 : OK
  extract ctpp2 : OK
  patch ctpp2 : OK
prepare sources pugixml :
  download pugixml : OK
  extract pugixml : OK
  patch pugixml : OK
prepare sources icu4c :
  download icu4c : OK
  extract icu4c : OK
  patch icu4c : OK
  download_data icu4c : OK
  copy_data icu4c : OK
prepare sources zimlib :
  gitclone zimlib : OK
  gitupdate zimlib : OK
prepare sources kiwix-lib :
  gitclone kiwix-lib : OK
  gitupdate kiwix-lib : OK
prepare sources libmicrohttpd :
  download libmicrohttpd : OK
  extract libmicrohttpd : OK
prepare sources kiwix-tools :
  gitclone kiwix-tools : OK
  gitupdate kiwix-tools : OK
[BUILD]
build zlib :
  configure zlib : OK
  compile zlib : OK
  install zlib : OK
build xapian-core :
  configure xapian-core : OK
  compile xapian-core : OK
  install xapian-core : OK
build ctpp2 :
  configure ctpp2 : OK
  compile ctpp2 : OK
  install ctpp2 : OK
build pugixml :
  configure pugixml : OK
  compile pugixml : OK
  install pugixml : OK
build icu4c :
  configure icu4c : OK
  compile icu4c : OK
  install icu4c : SKIP
build icu4c :
  configure icu4c : OK
  compile icu4c : OK
  install icu4c : OK
build zimlib :
  configure zimlib : OK
  compile zimlib : OK
  install zimlib : OK
build kiwix-lib :
  configure kiwix-lib : OK
  compile kiwix-lib : OK
  install kiwix-lib : OK
build libmicrohttpd :
  configure libmicrohttpd : OK
  compile libmicrohttpd : OK
  install libmicrohttpd : OK
build kiwix-tools :
  configure kiwix-tools : OK
  compile kiwix-tools : ERROR
[1/14] '/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/bin/compile_resources.py' '--cxxfile' 'static/server/server-resources.cpp' '--hfile' 'static/server/server-resources.h' '../../SOURCE/kiwix-tools/static/server/resources_list.txt'
jquery-ui/jquery-ui.structure.min.css ['jquery_ui', 'jquery_ui_structure_min_css']
jquery-ui/jquery-ui.min.js ['jquery_ui', 'jquery_ui_min_js']
jquery-ui/external/jquery/jquery.js ['jquery_ui', 'external', 'jquery', 'jquery_js']
jquery-ui/images/ui-bg_flat_0_aaaaaa_40x100.png ['jquery_ui', 'images', 'ui_bg_flat_0_aaaaaa_40x100_png']
jquery-ui/images/ui-bg_flat_75_ffffff_40x100.png ['jquery_ui', 'images', 'ui_bg_flat_75_ffffff_40x100_png']
jquery-ui/images/ui-icons_222222_256x240.png ['jquery_ui', 'images', 'ui_icons_222222_256x240_png']
jquery-ui/images/ui-bg_glass_55_fbf9ee_1x400.png ['jquery_ui', 'images', 'ui_bg_glass_55_fbf9ee_1x400_png']
jquery-ui/images/ui-bg_highlight-soft_75_cccccc_1x100.png ['jquery_ui', 'images', 'ui_bg_highlight_soft_75_cccccc_1x100_png']
jquery-ui/images/ui-bg_glass_65_ffffff_1x400.png ['jquery_ui', 'images', 'ui_bg_glass_65_ffffff_1x400_png']
jquery-ui/images/ui-icons_2e83ff_256x240.png ['jquery_ui', 'images', 'ui_icons_2e83ff_256x240_png']
jquery-ui/images/ui-icons_cd0a0a_256x240.png ['jquery_ui', 'images', 'ui_icons_cd0a0a_256x240_png']
jquery-ui/images/ui-icons_888888_256x240.png ['jquery_ui', 'images', 'ui_icons_888888_256x240_png']
jquery-ui/images/ui-bg_glass_75_e6e6e6_1x400.png ['jquery_ui', 'images', 'ui_bg_glass_75_e6e6e6_1x400_png']
jquery-ui/images/animated-overlay.gif ['jquery_ui', 'images', 'animated_overlay_gif']
jquery-ui/images/ui-bg_glass_75_dadada_1x400.png ['jquery_ui', 'images', 'ui_bg_glass_75_dadada_1x400_png']
jquery-ui/images/ui-icons_454545_256x240.png ['jquery_ui', 'images', 'ui_icons_454545_256x240_png']
jquery-ui/images/ui-bg_glass_95_fef1ec_1x400.png ['jquery_ui', 'images', 'ui_bg_glass_95_fef1ec_1x400_png']
jquery-ui/jquery-ui.theme.min.css ['jquery_ui', 'jquery_ui_theme_min_css']
jquery-ui/jquery-ui.min.css ['jquery_ui', 'jquery_ui_min_css']
home.html.tmpl ['home_html_tmpl']
include.html.part ['include_html_part']
taskbar.css ['taskbar_css']
taskbar.html.part ['taskbar_html_part']
[2/14] /usr/bin/i686-w64-mingw32-g++  '-Isrc/searcher/kiwix-search@exe' '-Isrc/searcher' '-I../../SOURCE/kiwix-tools/src/searcher' '-I/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/include' '-I/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/include/' '-fdiagnostics-color=always' '-pipe' '-Wall' '-Winvalid-pch' '-Wnon-virtual-dtor' '-O0' '-g' '-pthread' '-isystem' '/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/include' '-isystem' '/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/include' '-MMD' '-MQ' 'src/searcher/kiwix-search@exe/kiwix-search.cpp.obj' '-MF' 'src/searcher/kiwix-search@exe/kiwix-search.cpp.obj.d' -o 'src/searcher/kiwix-search@exe/kiwix-search.cpp.obj' -c ../../SOURCE/kiwix-tools/src/searcher/kiwix-search.cpp
../../SOURCE/kiwix-tools/src/searcher/kiwix-search.cpp: In function ‘int main(int, char**)’:
../../SOURCE/kiwix-tools/src/searcher/kiwix-search.cpp:109:12: warning: deleting object of abstract class type ‘kiwix::Searcher’ which has non-virtual destructor will cause undefined behaviour [-Wdelete-non-virtual-dtor]
     delete searcher;
            ^
../../SOURCE/kiwix-tools/src/searcher/kiwix-search.cpp:38:8: warning: variable ‘verboseFlag’ set but not used [-Wunused-but-set-variable]
   bool verboseFlag = false;
        ^
../../SOURCE/kiwix-tools/src/searcher/kiwix-search.cpp:41:20: warning: variable ‘backend’ set but not used [-Wunused-but-set-variable]
   supportedBackend backend = XAPIAN;
                    ^
[3/14] /usr/bin/i686-w64-mingw32-g++  '-Isrc/manager/kiwix-manage@exe' '-Isrc/manager' '-I../../SOURCE/kiwix-tools/src/manager' '-I/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/include' '-I/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/include/' '-fdiagnostics-color=always' '-pipe' '-Wall' '-Winvalid-pch' '-Wnon-virtual-dtor' '-O0' '-g' '-pthread' '-isystem' '/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/include' '-isystem' '/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/include' '-MMD' '-MQ' 'src/manager/kiwix-manage@exe/kiwix-manage.cpp.obj' '-MF' 'src/manager/kiwix-manage@exe/kiwix-manage.cpp.obj.d' -o 'src/manager/kiwix-manage@exe/kiwix-manage.cpp.obj' -c ../../SOURCE/kiwix-tools/src/manager/kiwix-manage.cpp
[4/14] /usr/bin/i686-w64-mingw32-g++  '-Isrc/reader/kiwix-read@exe' '-Isrc/reader' '-I../../SOURCE/kiwix-tools/src/reader' '-I/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/include' '-I/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/include/' '-fdiagnostics-color=always' '-pipe' '-Wall' '-Winvalid-pch' '-Wnon-virtual-dtor' '-O0' '-g' '-pthread' '-isystem' '/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/include' '-isystem' '/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/include' '-MMD' '-MQ' 'src/reader/kiwix-read@exe/kiwix-read.cpp.obj' '-MF' 'src/reader/kiwix-read@exe/kiwix-read.cpp.obj.d' -o 'src/reader/kiwix-read@exe/kiwix-read.cpp.obj' -c ../../SOURCE/kiwix-tools/src/reader/kiwix-read.cpp
../../SOURCE/kiwix-tools/src/reader/kiwix-read.cpp: In function ‘int main(int, char**)’:
../../SOURCE/kiwix-tools/src/reader/kiwix-read.cpp:91:18: warning: unused variable ‘contentLength’ [-Wunused-variable]
     unsigned int contentLength = 0;
                  ^
[5/14] /usr/bin/i686-w64-mingw32-g++  '-Isrc/indexer/kiwix-index@exe' '-Isrc/indexer' '-I../../SOURCE/kiwix-tools/src/indexer' '-I/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/include' '-I/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/include/' '-fdiagnostics-color=always' '-pipe' '-Wall' '-Winvalid-pch' '-Wnon-virtual-dtor' '-O0' '-g' '-pthread' '-isystem' '/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/include' '-isystem' '/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/include' '-MMD' '-MQ' 'src/indexer/kiwix-index@exe/kiwix-index.cpp.obj' '-MF' 'src/indexer/kiwix-index@exe/kiwix-index.cpp.obj.d' -o 'src/indexer/kiwix-index@exe/kiwix-index.cpp.obj' -c ../../SOURCE/kiwix-tools/src/indexer/kiwix-index.cpp
[6/14] /usr/bin/i686-w64-mingw32-g++  '-Isrc/installer/kiwix-install@exe' '-Isrc/installer' '-I../../SOURCE/kiwix-tools/src/installer' '-I/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/include' '-I/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/include/' '-fdiagnostics-color=always' '-pipe' '-Wall' '-Winvalid-pch' '-Wnon-virtual-dtor' '-O0' '-g' '-pthread' '-isystem' '/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/include' '-isystem' '/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/include' '-MMD' '-MQ' 'src/installer/kiwix-install@exe/kiwix-install.cpp.obj' '-MF' 'src/installer/kiwix-install@exe/kiwix-install.cpp.obj.d' -o 'src/installer/kiwix-install@exe/kiwix-install.cpp.obj' -c ../../SOURCE/kiwix-tools/src/installer/kiwix-install.cpp
[7/14] /usr/bin/i686-w64-mingw32-g++ -lwinmm -lws2_32 -lshlwapi -lrpcrt4   -o src/reader/kiwix-read.exe 'src/reader/kiwix-read@exe/kiwix-read.cpp.obj' '-L/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib' '-L/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu' '-Wl,--no-undefined' '-Wl,--as-needed' '-static-libstdc++' '--static' '-pthread' '-lkiwix' '-lzim' '-lz' '-licuin' '-licuuc' '-licudt' '-lpthread' '-lm' '-lpugixml' '-lxapian' '-lmicrohttpd' '-lctpp2' '-lz' '-lkernel32' '-luser32' '-lgdi32' '-lwinspool' '-lshell32' '-lole32' '-loleaut32' '-luuid' '-lcomdlg32' '-ladvapi32' 
FAILED: src/reader/kiwix-read.exe 
/usr/bin/i686-w64-mingw32-g++ -lwinmm -lws2_32 -lshlwapi -lrpcrt4   -o src/reader/kiwix-read.exe 'src/reader/kiwix-read@exe/kiwix-read.cpp.obj' '-L/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib' '-L/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu' '-Wl,--no-undefined' '-Wl,--as-needed' '-static-libstdc++' '--static' '-pthread' '-lkiwix' '-lzim' '-lz' '-licuin' '-licuuc' '-licudt' '-lpthread' '-lm' '-lpugixml' '-lxapian' '-lmicrohttpd' '-lctpp2' '-lz' '-lkernel32' '-luser32' '-lgdi32' '-lwinspool' '-lshell32' '-lole32' '-loleaut32' '-luuid' '-lcomdlg32' '-ladvapi32' 
/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu/libkiwix.a(common_pathTools.cpp.obj): In function `Z10fileExistsRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE':
/home/kelson/kiwix-build/build/BUILD_win32_static/kiwix-lib/../../SOURCE/kiwix-lib/src/common/pathTools.cpp:177: undefined reference to `_imp__PathFileExistsA@4'
/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu/libzim.a(uuid.cpp.obj): In function `Z12gettimeofdayP7timevalPv':
/home/kelson/kiwix-build/build/BUILD_win32_static/zimlib/../../SOURCE/openzim/zimlib/src/uuid.cpp:33: undefined reference to `_imp__timeGetTime@0'
collect2: error: ld returned 1 exit status
[8/14] /usr/bin/i686-w64-mingw32-g++ -lwinmm -lws2_32 -lshlwapi -lrpcrt4   -o src/manager/kiwix-manage.exe 'src/manager/kiwix-manage@exe/kiwix-manage.cpp.obj' '-L/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib' '-L/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu' '-Wl,--no-undefined' '-Wl,--as-needed' '-static-libstdc++' '--static' '-pthread' '-lkiwix' '-lzim' '-lz' '-licuin' '-licuuc' '-licudt' '-lpthread' '-lm' '-lpugixml' '-lxapian' '-lmicrohttpd' '-lctpp2' '-lz' '-lkernel32' '-luser32' '-lgdi32' '-lwinspool' '-lshell32' '-lole32' '-loleaut32' '-luuid' '-lcomdlg32' '-ladvapi32' 
FAILED: src/manager/kiwix-manage.exe 
/usr/bin/i686-w64-mingw32-g++ -lwinmm -lws2_32 -lshlwapi -lrpcrt4   -o src/manager/kiwix-manage.exe 'src/manager/kiwix-manage@exe/kiwix-manage.cpp.obj' '-L/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib' '-L/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu' '-Wl,--no-undefined' '-Wl,--as-needed' '-static-libstdc++' '--static' '-pthread' '-lkiwix' '-lzim' '-lz' '-licuin' '-licuuc' '-licudt' '-lpthread' '-lm' '-lpugixml' '-lxapian' '-lmicrohttpd' '-lctpp2' '-lz' '-lkernel32' '-luser32' '-lgdi32' '-lwinspool' '-lshell32' '-lole32' '-loleaut32' '-luuid' '-lcomdlg32' '-ladvapi32' 
/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu/libkiwix.a(common_pathTools.cpp.obj): In function `Z10fileExistsRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE':
/home/kelson/kiwix-build/build/BUILD_win32_static/kiwix-lib/../../SOURCE/kiwix-lib/src/common/pathTools.cpp:177: undefined reference to `_imp__PathFileExistsA@4'
/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu/libzim.a(uuid.cpp.obj): In function `Z12gettimeofdayP7timevalPv':
/home/kelson/kiwix-build/build/BUILD_win32_static/zimlib/../../SOURCE/openzim/zimlib/src/uuid.cpp:33: undefined reference to `_imp__timeGetTime@0'
collect2: error: ld returned 1 exit status
[9/14] /usr/bin/i686-w64-mingw32-g++ -lwinmm -lws2_32 -lshlwapi -lrpcrt4   -o src/indexer/kiwix-index.exe 'src/indexer/kiwix-index@exe/kiwix-index.cpp.obj' '-L/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib' '-L/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu' '-Wl,--no-undefined' '-Wl,--as-needed' '-static-libstdc++' '--static' '-pthread' '-lkiwix' '-lzim' '-lz' '-licuin' '-licuuc' '-licudt' '-lpthread' '-lm' '-lpugixml' '-lxapian' '-lmicrohttpd' '-lctpp2' '-lz' '-lkernel32' '-luser32' '-lgdi32' '-lwinspool' '-lshell32' '-lole32' '-loleaut32' '-luuid' '-lcomdlg32' '-ladvapi32' 
FAILED: src/indexer/kiwix-index.exe 
/usr/bin/i686-w64-mingw32-g++ -lwinmm -lws2_32 -lshlwapi -lrpcrt4   -o src/indexer/kiwix-index.exe 'src/indexer/kiwix-index@exe/kiwix-index.cpp.obj' '-L/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib' '-L/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu' '-Wl,--no-undefined' '-Wl,--as-needed' '-static-libstdc++' '--static' '-pthread' '-lkiwix' '-lzim' '-lz' '-licuin' '-licuuc' '-licudt' '-lpthread' '-lm' '-lpugixml' '-lxapian' '-lmicrohttpd' '-lctpp2' '-lz' '-lkernel32' '-luser32' '-lgdi32' '-lwinspool' '-lshell32' '-lole32' '-loleaut32' '-luuid' '-lcomdlg32' '-ladvapi32' 
/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu/libkiwix.a(common_pathTools.cpp.obj): In function `Z10fileExistsRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE':
/home/kelson/kiwix-build/build/BUILD_win32_static/kiwix-lib/../../SOURCE/kiwix-lib/src/common/pathTools.cpp:177: undefined reference to `_imp__PathFileExistsA@4'
/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu/libzim.a(uuid.cpp.obj): In function `Z12gettimeofdayP7timevalPv':
/home/kelson/kiwix-build/build/BUILD_win32_static/zimlib/../../SOURCE/openzim/zimlib/src/uuid.cpp:33: undefined reference to `_imp__timeGetTime@0'
/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(dbfactory_remote.o): In function `ZN18WinsockInitializerD4Ev':
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/remoteconnection.h:62: undefined reference to `_imp__WSACleanup@0'
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/remoteconnection.h:62: undefined reference to `_imp__WSACleanup@0'
/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(dbfactory_remote.o): In function `ZN18WinsockInitializerC2Ev':
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/remoteconnection.h:52: undefined reference to `_imp__WSAStartup@8'
/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(win32_uuid.o): In function `Z13uuid_generatePh':
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/common/win32_uuid.cc:49: undefined reference to `_imp__UuidCreate@4'
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/common/win32_uuid.cc:57: undefined reference to `_imp__htonl@4'
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/common/win32_uuid.cc:58: undefined reference to `_imp__htons@4'
/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(win32_uuid.o): In function `Z10uuid_parsePKcPh':
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/common/win32_uuid.cc:70: undefined reference to `_imp__UuidFromStringA@8'
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/common/win32_uuid.cc:72: undefined reference to `_imp__htonl@4'
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/common/win32_uuid.cc:73: undefined reference to `_imp__htons@4'
/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(win32_uuid.o): In function `Z18uuid_unparse_lowerPKhPc':
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/common/win32_uuid.cc:84: undefined reference to `_imp__htonl@4'
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/common/win32_uuid.cc:85: undefined reference to `_imp__htons@4'
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/common/win32_uuid.cc:87: undefined reference to `_imp__UuidToStringA@8'
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/common/win32_uuid.cc:94: undefined reference to `_imp__RpcStringFreeA@4'
/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(remoteconnection.o): In function `ZNK16RemoteConnection13ready_to_readEv':
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/remoteconnection.cc:216: undefined reference to `_imp__select@20'
/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(remotetcpclient.o): In function `ZN18WinsockInitializerD4Ev':
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/remoteconnection.h:62: undefined reference to `_imp__WSACleanup@0'
/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(tcpclient.o): In function `ZN9TcpClient11open_socketERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEidb':
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/tcpclient.cc:59: undefined reference to `_imp__getaddrinfo@16'
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/tcpclient.cc:179: undefined reference to `_imp__closesocket@4'
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/tcpclient.cc:69: undefined reference to `_imp__socket@12'
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/tcpclient.cc:83: undefined reference to `_imp__ioctlsocket@12'
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/tcpclient.cc:105: undefined reference to `_imp__setsockopt@20'
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/tcpclient.cc:115: undefined reference to `_imp__connect@12'
/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(tcpclient.o): In function `Z12socket_errnov':
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/remoteconnection.h:75: undefined reference to `_imp__WSAGetLastError@0'
/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(tcpclient.o): In function `ZN9TcpClient11open_socketERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEidb':
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/tcpclient.cc:138: undefined reference to `_imp__select@20'
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/tcpclient.cc:157: undefined reference to `_imp__getsockopt@20'
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/tcpclient.cc:182: undefined reference to `_imp__freeaddrinfo@4'
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/tcpclient.cc:190: undefined reference to `_imp__ioctlsocket@12'
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/tcpclient.cc:144: undefined reference to `_imp__freeaddrinfo@4'
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/tcpclient.cc:182: undefined reference to `_imp__freeaddrinfo@4'
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/tcpclient.cc:144: undefined reference to `_imp__freeaddrinfo@4'
/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(tcpclient.o): In function `Z12socket_errnov':
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/remoteconnection.h:75: undefined reference to `_imp__WSAGetLastError@0'
/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(tcpclient.o): In function `ZN9TcpClient11open_socketERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEidb':
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/tcpclient.cc:110: undefined reference to `_imp__freeaddrinfo@4'
/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(tcpclient.o): In function `Z12socket_errnov':
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/remoteconnection.h:75: undefined reference to `_imp__WSAGetLastError@0'
/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(tcpclient.o): In function `ZN9TcpClient11open_socketERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEidb':
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/tcpclient.cc:95: undefined reference to `_imp__freeaddrinfo@4'
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/tcpclient.cc:162: undefined reference to `_imp__freeaddrinfo@4'
/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(socket_utils.o): In function `Z18close_fd_or_socketi':
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/common/socket_utils.cc:102: undefined reference to `_imp__closesocket@4'
/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(socket_utils.o): In function `Z19set_socket_timeoutsid':
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/common/socket_utils.cc:128: undefined reference to `_imp__setsockopt@20'
collect2: error: ld returned 1 exit status
[10/14] /usr/bin/i686-w64-mingw32-g++ -lwinmm -lws2_32 -lshlwapi -lrpcrt4   -o src/installer/kiwix-install.exe 'src/installer/kiwix-install@exe/kiwix-install.cpp.obj' '-L/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib' '-L/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu' '-Wl,--no-undefined' '-Wl,--as-needed' '-static-libstdc++' '--static' '-pthread' '-lkiwix' '-lzim' '-lz' '-licuin' '-licuuc' '-licudt' '-lpthread' '-lm' '-lpugixml' '-lxapian' '-lmicrohttpd' '-lctpp2' '-lz' '-lkernel32' '-luser32' '-lgdi32' '-lwinspool' '-lshell32' '-lole32' '-loleaut32' '-luuid' '-lcomdlg32' '-ladvapi32' 
FAILED: src/installer/kiwix-install.exe 
/usr/bin/i686-w64-mingw32-g++ -lwinmm -lws2_32 -lshlwapi -lrpcrt4   -o src/installer/kiwix-install.exe 'src/installer/kiwix-install@exe/kiwix-install.cpp.obj' '-L/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib' '-L/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu' '-Wl,--no-undefined' '-Wl,--as-needed' '-static-libstdc++' '--static' '-pthread' '-lkiwix' '-lzim' '-lz' '-licuin' '-licuuc' '-licudt' '-lpthread' '-lm' '-lpugixml' '-lxapian' '-lmicrohttpd' '-lctpp2' '-lz' '-lkernel32' '-luser32' '-lgdi32' '-lwinspool' '-lshell32' '-lole32' '-loleaut32' '-luuid' '-lcomdlg32' '-ladvapi32' 
/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu/libkiwix.a(common_pathTools.cpp.obj): In function `Z10fileExistsRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE':
/home/kelson/kiwix-build/build/BUILD_win32_static/kiwix-lib/../../SOURCE/kiwix-lib/src/common/pathTools.cpp:177: undefined reference to `_imp__PathFileExistsA@4'
/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu/libzim.a(uuid.cpp.obj): In function `Z12gettimeofdayP7timevalPv':
/home/kelson/kiwix-build/build/BUILD_win32_static/zimlib/../../SOURCE/openzim/zimlib/src/uuid.cpp:33: undefined reference to `_imp__timeGetTime@0'
/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(dbfactory_remote.o): In function `ZN18WinsockInitializerD4Ev':
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/remoteconnection.h:62: undefined reference to `_imp__WSACleanup@0'
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/remoteconnection.h:62: undefined reference to `_imp__WSACleanup@0'
/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(dbfactory_remote.o): In function `ZN18WinsockInitializerC2Ev':
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/remoteconnection.h:52: undefined reference to `_imp__WSAStartup@8'
/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(win32_uuid.o): In function `Z13uuid_generatePh':
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/common/win32_uuid.cc:49: undefined reference to `_imp__UuidCreate@4'
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/common/win32_uuid.cc:57: undefined reference to `_imp__htonl@4'
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/common/win32_uuid.cc:58: undefined reference to `_imp__htons@4'
/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(win32_uuid.o): In function `Z10uuid_parsePKcPh':
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/common/win32_uuid.cc:70: undefined reference to `_imp__UuidFromStringA@8'
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/common/win32_uuid.cc:72: undefined reference to `_imp__htonl@4'
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/common/win32_uuid.cc:73: undefined reference to `_imp__htons@4'
/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(win32_uuid.o): In function `Z18uuid_unparse_lowerPKhPc':
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/common/win32_uuid.cc:84: undefined reference to `_imp__htonl@4'
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/common/win32_uuid.cc:85: undefined reference to `_imp__htons@4'
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/common/win32_uuid.cc:87: undefined reference to `_imp__UuidToStringA@8'
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/common/win32_uuid.cc:94: undefined reference to `_imp__RpcStringFreeA@4'
/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(remoteconnection.o): In function `ZNK16RemoteConnection13ready_to_readEv':
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/remoteconnection.cc:216: undefined reference to `_imp__select@20'
/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(remotetcpclient.o): In function `ZN18WinsockInitializerD4Ev':
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/remoteconnection.h:62: undefined reference to `_imp__WSACleanup@0'
/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(tcpclient.o): In function `ZN9TcpClient11open_socketERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEidb':
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/tcpclient.cc:59: undefined reference to `_imp__getaddrinfo@16'
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/tcpclient.cc:179: undefined reference to `_imp__closesocket@4'
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/tcpclient.cc:69: undefined reference to `_imp__socket@12'
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/tcpclient.cc:83: undefined reference to `_imp__ioctlsocket@12'
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/tcpclient.cc:105: undefined reference to `_imp__setsockopt@20'
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/tcpclient.cc:115: undefined reference to `_imp__connect@12'
/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(tcpclient.o): In function `Z12socket_errnov':
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/remoteconnection.h:75: undefined reference to `_imp__WSAGetLastError@0'
/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(tcpclient.o): In function `ZN9TcpClient11open_socketERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEidb':
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/tcpclient.cc:138: undefined reference to `_imp__select@20'
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/tcpclient.cc:157: undefined reference to `_imp__getsockopt@20'
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/tcpclient.cc:182: undefined reference to `_imp__freeaddrinfo@4'
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/tcpclient.cc:190: undefined reference to `_imp__ioctlsocket@12'
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/tcpclient.cc:144: undefined reference to `_imp__freeaddrinfo@4'
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/tcpclient.cc:182: undefined reference to `_imp__freeaddrinfo@4'
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/tcpclient.cc:144: undefined reference to `_imp__freeaddrinfo@4'
/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(tcpclient.o): In function `Z12socket_errnov':
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/remoteconnection.h:75: undefined reference to `_imp__WSAGetLastError@0'
/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(tcpclient.o): In function `ZN9TcpClient11open_socketERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEidb':
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/tcpclient.cc:110: undefined reference to `_imp__freeaddrinfo@4'
/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(tcpclient.o): In function `Z12socket_errnov':
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/remoteconnection.h:75: undefined reference to `_imp__WSAGetLastError@0'
/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(tcpclient.o): In function `ZN9TcpClient11open_socketERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEidb':
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/tcpclient.cc:95: undefined reference to `_imp__freeaddrinfo@4'
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/net/tcpclient.cc:162: undefined reference to `_imp__freeaddrinfo@4'
/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(socket_utils.o): In function `Z18close_fd_or_socketi':
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/common/socket_utils.cc:102: undefined reference to `_imp__closesocket@4'
/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(socket_utils.o): In function `Z19set_socket_timeoutsid':
/home/kelson/kiwix-build/build/SOURCE/xapian-core-1.4.0/common/socket_utils.cc:128: undefined reference to `_imp__setsockopt@20'
collect2: error: ld returned 1 exit status
[11/14] /usr/bin/i686-w64-mingw32-g++  '-Isrc/server/kiwix-serve@exe' '-Isrc/server' '-Istatic/server' '-I../../SOURCE/kiwix-tools/src/server' '-I/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/include' '-I/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/include/' '-fdiagnostics-color=always' '-pipe' '-Wall' '-Winvalid-pch' '-Wnon-virtual-dtor' '-O0' '-g' '-pthread' '-isystem' '/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/include' '-isystem' '/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/include' '-MMD' '-MQ' 'src/server/kiwix-serve@exe/static_server_server-resources.cpp.obj' '-MF' 'src/server/kiwix-serve@exe/static_server_server-resources.cpp.obj.d' -o 'src/server/kiwix-serve@exe/static_server_server-resources.cpp.obj' -c static/server/server-resources.cpp
[12/14] /usr/bin/i686-w64-mingw32-g++  '-Isrc/server/kiwix-serve@exe' '-Isrc/server' '-Istatic/server' '-I../../SOURCE/kiwix-tools/src/server' '-I/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/include' '-I/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/include/' '-fdiagnostics-color=always' '-pipe' '-Wall' '-Winvalid-pch' '-Wnon-virtual-dtor' '-O0' '-g' '-pthread' '-isystem' '/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/include' '-isystem' '/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/include' '-MMD' '-MQ' 'src/server/kiwix-serve@exe/kiwix-serve.cpp.obj' '-MF' 'src/server/kiwix-serve@exe/kiwix-serve.cpp.obj.d' -o 'src/server/kiwix-serve@exe/kiwix-serve.cpp.obj' -c ../../SOURCE/kiwix-tools/src/server/kiwix-serve.cpp
../../SOURCE/kiwix-tools/src/server/kiwix-serve.cpp: In function ‘MHD_Response* build_response(const void*, unsigned int, const string&, const string&, bool, bool)’:
../../SOURCE/kiwix-tools/src/server/kiwix-serve.cpp:200:36: warning: ‘MHD_Response* MHD_create_response_from_data(size_t, void*, int, int)’ is deprecated: MHD_create_response_from_data() is deprecated, use MHD_create_response_from_buffer() [-Wdeprecated-declarations]
   struct MHD_Response * response = MHD_create_response_from_data(length,
                                    ^
In file included from ../../SOURCE/kiwix-tools/src/server/kiwix-serve.cpp:41:0:
/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/include/microhttpd.h:2034:1: note: declared here
 MHD_create_response_from_data (size_t size,
 ^
../../SOURCE/kiwix-tools/src/server/kiwix-serve.cpp:200:36: warning: ‘MHD_Response* MHD_create_response_from_data(size_t, void*, int, int)’ is deprecated: MHD_create_response_from_data() is deprecated, use MHD_create_response_from_buffer() [-Wdeprecated-declarations]
   struct MHD_Response * response = MHD_create_response_from_data(length,
                                    ^
In file included from ../../SOURCE/kiwix-tools/src/server/kiwix-serve.cpp:41:0:
/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/include/microhttpd.h:2034:1: note: declared here
 MHD_create_response_from_data (size_t size,
 ^
../../SOURCE/kiwix-tools/src/server/kiwix-serve.cpp:203:73: warning: ‘MHD_Response* MHD_create_response_from_data(size_t, void*, int, int)’ is deprecated: MHD_create_response_from_data() is deprecated, use MHD_create_response_from_buffer() [-Wdeprecated-declarations]
                                                                  MHD_YES);
                                                                         ^
In file included from ../../SOURCE/kiwix-tools/src/server/kiwix-serve.cpp:41:0:
/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/include/microhttpd.h:2034:1: note: declared here
 MHD_create_response_from_data (size_t size,
 ^
../../SOURCE/kiwix-tools/src/server/kiwix-serve.cpp: In function ‘MHD_Response* handle_random(MHD_Connection*, int&, kiwix::Reader*, kiwix::Searcher*, const string&, const string&, bool)’:
../../SOURCE/kiwix-tools/src/server/kiwix-serve.cpp:429:8: warning: unused variable ‘cacheEnabled’ [-Wunused-variable]
   bool cacheEnabled = false;
        ^
../../SOURCE/kiwix-tools/src/server/kiwix-serve.cpp: In function ‘MHD_Response* handle_content(MHD_Connection*, int&, kiwix::Reader*, kiwix::Searcher*, const string&, const string&, bool)’:
../../SOURCE/kiwix-tools/src/server/kiwix-serve.cpp:452:16: warning: unused variable ‘contentLength’ [-Wunused-variable]
   unsigned int contentLength;
                ^
../../SOURCE/kiwix-tools/src/server/kiwix-serve.cpp: In function ‘int accessHandlerCallback(void*, MHD_Connection*, const char*, const char*, const char*, const char*, size_t*, void**)’:
../../SOURCE/kiwix-tools/src/server/kiwix-serve.cpp:596:14: warning: unused variable ‘acceptRange’ [-Wunused-variable]
   const bool acceptRange = acceptRangeHeaderValue != NULL;
              ^
../../SOURCE/kiwix-tools/src/server/kiwix-serve.cpp: In function ‘int main(int, char**)’:
../../SOURCE/kiwix-tools/src/server/kiwix-serve.cpp:712:7: warning: variable ‘daemonFlag’ set but not used [-Wunused-but-set-variable]
   int daemonFlag = false;
       ^
ninja: build stopped: subcommand failed.
run command 'ninja -v'
env is :
  CLUTTER_IM_MODULE : 'xim'
  HOME : '/home/kelson'
  PKG_CONFIG_PATH : '/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib/x86_64-linux-gnu/pkgconfig'
  XAUTHORITY : '/home/kelson/.Xauthority'
  DBUS_SESSION_BUS_ADDRESS : 'unix:abstract=/tmp/dbus-Ha0uWnQKXe'
  LIBGL_ALWAYS_SOFTWARE : '1'
  LC_IDENTIFICATION : 'de_CH.UTF-8'
  GPG_AGENT_INFO : '/home/kelson/.gnupg/S.gpg-agent:0:1'
  LD_LIBRARY_PATH : '/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib:/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib64'
  GNOME_KEYRING_CONTROL : ''
  LC_PAPER : 'de_CH.UTF-8'
  SHLVL : '1'
  QT_QPA_PLATFORMTHEME : 'appmenu-qt5'
  GTK2_MODULES : 'overlay-scrollbar'
  GDM_LANG : 'en_US'
  WINDOWID : '52428810'
  XDG_SESSION_ID : 'c1'
  LC_TIME : 'de_CH.UTF-8'
  LDFLAGS : '-L/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/lib'
  DISPLAY : ':0'
  XDG_DATA_DIRS : '/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop'
  LANGUAGE : 'en_US'
  SESSION : 'ubuntu'
  UPSTART_EVENTS : 'xsession started'
  UPSTART_INSTANCE : ''
  LC_NAME : 'de_CH.UTF-8'
  LC_NUMERIC : 'de_CH.UTF-8'
  SSH_AUTH_SOCK : '/run/user/1000/keyring/ssh'
  LC_MEASUREMENT : 'de_CH.UTF-8'
  MANDATORY_PATH : '/usr/share/gconf/ubuntu.mandatory.path'
  XDG_VTNR : '7'
  VTE_VERSION : '4205'
  VIRTUAL_ENV : '/home/kelson/kiwix-build'
  PWD : '/home/kelson/kiwix-build'
  SHELL : '/bin/bash'
  XDG_CONFIG_DIRS : '/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg'
  UPSTART_JOB : 'unity7'
  COMPIZ_CONFIG_PROFILE : 'ubuntu-lowgfx'
  UPSTART_SESSION : 'unix:abstract=/com/ubuntu/upstart-session/1000/1145'
  CPPFLAGS : '-I/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/include'
  OLDPWD : '/home/kelson/kiwix-build/build'
  XDG_SESSION_DESKTOP : 'ubuntu'
  XDG_MENU_PREFIX : 'gnome-'
  GTK_MODULES : 'gail:atk-bridge:unity-gtk-module'
  LOGNAME : 'kelson'
  USER : 'kelson'
  QT_ACCESSIBILITY : '1'
  QT_LINUX_ACCESSIBILITY_ALWAYS_ON : '1'
  LS_COLORS : 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:'
  LC_MONETARY : 'de_CH.UTF-8'
  JOB : 'unity-settings-daemon'
  QT_IM_MODULE : 'ibus'
  PS1 : '(kiwix-build) \\[\\e]0;\\u@\\h: \\w\\a\\]${debian_chroot:+($debian_chroot)}\\[\\033[01;32m\\]\\u@\\h\\[\\033[00m\\]:\\[\\033[01;34m\\]\\w\\[\\033[00m\\]\\$ '
  _ : './kiwix-build.py'
  TERM : 'xterm-256color'
  XDG_GREETER_DATA_DIR : '/var/lib/lightdm-data/kelson'
  GTK_IM_MODULE : 'ibus'
  PKG_CONFIG_LIBDIR : '/usr/i686-w64-mingw32//lib/pkgconfig'
  LANG : 'en_US.UTF-8'
  IM_CONFIG_PHASE : '1'
  GNOME_KEYRING_PID : ''
  QT4_IM_MODULE : 'xim'
  DESKTOP_SESSION : 'ubuntu'
  XDG_RUNTIME_DIR : '/run/user/1000'
  XDG_SEAT_PATH : '/org/freedesktop/DisplayManager/Seat0'
  COMPIZ_BIN_PATH : '/usr/bin/'
  XMODIFIERS : '@im=ibus'
  LC_ADDRESS : 'de_CH.UTF-8'
  XDG_CURRENT_DESKTOP : 'Unity'
  LESSCLOSE : '/usr/bin/lesspipe %s %s'
  XDG_SESSION_PATH : '/org/freedesktop/DisplayManager/Session0'
  XDG_SEAT : 'seat0'
  SESSIONTYPE : 'gnome-session'
  LESSOPEN : '| /usr/bin/lesspipe %s'
  LC_TELEPHONE : 'de_CH.UTF-8'
  GNOME_DESKTOP_SESSION_ID : 'this-is-deprecated'
  PATH : '/home/kelson/kiwix-build/build/BUILD_win32_static/INSTALL/bin:/home/kelson/kiwix-build/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin'
  XDG_SESSION_TYPE : 'x11'
  DEFAULTS_PATH : '/usr/share/gconf/ubuntu.default.path'
  INSTANCE : ''
  GDMSESSION : 'ubuntu'

Stopping build due to errors
mgautierfr commented 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.

kelson42 commented 7 years ago

@mgautierfr Thx, I will check this

kelson42 commented 7 years ago

@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.
mgautierfr commented 7 years ago

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.

kelson42 commented 7 years ago

@mgautierfr thx, seems to work perfectly fine now.