roboticslab-uc3m / installation-guides

Centralized administration of dependency installation guides.
https://robots.uc3m.es/installation-guides/
70 stars 35 forks source link

Error when compiling cuda 8.0 library #15

Closed olayasturias closed 7 years ago

olayasturias commented 7 years ago

OpenCV version: 3.0.0 O.S. : Ubuntu 14.04 CUDA toolkit installed but without NVIDIA driver

OpenCV 3.0.0 shows various errors when compiling cuda 8.0, which look like this:

opencv/modules/cudalegacy/src/graphcuts.cpp:135:18: error: expected type-specifier before ‘NppiGraphcutState’
         operator NppiGraphcutState*()
opencv/modules/cudalegacy/src/graphcuts.cpp:141:9: error: ‘NppiGraphcutState’ does not name a type
         NppiGraphcutState* pState;
         ^
...
olayasturias commented 7 years ago

Seems like it is solved in MASTER brach, but since I wanted to install the 3.0.0, i used the following patch:

git checkout 3.0.0
git format-patch -1 10896129b39655e19e4e7c529153cb5c2191a1db
git am < 0001-GraphCut-deprecated-in-CUDA-7.5-and-removed-in-8.0.patch

And it works now!

RaulFdzbis commented 7 years ago

It looks like its your second issue, but good job!

David-Estevez commented 7 years ago

Fix documented here.

Let me know in case I need to add any additional steps that you might have done.