-
-
Notifications
You must be signed in to change notification settings - Fork 167
CompilingMSVC
Alexander Barthel edited this page Jun 14, 2021
·
2 revisions
Thanks to KOKAProduktion for the instructions.
Host: Win10 64-bit, x64
, Visual Studio 2017
-
Read following instructions:
-
Installed the following using the Qt Installer licensed for (L)GPL development:
- Qt
- Qt
5.12.9
- MinGW
7.3.0 32-bit
- MinGW
- Qt
- Developer and Designer Tools
- MinGW
7.3.0 32-bit
- MinGW
- Qt
-
Checked out atools, littlenavmap and marble into
C:\QtProjects
-
Ran: (Win Prompt & PowerShell mixed, sry)
set PATH=%PATH%;C:\Qt\5.12.9\mingw73_32\bin;C:\Qt\Tools\mingw730_32\bin
cd C:\QtProjects
-------------
# Release
mkdir build-marble-release
cd build-marble-release
cmake -Wno-dev -G "MinGW Makefiles" -DQTONLY=TRUE -DQT5BUILD=TRUE -DWITH_quazip=FALSE -DWITH_libshp=FALSE -DWITH_libgps=FALSE -DWITH_libwlocate=FALSE -DWITH_QtLocation=FALSE -DWITH_liblocation=FALSE -DCMAKE_INSTALL_PREFIX="C:\QtProjects\Marble-release" -DCMAKE_BUILD_TYPE=Release ..\marble
mingw32-make -j2
mingw32-make install
mkdir C:\QtProjects\Marble-release\include
mkdir C:\QtProjects\Marble-release\include\astro
Get-ChildItem -Path "C:\QtProjects\marble\src\lib\astro\*" -Include *.h -Recurse | Copy-Item -Destination C:\QtProjects\Marble-release\include\astro
mkdir C:\QtProjects\Marble-release\include\marble
Get-ChildItem -Path "C:\QtProjects\marble\src\lib\marble\*" -Include *.h -Recurse | Copy-Item -Destination C:\QtProjects\Marble-release\include\marble
copy C:\QtProjects\build-marble-release\src\lib\astro\astrolib_export.h C:\QtProjects\Marble-release\include\astro
copy C:\QtProjects\build-marble-release\src\lib\marble\marble_export.h C:\QtProjects\Marble-release\include\marble
-------------
# Debug
mkdir build-marble-debug
cd build-marble-debug
cmake -Wno-dev -G "MinGW Makefiles" -DQTONLY=TRUE -DQT5BUILD=TRUE -DWITH_quazip=FALSE -DWITH_libshp=FALSE -DWITH_libgps=FALSE -DWITH_libwlocate=FALSE -DWITH_QtLocation=FALSE -DWITH_liblocation=FALSE -DCMAKE_INSTALL_PREFIX="C:\QtProjects\Marble-debug" -DCMAKE_BUILD_TYPE=Debug ..\marble
mingw32-make -j2
mingw32-make install
mkdir C:\QtProjects\Marble-debug\include
mkdir C:\QtProjects\Marble-debug\include\astro
Get-ChildItem -Path "C:\QtProjects\marble\src\lib\astro\*" -Include *.h -Recurse | Copy-Item -Destination C:\QtProjects\Marble-debug\include\astro
mkdir C:\QtProjects\Marble-debug\include\marble
Get-ChildItem -Path "C:\QtProjects\marble\src\lib\marble\*" -Include *.h -Recurse | Copy-Item -Destination C:\QtProjects\Marble-debug\include\marble
copy C:\QtProjects\build-marble-debug\src\lib\astro\astrolib_export.h C:\QtProjects\Marble-debug\include\astro
copy C:\QtProjects\build-marble-debug\src\lib\marble\marble_export.h C:\QtProjects\Marble-debug\include\marble
-
Imported, qmake'd and compiled atools and littlenavmap inside Qt Creator
- Set atools as build dependency of littlenavmap
- Changed default build folder names to the predefined ones:
- atools
- build-atools-MinGWXX.XX-Desktop-XX-something-Debug -> build-atools-debug
- build-atools-MinGWXX.XX-Desktop-XX-something-Release-> build-atools-release
- littlenavmap
- build-littlenavmap-MinGWXX.XX-Desktop-XX-something-Debug -> build-littlenavmap-debug
- build-littlenavmap-MinGWXX.XX-Desktop-XX-something-Release-> build-littlenavmap-release
- atools
-
Adjusted and ran: /build/win/build_release.cmd for the deployment version