I am trying to cross compile libiconv-1.13.1 for windows using mingw32. I have got a custom toolchain placed in /usr/i686-w64-mingw32/bin/ This is for the NetSurf browser project. I have set the paths to use this toolchain before calling configure:
sudo CC="/usr/i686-w64-mingw32/bin/i686-w64-mingw32-gcc -B/usr/i686-w64-mingw32/bin/i686-w64-mingw32-ld" AR="/usr/i686-w64-mingw32/bin/i686-w64-mingw32-gcc-ar" RANLIB="/usr/i686-w64-mingw32/bin/i686-w64-mingw32-gcc-ranlib" CFLAGS="-I/usr/i686-w64-mingw32/i686-w64-mingw32/include -DNO_FSEEKO" LDFLAGS="-L/usr/i686-w64-mingw32/i686-w64-mingw32/lib" ./configure --prefix=/usr/i686-w64-mingw32/ --host=i686-w64-mingw32 --disable-shared
So the configure finished and compilation started. The include path is shown in the compile commands so its set correctly. There is a step involving windres:
/bin/bash ../libtool --mode=compile --tag=RC i686-w64-mingw32-windres `/bin/sh ./../windows/windres-options --escape 1.13.1` -i ./../windows/libiconv.rc -o libiconv.res.lo --output-format=coff libtool: compile: i686-w64-mingw32-windres -DPACKAGE_VERSION_STRING=\\"1.13.1\\" -DPACKAGE_VERSION_MAJOR=1 -DPACKAGE_VERSION_MINOR=13 -DPACKAGE_VERSION_SUBMINOR=1 -i ./../windows/libiconv.rc --output-format=coff -o libiconv.res.o ./../windows/libiconv.rc:3:10: fatal error: winver.h: No such file or directory 3 | #include <winver.h> | ^~~~~~~~~~ compilation terminated. i686-w64-mingw32-windres: preprocessing failed. make: *** [Makefile:93: libiconv.res.lo] Error 1
It seems that the include path was not passed when i686-w64-mingw32-windres was invoked on windows/libiconv.rc The include path ‘/usr/i686-w64-mingw32/i686-w64-mingw32/include’ does have the file winver.h
I am not familiar with how to pass an include path to this tool. There is a windres option file beside the .rc file: https://git.savannah.gnu.org/gitweb/?p=libiconv.git;a=blob;f=windows/windres-options;h=779fddec305d1e78f1e5c3123683b3c380e4a82e;hb=HEAD
Maybe I need to change something in the configure script: https://git.savannah.gnu.org/gitweb/?p=libiconv.git;a=tree;hb=HEAD
So any help with this error would be really helpful. Thanks.
✓ Extra quality
ExtraProxies brings the best proxy quality for you with our private and reliable proxies
✓ Extra anonymity
Top level of anonymity and 100% safe proxies – this is what you get with every proxy package
✓ Extra speed
1,ooo mb/s proxy servers speed – we are way better than others – just enjoy our proxies!
USA proxy location
We offer premium quality USA private proxies – the most essential proxies you can ever want from USA
Our proxies have TOP level of anonymity + Elite quality, so you are always safe and secure with your proxies
Use your proxies as much as you want – we have no limits for data transfer and bandwidth, unlimited usage!
Superb fast proxy servers with 1,000 mb/s speed – sit back and enjoy your lightning fast private proxies!
99,9% servers uptime
Alive and working proxies all the time – we are taking care of our servers so you can use them without any problems
No usage restrictions
You have freedom to use your proxies with every software, browser or website you want without restrictions
Perfect for SEO
We are 100% friendly with all SEO tasks as well as internet marketing – feel the power with our proxies
Buy more proxies and get better price – we offer various proxy packages with great deals and discounts
We are working 24/7 to bring the best proxy experience for you – we are glad to help and assist you!