Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile under Visual Studio on Windows #27

Open
pmraiders opened this issue Oct 7, 2020 · 5 comments
Open

Compile under Visual Studio on Windows #27

pmraiders opened this issue Oct 7, 2020 · 5 comments

Comments

@pmraiders
Copy link

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.

@BeaEngine
Copy link
Owner

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 ?

@pmraiders
Copy link
Author

Visual studio 2019 community, windows 10 19041

@BeaEngine
Copy link
Owner

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

@BeaEngine
Copy link
Owner

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

@pmraiders
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants