Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Almost built but failed with "cannot find -lBussIK" #819

Closed
jiapei100 opened this issue Oct 7, 2016 · 5 comments
Closed

Almost built but failed with "cannot find -lBussIK" #819

jiapei100 opened this issue Oct 7, 2016 · 5 comments

Comments

@jiapei100
Copy link

Hi, all:

/usr/bin/ld: cannot find -lBussIK
collect2: error: ld returned 1 exit status
test/SharedMemory/CMakeFiles/Test_PhysicsClientServer.dir/build.make:1042: recipe for target 'test/SharedMemory/Test_PhysicsClientServer' failed
make[2]: *** [test/SharedMemory/Test_PhysicsClientServer] Error 1
make[2]: Leaving directory '....../bullet3/build'
CMakeFiles/Makefile2:1394: recipe for target 'test/SharedMemory/CMakeFiles/Test_PhysicsClientServer.dir/all' failed
make[1]: *** [test/SharedMemory/CMakeFiles/Test_PhysicsClientServer.dir/all] Error 2
make[1]: Leaving directory '....../bullet3/build'
Makefile:141: recipe for target 'all' failed
make: *** [all] Error 2

Any suggestions?

Cheers
Pei

@erwincoumans
Copy link
Member

erwincoumans commented Oct 7, 2016

Can you provide the exact steps to reproduce, including platform (Windows, Linux, Mac, other), compiler, and how you invoke cmake not leaving out any details. Are you using default settings for cmake? I can't reproduce the issue on Windows, Linux or Mac it works just fine.

@M0lion
Copy link

M0lion commented Dec 16, 2016

I'm getting (I think?) the same issue, I'm on windows 10, step by step:

  1. git clone https://github.com/bulletphysics/bullet3.git
  2. open cmake-gui
    2.1 set src to bullet3 dir
    2.2 set build to bullet3/msvc/2015
    2.3 configure
    2.4 generator: VS 14 2015 win64 (default native compilers)
    2.5 uncheck BUILD_BULLET2_DEMOS and BUILD_CPU_DEMOS
    2.6 check BUILD_CPU_DEMOS USE_MSVC_RUNTIME_LIBRARY_DLL
    2.7 configure
    2.8 generate
  3. open BULLET_PHYSICS.sln
  4. set configuration to MinSizeRel(doesn't seem to matter, same for release and debug)
  5. build->build solution

last few lines of VS output:

26> Generating Code...
26>LINK : fatal error LNK1181: cannot open input file 'BussIK.lib'
28>------ Build started: Project: ALL_BUILD, Configuration: MinSizeRel x64 ------
28> Building Custom Rule C:/Programming/c#/bullet3/CMakeLists.txt
28> CMake does not need to re-run because >C:\Programming\c#\bullet3\msvc\2015\CMakeFiles\generate.stamp is up-to-date.
29>------ Skipped Build: Project: INSTALL, Configuration: MinSizeRel x64 ------
29>Project not selected to build for this solution configuration
========== Build: 26 succeeded, 1 failed, 0 up-to-date, 2 skipped ==========

It works with default cmake settings

@erwincoumans
Copy link
Member

Then use the default cmake settings :)
2.5 check BUILD_CPU_DEMOS undoes 2.4 uncheck BUILD_CPU_DEMOS?

@M0lion
Copy link

M0lion commented Dec 16, 2016

meant check USE_MSVC_RUNTIME_LIBRARY_DLL

@M0lion
Copy link

M0lion commented Dec 16, 2016

I seem to have fixed it. In the lib folder there was indeed no BussIK.lib, but there was a BussIK_MinsizeRel.lib, so I changed the dependency in Test_PhysicsClientServer from BussIK.lib to BussIK_MinsizeRel.lib. Still couldn't find it, but changing it to ....\lib\MinSizeRel\BussIK_MinsizeRel.lib fixed it.

LnL7 added a commit to LnL7/nixpkgs that referenced this issue Sep 9, 2018
The examples fail with an opengl related issue:

    Undefined symbols for architecture x86_64:
      "SimpleOpenGL3App::SimpleOpenGL3App(char const*, int, int, bool)", referenced from:
          _main in main_opengl_single_example.o
      "_useShadowMap", referenced from:
          GL_ShapeDrawer::drawScene(btDiscreteDynamicsWorld const*, bool, int) in GL_ShapeDrawer.o
    ld: symbol(s) not found for architecture x86_64

And the tests need an extra dependencly, possibley related to
bulletphysics/bullet3#819

    ld: library not found for -lBussIK

/cc ZHF NixOS#45961
LnL7 added a commit to NixOS/nixpkgs that referenced this issue Sep 10, 2018
The examples fail with an opengl related issue:

    Undefined symbols for architecture x86_64:
      "SimpleOpenGL3App::SimpleOpenGL3App(char const*, int, int, bool)", referenced from:
          _main in main_opengl_single_example.o
      "_useShadowMap", referenced from:
          GL_ShapeDrawer::drawScene(btDiscreteDynamicsWorld const*, bool, int) in GL_ShapeDrawer.o
    ld: symbol(s) not found for architecture x86_64

And the tests need an extra dependencly, possibley related to
bulletphysics/bullet3#819

    ld: library not found for -lBussIK

/cc ZHF #45961

(cherry picked from commit 939debc)
@bulletphysics bulletphysics locked and limited conversation to collaborators Apr 26, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

3 participants