-
Notifications
You must be signed in to change notification settings - Fork 102
-
Notifications
You must be signed in to change notification settings - Fork 102
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
Question about building PlusServer with OpenCV on Ubuntu 20.04.1 #767
Comments
Find the line of code with that #error message and comment it out. See if gcc8 works |
You mean, I should change the crt file?
…On Tue, Jan 19, 2021 at 2:24 PM Adam Rankin ***@***.***> wrote:
Find the line of code with that #error message and comment it out. See if
gcc8 works
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#767 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEWMRY3EP3IFAI3E6V56KY3S2XL7LANCNFSM4WJH3BNQ>
.
|
Yes |
Now , after commenting the line 1 error detected in the compilation of "/tmp/tmpxft_00018adf_00000000-14_gpu_mat.compute_75.cpp1.ii". make[5]: *** [modules/core/CMakeFiles/opencv_core.dir/build.make:484: modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/cuda_compile_1_generated_gpu_mat.cu.o] Error 1 |
Ok. You'll have to use a newer version of Cuda or disable cuda for OpenCV |
Another idea would be to install an older version of gcc (5,6 or 7) and set it as default using update-alternatives. As far as I know PLUS still supports these, @adamrankin is this still the case? |
It will probably compile. Whatever is default in ubuntu 18.04 and newer are supported. |
A similar experience here: |
Thanks, I tried gcc-7.5 but got different errors, I am trying your suggested: espressomd/espresso#3654 |
Why was it rejected? |
I don't know, the CMake just replaced it with CUDA_SDK_ROOT_DIR_NOT_FOUND
and I do not know what is it looking for in the SDK directory, I guess,
I'll have to look closer at all the CmakeLists
…On Wed, Jan 20, 2021 at 11:30 AM Adam Rankin ***@***.***> wrote:
Why was it rejected?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#767 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEWMRY3KBSNQK644556RTR3S24AJBANCNFSM4WJH3BNQ>
.
|
After looking around, my UDA_SDK_ROOT_DIR It seems, that cuda video decoder is deprecated. |
I added option to External_OpenCV.cmake and managed to build OpenCV. It was very slow comparing to building vtk. |
Yes, there is a recommendation in the cmake configure output to set the cuda generation variable to only build for your current card (if building for yourself). Drastically reduces compile time. |
I set it to Turing, wrong?
…On Wed, Jan 20, 2021 at 4:22 PM Adam Rankin ***@***.***> wrote:
Yes, there is a recommendation in the cmake configure output to set the
cuda generation variable to only build for your current card (if building
for yourself). Drastically reduces compile time.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#767 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEWMRY5COS7NMUSMWP4E2M3S25CTBANCNFSM4WJH3BNQ>
.
|
Problem solved. Thank you for all your help. |
I have made a new build to check the time - OpenCV build takes ~35 minutes,
cuda 10, cuda generation variable set to Turing.
…On Wed, Jan 20, 2021 at 4:22 PM Adam Rankin ***@***.***> wrote:
Yes, there is a recommendation in the cmake configure output to set the
cuda generation variable to only build for your current card (if building
for yourself). Drastically reduces compile time.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#767 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEWMRY5COS7NMUSMWP4E2M3S25CTBANCNFSM4WJH3BNQ>
.
|
Ubuntu 20.04.1 LTS, NVIDIA Corporation GP104 [GeForce GTX 1070], Driver Version: 460.27.04 CUDA Version: 11.2.
CMake 3.16.3.
I want to build PlusServer with options: PLUSBUILD_USE_OpenCV and PLUS_USE_OpenCV_VIDEO on.
I have gcc8 ((Ubuntu 8.4.0-3ubuntu2) 8.4.0) installed by Nvidia, and gcc9 ((Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0) on my system.
I set gcc8 as compiler in CMake and I am getting this building error:
error: #error -- unsupported GNU version! gcc versions later than 8 are not supported!
138 | #error -- unsupported GNU version! gcc versions later than 8 are not supported!
| ^~~~~
CMake Error at cuda_compile_1_generated_gpu_mat.cu.o.Release.cmake:220 (message):
Error generating
xxx/OpenCV-bin/modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/./cuda_compile_1_generated_gpu_mat.cu.o
Please, advise what should I do.
I would like to use PlusServer with webcam.
The text was updated successfully, but these errors were encountered: