-
Notifications
You must be signed in to change notification settings - Fork 112
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 innoextract with MSYS2 instruction - for wiki page #115
Comments
I already have some platform-specific instructions at https://constexpr.org/innoextract/install - these could be added there. However I have a couple of questions:
Why not just call
Why do you need this? Does LTO not work for you? The MSYS2 package seems to not need to disable it.
This is enabled by default on Windows - is this not the case for you?
Does this actually change anything for you? USE_STATIC_LIBS already enables
This should also not make any difference as the innoextract CMake script sets the build type to Release when not set by the user.
Should be a sane default unless you have very specific requirements. If it isn't, it's better to fix that. |
Hi, I think it would be cool to add wiki pages with examples how to compile your project when someone is using MSYS2, VisualStudio, etc. Here's for MSYS2.
I'm using current MSYS2 (msys2-x86_64-20200720.exe installer, updated with
pacman -Syu
followed by fewpacman -Su
).Download recent innoextract source files to
~/innoextract
(e.g. C:\msys2\home\ {yourusername} \innoextract)32bit standalone executable
Launch MSYS2 with mingw32.exe. Install the needed packages (approx. +100MB to download, +1GB on disk):
pacman -S mingw-w64-i686-gcc mingw-w64-i686-make mingw-w64-i686-cmake mingw-w64-i686-boost
create symlink:
ln -s /mingw32/bin/mingw32-make.exe /mingw32/bin/make.exe
Execute this:
Then do
make -j8 && strip innoextract.exe
. You should get innoextract.exe inside build dir.64bit standalone executable
Launch MSYS2 with mingw64.exe, install packages:
pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-make mingw-w64-x86_64-cmake mingw-w64-x86_64-boost
create symlink:
ln -s /mingw64/bin/mingw32-make.exe /mingw64/bin/make.exe
Execute this:
Then do
make -j8 && strip innoextract.exe
. You should get innoextract.exe inside build-x64 dir.debuging
use
-DCMAKE_BUILD_TYPE=Debug
and don't usestrip
command.The text was updated successfully, but these errors were encountered: