-
Notifications
You must be signed in to change notification settings - Fork 183
Build From Source (Windows)
Sergey Lipskiy edited this page Oct 1, 2017
·
32 revisions
- Minimal supported OS version : Windows 7 32 bit
-
Git for Windows Download and install. Open Git Bash console in your workspace folder, clone GLideN64. To clone type:
git clone https://github.com/gonetz/GLideN64.git
- MS Visual Studio 2013 or MS Visual Studio 2015 (recommended!)
- Set two environment variables (right click on This Computer=>Properties=>Additional system parameters=>Environment variables=>Create)
- N64PluginsDir . Set its value as path to Plugin folder for zilmar-spec emulators, such as Project64
- Mupen64PluginsDir . Set its value as path to folder with plugins for mupen64plus
- all necessary libs are already in the project.
- Run Visual Studio. Solution file for Visual Studio 2013 projects/msvc12/GLideN64.sln , for Visual Studio 2015 projects/msvc15/GLideN64.sln
- To build the debug version select configuration "Debug_mupenplus" To build the release version select configuration "Release_mupenplus"
- Press F7 or choose Build > Build Solution from the menu bar.
- After successful build resulted files will be copied to folder, which you set in Mupen64PluginsDir environment variable.
GLideNUI uses static build of QT libraries. You may build them from sources (right way) or download archive with precompiled ready to use libs (lazy way).
- Download archive with staic QT build.
Visual Studio 2013 qt-5_7_1-x86-msvc2013-static.7z
Visual Studio 2015 qt-5_7_1-x86-msvc2015-static.7z - Unpack it somewhere, for example to C:\QT. You should get C:\QT\qt-5_7_1-x86-msvc2013-static or C:\QT\qt-5_7_1-x86-msvc2015-static after unpack
- Go to Setup Visual Studio to work with QT
Prerequisites:
- Python is necessary for building QT from sources. Download and install Python for Windows somewhere. This instruction implies that it is installed in C:\Tools\Python
- Perl also can be handy. Download and install Perl for Windows somewhere. This instruction implies that it is installed in C:\Tools\Perl
- jom. jom is a clone of nmake to support the execution of multiple independent commands in parallel. It works much faster than nmake on PC with multicore CPU. Download binary package and unpack somewhere. This instruction implies that it is unpacked to C:\Tools\jom
Build steps:
- Download QT sources from here: https://download.qt.io/archive/qt/ I recommend to use QT version 5.7.1 atm. This version is not newest one, but GLideN64 has simple GUI and does not use fancy features. Instruction below corresponds to 5.7.1 Different version may require different steps.
- Unpack downloaded archive somewhere, for example C:\QT\qt-everywhere-opensource-src
- Go to C:\QT\qt-everywhere-opensource-src\qtbase\mkspecs\common folder. In that folder find file msvc-desktop.conf. Open it in any text editor and replace all occurrences of "-MD" by "-MT", case sensitive.
Important: If you use Visual Studio 2013, find in this file lineMAKEFILE_GENERATOR = MSVC.NET
and remove it.
Save your changes. - Decide, where your want to see compiled QT build. For example, C:\Qt\qt-5_7_1-x86-msvc2015-static
- Open Visual Studio command prompt. In command line window type
cd C:\QT\qt-everywhere-opensource-src
SET _ROOT=C:\QT\qt-everywhere-opensource-src
SET PATH=%_ROOT%\qtbase\bin;%_ROOT%\gnuwin32\bin;%PATH%
SET PATH=C:\Tools\Python;C:\Tools\Perl\bin;C:\Tools\jom;%PATH%
SET _ROOT=
configure -no-freetype -qt-libpng -qt-zlib -qt-pcre -qt-libjpeg -c++std c++11 -mp -debug-and-release -opensource -confirm-license -static -make libs -nomake tools -nomake examples -nomake tests -prefix C:\Qt\qt-5_7_1-x86-msvc2015-static -platform win32-msvc2015 -opengl desktop -no-openssl
jom
jom install
Build will take time. Wait.
- You need QT add-in for Visual Studio.
For Visual Studio 2013 download the add-in from download page. Install.
For Visual Studio 2015, open Tools=>Extensions and Updates=>Online. Search for QT. Install QT Visual Studio tools. - Restart Visual Studio.
- Open Visual Studio solution GLideNUI.sln
It is located in projects/msvc12 folder for MSVS 2013 and projects/msvc15 for MSVS 2015 - Open QT5 - QTOptions dialog and add path to your QT build
- Right click on GLideNUI solution and select Change Solution QT version. Select your build.
- Build solution.
- Open solution GLideN64.sln It is located in projects/msvc12 folder for MSVS 2013 and projects/msvc15 for MSVS 2015
- To build the debug version select configuration "Debug" To build the release version select configuration "Release"
- Press F7 or choose Build > Build solution from the menu bar.
- After successful build resulted files will be copied to folder, which you set in N64PluginsDir environment variable.