AndresTraks / BulletSharpPInvoke

.NET wrapper for the Bullet physics library using Platform Invoke

Home Page:http://andrestraks.github.io/BulletSharp/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't CMake on Windows

dreding opened this issue · comments

Try from console and gui. Always get this error:

Selecting Windows SDK version 10.0.15063.0 to target Windows 10.0.14393.
The C compiler identification is MSVC 19.10.25019.0
The CXX compiler identification is MSVC 19.10.25019.0
Selecting Windows SDK version 10.0.15063.0 to target Windows 10.0.14393.
Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.10.25017/bin/HostX86/x86/cl.exe
CMake Error: The source directory "OUTPUT_VARIABLE" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
CMake Error at C:/Program Files/CMake/share/cmake-3.10/Modules/CMakeTestCCompiler.cmake:37 (try_compile):
Failed to configure test project build system.
Call Stack (most recent call first):
CMakeLists.txt:2 (PROJECT)

Configuring incomplete, errors occurred!
See also "/CMakeFiles/CMakeOutput.log".

No log file in this directory.

Do you have permission to write to the "Where to build the binaries:" folder?

Yes, GUI and console was run from administrator also.

On Ubuntu all works perfectly.

I'm a noob with this cmake stuff... but, it also didnt work for me using cmake-gui. it created an almost endless folder hierarchy

See #39 (comment) (and #32).
CMake can't with find where Bullet is located and crashes when testing some common locations. It then creates a bunch of bullet/bullet/bullet folders for whatever reason.
The easiest thing to do is to clone the bullet3 and BulletSharpPInvoke repositories into the same directory, so you have directories with these names:

  • [root_folder]
    • bullet3
      • CMakeLists.txt
      • ...
    • BulletSharpPInvoke
      • CMakeLists.txt
      • ...

And then continue generating the CMake solutions as in the build instructions.

Sorry, I meant:

  • [root_folder]
    • bullet3
      • CMakeLists.txt
      • ...
    • BulletSharpPInvoke
      • BulletSharp
      • libbulletc
        • CMakeLists.txt
        • ...