luxonis / depthai-python

DepthAI Python Library
MIT License
361 stars 192 forks source link

Unable to compile rvc3_develop branch #863

Closed PeterQFR closed 1 year ago

PeterQFR commented 1 year ago

Trying to compile rvc3_develop branch, commit 11a40ed426e44610d40f1a328eb6a054d9af313f, but get a linker error.

[100%] Linking CXX shared module depthai.cpython-38-x86_64-linux-gnu.so
/usr/bin/ld: /home/peter-laptop/.hunter/_Base/1292e4d/a3a48bb/b42261d/Install/lib/libspdlog.a(spdlog.cpp.o): relocation R_X86_64_TPOFF32 against `_ZGVZN6spdlog7details2os9thread_idEvE3tid' can not be used when making a shared object; recompile with -fPIC
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/depthai.dir/build.make:978: depthai.cpython-38-x86_64-linux-gnu.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:254: CMakeFiles/depthai.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

this is in a python venv for that build.

themarpe commented 1 year ago

@PeterQFR

Try clearing hunter cache first: https://github.com/luxonis/depthai-core#debugging-tips

PeterQFR commented 1 year ago

Oh, I actually downloaded the core binaries as in the readme on that branch

On Thu, 13 Jul 2023 at 22:06, TheMarpe @.***> wrote:

@PeterQFR https://github.com/PeterQFR

Try clearing hunter cache first: https://github.com/luxonis/depthai-core#debugging-tips

— Reply to this email directly, view it on GitHub https://github.com/luxonis/depthai-python/issues/863#issuecomment-1634127254, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABIBV44UDUZDRENKTCWWEHLXP7QEVANCNFSM6AAAAAA2IH2RMA . You are receiving this because you were mentioned.Message ID: @.***>

themarpe commented 1 year ago

@PeterQFR not sure if I am following. Does above address your issue?

PeterQFR commented 1 year ago

Hi Sorry, I got confused as to which ticket was being replied to. But I eventually just downloaded the upstream binaries. If I have to rebuild again, I'll do a clean build. You're probably correct as I may have initially tried to build on main before switching to rvc3_develop Thanks Peter

On Fri, 14 Jul 2023 at 11:15, TheMarpe @.***> wrote:

@PeterQFR https://github.com/PeterQFR not sure if I am following. Does above address your issue?

— Reply to this email directly, view it on GitHub https://github.com/luxonis/depthai-python/issues/863#issuecomment-1635116311, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABIBV463ETKLTNU7QQ6RXOTXQCMSFANCNFSM6AAAAAA2IH2RMA . You are receiving this because you were mentioned.Message ID: @.***>