beaengine
beaengine copied to clipboard
Compile under Visual Studio on Windows
I'm trying to compile a static library under visual studio on Windows so its linked against the MSVCRuntimes. CMake-GUI throws errors with the included makefile and manually creating the project gives me a slew of errors.
Theres got to be an easier, more straightforward way to do this, its advertised on the readme that it supports VS compilation but I can't find any docs covering it.
Hi, I just succeed in compiling with Visual Studio 2019 version 16.7.5 on Windows 7 (using the gui). Can you tell me what is your version ?
Visual studio 2019 community, windows 10 19041
ok. Tested on Windows 10 18363 and no errors for me. Can you give me the error ?
Another idea: Try to compile with PellesC. Here is a batch example:
rem ============== compile.bat ==============
set INCLUDE=C:\PellesC\Include\;C:\PellesC\Include\Win\;C:\Users\User\Desktop\beaengine-master\beaengine\include\;
set LIB=C:\PellesC\Lib\;C:\PellesC\Lib\Win64\;
cd beaengine\src
rem BUILD STATIC LIB
C:\PellesC\Bin\Pocc /D BEA_ENGINE_STATIC /Gz /Ze BeaEngine.c
C:\PellesC\Bin\Polib BeaEngine.obj /OUT:BeaEngine.lib
Are you using cmake? Can you walk me through the steps? I've used cmakegui to generate visual studio project files for several other projects here on github and they've been rather painless.