Compile Error LNK2019

Lexo

25-01-2011 21:39:23

Hello,


i'm a newbie in Ogre and wanted to try OgreBullet. Ogre works, I installed Bullet and get OgreBullet from the SVN. Compiling Bullet Works fine.
After Compiling I copy the release and debug libs into C:\OgreSDK\AddOns\OgreBullet\lib.
Then I open the Project file OgreBullet_VC8.sln (I'm using Visual Studio 2010 Professional on Windows 7) and change the configuration.

Includes:
  1. ..\..\include
    ..\..\..\include
    ..\..\..\..\Collisions\include
    ..\..\..\..\Dynamics\include
    $(BULLET_ROOT)\src
    $(BULLET_ROOT)\Extras\ConvexDecomposition
    $(OGRE_HOME)\include\OGRE
    $(OGRE_HOME)\include\OIS
    $(OGRE_HOME)\boost_1_42
    $(OGRE_HOME)\include\[/list:u]

    Linker-> Libs
    ..\..\..\..\lib\$(Configuration)
    $(OGRE_HOME)\boost_1_42\lib
    $(BULLET_ROOT)\lib\$(Configuration)
    $(OGRE_HOME)\lib\$(Configuration)

    Enverionment Variables:
    BULLET_ROOT - C:\OgreSDK\AddOns\bullet
    OGRE_HOME - C:\OgreSDK\OgreSDK_vc10_v1-7-2

    Software:
    Windows 7 x64 Professional
    Ogre 1.7.2
    Bullet 2.29
    OgreBullet (SVN)

    When I want to Compile the Project(debug modus) I get this errors:

    ยด

    What I have done wrong? Please help me.

    Best Regards,
    Lexo

Lexo

26-01-2011 07:33:59

OK, the problem was that I compile Bullet with Visual Studio 2008 and OgreBullet I use VS2010.
When I Compile Bullet I get this error now:
Error 58 error MSB3073: The command ""C:\Program Files (x86)\CMake 2.8\bin\cmake.exe" -E copy_if_different C:/develop/bullet-2.77/Demos/ParticlesOpenCL/ParticlesOCL.cl C:/develop/bullet-2.77/msvc/2008/Demos/ParticlesOpenCL/MiniCL
:VCEnd" exited with code 1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 113 6 AppParticlesOCL_Mini


But I get the following libs:
  1. BulletCollision.lib
    BulletDynamics.lib
    BulletFileLoader.lib
    BulletMultiThreaded.lib
    BulletSoftBody.lib
    BulletWorldImporter.lib
    ConvexDecomposition.lib
    GIMPACTUtils.lib
    GLUI.lib
    LinearMath.lib
    MiniCL.lib
    OpenGLSupport.lib[/list:u]

    are this all files I need?

    After Compiling the OgreBullet Demos I get the following Error but the OgreBulletDynamicsDemo.exe was build:

    Error 230 error MSB3073: The command "copy \..\bin\Release C:\OgreSDK\AddOns\OgreBullet\Demos\Dynamics_Demos\scripts\VC8\..\..\..\Dynamics_Demos.exe
    copy C:\OgreSDK\OgreSDK_vc10_v1-7-2\dependencies\bin\Release C:\OgreSDK\AddOns\OgreBullet\Demos\Dynamics_Demos\scripts\VC8\..\..\..\Dynamics_Demos.exe

    :VCEnd" exited with code 1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 113 6 Dynamics_Demos


    But when I start the OgreBulletDynamicsDemo I get same graphic bugs and the Constrain+Ragdoll Demo is only Black(I only see the things I can throw)




    Have I done something wrong? Please help. Thanks you.

Fish

27-01-2011 17:38:57

It looks like bullet is working fine.

The graphic errors have nothing to do with bullet (or the OgreBullet library). The demo that comes with OgreBullet, however, is a bit of a mess and needs some love.

- Fish