Search Criteria
Package Details: mingw-w64-cmake 1-40
Package Actions
Git Clone URL: | https://aur.archlinux.org/mingw-w64-cmake.git (read-only, click to copy) |
---|---|
Package Base: | mingw-w64-cmake |
Description: | CMake wrapper for MinGW (mingw-w64) |
Upstream URL: | http://fedoraproject.org/wiki/MinGW |
Licenses: | GPL |
Submitter: | brcha |
Maintainer: | xantares |
Last Packager: | xantares |
Votes: | 57 |
Popularity: | 0.68 |
First Submitted: | 2013-04-17 12:11 (UTC) |
Last Updated: | 2022-12-05 17:39 (UTC) |
Dependencies (5)
- cmake (cmake-gitAUR)
- mingw-w64-environmentAUR (llvm-mingw-w64-environmentAUR)
- mingw-w64-gcc (mingw-w64-gcc132AUR, llvm-mingw-w64-toolchain-ucrt-binAUR, llvm-mingw-w64-toolchain-msvcrt-binAUR)
- mingw-w64-pkg-configAUR (llvm-mingw-w64-pkg-configAUR)
- mingw-w64-wineAUR (optional) – runtime support
Required by (278)
- mingw-w64-abseil-cpp (make)
- mingw-w64-agrum (make)
- mingw-w64-aom (make)
- mingw-w64-armadillo (make)
- mingw-w64-asmjit (make)
- mingw-w64-assimp (make)
- mingw-w64-async++-git (make)
- mingw-w64-avisynthplus (make)
- mingw-w64-blas (make)
- mingw-w64-blosc (make)
- mingw-w64-box2d (make)
- mingw-w64-brotli (make)
- mingw-w64-bullet (make)
- mingw-w64-c++utilities (make)
- mingw-w64-c-ares (make)
- mingw-w64-capstone (make)
- mingw-w64-catch2v3 (make)
- mingw-w64-cblas (make)
- mingw-w64-ceres-solver (make)
- mingw-w64-cfitsio (make)
- mingw-w64-cgal (make)
- mingw-w64-cglm (make)
- mingw-w64-cgns (make)
- mingw-w64-chrono-date (make)
- mingw-w64-civetweb (make)
- mingw-w64-cli11 (make)
- mingw-w64-cmake-static
- mingw-w64-cminpack (make)
- mingw-w64-cmocka (make)
- mingw-w64-coin-or-csdp (make)
- mingw-w64-cppwinrt (make)
- mingw-w64-crypto++ (make)
- mingw-w64-cubeb-git (make)
- mingw-w64-directx-headers (make)
- mingw-w64-directxmath (make)
- mingw-w64-directxtex (make)
- mingw-w64-discord-rpc-api (make)
- mingw-w64-dlfcn (make)
- mingw-w64-dlib (make)
- mingw-w64-double-conversion (make)
- mingw-w64-eigen (make)
- mingw-w64-ensmallen (make)
- mingw-w64-exiv2 (make)
- mingw-w64-extra-cmake-modules
- mingw-w64-fast_float (make)
- mingw-w64-flac (make)
- mingw-w64-fluidsynth (make)
- mingw-w64-fmt (make)
- mingw-w64-freeglut (make)
- mingw-w64-frei0r-plugins (make)
- mingw-w64-ftgl (make)
- mingw-w64-gdal (make)
- mingw-w64-gdcc (make)
- mingw-w64-geos (make)
- mingw-w64-gflags (make)
- mingw-w64-gklib (make)
- mingw-w64-gl2ps (make)
- mingw-w64-glew (make)
- mingw-w64-glfw (make)
- mingw-w64-glslang (make)
- mingw-w64-google-glog (make)
- mingw-w64-graphite (make)
- mingw-w64-gtest (make)
- mingw-w64-hdf5 (make)
- mingw-w64-hexer-hobu (make)
- mingw-w64-highway (make)
- mingw-w64-hmat-oss (make)
- mingw-w64-imath (make)
- mingw-w64-imgui (make)
- mingw-w64-jasper (make)
- mingw-w64-json-c (make)
- mingw-w64-jsoncpp (make)
- mingw-w64-jxrlib (make)
- mingw-w64-kdsoap (make)
- mingw-w64-kimageformats (make)
- mingw-w64-kokkos (make)
- mingw-w64-kunitconversion (make)
- mingw-w64-kvazaar (make)
- mingw-w64-kwidgetsaddons (make)
- mingw-w64-lapack (make)
- mingw-w64-lapacke (make)
- mingw-w64-laszip (make)
- mingw-w64-laz-perf (make)
- mingw-w64-leveldb (make)
- mingw-w64-levmar (make)
- mingw-w64-libaec (make)
- mingw-w64-libbaseencode (make)
- mingw-w64-libbatch (make)
- mingw-w64-libcuckoo-git (make)
- mingw-w64-libde265 (make)
- mingw-w64-libdeflate (make)
- mingw-w64-libgit2 (make)
- mingw-w64-libharu (make)
- mingw-w64-libheif (make)
- mingw-w64-libjpeg-turbo (make)
- mingw-w64-libjxl (make)
- mingw-w64-libmixmod (make)
- mingw-w64-libmng (make)
- mingw-w64-libogg (make)
- mingw-w64-libpcap (make)
- mingw-w64-libraw (make)
- mingw-w64-libsamplerate (make)
- mingw-w64-libsndfile (make)
- mingw-w64-libsoundio (make)
- mingw-w64-libsoxr (make)
- mingw-w64-libsquish (make)
- mingw-w64-libsquish-fixed-tables (make)
- mingw-w64-libssh (make)
- mingw-w64-libssh2 (make)
- mingw-w64-libuv (make)
- mingw-w64-libwdm (make)
- mingw-w64-libwebp (make)
- mingw-w64-libwebsockets (make)
- mingw-w64-libzip (make)
- mingw-w64-llvm (make)
- mingw-w64-log4cplus (make)
- mingw-w64-lpsolve (make)
- mingw-w64-lz4 (make)
- mingw-w64-mariadb-connector-c (make)
- mingw-w64-matplotplusplus (make)
- mingw-w64-mbedtls (make)
- mingw-w64-mbedtls2 (make)
- mingw-w64-md4c (make)
- mingw-w64-med (make)
- mingw-w64-medcoupling (make)
- mingw-w64-mesa (make)
- mingw-w64-mesa-demos-git (make)
- mingw-w64-mesa-git (make)
- mingw-w64-metis (make)
- mingw-w64-miniglog (make)
- mingw-w64-minizip-ng (make)
- mingw-w64-mlpack (make)
- mingw-w64-mman-win32-git (make)
- mingw-w64-mpi_stubs (make)
- mingw-w64-muparser (make)
- mingw-w64-mygui (make)
- mingw-w64-nanoflann (make)
- mingw-w64-netcdf (make)
- mingw-w64-nlohmann-json (make)
- mingw-w64-nlopt (make)
- mingw-w64-ois (make)
- mingw-w64-onetbb (make)
- mingw-w64-openal (make)
- mingw-w64-opencascade (make)
- mingw-w64-opencc (make)
- mingw-w64-opencl-headers (make)
- mingw-w64-opencl-icd (make)
- mingw-w64-opencolorio (make)
- mingw-w64-opencv (make)
- mingw-w64-openexr (make)
- mingw-w64-openimagedenoise (make)
- mingw-w64-openimagedenoise-bin (optional)
- mingw-w64-openimageio (make)
- mingw-w64-openjpeg2 (make)
- mingw-w64-openmesh (make)
- mingw-w64-openmp (make)
- mingw-w64-openxlsx (make)
- mingw-w64-pagmo (make)
- mingw-w64-paraview (make)
- mingw-w64-paraview-git (make)
- mingw-w64-paraview-qt6 (make)
- mingw-w64-passwordfile (make)
- mingw-w64-passwordmanager (make)
- mingw-w64-pdal (make)
- mingw-w64-pegtl (make)
- mingw-w64-pegtl2 (make)
- mingw-w64-physfs (make)
- mingw-w64-piglit-git (make)
- mingw-w64-poppler (make)
- mingw-w64-prima (make)
- mingw-w64-primesieve (make)
- mingw-w64-proj (make)
- mingw-w64-protobuf (make)
- mingw-w64-pteros (make)
- mingw-w64-ptex (make)
- mingw-w64-pugixml (make)
- mingw-w64-pybind11 (make)
- mingw-w64-pystring (make)
- mingw-w64-qca-qt5 (make)
- mingw-w64-qca-qt6 (make)
- mingw-w64-qt6-3d (make)
- mingw-w64-qt6-5compat (make)
- mingw-w64-qt6-activeqt (make)
- mingw-w64-qt6-base (make)
- mingw-w64-qt6-charts (make)
- mingw-w64-qt6-connectivity (make)
- mingw-w64-qt6-datavis3d (make)
- mingw-w64-qt6-declarative (make)
- mingw-w64-qt6-imageformats (make)
- mingw-w64-qt6-location (make)
- mingw-w64-qt6-lottie (make)
- mingw-w64-qt6-multimedia (make)
- mingw-w64-qt6-networkauth (make)
- mingw-w64-qt6-positioning (make)
- mingw-w64-qt6-quick3d (make)
- mingw-w64-qt6-quicktimeline (make)
- mingw-w64-qt6-scxml (make)
- mingw-w64-qt6-sensors (make)
- mingw-w64-qt6-serialbus (make)
- mingw-w64-qt6-serialport (make)
- mingw-w64-qt6-shadertools (make)
- mingw-w64-qt6-svg (make)
- mingw-w64-qt6-tools (make)
- mingw-w64-qt6-translations (make)
- mingw-w64-qt6-virtualkeyboard (make)
- mingw-w64-qt6-webchannel (make)
- mingw-w64-qt6-websockets (make)
- mingw-w64-qt6-webview (make)
- mingw-w64-qtforkawesome (make)
- mingw-w64-qtutilities (make)
- mingw-w64-range-v3-git (make)
- mingw-w64-rapidjson (make)
- mingw-w64-rapidyaml (make)
- mingw-w64-raylib (make)
- mingw-w64-raytracinginvulkan (make)
- mingw-w64-reflective-rapidjson (make)
- mingw-w64-robin-map (make)
- mingw-w64-scipoptsuite (make)
- mingw-w64-scotch (make)
- mingw-w64-sdl3 (make)
- mingw-w64-sfml (make)
- mingw-w64-sfml-static (make)
- mingw-w64-shaderc (make)
- mingw-w64-snappy (make)
- mingw-w64-soundtouch (make)
- mingw-w64-spatialindex (make)
- mingw-w64-spdlog (make)
- mingw-w64-spdlog-git (make)
- mingw-w64-spectra (make)
- mingw-w64-spirv-cross (make)
- mingw-w64-spirv-headers (make)
- mingw-w64-spirv-llvm-translator (make)
- mingw-w64-spirv-tools (make)
- mingw-w64-srt (make)
- mingw-w64-suitesparse (make)
- mingw-w64-sundials (make)
- mingw-w64-svt-av1 (make)
- mingw-w64-svt-hevc (make)
- mingw-w64-syncthingtray (make)
- mingw-w64-sz (make)
- mingw-w64-szip (make)
- mingw-w64-tageditor (make)
- mingw-w64-taglib (make)
- mingw-w64-tagparser (make)
- mingw-w64-tasmanian (make)
- mingw-w64-threadweaver (make)
- mingw-w64-tinyobjloader (make)
- mingw-w64-tinyxml (make)
- mingw-w64-tinyxml2 (make)
- mingw-w64-uchardet (make)
- mingw-w64-unshield (make)
- mingw-w64-utf8cpp (make)
- mingw-w64-uvwasi (make)
- mingw-w64-verdict (make)
- mingw-w64-vid.stab (make)
- mingw-w64-videodownloader (make)
- mingw-w64-vinecopulib (make)
- mingw-w64-volk (make)
- mingw-w64-vtk (make)
- mingw-w64-vtk-git (make)
- mingw-w64-vulkan-headers (make)
- mingw-w64-vulkan-icd-loader (make)
- mingw-w64-vulkan-tools (make)
- mingw-w64-vulkan-validation-layers (make)
- mingw-w64-win-iconv (make)
- mingw-w64-wineditline (make)
- mingw-w64-wxmsw (make)
- mingw-w64-wxmsw-git (make)
- mingw-w64-x265 (make)
- mingw-w64-xalan-c-git (make)
- mingw-w64-xalan-c-icu (make)
- mingw-w64-xerces-c-icu (make)
- mingw-w64-yamc-git (make)
- mingw-w64-yaml-cpp (make)
- mingw-w64-z3 (make)
- mingw-w64-zfp (make)
- mingw-w64-zlib-ng (make)
- mingw-w64-zstd (make)
Latest Comments
« First ‹ Previous 1 2 3 4 5 6 7 8 9 Next › Last »
Martchus commented on 2020-11-07 11:05 (UTC)
In order to workaround certain issues regarding Qt 6 I've been extending the toolchain file. See this commit for further details and the actual change: https://github.com/Martchus/PKGBUILDs/commit/1c6dcbd4ed4482cdb8ed24276b5d3979bcd7dcdc
However, I still need to further test the static version and there are likely further adjustments required. So this is just a heads up. If I'm done it would be great do sync this package with my version on GitHub/PKGBUILDs.
And yes, this is hacky. Maybe some of this can be improved in the future, e.g. CMakes Vulkan find module might be fixed upstream to cover our needs.
hhromic commented on 2019-12-03 16:57 (UTC)
@Martchus that sounds good to me if
-O3
is not problematic :)Our builds seems to be working fine with it so no problem from my side. Yes the binaries are larger but I guess that is the cost to pay for the optimisation. If necessary one can always override with
-O2
in the CMake project itself anyway.So if you are okay, I'm happy to report my original problem as resolved. Thanks to both for the quick help, really appreciated.
Martchus commented on 2019-12-03 14:56 (UTC) (edited on 2019-12-03 14:57 (UTC) by Martchus)
This is actually a change I've expected and think it is ok and even wanted for consistency with how it works when invoking CMake manually.
So your observation regarding the flags is actually not different from how regular packages work: When
CMAKE_BUILD_TYPE
is empty (like it is by default) only the default flags from/etc/makepkg.conf
(regular packages) ormingw-w64-environment
(now for mingw-w64 packages) are used. If a specific package passes-DCMAKE_BUILD_TYPE=Release
, additional build flags like-O3
are appended by CMake in addition to the default flags. Note that the official regular packages usually just don't pass-DCMAKE_BUILD_TYPE=Release
to stick to the default.I don't think
-O3
is problematic (not for regular packages and not for mingw-w64 packages). So I usually have-DCMAKE_BUILD_TYPE=Release
in my own (regular) packages. The only disadvantage I've noticed so far is an increased binary size (likely due to more aggressive inlining).hhromic commented on 2019-12-03 11:56 (UTC)
@xantares thanks for working on this, appreciated.
I tested again now and it works!
Release
builds do have the-DNDEBUG
define from the default CMake flags. The builds also work fine.However I noticed that CMake also defaults to adding
-O3
optimisation toRelease
builds and the mingw-w64 flags (now inmingw-w64-environment
) seem to be wanting to use-O2
optimisation. This results in the following compiler flags for the build:The manpage of
gcc
states that when you use multiple-O
flags the last takes precedence, meaning that the build ends up using-O3
. If-O3
is known to be problematic for mingw-w64 builds then this might become a problem.Maybe this was the original reason why you were previously forcing the C/CXX flags? Defaulting to
-O3
seems to be a bit of a controversial topic in CMake help forums and Stack Overflow but is has been the default for years, even pre-CMake 3.0). Perhaps-O3
is not much of an issue nowadays? I'm not an expert in this field so can't state strong conclusions.If
-O2
is strictly required for mingw-w64 builds then we need to work out a way to remove the default-O3
from theCMAKE_${lang}_FLAGS_RELEASE_INIT
variables set by the CMake's GNU compiler module in a clean manner.A potential solution that I think would be good is to find a way to append (in contrast to prepend) the flags from
mingw-w64-environment
so they get inserted after the defaults from CMake and thus-O2
will take precedence.I think this could be done cleanly in the mingw toolchain file. In this case we should make sure to not export the
*_FLAGS
variables (that get prepended) but instead code them in the toolchain file.What do you think?
xantares commented on 2019-12-03 09:19 (UTC) (edited on 2019-12-03 09:19 (UTC) by xantares)
@hhromic can you test the new version ? I removed CMAKE_BUILD_TYPE and CMAKE_*_FLAGS_RELEASE, plus the flags are now taken from an env package
hhromic commented on 2019-12-02 09:07 (UTC) (edited on 2019-12-02 11:40 (UTC) by hhromic)
Fwiw, I've been testing the wrapper with removed
-DCMAKE_BUILD_TYPE=Release
and all-DCMAKE_*_FLAGS_RELEASE
flags in the project I'm working on and all seems to be behaving as expected.I fully agree that if there is any package requiring those, it should be fixed in said package and not in this generic wrapper. The wrapper should be as thin as possible for maximum compatibility, i.e. only set required paths and the toolchain.
Let me know if you would like me to do specific tests. Happy to help.
Martchus commented on 2019-12-01 21:04 (UTC)
No and unfortunately you left no information in the commit messages why you're enforcing the build type release and made it override the build type's flags:
1e9e4690c2ed
3174bb8705e8
The regular packages don't enforce a build type and rely on CMake picking up the CFLAGS/CXXFLAGS/LDFLAGS env variables. We could revert the script to do the same and see what happens. If only a few packages are affected it might make more sense to fix these than overriding all the flags in the generic wrapper.
xantares commented on 2019-12-01 20:16 (UTC)
@martchus do you recall why we set CMAKE_CXX_FLAGS_RELEASE and such ?
it seems CXXFLAGS/LDFLAGS are enough, as the flags appear twice
hhromic commented on 2019-12-01 11:42 (UTC) (edited on 2019-12-02 10:54 (UTC) by hhromic)
Hi all, I noticed that the standard
NDEBUG
define for disabling debug and assertions is not being set by this CMake wrapper when the build type isRelease
(expected behaviour).I went to debug a bit and the wrapper is doing this:
Which seems to be forcing specific C/CXX/LD flags to the
Release
build type and the C/CXX flags do not indeed contain-DNDEBUG
.This seems to be breaking the expected behaviour done by upstream CMake. For instance for the GNU compilers: https://github.com/Kitware/CMake/blob/master/Modules/Compiler/GNU.cmake#L58
Isn't CMake able to automatically pick (and add instead of replace) all the
$CFLAGS
,$CXXFLAGS
,$LDFLAGS
from the environment without the need to explicitly set them usingCMAKE_*_FLAGS
variables?I tested removing these variables in the wrapper and CMake correctly picked the defined e.g.
default_mingw_compiler_flags
and correctly kept the-DNDEBUG
and-O3
flags forRelease
in the resultingCFLAGS
andCXXFLAGS
for the project I'm working on:As additional info, the native Linux
cmake
package does keep-DNDEBUG -O3
when the build is set toRelease
.What do you think? Thanks!
xantares commented on 2019-11-10 12:10 (UTC)
the new mingw runtime 7.0.0 now supports FORTIFY_SOURCE, but you get undefined references to __chk functions from libssp now
you can see the discussion in mingw-w64-configure
« First ‹ Previous 1 2 3 4 5 6 7 8 9 Next › Last »