You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thanks for your great work. I wanted to try out crosscompiling for the VCPKG projects. It succeeded for linux 64bit, but I have problems with the windows build...
vcpkg_test$ export CROSS_TARGET=x86_64-w64-mingw32
vcpkg_test$ export CROSS_WITH_PACKAGE_MANAGERS=1
vcpkg_test$ export CROSS_DETACH=1
vcpkg_test$ xcross vcpkg install
Detecting compiler hash for triplet x86_64-w64-mingw32-xcross...
The following packages will be built and installed:
zlib[core]:x86_64-w64-mingw32-xcross -> 1.2.11#10
Could not locate cached archive: /home/cross/.cache/vcpkg/archives/87/87dd8171c5b42db0ab4628f4e5b21a85d87de5fd.zip
Starting package 1/1: zlib:x86_64-w64-mingw32-xcross
Building package zlib[core]:x86_64-w64-mingw32-xcross...
-- Using community triplet x86_64-w64-mingw32-xcross. This triplet configuration is not guaranteed to succeed.
-- [COMMUNITY] Loading triplet configuration from: /opt/vcpkg/triplets/community/x86_64-w64-mingw32-xcross.cmake
-- Downloading http://www.zlib.net/zlib-1.2.11.tar.gz -> zlib1211.tar.gz...
-- Downloading http://www.zlib.net/zlib-1.2.11.tar.gz... Failed. Status: 22;"HTTP response code said error"
-- Downloading https://downloads.sourceforge.net/project/libpng/zlib/1.2.11/zlib-1.2.11.tar.gz -> zlib1211.tar.gz...
-- Extracting source /opt/vcpkg/downloads/zlib1211.tar.gz
-- Applying patch cmake_dont_build_more_than_needed.patch
-- Applying patch 0001-Prevent-invalid-inclusions-when-HAVE_-is-set-to-0.patch
-- Applying patch add_debug_postfix_on_mingw.patch
-- Applying patch 0002-android-build-mingw.patch
-- Using source at /opt/vcpkg/buildtrees/zlib/src/1.2.11-e9a093319e.clean
-- Configuring x86_64-w64-mingw32-xcross-dbg
-- Configuring x86_64-w64-mingw32-xcross-rel
-- Building x86_64-w64-mingw32-xcross-dbg
-- Building x86_64-w64-mingw32-xcross-rel
-- Fixing pkgconfig file: /opt/vcpkg/packages/zlib_x86_64-w64-mingw32-xcross/lib/pkgconfig/zlib.pc
-- Fixing pkgconfig file: /opt/vcpkg/packages/zlib_x86_64-w64-mingw32-xcross/debug/lib/pkgconfig/zlib.pc
-- Installing: /opt/vcpkg/packages/zlib_x86_64-w64-mingw32-xcross/share/zlib/copyright
-- Performing post-build validation
-- Performing post-build validation done
Stored binary cache: /home/cross/.cache/vcpkg/archives/87/87dd8171c5b42db0ab4628f4e5b21a85d87de5fd.zip
Building package zlib[core]:x86_64-w64-mingw32-xcross... done
Installing package zlib[core]:x86_64-w64-mingw32-xcross...
Installing package zlib[core]:x86_64-w64-mingw32-xcross... done
Elapsed time for package zlib:x86_64-w64-mingw32-xcross: 20.55 s
Total elapsed time: 20.55 s
vcpkg_test$ xcross cmake .
-- Running vcpkg install
-- Running vcpkg install - done
-- The C compiler identification is GNU 10.2.0
-- The CXX compiler identification is GNU 10.2.0
-- Check for working C compiler: /opt/bin/cc
-- Check for working C compiler: /opt/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /opt/bin/c++
-- Check for working CXX compiler: /opt/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found ZLIB: vcpkg_test/vcpkg_installed/x86_64-w64-mingw32-xcross/lib/libzlib.a (found version "1.2.11")
-- Configuring done
-- Generating done
-- Build files have been written to: vcpkg_test
vcpkg_test$ xcross cmake --build .
Scanning dependencies of target zlibexec
[ 50%] Building CXX object CMakeFiles/zlibexec.dir/zlib.cc.o
[100%] Linking CXX executable zlibexec
x86_64-w64-mingw32-g++: error: unrecognized command-line option '-rdynamic'
make[2]: *** [CMakeFiles/zlibexec.dir/build.make:85: zlibexec] Error 1
make[1]: *** [CMakeFiles/Makefile2:104: CMakeFiles/zlibexec.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
Do you have a clue what goes wrong? I could think of a VCPKG triplet error...
Best regards,
Michael
The text was updated successfully, but these errors were encountered:
Hi Alex,
thanks for your great work. I wanted to try out crosscompiling for the VCPKG projects. It succeeded for linux 64bit, but I have problems with the windows build...
Do you have a clue what goes wrong? I could think of a VCPKG triplet error...
Best regards,
Michael
The text was updated successfully, but these errors were encountered: