beaengine icon indicating copy to clipboard operation
beaengine copied to clipboard

Compile under Visual Studio on Windows

Open pmraiders opened this issue 5 years ago • 5 comments

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.

pmraiders avatar Oct 07 '20 22:10 pmraiders

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 ?

BeaEngine avatar Oct 09 '20 20:10 BeaEngine

Visual studio 2019 community, windows 10 19041

pmraiders avatar Oct 11 '20 23:10 pmraiders

ok. Tested on Windows 10 18363 and no errors for me. Can you give me the error ?

BeaEngine avatar Oct 14 '20 21:10 BeaEngine

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

BeaEngine avatar Oct 14 '20 21:10 BeaEngine

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.

pmraiders avatar Oct 18 '20 23:10 pmraiders