Dear Forum,
I want to make a Bullet project from scratch with VC++ and I found out a had to add the \src folder and the 3 libraries to the project.
To test if it worked, I copied the code from helloworld.cpp to my project. To add the \src folder, I went to properties of my project->linker->general and added the path on the line 'Additional Library Directories'. The 3 libraries (libulletdynamics.vcproj, libbulletcollision.vcproj, libbulletmath.vcproj) were added at linker->general->additional dependencies.
The only problem is, it gives this error:
fatal error C1083: Cannot open include file: 'btBulletDynamicsCommon.h': No such file or directory
It look to me that the path was not set correctly, but that does not seem to be the problem. Is there something I forgot?
Psmm
Edit:
Just because I think something went wrong with Additional Library Directories, what is the correct way to use that option? I just browsed to the \src folder and clicked OK.
Bullet and VC++
-
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
Re: Bullet and VC++
You need to add the 'src' folder to the C/C++ include directories.
-
- Posts: 6
- Joined: Wed Dec 30, 2009 10:38 am
Re: Bullet and VC++
Indeed, that solved that part of the problem, but when I fixed that problem, I did get another one though. Vc++ said that he cannot read the .vcproj-files I added in the linker (fatal error LNK1107, invalid or corrupt file), after I put the .vcproj-files in additional dependencies and set the additional library dependencies to \msvc\8. I that also in the wrong place?
Psmm
Psmm
-
- Posts: 6
- Joined: Wed Dec 30, 2009 10:38 am
Re: Bullet and VC++
Is this the right way?
1. Properties->Linker->General->Additional Library Directories->"C:\path\to\bullet\msvc\8"
2. Properties->Linker->Input->Additional Dependencies->libbulletmath.vcproj libbulletdynamics.vcproj libbulletcollision.vcproj
Or this this not the right way to add the libraries?
1. Properties->Linker->General->Additional Library Directories->"C:\path\to\bullet\msvc\8"
2. Properties->Linker->Input->Additional Dependencies->libbulletmath.vcproj libbulletdynamics.vcproj libbulletcollision.vcproj
Or this this not the right way to add the libraries?
-
- Posts: 44
- Joined: Fri Dec 18, 2009 6:06 pm
- Location: Montreal
Re: Bullet and VC++
What you place in the Properties->Linker->General->Additional Library Directories-> is the path to the lib files.
<yourpathhere>\bullet-2.75\out\release8\libs for release and \bullet-2.75\out\debug8\libs for debug
in the Properties->Linker->Input->Additional Dependencies-> you place the libs that are in the above directories.
Hope this helps.
Garibalde
<yourpathhere>\bullet-2.75\out\release8\libs for release and \bullet-2.75\out\debug8\libs for debug
in the Properties->Linker->Input->Additional Dependencies-> you place the libs that are in the above directories.
Hope this helps.
Garibalde
-
- Posts: 6
- Joined: Wed Dec 30, 2009 10:38 am
Re: Bullet and VC++
Thx, that did help indeed! Thx for the reply, now I can work with bullet!
Psmm
Psmm