-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiling on MSYS2 using MinGW-w64 compilers #631
Comments
Thanks for this concise list, this is very helpful. Do you want to send me a PR for the fix of If you have one for Regarding See for example, KDAB/GammaRay#239. |
@schuhschuh thanks for the reply. I'm actually not at the level of confidence to send any PRs on this repository. So I would appreciate it if you could help by taking care of it yourself. It would also very help full if you could keep this project alive. To my best understanding, there are no better alternatives for the moment. P.S. You may wanna take a look at the Cookiecutter project. |
Sorry for the delay. I fixed the compilation issues with MinGW GCC (used MSYS2 subsystem mingw64), i.e., non-MSVC compiler on Windows. See linked pull request for details. Regarding CMake, I didn't manage myself to be able to use "MSYS Makefiles" generator with the CMake version installed with pacman. Neither the one from msys2 subsystem, nor mingw64. The generators "MinGW Makefiles" and "MSYS Makefiles" were simply not known. Instead, I simply used the native CMake Windows installation as follows:
|
Following this SO question, here I want to summarize the steps I took so far using MinGW-w64 compilers in MSYS2 environment to compile BASIS:
basis\include\basis\gtest\gtest.h
according to herebasis\src\utilities\cxx\stio.cxx
the_dupenv_s
doesn't exist on GCC, so they should be probably replaced bygetenv_s
cmake -DCMAKE_INSTALL_PREFIX:PATH=/home/<useName>/local -DBUILD_APPLICATIONS:BOOL=ON -DBUILD_EXAMPLE:BOOL=ON -DCMAKE_MAKE_PROGRAM=mingw32-make.exe .. -G "MSYS Makefiles"
The text was updated successfully, but these errors were encountered: