CMU-Perceptual-Computing-Lab / openpose

OpenPose: Real-time multi-person keypoint detection library for body, face, hands, and foot estimation
https://cmu-perceptual-computing-lab.github.io/openpose
Other
31.15k stars 7.86k forks source link

can't link libopenpose_core.dylib on Mac #1015

Closed wzx16 closed 5 years ago

wzx16 commented 5 years ago

Issue Summary

error showed during the make process. (which lead the make failed)

Executed Command (if any)

make -jnproc

OpenPose Output (if any)

Errors (if any)

Scanning dependencies of target openpose_unity [ 1%] Linking CXX shared library libopenpose_core.dylib ld: library not found for -lopenpose clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [src/openpose/core/libopenpose_core.dylib] Error 1 make[1]: *** [src/openpose/core/CMakeFiles/openpose_core.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 2%] Building CXX object src/openpose/unity/CMakeFiles/openpose_unity.dir/unityBinding.cpp.o [ 2%] Linking CXX shared library libopenpose_unity.dylib [ 2%] Built target openpose_unity [ 42%] Built target openpose_src make: *** [all] Error 2

Type of Issue

You might select multiple topics, delete the rest:

Your System Configuration

  1. Whole console output (if errors appeared), paste the error to PasteBin and then paste the link here: LINK

  2. OpenPose version: 29fc003

  3. General configuration:

    • Installation mode: CMake (Mac)
    • Operating system osx Mojave
    • Release or Debug mode? (by default: release):
    • Compiler clang++ 10.0
  4. Non-default settings:

    • 3-D Reconstruction module added? (by default: no):
    • Any other custom CMake configuration with respect to the default version? (by default: no):
  5. 3rd-party software:

    • Caffe version: Default from OpenPose, custom version, ...?
    • CMake version (cmake --version in Ubuntu):
    • OpenCV version: pre-compiled apt-get install libopencv-dev (only Ubuntu); OpenPose default (only Windows); compiled from source? If so, 2.4.9, 2.4.12, 3.1, 3.2?; ...?
  6. If GPU mode issue:

    • CUDA version (cat /usr/local/cuda/version.txt in most cases):
    • cuDNN version:
    • GPU model (nvidia-smi in Ubuntu):
  7. If CPU-only mode issue:

    • CPU brand & model:
    • Total RAM memory available:
  8. If Python API:

    • Python version: 2.7, 3.7, ...?
    • Numpy version (python -c "import numpy; print numpy.version.version" in Ubuntu):
  9. If Windows system:

    • Portable demo or compiled library?
  10. If speed performance issue:

    • Report OpenPose timing speed based on this link.
wzx16 commented 5 years ago

After I roll back to 7a4fb5a, the issue is resolved. please check the support of Mac version. My Mac is MacBook Pro 2016(Touch Bar). I checked the build/src/openpose/core, no dylib were generated.

soulslicer commented 5 years ago

Hmm..I just tried to compile on my 2018 MacBook and it worked just fine. Can you just try the latest commit and remove your build directory and try again?

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.