Closed hillu closed 3 years ago
ok, I fixed it. does it work now?
Yes. No more errors.
Here's the cmake
spell I am currently using. (There has been quite a bit of trial&error involved.)
cd $build_dir && \
CC=$1-gcc CXX=$1-g++ CXXFLAGS=-D_WIN32_WINNT=_WIN32_WINNT_WIN7 cmake $src_dir \
-DCMAKE_INSTALL_PREFIX=$arch_install_dir \
-DCMAKE_TRY_COMPILE_TARGET_TYPE=STATIC_LIBRARY \
-DCMAKE_CROSSCOMPILING=1 \
-DCMAKE_SYSTEM_NAME=Windows \
-DPECONV_BUILD_TESTING=0
I found another
reinterpret_cast<…>
-related compile error when cross-building withx86_64-w64-mingw32-g++ (GCC) 8.3-win32 20190406
: