Visual Studio 2012 issues

Post Reply
MaxGhost
Posts: 4
Joined: Wed Nov 07, 2012 11:58 pm

Visual Studio 2012 issues

Post by MaxGhost » Thu Nov 08, 2012 12:07 am

Hi,

I'm new to Bullet. I'm trying to set it up for use in my school term project.

I used CMake as described in the wiki with "Visual Studio 11" as the compiler. When I add the Bullet projects to my solution in VS2012, I then get this popup pretty much any time I try to do anything afterwards.
Image

In other words, I'm stuck at the "Project Dependencies..." part because it gives me that popup if I try to open that menu. Trying to run the debugger also becomes broken after adding any of the three projects.

I'm not sure where I'm going wrong.

Thanks

Granyte
Posts: 77
Joined: Tue Dec 27, 2011 11:51 am

Re: Visual Studio 2012 issues

Post by Granyte » Thu Nov 08, 2012 1:21 am

I have the exact same issue with visual studio 2012 i have been forced to revert back to vs2010 so if any one ahs an answer to this

bajo
Posts: 10
Joined: Wed Sep 05, 2012 5:57 pm

Re: Visual Studio 2012 issues

Post by bajo » Fri Nov 09, 2012 12:24 am

You have to delete all of the following entries under Project-properties-framework and then it will work again. (I'm using the german version so I hope you will find it with my discription)

BulletCollision
BulletDynamics
LinearMath
OpenGL
ZERO_CHECK
Attachments
Untitled-1.png
Untitled-1.png (57.46 KiB) Viewed 3752 times

MaxGhost
Posts: 4
Joined: Wed Nov 07, 2012 11:58 pm

Re: Visual Studio 2012 issues

Post by MaxGhost » Fri Nov 09, 2012 4:00 am

Nice! Thanks, it started working again.

Granyte
Posts: 77
Joined: Tue Dec 27, 2011 11:51 am

Re: Visual Studio 2012 issues

Post by Granyte » Fri Nov 09, 2012 1:21 pm

it's almost working now except i get an issue when recompiling bullet collision

Code: Select all

2>e:\users\david\downloads\bullet-2.79-rev2440\bullet-2.79\src\linearmath\btAlignedObjectArray.h(304): error C2719: 'CompareFunc' : le paramètre formel avec __declspec(align('16')) ne sera pas aligné
2>          E:/Users/David/Downloads/bullet-2.79-rev2440/bullet-2.79/src\LinearMath/btGrahamScan2dConvexHull.h(88) : voir la référence à l'instanciation de la fonction modèle 'void btAlignedObjectArray<T>::quickSortInternal<btAngleCompareFunc>(L,int,int)' en cours de compilation
2>          with
2>          [
2>              T=GrahamVector2,
2>              L=btAngleCompareFunc
2>          ]
2>          E:/Users/David/Downloads/bullet-2.79-rev2440/bullet-2.79/src\LinearMath/btGrahamScan2dConvexHull.h(88) : voir la référence à l'instanciation de la fonction modèle 'void btAlignedObjectArray<T>::quickSortInternal<btAngleCompareFunc>(L,int,int)' en cours de compilation
2>          with
2>          [
2>              T=GrahamVector2,
2>              L=btAngleCompareFunc
2>          ]
2>
2>ÉCHEC de la build.

MaxGhost
Posts: 4
Joined: Wed Nov 07, 2012 11:58 pm

Re: Visual Studio 2012 issues

Post by MaxGhost » Fri Nov 09, 2012 5:02 pm

I get this when I try and compile. I tried to clean and rebuild at least a dozen times, and always one of the files will get mad about the pdb. I've never seen this before. Any ideas?

Code: Select all

1>------ Rebuild All started: Project: BulletCollision, Configuration: Debug Win32 ------
1>  Building Custom Rule C:/bullet-2.81/src/BulletCollision/CMakeLists.txt
1>  CMake does not need to re-run because C:\<omitted>\Bullet\src\BulletCollision\CMakeFiles\generate.stamp is up-to-date.
1>  btAxisSweep3.cpp
1>  btBroadphaseProxy.cpp
1>  btCollisionAlgorithm.cpp
1>  btDbvt.cpp
1>  btDbvtBroadphase.cpp
1>  btDispatcher.cpp
1>  btMultiSapBroadphase.cpp
1>  btOverlappingPairCache.cpp
1>  btQuantizedBvh.cpp
1>  btSimpleBroadphase.cpp
1>  btActivatingCollisionAlgorithm.cpp
1>  btBoxBoxCollisionAlgorithm.cpp
1>  btBox2dBox2dCollisionAlgorithm.cpp
1>  btBoxBoxDetector.cpp
1>  btCollisionDispatcher.cpp
1>  btCollisionObject.cpp
1>  btCollisionWorld.cpp
1>  btCompoundCollisionAlgorithm.cpp
1>  btConvexConcaveCollisionAlgorithm.cpp
1>  btConvexConvexAlgorithm.cpp
1>  Generating Code...
1>  Compiling...
1>  btConvexPlaneCollisionAlgorithm.cpp
1>  btConvex2dConvex2dAlgorithm.cpp
1>  btDefaultCollisionConfiguration.cpp
1>  btEmptyCollisionAlgorithm.cpp
1>  btGhostObject.cpp
1>  btInternalEdgeUtility.cpp
1>  btManifoldResult.cpp
1>  btSimulationIslandManager.cpp
1>  btSphereBoxCollisionAlgorithm.cpp
1>  btSphereSphereCollisionAlgorithm.cpp
1>  btSphereTriangleCollisionAlgorithm.cpp
1>  btUnionFind.cpp
1>  SphereTriangleDetector.cpp
1>  btBoxShape.cpp
1>  btBox2dShape.cpp
1>  btBvhTriangleMeshShape.cpp
1>  btCapsuleShape.cpp
1>  btCollisionShape.cpp
1>  btCompoundShape.cpp
1>  btConcaveShape.cpp
1>  Generating Code...
1>  Compiling...
1>  btConeShape.cpp
1>C:\bullet-2.81\src\BulletCollision\CollisionShapes\btConeShape.cpp : fatal error C1033: cannot open program database 'c:\<omitted>\bullet\src\bulletcollision\debug\bulletcollision_debug.pdb'
1>  btConvexHullShape.cpp
1>  btConvexInternalShape.cpp
1>  btConvexPointCloudShape.cpp
1>  btConvexPolyhedron.cpp
1>  btConvexShape.cpp
1>  btConvex2dShape.cpp
1>  btConvexTriangleMeshShape.cpp
1>  btCylinderShape.cpp
1>  btEmptyShape.cpp
1>  btHeightfieldTerrainShape.cpp
1>  btMinkowskiSumShape.cpp
1>  btMultimaterialTriangleMeshShape.cpp
1>  btMultiSphereShape.cpp
1>  btOptimizedBvh.cpp
1>  btPolyhedralConvexShape.cpp
1>  btScaledBvhTriangleMeshShape.cpp
1>  btShapeHull.cpp
1>  btSphereShape.cpp
1>  btStaticPlaneShape.cpp
1>  Generating Code...
1>  Compiling...
1>  btStridingMeshInterface.cpp
1>  btTetrahedronShape.cpp
1>  btTriangleBuffer.cpp
1>  btTriangleCallback.cpp
1>  btTriangleIndexVertexArray.cpp
1>  btTriangleIndexVertexMaterialArray.cpp
1>  btTriangleMesh.cpp
1>  btTriangleMeshShape.cpp
1>  btUniformScalingShape.cpp
1>  btContactProcessing.cpp
1>  btGenericPoolAllocator.cpp
1>  btGImpactBvh.cpp
1>  btGImpactCollisionAlgorithm.cpp
1>  btGImpactQuantizedBvh.cpp
1>  btGImpactShape.cpp
1>  btTriangleShapeEx.cpp
1>  gim_box_set.cpp
1>  gim_contact.cpp
1>  gim_memory.cpp
1>  gim_tri_collision.cpp
1>  Generating Code...
1>  Compiling...
1>  btContinuousConvexCollision.cpp
1>C:\bullet-2.81\src\BulletCollision\NarrowPhaseCollision\btContinuousConvexCollision.cpp : fatal error C1033: cannot open program database 'c:\<omitted>\bullet\src\bulletcollision\debug\bulletcollision_debug.pdb'
1>  btConvexCast.cpp
1>C:\bullet-2.81\src\BulletCollision\NarrowPhaseCollision\btConvexCast.cpp : fatal error C1033: cannot open program database 'c:\<omitted>\bullet\src\bulletcollision\debug\bulletcollision_debug.pdb'
1>  btGjkConvexCast.cpp
1>  btGjkEpa2.cpp
1>  btGjkEpaPenetrationDepthSolver.cpp
1>  btGjkPairDetector.cpp
1>  btMinkowskiPenetrationDepthSolver.cpp
1>  btPersistentManifold.cpp
1>  btRaycastCallback.cpp
1>  btSubSimplexConvexCast.cpp
1>  btVoronoiSimplexSolver.cpp
1>  btPolyhedralContactClipping.cpp
1>  Generating Code...
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

User avatar
Erwin Coumans
Site Admin
Posts: 4073
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA
Contact:

Re: Visual Studio 2012 issues

Post by Erwin Coumans » Fri Nov 09, 2012 5:44 pm

@Granyte, you are using an out-of-date version of Bullet. Bullet is now 2.81, please upgrade.

@MaxGhost, that is likely some MSVC bug. Have you installed the latest service pack? Also, sometimes it helps to simply start the compiler again or rebuild all.

Also, it might be worth trying either cmake or premake generated projects.
Thanks,
Erwin

MaxGhost
Posts: 4
Joined: Wed Nov 07, 2012 11:58 pm

Re: Visual Studio 2012 issues

Post by MaxGhost » Fri Nov 09, 2012 6:02 pm

Everything's up to date. I've tried to rebuild all, clean, rebuild, etc. but it still gives that error on a random file when it compiles. I have no idea why.

Edit: Well, ok... Windows will always baffle me. Restarted my computer and now it seems to work. Good times.

Granyte
Posts: 77
Joined: Tue Dec 27, 2011 11:51 am

Re: Visual Studio 2012 issues

Post by Granyte » Fri Nov 09, 2012 6:31 pm

alright i was using my old 2.79 repository to avoid damaging my 2.81 repository i'm running on in my production project

Post Reply