Skip to content
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

problem re-installing open3d #441

Closed
Fred3D-tech opened this issue Jul 7, 2018 · 14 comments · Fixed by #448
Closed

problem re-installing open3d #441

Fred3D-tech opened this issue Jul 7, 2018 · 14 comments · Fixed by #448
Assignees

Comments

@Fred3D-tech
Copy link

On Ubuntu after a clone and after a clean.sh, I tried to reinstall open3d.
I had to change some values on CMakeCache.txt turning some BuILD_XXX=ON but after make -j4 I get this:
Scanning dependencies of target ShaderFileTarget
Error copying directory from "/media/argos/UbuntuData/Librairies/Open3D/src/Python/Helper/" to "/media/argos/UbuntuData/Librairies/Open3D/build/lib/.".
Python/CMakeFiles/PythonHelper.dir/build.make:57: recipe for target 'PythonHelper' failed
make[2]: *** [PythonHelper] Error 1
CMakeFiles/Makefile2:1860: recipe for target 'Python/CMakeFiles/PythonHelper.dir/all' failed
make[1]: *** [Python/CMakeFiles/PythonHelper.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs...

I thought that util/scripts/install-deps-ubuntu.sh was supposed to install all dependencies ?

@qianyizh
Copy link
Collaborator

qianyizh commented Jul 7, 2018

Can you tell me the version of Ubuntu?

@Fred3D-tech
Copy link
Author

yes:
Distributor ID: Ubuntu
Description: Ubuntu 16.04.4 LTS
Release: 16.04
Codename: xenial

@qianyizh
Copy link
Collaborator

qianyizh commented Jul 7, 2018

Let me try to reproduce the error.

@qianyizh qianyizh self-assigned this Jul 8, 2018
@qianyizh
Copy link
Collaborator

qianyizh commented Jul 8, 2018

Yeah, there was a bug in util/scripts/install-deps-ubuntu.sh. I am fixing it via #444

Can you try to run this from a fresh installed Ubuntu 16.04.

> cd ~
> sudo apt-get update
> sudo apt-get upgrade
> sudo apt-get install git cmake
> sudo apt-get install \
 		xorg-dev \
 		libglu1-mesa-dev \
 		libgl1-mesa-glx \
 		libglew-dev \
 		libglfw3-dev \
 		libjsoncpp-dev \
 		libeigen3-dev \
 		libpng-dev \
 		libjpeg-dev \
 		python-dev \
 		python3-dev \
 		python-tk \
 		python3-tk
> sudo apt-get install libpng16-dev
> cd ~/Open3D
> mkdir build
> cd build
> cmake ../src
> make -j

I just tried it on a virtual machine and it worked. Let me know if it works for you.

@Fred3D-tech
Copy link
Author

Well, I'm sorry but I can't make a fresh install at the moment.
Then I tried your commands and yes it solves the problem with util/scripts/install-deps-ubuntu.sh

but with make -j I got the same problem:
make -j
Error copying directory from "/media/argos/UbuntuData/Librairies/Open3D/src/Python/Helper/" to "/media/argos/UbuntuData/Librairies/Open3D/build/lib/.".
Error copying directory from "/media/argos/UbuntuData/Librairies/Open3D/src/Python/Test/" to "/media/argos/UbuntuData/Librairies/Open3D/build/lib/./Test".
[ 1%] Built target tinyfiledialogs
[ 2%] Built target EncodeShader
Python/CMakeFiles/PythonHelper.dir/build.make:57: recipe for target 'PythonHelper' failed
make[2]: *** [PythonHelper] Error 1
Python/CMakeFiles/PythonTest.dir/build.make:57: recipe for target 'PythonTest' failed
make[2]: *** [PythonTest] Error 1
CMakeFiles/Makefile2:1866: recipe for target 'Python/CMakeFiles/PythonHelper.dir/all' failed
make[1]: *** [Python/CMakeFiles/PythonHelper.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:1903: recipe for target 'Python/CMakeFiles/PythonTest.dir/all' failed
make[1]: *** [Python/CMakeFiles/PythonTest.dir/all] Error 2
[ 10%] Built target zlib
[ 10%] Built target PythonTutorial
[ 20%] Built target IO
[ 38%] Built target Core
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

@qianyizh
Copy link
Collaborator

qianyizh commented Jul 8, 2018

Umm, this is weird. I have never seen this type of error before. Looks like it fails at copying directories.

Can you first double check you have the write permission to the folder, and there is enough disk space. If it still does not work, try to make a fresh clone and run cmake and make again?

@Fred3D-tech
Copy link
Author

Fred3D-tech commented Jul 8, 2018

I have plenty of space on the disk. I checked i have write permission on the folder.
I just tried a fresh clone.
The problem is that make is looking for a directory that does not exist : "/Open3D/src/Python/Test/" .

Here is the output of cmake:
Scanning dependencies of target tinyfiledialogs
Scanning dependencies of target PythonTutorial
Scanning dependencies of target EncodeShader
Scanning dependencies of target PythonHelper
Scanning dependencies of target PythonTest
Scanning dependencies of target IO
Scanning dependencies of target Core
Error copying directory from "/media/argos/UbuntuData/Librairies/Open3D/src/Python/Test/" to "/media/argos/UbuntuData/Librairies/Open3D/build/lib/./Test".
Error copying directory from "Python/CMakeFiles/PythonTest.dir/build.make:57: recipe for target 'PythonTest' failed
/media/argos/UbuntuData/Librairies/Open3D/src/Python/Helper/make[2]: *** [PythonTest] Error 1
" to "/media/argos/UbuntuData/Librairies/Open3D/build/lib/.".
[ 0%] Building CXX object Tools/CMakeFiles/EncodeShader.dir/EncodeShader.cpp.o
CMakeFiles/Makefile2:1729: recipe for target 'Python/CMakeFiles/PythonTest.dir/all' failed
make[1]: *** [Python/CMakeFiles/PythonTest.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Python/CMakeFiles/PythonHelper.dir/build.make:57: recipe for target 'PythonHelper' failed
make[2]: *** [PythonHelper] Error 1
CMakeFiles/Makefile2:1692: recipe for target 'Python/CMakeFiles/PythonHelper.dir/all' failed
make[1]: *** [Python/CMakeFiles/PythonHelper.dir/all] Error 2
[ 1%] Building C object External/tinyfiledialogs/CMakeFiles/tinyfiledialogs.dir/tinyfiledialogs.c.o
[ 1%] Built target PythonTutorial
[ 1%] Building CXX object IO/CMakeFiles/IO.dir/ClassIO/IJsonConvertibleIO.cpp.o
[ 2%] Building CXX object IO/CMakeFiles/IO.dir/ClassIO/FeatureIO.cpp.o
[ 3%] Building CXX object IO/CMakeFiles/IO.dir/ClassIO/ImageIO.cpp.o
[ 3%] Building CXX object IO/CMakeFiles/IO.dir/ClassIO/PinholeCameraTrajectoryIO.cpp.o
[ 3%] Building CXX object IO/CMakeFiles/IO.dir/FileFormat/FileJPG.cpp.o
[ 4%] Building CXX object IO/CMakeFiles/IO.dir/ClassIO/PointCloudIO.cpp.o
[ 5%] Building CXX object IO/CMakeFiles/IO.dir/ClassIO/PoseGraphIO.cpp.o
[ 5%] Building CXX object IO/CMakeFiles/IO.dir/FileFormat/FileLOG.cpp.o
[ 6%] Building CXX object IO/CMakeFiles/IO.dir/FileFormat/FileBIN.cpp.o
[ 6%] Building CXX object IO/CMakeFiles/IO.dir/ClassIO/TriangleMeshIO.cpp.o
[ 7%] Building CXX object IO/CMakeFiles/IO.dir/FileFormat/FileJSON.cpp.o
[ 8%] Building CXX object IO/CMakeFiles/IO.dir/FileFormat/FilePCD.cpp.o
[ 8%] Building CXX object IO/CMakeFiles/IO.dir/FileFormat/FileXYZ.cpp.o
[ 9%] Building CXX object IO/CMakeFiles/IO.dir/FileFormat/FilePLY.cpp.o
[ 9%] Building C object IO/CMakeFiles/IO.dir//External/rply/rply.c.o
[ 9%] Building CXX object IO/CMakeFiles/IO.dir/FileFormat/FilePNG.cpp.o
[ 10%] Building CXX object IO/CMakeFiles/IO.dir/FileFormat/FilePTS.cpp.o
[ 11%] Building CXX object IO/CMakeFiles/IO.dir/FileFormat/FileXYZRGB.cpp.o
[ 12%] Building C object IO/CMakeFiles/IO.dir/
/External/liblzf/lzf_c.c.o
[ 13%] Building CXX object IO/CMakeFiles/IO.dir/FileFormat/FileXYZN.cpp.o
[ 13%] Building C object IO/CMakeFiles/IO.dir/__/External/liblzf/lzf_d.c.o
[ 14%] Linking CXX executable ../bin/EncodeShader
[ 14%] Built target EncodeShader
[ 15%] Building CXX object Core/CMakeFiles/Core.dir/Camera/PinholeCameraTrajectoryFactory.cpp.o
[ 15%] Building CXX object Core/CMakeFiles/Core.dir/Camera/PinholeCameraTrajectory.cpp.o
[ 15%] Building CXX object Core/CMakeFiles/Core.dir/Camera/PinholeCameraIntrinsic.cpp.o
[ 15%] Building CXX object Core/CMakeFiles/Core.dir/Geometry/ImageFactory.cpp.o
[ 16%] Building CXX object Core/CMakeFiles/Core.dir/Geometry/LineSet.cpp.o
[ 16%] Building CXX object Core/CMakeFiles/Core.dir/ColorMap/ColorMapOptimization.cpp.o
[ 18%] Building CXX object Core/CMakeFiles/Core.dir/Geometry/KDTreeFlann.cpp.o
[ 18%] Building CXX object Core/CMakeFiles/Core.dir/Geometry/DownSample.cpp.o
[ 19%] Building CXX object Core/CMakeFiles/Core.dir/Geometry/LineSetFactory.cpp.o
[ 20%] Building CXX object Core/CMakeFiles/Core.dir/Geometry/Image.cpp.o
[ 20%] Building CXX object Core/CMakeFiles/Core.dir/Geometry/EstimateNormals.cpp.o
[ 20%] Building CXX object Core/CMakeFiles/Core.dir/Geometry/PointCloudFactory.cpp.o
[ 21%] Building CXX object Core/CMakeFiles/Core.dir/Geometry/RGBDImage.cpp.o
[ 21%] Building CXX object Core/CMakeFiles/Core.dir/Geometry/RGBDImageFactory.cpp.o
[ 22%] Building CXX object Core/CMakeFiles/Core.dir/Geometry/TriangleMesh.cpp.o
[ 23%] Building CXX object Core/CMakeFiles/Core.dir/Geometry/TriangleMeshFactory.cpp.o
[ 24%] Building CXX object Core/CMakeFiles/Core.dir/Geometry/PointCloud.cpp.o
[ 25%] Building CXX object Core/CMakeFiles/Core.dir/Integration/UniformTSDFVolume.cpp.o
[ 25%] Building CXX object Core/CMakeFiles/Core.dir/Integration/ScalableTSDFVolume.cpp.o
[ 25%] Building CXX object Core/CMakeFiles/Core.dir/Odometry/Odometry.cpp.o
[ 25%] Building CXX object Core/CMakeFiles/Core.dir/Registration/ColoredICP.cpp.o
[ 26%] Building CXX object Core/CMakeFiles/Core.dir/Registration/FastGlobalRegistration.cpp.o
[ 27%] Building CXX object Core/CMakeFiles/Core.dir/Registration/Registration.cpp.o
[ 28%] Building CXX object Core/CMakeFiles/Core.dir/Registration/PoseGraphFactory.cpp.o
[ 29%] Building CXX object Core/CMakeFiles/Core.dir/Registration/CorrespondenceChecker.cpp.o
[ 30%] Building CXX object Core/CMakeFiles/Core.dir/Utility/Timer.cpp.o
[ 31%] Building CXX object Core/CMakeFiles/Core.dir/Odometry/RGBDOdometryJacobian.cpp.o
[ 31%] Building CXX object Core/CMakeFiles/Core.dir/Registration/TransformationEstimation.cpp.o
[ 31%] Building CXX object Core/CMakeFiles/Core.dir/Registration/PoseGraph.cpp.o
[ 31%] Building CXX object Core/CMakeFiles/Core.dir/Utility/Eigen.cpp.o
[ 32%] Building CXX object Core/CMakeFiles/Core.dir/Utility/FileSystem.cpp.o
[ 35%] Building CXX object Core/CMakeFiles/Core.dir/Utility/IJsonConvertible.cpp.o
[ 33%] Building CXX object Core/CMakeFiles/Core.dir/Utility/Helper.cpp.o
[ 33%] Building CXX object Core/CMakeFiles/Core.dir/Registration/GlobalOptimization.cpp.o
[ 34%] Building CXX object Core/CMakeFiles/Core.dir/Utility/Console.cpp.o
[ 35%] Building CXX object Core/CMakeFiles/Core.dir/Registration/Feature.cpp.o
[ 36%] Linking C static library ../../lib/libtinyfiledialogs.a
[ 36%] Built target tinyfiledialogs
[ 36%] Built target IO
[ 36%] Built target Core
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

@qianyizh
Copy link
Collaborator

qianyizh commented Jul 8, 2018

Ah I see. Yeah, this looks like a bug.
Can you try to create two empty folders Open3D/src/Python/Test/ and Open3D/src/Python/Helper/.
See if the build can pass.

@qianyizh
Copy link
Collaborator

qianyizh commented Jul 8, 2018

@Fred3D-tech
Copy link
Author

Ok.. it worked creating two empty folders Open3D/src/Python/Test/ and Open3D/src/Python/Helper/.

@Fred3D-tech
Copy link
Author

Fred3D-tech commented Jul 8, 2018

well... if make -j is working, their is still a problem with python biding...
when I try to bind it I got this:
cmake -DPYTHON_EXECUTABLE:FILEPATH=/usr/lib/python2.7/ ../src
CMake Deprecation Warning at CMakeLists.txt:8 (cmake_policy):
The OLD behavior for policy CMP0054 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.

-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Open3D 0.2.0.0
-- Compiling on Unix
-- Disable RealSense since it is not fully supported on Linux.
-- Using installed OpenMP
-- Using installed EIGEN3 3.2.92
-- Using installed GLEW 1.13.0
-- Using installed GLFW 3.1.2
-- Using installed LIBJPEG
-- Using installed JSONCPP 1.7.2
-- Using installed LIBPNG 1.6.20
-- Building PYBIND11 from source
-- Found PythonInterp: /usr/lib/python2.7 (found version "1.4")
CMake Error at External/pybind11/tools/FindPythonLibsNew.cmake:95 (message):
Python config failure:

Call Stack (most recent call first):
External/pybind11/tools/pybind11Tools.cmake:16 (find_package)
External/pybind11/CMakeLists.txt:33 (include)

-- Configuring incomplete, errors occurred!
See also "/media/argos/UbuntuData/Open3D/build/CMakeFiles/CMakeOutput.log".

@Fred3D-tech Fred3D-tech reopened this Jul 8, 2018
@qianyizh qianyizh reopened this Jul 9, 2018
@qianyizh
Copy link
Collaborator

qianyizh commented Jul 9, 2018

Sorry for the late reply.
You need to specify DPYTHON_LIBRARY besides DPYTHON_EXECUTABLE:FILEPATH.
See this #66

I will fix the doc.

@syncle
Copy link
Contributor

syncle commented Aug 28, 2018

Hi @ArgosVR @qianyizh: is the issue resolved?

@syncle syncle closed this as completed Aug 28, 2018
@syncle syncle reopened this Aug 28, 2018
@syncle
Copy link
Contributor

syncle commented Dec 18, 2018

Closed due to inactivity. @ArgosVR Feel free to reopen this if necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants