-
Install free Microsoft Visual Studio Community 2017. Select following components during install:
- Windows: Desktop development with C++
- Visual Studio Core Editor
- Desktop development with C++ options
- VC++ 2017 v141 toolset (x86,x64)
- Windows 10 SDK (10.0.x.x) for Desktop C++ x86 and x64
- Visual C++ tools for CMake
- Windows: Desktop development with C++
-
Download and install gettext pre-compiled binaries with default options.
-
Download wxWidgets 3.x binaries:
wxWidgets-3.*.*_Headers.7z
- one of
wxMSW-3.*.*-vc141_Dev.7z
orwxMSW-3.*.*-vc141_x64_Dev.7z
- one of
wxMSW-3.*.*-vc141_ReleaseDLL.7z
orwxMSW-3.*.*-vc141_x64_ReleaseDLL.7z
Unpack archives toc:\wxWidgets\
. thenwxwin
environment variable must be set: setx wxwin c:\wxWidgets\
-
Start the following command from start menu:
%comspec% /k "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
-
Clone MMEX official Git repository with submodules using command-line:
git clone --recursive https://github.com/moneymanagerex/moneymanagerex c:\Dev\
-
Download sources of curl, ver. 7.71.1 unpack them to
c:\libcurl
and build libcurl library with following commands:mkdir c:\libcurl\build cd c:\libcurl\build set "PATH=%PATH%;%DevEnvDir%CommonExtensions\Microsoft\CMake\CMake\bin" cmake -G "Visual Studio 15 2017 Win64" -DBUILD_CURL_EXE=OFF -DHTTP_ONLY=ON ^ -DENABLE_MANUAL=OFF -DBUILD_TESTING=OFF -DCURL_STATICLIB=ON ^ -DCMAKE_USE_WINSSL=ON -DCMAKE_INSTALL_PREFIX=c:\libcurl .. set "CL=/MP" cmake --build . --target install --config Release --clean-first ^ -- /maxcpucount /verbosity:minimal /nologo /p:PreferredToolArchitecture=x64
-
Generate build environment using CMake
cd c:\dev\moneymanagerex\build (set DevEnvDir=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\) set "PATH=%PATH%;%DevEnvDir%CommonExtensions\Microsoft\CMake\CMake\bin" cmake -G "Visual Studio 15 2017 Win64" -DCMAKE_PREFIX_PATH=c:\libcurl ^ -DCURL_LIBRARY=c:\libcurl -DCURL_INCLUDE_DIR=c:\libcurl ..
This produce
c:\Dev\moneymanagerex\build\MMEX.sln
file ready to be loaded into Visual Studio GUI.-
Open above solution file with
File
->Open
->Project/Solution...
menu command (orCtrl+Shift+O
). -
Run
Build
->Build Solution
menu command (orCtrl+Shift+B
). This will compile MMEX and propagate support files into right directories. -
Now you can run MMEX with
Debug
->Start Without Debugging
menu command (Ctrl+F5
) or start debugging session withDebug
->Start Debugging
(F5
).
-
-
To create binary package (you need to have NSIS installed for this) build
PACKAGE
project.