A place to discuss everything related to Newton Dynamics.
Moderators: Sascha Willems, walaber
by ebonair » Mon Jun 04, 2012 4:46 pm
Hello, I am new to Newton and am trying to get started with the tutorials. However, I end up with a strange error when I build "Tutorial_101_GettingStarted":
- Code: Select all
1>------ Build started: Project: Tutorial_101_GettingStarted, Configuration: Debug Win32 ------
1>Build started 6/4/2012 3:06:51 PM.
1>InitializeBuildStatus:
1> Touching "x32\Debug\Tutorial_101_GettingStarted.unsuccessfulbuild".
1>PreBuildEvent:
1> 0 File(s) copied
1> File not found - dJointLibrary_d.dll
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(103,5): error MSB3073: The command "xcopy "C:\Users\demo\david\newton-dynamics-2.35/sdk/x32/lib_vs9_md/dJointLibrary_d.dll" "../bin/x32/*.*" /F /Y
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(103,5): error MSB3073: :VCEnd" exited with code 4.
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.04
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I have set the environment variable NEWTON_HOME to point to the root directory of Newton, is that correct? The root directory contains three folders: applications, coreLibrary_200, and packages. I see it's looking inside of an sdk/ subfolder, which doesn't seem to exist anywhere inside of newton-dynamics-2.35. (The dJointLibrary_d.dll is located in newton-dynamics-2.35\packages\x64\debugDll).
-
ebonair
-
- Posts: 5
- Joined: Mon Jun 04, 2012 4:09 pm
by ebonair » Tue Jun 05, 2012 4:33 pm
Well, I tried manually constructing the sdk directory based on clues in the tutorial project file, without success. I'm now trying to use the project in newton-dynamics-2.35\coreLibrary_200\projets\windows\project_vs2010. The 'core' and 'physics' subprojects build fine, but the newton project gives:
- Code: Select all
1> Creating library Win32/newton/debugDoubleDll\newton_d.lib and object Win32/newton/debugDoubleDll\newton_d.exp
1>physics_d.lib(dgMeshEffect.obj) : error LNK2019: unresolved external symbol "public: void __thiscall dgMeshEffectSolidTree::AddFace(class dgMeshEffect const &,class dgEdge * const)" (?AddFace@dgMeshEffectSolidTree@@QAEXABVdgMeshEffect@@QAVdgEdge@@@Z) referenced in function "public: class dgMeshEffectSolidTree * __thiscall dgMeshEffect::CreateSolidTree(void)const " (?CreateSolidTree@dgMeshEffect@@QBEPAVdgMeshEffectSolidTree@@XZ)
1>physics_d.lib(dgMeshEffect.obj) : error LNK2019: unresolved external symbol "public: __thiscall dgMeshEffectSolidTree::dgMeshEffectSolidTree(class dgMeshEffect const &,class dgEdge * const)" (??0dgMeshEffectSolidTree@@QAE@ABVdgMeshEffect@@QAVdgEdge@@@Z) referenced in function "public: class dgMeshEffectSolidTree * __thiscall dgMeshEffect::CreateSolidTree(void)const " (?CreateSolidTree@dgMeshEffect@@QBEPAVdgMeshEffectSolidTree@@XZ)
1>physics_d.lib(dgMeshEffect.obj) : error LNK2019: unresolved external symbol "public: __thiscall dgMeshEffectSolidTree::~dgMeshEffectSolidTree(void)" (??1dgMeshEffectSolidTree@@QAE@XZ) referenced in function "public: void * __thiscall dgMeshEffectSolidTree::`scalar deleting destructor'(unsigned int)" (??_GdgMeshEffectSolidTree@@QAEPAXI@Z)
1>physics_d.lib(dgMeshEffect2.obj) : error LNK2001: unresolved external symbol "public: __thiscall dgMeshEffectSolidTree::~dgMeshEffectSolidTree(void)" (??1dgMeshEffectSolidTree@@QAE@XZ)
1>physics_d.lib(dgMeshEffect.obj) : error LNK2019: unresolved external symbol "public: void __thiscall dgMeshTreeCSGFace::MergeMissingVertex(class dgMeshTreeCSGFace const * const)" (?MergeMissingVertex@dgMeshTreeCSGFace@@QAEXQBV1@@Z) referenced in function "protected: void __thiscall dgMeshEffect::ClipMesh(class dgMeshEffectSolidTree const * const,class dgMeshEffect * * const,class dgMeshEffect * *const,class dgMeshEffect * * const)const " (?ClipMesh@dgMeshEffect@@IBEXQBVdgMeshEffectSolidTree@@QAPAV1@11@Z)
1>physics_d.lib(dgMeshEffect.obj) : error LNK2019: unresolved external symbol "public: enum dgMeshEffectSolidTree::dgPlaneType __thiscall dgMeshEffectSolidTree::GetFaceSide(class dgMeshTreeCSGFace const * const)const " (?GetFaceSide@dgMeshEffectSolidTree@@QBE?AW4dgPlaneType@1@QBVdgMeshTreeCSGFace@@@Z) referenced in function "protected: void __thiscall dgMeshEffect::ClipMesh(class dgMeshEffectSolidTree const * const,class dgMeshEffect * * const,class dgMeshEffect * * const,class dgMeshEffect * * const)const " (?ClipMesh@dgMeshEffect@@IBEXQBVdgMeshEffectSolidTree@@QAPAV1@11@Z)
1>physics_d.lib(dgMeshEffect.obj) : error LNK2019: unresolved external symbol "public: void __thiscall dgMeshTreeCSGFace::Clip(class dgHugeVector const &,class dgMeshTreeCSGFace * *,class dgMeshTreeCSGFace * *)" (?Clip@dgMeshTreeCSGFace@@QAEXABVdgHugeVector@@PAPAV1@1@Z) referenced in function "protected: void __thiscall dgMeshEffect::ClipMesh(class dgMeshEffectSolidTree const * const,class dgMeshEffect * * const,class dgMeshEffect * * const,class dgMeshEffect * * const)const " (?ClipMesh@dgMeshEffect@@IBEXQBVdgMeshEffectSolidTree@@QAPAV1@11@Z)
1>physics_d.lib(dgMeshEffect.obj) : error LNK2019: unresolved external symbol "public: __thiscall dgMeshTreeCSGFace::dgMeshTreeCSGFace(class dgMeshEffect const &,class dgEdge * const)" (??0dgMeshTreeCSGFace@@QAE@ABVdgMeshEffect@@QAVdgEdge@@@Z) referenced in function "protected: void __thiscall dgMeshEffect::ClipMesh(class dgMeshEffectSolidTree const * const,class dgMeshEffect * * const,class dgMeshEffect * * const,class dgMeshEffect * * const)const " (?ClipMesh@dgMeshEffect@@IBEXQBVdgMeshEffectSolidTree@@QAPAV1@11@Z)
1>physics_d.lib(dgMeshEffect2.obj) : error LNK2019: unresolved external symbol "public: enum dgMeshEffectSolidTree::dgPlaneType __thiscall dgMeshEffectSolidTree::GetPointSide(class dgHugeVector const &)const " (?GetPointSide@dgMeshEffectSolidTree@@QBE?AW4dgPlaneType@1@ABVdgHugeVector@@@Z) referenced in function "public: class dgMeshEffect * __thiscall dgMeshEffect::CreateVoronoiPartition(int,int,double const * const,int,class dgMatrix &)const " (?CreateVoronoiPartition@dgMeshEffect@@QBEPAV1@HHQBNHAAVdgMatrix@@@Z)
1>Win32/newton/debugDoubleDll\newton_d.dll : fatal error LNK1120: 8 unresolved externals
Is this the right approach to installing Newton? I don't even know where to start here - it's a pity there are no installation instructions.
-
ebonair
-
- Posts: 5
- Joined: Mon Jun 04, 2012 4:09 pm
by ebonair » Tue Jun 05, 2012 6:39 pm
I've found that different build targets either give me the unresolved dependencies error, or a hundred errors like this one:
3>..\..\..\source\newton\Newton.cpp(8911): warning C4273: 'NewtonMeshGetFacePointIndices' : inconsistent dll linkage
3> c:\users\demo\david\newton-dynamics-2.35\corelibrary_200\source\newton\Newton.h(1049) : see previous definition of 'NewtonMeshGetFacePointIndices'
Has anyone else been able to build newton.sln in Visual Studio 2010 from newton.sln?
-
ebonair
-
- Posts: 5
- Joined: Mon Jun 04, 2012 4:09 pm
Return to General Discussion
Who is online
Users browsing this forum: No registered users and 1 guest