Coder Social home page Coder Social logo

Build Errors about bodyskeletontracker HOT 3 CLOSED

muhammadfraz avatar muhammadfraz commented on September 28, 2024
Build Errors

from bodyskeletontracker.

Comments (3)

derzu avatar derzu commented on September 28, 2024

Hi,

I'm not sure about what is happening. But I think is something related to the Cuda Library. I do not use Cuda in this project.

Maybe you compiled your OpenCV activating Cuda module, did you? You can try 2 solutions:

1 - Recompile OpenCV with Cuda module.

2 - Add the Cuda library path to the compiler, you can do that changing the Makefile, adding:
CFLAGS += -L/usr/local/cuda-6.5/lib

Set you cuda path appropriately.

Tell me if it works.

Best regards,

Derzu.

from bodyskeletontracker.

muhammadfraz avatar muhammadfraz commented on September 28, 2024

Hi Derzu,

Thanks for prompt reply. I already managed to find my way through the problem. You are right I compiled OpenCV with cuda support and these linking errors were caused because the makefile script were unable to find the NVIDIA performance primitives.

So, the work around that I did was adding these paths to the LIB_DIRS_OPTIONS in CommonCppCMakefile, basically providing the path where these libraries are located:

The modified section looks like this:

LIB_DIRS_OPTION = $(foreach dir,$(LIB_DIRS),-L$(dir))
LIB_DIRS_OPTION += -L/usr/local/cuda -L/usr/local/cuda/lib64
LIB_DIRS_OPTION += -L$(OUT_DIR)

I believe this is not the elegant way but I was unable to find where the LIB_DIRS variable is being set, the cmake files are not easy to follow here, especially for someone like me who is not very good with cmake.

Also, the last ld error which another person faced and posted in the other issue:
/usr/bin/ld: cannot find -llib64

To me this seems like a bug as there is no lib64 static or dynamic library at least in Ubuntu16.04, so what I did was, modified the opencv.pc file located at the path: /usr/local/lib/pkgconfig/opencv.pc

I removed "-llib64" from the script and then everything build and ran successfully.

Thanks,
Fraz

from bodyskeletontracker.

derzu avatar derzu commented on September 28, 2024

Hi Fraz,

I'm glad you've made it work.

Best regards,

Derzu.

from bodyskeletontracker.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.