Hi
This thread is quite old and I don't know if there is something younger... anyway,
I'm trying to cross-build for Windows from Ubuntu 16.10
Some news from the process described above
1) install mingw32 doesn't work anymore
instead I installed ming-w64
2) to build and install wxWidgets :
./configure --prefix=/usr/local/i686-w64-mingw32 --host=i686-w64-mingw32 --with-opengl --enable-unicode --built=x86_64
wxWidgets cmake, make, make install end successfully.
3) to build
OpenCPN
Changed FindwxWidgets.cmake as indicated but I think it's no longer necessary
OpenCPN cmake ends successfully
Unfortunately, I'm blocked in make by a linker problem I'm unable to solve
I got these messages :
""
[ 37%] Linking CXX executable opencpn.exe
/usr/bin/cmake -E cmake_link_script CMakeFiles/opencpn.dir/link.txt --verbose=1
/usr/bin/cmake -E remove -f CMakeFiles/opencpn.dir/objects.a
/usr/bin/i686-w64-mingw32-ar cr CMakeFiles/opencpn.dir/objects.a @CMakeFiles/opencpn.dir/objects1.rsp
/usr/bin/i686-w64-mingw32-g++ -mthreads -O3 -DNDEBUG -mwindows -Wl,--whole-archive CMakeFiles/opencpn.dir/objects.a -Wl,--no-whole-archive -o opencpn.exe -Wl,--out-implib,libopencpn.dll.a -Wl,--major-image-version,0,--minor-image-version,0 @CMakeFiles/opencpn.dir/linklibs.rsp
/usr/bin/i686-w64-mingw32-ld : ne peut trouver -lcurl
/usr/bin/i686-w64-mingw32-ld : ne peut trouver -lwx_mswu_gl-3.0
/usr/bin/i686-w64-mingw32-ld : ne peut trouver -lwx_baseu_net-3.0
/usr/bin/i686-w64-mingw32-ld : ne peut trouver -lwx_baseu_xml-3.0
/usr/bin/i686-w64-mingw32-ld : ne peut trouver -lwx_mswu_html-3.0
/usr/bin/i686-w64-mingw32-ld : ne peut trouver -lwx_mswu_adv-3.0
/usr/bin/i686-w64-mingw32-ld : ne peut trouver -lwx_mswu_aui-3.0
/usr/bin/i686-w64-mingw32-ld : ne peut trouver -lwx_mswu_core-3.0
/usr/bin/i686-w64-mingw32-ld : ne peut trouver -lwx_baseu-3.0
collect2: error: ld returned 1 exit status
CMakeFiles/opencpn.dir/build.make:2677 : la recette pour la cible « opencpn.exe » a échouée
make[2]: *** [opencpn.exe] Erreur 1
""
If somebody could help me
Thanks
Jean Pierre