AndresTraks / BulletSharp

.NET wrapper for the Bullet physics library
http://andrestraks.github.io/BulletSharp
MIT License
271 stars 59 forks source link

Problem with BulletSharp with Debug x64 and Release x64 #50

Open ghost opened 6 years ago

ghost commented 6 years ago

Hello Andres,

I have readden step to step build intro...

bullet3 build debug x64 successful on Visual Studio 2013 Community OpenTK 3.00 build debug x64 successful on Visual Studio 2015 Community

BulletSharp build debug x64 failed on Visual Studio 2017 Community.

Errors: 140 many ....

Severity    Code    Description Project File    Line    Suppression State
Error   LNK2038 mismatch detected for '_MSC_VER': value '1800' doesn't match value '1900' in Stdafx.obj BulletSharp C:\Users\####\Documents\githubs\BulletSharp\vs2015\LinearMath_Debug.lib(btQuickprof.obj)    1

I already generate with CMake Visual Studio 2013 Win64. Is it possible I must compile as x86? Because I want upgrade with newest version of OpenTK 3.0 because it has fullsupport with GTK Sharp 3.x for Windows, Linux and Macintosh. I wish I want get BulletSharp in OpenTK 3.00

But I have got 140 errors. because they don't recognize to current Visual Studio version 19 it means 2010. It is wrong - I want ignore wrong version number.

How do I fix? I need reconfigure CMake -> MSVC_VER.... uncheck?

AndresTraks commented 6 years ago

I think you are building Bullet with Visual Studio 2015 and BulletSharp with Visual Studio 2017.

You can't build the solution in the vs2015 folder with Visual Studio 2017. Use BulletSharp.sln in the root folder for VS2017.

Use "bullet3/msvc/2017" as the output folder for Bullet on Visual Studio 2017. I've updated the build instructions.

ghost commented 6 years ago

Thanks I already resolve. I have fixed:

  1. Bullet 3 Visual Studio 2015 x86 = successful without examples because many errors in example applications.

  2. OpenTK 3.00 preview = successful without example and 3 binaries ( NEW version with F# )

  3. BulletSharp = successful.

But it is really sad because I want compile into x64 but BulletSharp throws many errors. Only x86!

Thanks!

// EDIT: I really want tell you about Cmake throws error If I select Visual Studio 2015 Win64 than CMake won't generate and throws error like incompatible. just Visual Studio 2015 (x86) is ok. and Visual Studio 2017 Win64 is ok.