-
Notifications
You must be signed in to change notification settings - Fork 8k
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
OS: ArchLinux - [Build Error] undefined references to opencv libraries #4173
Comments
In arch linux with latest CUDA (10.1) I solved compiling a custom opencv in a python virtual env create link /usr/local/cuda if not present
create and activate virtualenv
build and install opencv4
build and install darknet
|
Thank you for your work around, @scipioni, but I would like to get darknet to install using the system wide opencv. |
@acxz same issue here did you have any progress? |
Sadly no, the end of the semester is always a crunch for me, I prob won't revisit this until the beginning of next semester. |
@acxz I need this for this semester :/ |
@scipioni I would like to try your work around. How do I find out the cuda version for a 1050TI? |
try this
|
@scipioni cryptic error message here:
--
|
ModuleNotFoundError: No module named 'numpy' you have to install python-numpy package |
I do have it installed. sh install_opencv.sh
|
@AlexeyAB can you give us some insight? This has been broken for months :/ |
@AlexeyAB @acxz I got this reported as as fix: Can any of you give a proper opinion? Regards, |
Can you elaborate on about what exactly my opinion interests you?
@phunc20 suggests this solution because he uses https://github.com/pjreddie/darknet rather than https://github.com/AlexeyAB/darknet where it is solved years ago
|
So I decided to finally fix this issue up. A proper description of the issue and a temporary solution is here: https://aur.archlinux.org/packages/darknet-alexeyab-git/#pinned-736206 TLDR: The ArchLinux Darknet package now works! Going ahead and closing this issue. Hopefully ArchLinux releases CUDA compiled with GCC9 soon, until then the temporary solution linked above will have to suffice. |
Hello guys, I'm back!
So I am currently trying to build darknet with CUDA, and I ran across some issues
I was able to get around this issue by adding the following flag, courtesy of @dferio (https://aur.archlinux.org/packages/darknet-alexeyab-git#comment-712321).
-D_GLIBCXX_USE_CXX11_ABI=0
on line 142 of the CMakeLists.txHowever, adding that flag I now get the following undefined errors when trying to link the libraries:
I have added the relevant opencv_components such as opencv_videoio, etc to `${OpenCV_LINKED_COMPONENTS} in the CMakeLists.txt (printed the list of linked opencv libraries as well to confirm) but I still get the undefined errors.
It would be much appreciated if you guys can look into this issue, it is preventing me from using darknet with CUDA.
OS: ArchLinux
darknet: master branch as of posting
OpenCV: 4.1.2
gcc: 9.2
The text was updated successfully, but these errors were encountered: