Skip to content

Compile under Visual Studio on Windows #27

Open

Description

@pmraiders

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.

Activity

  1. BeaEngine commented on Oct 9, 2020

    @BeaEngine
    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 ?

  2. pmraiders commented on Oct 11, 2020

    @pmraiders
    Author

    Visual studio 2019 community, windows 10 19041

  3. BeaEngine commented on Oct 14, 2020

    @BeaEngine
    Owner

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

  4. BeaEngine commented on Oct 14, 2020

    @BeaEngine
    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
    
    
  5. pmraiders commented on Oct 18, 2020

    @pmraiders
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions