Building on MinGW-64 and Cygwin/64
Folks
I am the maintainer of Exiv2 and we perform our Visual Studio builds on Appveyor. This was configured by a team member who is currently not available. I'd like to build on MinGW and Cygwin and can't get past the most basic step: what is the name of the image?
Any help will be greatly appreciated.
init:
- echo %PYTHON%
environment:
PYTHON: "C:/Python37-x64"
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: MinGW-w64
INTEGRATION_TESTS: 1
ARCHITECTURE: x86_64
UNIT_TESTS: 1
WEBREADY: False
WARNINGS_AS_ERRORS: ON
shallow_clone: true
install:
- echo %APPVEYOR_BUILD_FOLDER%
- python3 -m pip install --upgrade pip
- pip3.exe install lxml
- for i in base-devel git coreutils dos2unix tar diffutils make \
mingw-w64-x86_64-toolchain mingw-w64-x86_64-gcc mingw-w64-x86_64-gdb \
mingw-w64-x86_64-cmake mingw-w64-x86_64-gettext mingw-w64-x86_64-python3 \
mingw-w64-x86_64-libexpat mingw-w64-x86_64-libiconv mingw-w64-x86_64-zlib \
mingw-w64-x86_64-gtest ; do (echo y | pacman -S $i) ; done
- cd %APPVEYOR_BUILD_FOLDER%
build_script:
- cmd: mkdir -p build
- cmd: cd build
- cmd: cmake .. -G "Unix Makefiles" -DEXIV2_TEAM_WARNINGS_AS_ERRORS=%WARNINGS_AS_ERRORS% -DCMAKE_BUILD_TYPE=Release -DEXIV2_ENABLE_NLS=OFF -DEXIV2_ENABLE_PNG=ON -DEXIV2_ENABLE_WEBREADY=%WEBREADY% -DEXIV2_BUILD_UNIT_TESTS=%UNIT_TESTS%
- cmd: cmake --build . --config Release
- cmd: cmake --build . --config Release --target tests
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by Robin Mills on 12 Dec, 2020 05:06 PM
Solved.
2 Posted by Robin Mills on 12 Dec, 2020 06:15 PM
And now, I'll solve this puzzle in a similar way on Cygwin/64. There's no pacman on Cygwin/64 so will investigate this: https://stackoverflow.com/questions/9260014/how-do-i-install-cygwin....
3 Posted by Robin Mills on 13 Dec, 2020 01:24 AM
I have this "sort of" working. It's running the build on MinGW/msys2 and then on build on Cygwin64.
I really want it to perform two different builds. How can I specify two build_script: objects?
4 Posted by Robin Mills on 13 Dec, 2020 02:42 AM
I've solved that. It's rather ugly. It works.
Case closed. If anybody would like to suggest a better approach, I'll be very happy to hear your suggestions.