I’m trying to build package for my Linux distro from git master, becaue of this: No keyboard input
Here is a build script used in package of my Linux distro:
mkdir -p “$srcdir/Urho3D/build”
cd “$srcdir/Urho3D/build”
cmake “$srcdir/Urho3D/” -DCMAKE_INSTALL_PREFIX="/usr" -DURHO3D_USE_LIB_DEB=1 -DURHO3D_SAMPLES=1
make
Build process fails at:
[ 76%] Linking CXX executable …/…/…/bin/Urho3DPlayer
/usr/bin/ld: …/…/…/lib/libUrho3D.a(loslib.c.o): in functionos_tmpname': loslib.c:(.text+0x242): warning: the use of
tmpnam’ is dangerous, better usemkstemp' /usr/bin/ld: ../../../lib/libUrho3D.a(PhysicsWorld.cpp.o): in function
Urho3D::PhysicsWorld::PhysicsWorld(Urho3D::Context*)’:
PhysicsWorld.cpp:(.text+0x4fed): undefined reference tobtSequentialImpulseConstraintSolver::btSequentialImpulseConstraintSolver()' /usr/bin/ld: ../../../lib/libUrho3D.a(Constraint.cpp.o): in function
Urho3D::Constraint::ApplyFrames()’:
Constraint.cpp:(.text+0x2600): undefined reference tobtHingeConstraint::setFrames(btTransform const&, btTransform const&)' /usr/bin/ld: ../../../lib/libUrho3D.a(Constraint.cpp.o): in function
Urho3D::Constraint::CreateConstraint()’:
Constraint.cpp:(.text+0x3e03): undefined reference tobtHingeConstraint::btHingeConstraint(btRigidBody&, btRigidBody&, btTransform const&, btTransform const&, bool)' /usr/bin/ld: Constraint.cpp:(.text+0x47ee): undefined reference to
btPoint2PointConstraint::btPoint2PointConstraint(btRigidBody&, btRigidBody&, btVector3 const&, btVector3 const&)’
/usr/bin/ld: …/…/…/lib/libUrho3D.a(btDiscreteDynamicsWorld.cpp.o): in functionbtDiscreteDynamicsWorld::btDiscreteDynamicsWorld(btDispatcher*, btBroadphaseInterface*, btConstraintSolver*, btCollisionConfiguration*)': btDiscreteDynamicsWorld.cpp:(.text+0x6998): undefined reference to
btSequentialImpulseConstraintSolver::btSequentialImpulseConstraintSolver()’
collect2: error: ld returned 1 exit status
Earlier my laptop shut itself down due to overheating, so, in case of bad building of Bullet, I rebuilt it, but without result.
I couldnt find any serious differences between packages used for 1.7 and master version. Here are they:
urho3d
urho3d-git
Edit:
Here is a exact command, extracted from verbose pass:
/usr/bin/c++ -mtune=generic -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=gnu++11 -Wno-invalid-offsetof -march=native -msse3 -pthread -fdiagnostics-color=auto -O3 -DNDEBUG -Wl,-O1,–sort-common,–as-needed,-z,relro,-z,now -rdynamic CMakeFiles/Urho3DPlayer.dir/Urho3DPlayer.cpp.o -o …/…/…/bin/Urho3DPlayer …/…/…/lib/libUrho3D.a -ldl -lm -lrt -lGL -ldl -lm -lrt -lGL