VLOGroup / dvs-reconstruction

This repository provides software to our publication "Real-Time Intensity-Image Reconstruction for Event Cameras Using Manifold Regularisation", BMVC 2016
GNU Lesser General Public License v3.0
54 stars 18 forks source link

the suggested config to try this project? #5

Closed raymond00000 closed 7 years ago

raymond00000 commented 7 years ago

HI,

I spended few weeks but still I cannot install IMAGEUTILITIES. I decide to start everything from scratch again. Can you recommend the ubuntu version, openCV version, cuda version, that proved be working config for install this project?

Thanks.

reini1305 commented 7 years ago

Hi, I'm sorry to hear that, ususally Imageutilities should be much easier to install. We are using 14.04 and 16.04 with OpenCV 3.x (some installed it from source, but you can also use the built-in version of 16.04, the one of 14.04 is too old), CMake 3.2 or bigger.

The problem with your machine seems to be that OpenCV can not be found by CMake. If I do ccmake instead of cmake, I can see the following set variable: OpenCV_DIR=/usr/local/share/OpenCV. How does it look on your machine?

And since this has nothing to do with this repo, it would be nice if we could go on in https://github.com/VLOGroup/imageutilities/issues/5 and close this issue here.

raymond00000 commented 7 years ago

ok, so i will use 16.04 for OpenCV, which version you are using? I found that if I use OpenCV3.1, I have to choose a branch that support cuda 8.0?

You are using CUDA 8? or 7.5?

Many thanks for advice. I really have to make this works!! thanks.

reini1305 commented 7 years ago

I'm using a self-compiled version of Opencv 3.2 and CUDA 8 on Ubuntu 16.04.

raymond00000 commented 7 years ago

OK, for opencv 3.2,

I will refer to this guide: http://docs.opencv.org/trunk/d7/d9f/tutorial_linux_install.html

I will run this to cmake. cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local .. -D BUILD_SHARED_LIBS=ON

Do you foresee that above steps will lead a failure? Thank a lot.

reini1305 commented 7 years ago

This should work, I also built it with default parameters.

raymond00000 commented 7 years ago

cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local .. -D BUILD_SHARED_LIBS=ON

better to add this too? -D BUILD_SHARED_LIBS=ON

thanks.

reini1305 commented 7 years ago

Yes, if it is not enabled by default.

raymond00000 commented 7 years ago

ok, i will try from scratch and let me know the result, thank a lot.

raymond00000 commented 7 years ago

16.04.2-desktop-amd64.iso , you are using 16.04.2?

reini1305 commented 7 years ago

14.04 but 16.04 will be fine

raymond00000 commented 7 years ago

i am still installing new OS

my ccmake returned this, IU_USE_GUI is OFF ...

CMAKE_BUILD_TYPE
CMAKE_INSTALL_PREFIX /usr/local
CUDA_HOST_COMPILER /usr/bin/cc
CUDA_SDK_ROOT_DIR CUDA_SDK_ROOT_DIR-NOTFOUND
CUDA_TOOLKIT_ROOT_DIR /usr/local/cuda
CUDA_USE_STATIC_CUDA_RUNTIME ON
CUDA_rt_LIBRARY /usr/lib/x86_64-linux-gnu/librt.so
Eigen3_DIR Eigen3_DIR-NOTFOUND
IU_BUILD_STATIC OFF
IU_INSTALL_LOCAL ON
IU_USE_GUI OFF
IU_USE_IO ON
IU_USE_MATH ON
IU_USE_NDARRAY ON
OpenCV_DIR /usr/local/share/OpenCV
Qt5Core_DIR Qt5Core_DIR-NOTFOUND
Qt5OpenGL_DIR Qt5OpenGL_DIR-NOTFOUND

wait, let me update something, CUDA_SDK_ROOT_DIR..

raymond00000 commented 7 years ago

export IMAGEUTILITIES_ROOT=~/dvs/dvs-reconstruction/imageutilities export CUDA_SDK_ROOT_DIR=/usr/local/cuda/samples export OpenCV_DIR=/usr/local/share/OpenCV

~/dvs/dvs-reconstruction/imageutilities/build$ ccmake . ccmake .

CMAKE_BUILD_TYPE
CMAKE_INSTALL_PREFIX /home/lscm/dvs/dvs-reconstruction/imageutilit CUDA_HOST_COMPILER /usr/bin/cc
CUDA_SDK_ROOT_DIR CUDA_SDK_ROOT_DIR-NOTFOUND
CUDA_TOOLKIT_ROOT_DIR /usr/local/cuda
CUDA_USE_STATIC_CUDA_RUNTIME ON
CUDA_rt_LIBRARY /usr/lib/x86_64-linux-gnu/librt.so
Eigen3_DIR Eigen3_DIR-NOTFOUND
IU_BUILD_STATIC OFF
IU_INSTALL_LOCAL ON
IU_USE_GUI OFF
IU_USE_IO ON
IU_USE_MATH ON
IU_USE_NDARRAY ON
OpenCV_DIR /usr/local/share/OpenCV
Qt5Core_DIR Qt5Core_DIR-NOTFOUND
Qt5OpenGL_DIR Qt5OpenGL_DIR-NOTFOUND

but i got this:

:/usr/local/cuda/samples$ ls 0_Simple 2_Graphics 4_Finance 6_Advanced common Makefile 1_Utilities 3_Imaging 5_Simulations 7_CUDALibraries EULA.txt

but i still got: CUDA_SDK_ROOT_DIR CUDA_SDK_ROOT_DIR-NOTFOUND

reini1305 commented 7 years ago

Please set CUDA_SDK_ROOT_DIR directly within ccmake

raymond00000 commented 7 years ago

yes, i now tried to set CUDA_SDK_ROOT_DIR directly , and IU_USE_GUI ON directly, hope I can build it, I am really appreciated for your advice! many thanks.

raymond00000 commented 7 years ago

seems like i cannot change IU_USE_GUI ON as "generate" set it back to off..

reini1305 commented 7 years ago

This means that either QT5 or OpenCV have not been found.

reini1305 commented 7 years ago

Let me move this thread to https://github.com/VLOGroup/imageutilities/issues/5