|
Compiling SpinCore PulseBlaster Interpreter
Sections
- Compiling using CMake
and Visual Studio
- Compiling using Dev-C++
5.11 with TDM-GCC 4.9.2
Compiling
using CMake and Visual Studio
Requires CMake version 3.6 or later and a Visual Studio
version that can be used by CMake. Instructions to build
for x64 Windows using Visual Studio 2015 and 2022 are
provided below.
- Navigate to the src folder of the PulseBlaster
Interpreter within Command Prompt
- Input cmake .
-DARCHITECTURE=x64
- Open up interpreter.sln in the src folder
generated by CMake
- In Solution Explorer, right click spbi, click on
Properties
- Set Configuration to Release and Platform to x64
- Go to C/C++, General and append
C:\SpinCore\SpinAPI\include; to Additional Include
Directories
- Go to Linker, General and append
C:\SpinCore\SpinAPI\lib\; to Additional Library
Directories
- Go to Linker, System and set SubSystem to
Windows (/SUBSYSTEM:WINDOWS)
- Set Character Set to Use Multi-Byte Character
Set
- In Visual Studio 2015, this option is in
Configuration Properties, General
- In Visual Studio 2022, this option is in
Configuration Properties, Advanced
- Click OK
- Set the build to Release and x64
- Right click spbi in Solution Explorer and click
Build
- spbi.exe should be in src/x64/Release
Compiling
using Dev-C++ 5.11 with TDM-GCC 4.9.2
- Create a new project in Dev-C++ (File > New
> Project > Empty Project) within the src
folder of the PulseBlaster Interpreter
- Remove empty files within the Project and add the
following files to the project (right click spbi in
Project tab > Add To Project)
- gui.cpp
- interpreter.cpp
- interpreter.h
- resource.h
- resource.rc
- SpinCore.ico
- Include libraries to Linker (Project > Project
Options > Parameters > Linker)
- spinapi64.lib (default path -
C:\SpinCore\SpinAPI\lib\spinapi64.lib)
- ComDlg32.Lib (C:\Program Files (x86)\Windows
Kits\10\Lib\...\um\x64\ComDlg32.Lib)
- Gdi32.Lib (C:\Program Files (x86)\Windows
Kits\10\Lib\...\um\x64\Gdi32.Lib)
- Go to Tools > Compiler Options > Directories
> C++ Includes and add
C:\SpinCore\SpinAPI\include
- (Optional) To prevent console from opening, go to
Project > Project Options > Compiler >
Linker, set Yes to Do not create a console window
- (Optional) To add the Interpreter logo, go to
Project > Project Options > Browse >
SpinCore.ico
last modified
08/22/2024
|