-
Notifications
You must be signed in to change notification settings - Fork 245
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
sh make.sh fatal error: opencv2/opencv.hpp: No such file or directory #76
Comments
I fixed this Problem with: sudo apt-get install libopencv-dev |
Hi, I'm running sh make.sh and there's a mistake like this: ImportError: libcublas. so.9.0: cannot open shared object file: No such file or directory What is the reason for this? My usr/local/cuda/lib64 directory has the file libcudlas.so.9.0, but why did he suggest that he could not find it? I used to use 9.1 cuda, but now because to compile poseCNN, there is a version of CUDA 9.0, cudnn 7.0, tensorflow is the version of GPU 1.5.0, Python 2.7, can you help me? Thank you |
@yuzw213 Cuda 9.0 (Tensorflow requires 9.0!) Installation Instructions: If you installed it with run file or something else you should read:
Dont forgett to remove the old 9.1 repository https://help.ubuntu.com/community/Repositories/Ubuntu Or maybe something from this is helpful: I didn't have this bug and I'm also new in this area, so I can't help anymore. |
thank you for reply! i will try at once. |
But is there a requirement for tensorflow version? Can I compile tensorflow-gpu 1.12.0 with source code? |
Also, must the version of gcc/g++ be 4.8.5? I use 5.4.0. |
@yuzw213 And you can test it with 5.4.0 but it was not working for me. The build.sh crashed with this also the kinect_fusion build. With gcc/g++ 4.8.5 it worked for me. If you change back to 5.4.0 just rebuild (cmake) the Dependencies again, thats it (Maybe you have to build tensorflow again dunno). |
Thanks ! I will try again |
@Luedeke Hi again. I am new so, I apologize for the silly question. How do I get gcc/g++ 4.8.5 and then switch from 5.4. I currently have gcc/g++ 5.4. Do I need to uninstall 5.4 then install 4.8.5 or is there some other way? |
@Abdul-Mukit No Problem, I'm also new. This nice linux command was helpful for me: sudo apt-get install gcc-4.8 The 10 and 30 are priorities for the auto config which you will se after this step. sudo update-alternatives --config gcc sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 10 sudo update-alternatives --config g++ #Now test it with: |
@Luedeke Compile and report such errors: It reminds me that I can't find nvcc, but I can execute nvcc command under terminal. Do you know why? |
@yuzw213 how did you build Tensorflow ? which cuda version have you installed? I recommend you to install tensorflow from source with r1.8 and with Cuda 9,0. I had a similiar error, because of Tensorflow. |
Thank you ! |
Installation guide for beginners! IMPORTANT! MORE OTHER IMFORMATIONS FROM Kaju-Bubanja MAYBE HERE: https://github.com/Kaju-Bubanja/PoseCNN/tree/docu_updated I didnt trained it i only used it 1 time. Atm I'm trying to use the new CNN also from Xiang from here: https://github.com/NVlabs/Deep_Object_Pose utor from PoseCNN: yuxng commented on May 30 #------------------------------------------------------------------------------------------------------------------ #------------------------------------------------------------------------------------------------------------------ virtualenv /home/USER/python-test #Always in a new terminal or after restart! #------------------------------------------------------------------------------------------------------------------ #------------------------------------------------------------------------------------------------------------------ #important not enum! install enum34! git clone https://github.com/tensorflow/tensorflow.git #The repo defaults to the master development branch. You can also checkout a release branch to build: #To test your copy of the source tree, run the following test for versions r1.12 and before (this may take a #while): #For versions after r1.12 (like master), run the following: #after: #TF from source: https://www.tensorflow.org/install/source #Bazel build options #The official TensorFlow packages are built with GCC 4 and use the older ABI. #Build the package ./bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg pip install /tmp/tensorflow_pkg/tensorflow-1.8.0-cp27-cp27mu-linux_x86_64.whl #thats it ! #------------------------------------------------------------------------------------------------------------------ sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116 sudo apt-get update sudo apt-get install ros-kinetic-desktop-full apt-cache search ros-kinetic sudo rosdep init echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc sudo apt install python-rosinstall python-rosinstall-generator python-wstool build-essential #------------------------------------------------------------------------------------------------------------------ sudo apt-get install gcc-4.8 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 10 sudo update-alternatives --config gcc sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 10 sudo update-alternatives --config g++ #Now test it with: #------------------------------------------------------------------------------------------------------------------ wget https://bitbucket.org/eigen/eigen/get/3.3.0.zip #------------------------------------------------------------------------------------------------------------------ #-Add nanoflann to the include dirs in cmake and sohpus to the include and link dirs wget https://github.com/jlblancoc/nanoflann/archive/ad7547f4e6beb1cdb3e360912fd2e352ef959465.zip extrakt ad7547f4e6beb1cdb3e360912fd2e352ef959465.zip sudo apt-get install build-essential cmake libgtest-dev libeigen3-dev #maybe not necesesary if you isntalled eigen from source already? #------------------------------------------------------------------------------------------------------------------ wget https://github.com/stevenlovegrove/Pangolin/archive/1ec721d59ff6b799b9c24b8817f3b7ad2c929b83.zip #Required Dependencies (deb) sudo apt-get install libglew-devsudo apt-get install libglew-dev #CMake (for build environment) (deb) sudo apt-get install cmakesudo apt-get install cmake #Recommended Dependencies #Optional Dependencies for video input #DC1394 (For firewire input) #libuvc (For cross-platform webcam video input via libusb) #libjpeg, libpng, libtiff, libopenexr (For reading still-image sequences) #OpenNI / OpenNI2 (For Kinect / Xtrion / Primesense capture) #DepthSense SDK #Doxygen for generating html / pdf documentation. cd Pangolin mkdir build #If you would like to build the documentation and you have Doxygen installed, you can execute: #------------------------------------------------------------------------------------------------------------------ #------------------------------------------------------------------------------------------------------------------ #------------------------------------------------------------------------------------------------------------------ #------------------------------------------------------------------------------------------------------------------ #Building #Shell #-Running the demo-------------------------------------------------------------------------------------------- ./experiments/scripts/demo.sh #It will automatically use gpuid 0! #-Running on the YCB-Video dataset-------------------------------------------------------------------------- cd $ROOT/data/LOV #Training and testing on the YCB-Video dataset #training #testing #------------------------------------------------------------------------------------------------------------------#My pip list aid output form my env folder: ------------------------------------------------------------------- #Package Version |
The most correct one |
Hello,
If i do sh make.sh I'm getting the following error:
but: build computing label layer
So is this the normal behavior or did i miss something? I dont think so, but how can i resolve that?
I installed opencv with pip:
After that I get with: ./experiments/scripts/demo.sh $GPU_ID this error:
/gpu:0
Traceback (most recent call last):
File "./tools/demo.py", line 118, in from networks.factory import get_network
File "/home/nils/test/PoseCNN/tools/../lib/networks/init.py", line 8, in
from .vgg16 import vgg16
File "/home/nils/test/PoseCNN/tools/../lib/networks/vgg16.py", line 2, in
from networks.network import Network
File "/home/nils/test/PoseCNN/tools/../lib/networks/network.py", line 17, in
import hough_voting_layer.hough_voting_op as hough_voting_op
File "/home/nils/test/PoseCNN/tools/../lib/hough_voting_layer/hough_voting_op.py", line 5, in
_hough_voting_module = tf.load_op_library(filename)
File "/home/nils/test/local/lib/python2.7/site-packages/tensorflow/python/framework/load_library.py", line 56, in load_op_library
lib_handle = py_tf.TF_LoadLibrary(library_filename)
tensorflow.python.framework.errors_impl.NotFoundError: /home/nils/test/PoseCNN/tools/../lib/hough_voting_layer/hough_voting.so: cannot open shared object file: No such file or directory
Kinect_fusion build succesfully, if i build synthesize:
(test) nils@Nils-Desktop-U:~/test/PoseCNN/lib/synthesize/build$ cmake ..
-- OpenCV ARCH:
-- OpenCV RUNTIME:
-- OpenCV STATIC: ON
CMake Warning at /home/nils/test/lib/python2.7/site-packages/cv2/OpenCVConfig.cmake:166 (message):
Found OpenCV Windows Pack but it has no binaries compatible with your
configuration.
You should manually point CMake variable OpenCV_DIR to your build of OpenCV
library.
Call Stack (most recent call first):
CMakeLists.txt:28 (find_package)
CMake Error at CMakeLists.txt:28 (find_package):
Found package configuration file:
but it set OpenCV_FOUND to FALSE so package "OpenCV" is considered to be
NOT FOUND.
-- Configuring incomplete, errors occurred!
See also "/home/nils/test/PoseCNN/lib/synthesize/build/CMakeFiles/CMakeOutput.log".
See also "/home/nils/test/PoseCNN/lib/synthesize/build/CMakeFiles/CMakeError.log".
Thx for your help.
The text was updated successfully, but these errors were encountered: