bugs in compile
See original GitHub issueHi,
When I try to compile the normalSpeed, I got the error:
(FFB6D) lzl@lzl:~/Desktop/FFB6D/normalSpeed/normalSpeed$ python3 setup.py install --user running install running bdist_egg running egg_info creating normalSpeed.egg-info writing normalSpeed.egg-info/PKG-INFO writing dependency_links to normalSpeed.egg-info/dependency_links.txt writing top-level names to normalSpeed.egg-info/top_level.txt writing manifest file 'normalSpeed.egg-info/SOURCES.txt' reading manifest file 'normalSpeed.egg-info/SOURCES.txt' writing manifest file 'normalSpeed.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg running install_lib running build_ext -- The C compiler identification is GNU 7.5.0 -- The CXX compiler identification is GNU 7.5.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 -- Found OpenCV: /usr/local (found suitable version "3.4.5", minimum required is "3") -- Found PythonLibs: /home/lzl/miniconda3/envs/FFB6D/lib/libpython3.6m.so (found suitable version "3.6.13", minimum required is "3") -- Found PythonInterp: /home/lzl/miniconda3/envs/FFB6D/bin/python3 (found version "3.6.13") -- Found PythonLibs: /home/lzl/miniconda3/envs/FFB6D/lib/libpython3.6m.so -- Performing Test HAS_FLTO -- Performing Test HAS_FLTO - Success -- Found pybind11: /home/lzl/.local/include (found version "2.9.2") -- Found NumPy: /home/lzl/.local/lib/python3.6/site-packages/numpy/core/include (found version "1.19.5") -- Configuring done -- Generating done -- Build files have been written to: /home/lzl/Desktop/FFB6D/normalSpeed/normalSpeed/build/temp.linux-x86_64-3.6 Scanning dependencies of target normalSpeed [ 25%] Building CXX object CMakeFiles/normalSpeed.dir/normal.cpp.o [ 50%] Building CXX object CMakeFiles/normalSpeed.dir/pybind11.cpp.o In file included from /home/lzl/Desktop/FFB6D/normalSpeed/normalSpeed/normal.cpp:1:0: /home/lzl/Desktop/FFB6D/normalSpeed/normalSpeed/normal.hpp:5:10: fatal error: opencv2/rgbd.hpp: No such file or directory #include <opencv2/rgbd.hpp> ^~~~~~~~~~~~~~~~~~ compilation terminated. CMakeFiles/normalSpeed.dir/build.make:62: recipe for target 'CMakeFiles/normalSpeed.dir/normal.cpp.o' failed make[2]: *** [CMakeFiles/normalSpeed.dir/normal.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... In file included from /home/lzl/Desktop/FFB6D/normalSpeed/normalSpeed/pybind11.cpp:4:0: /home/lzl/Desktop/FFB6D/normalSpeed/normalSpeed/normal.hpp:5:10: fatal error: opencv2/rgbd.hpp: No such file or directory #include <opencv2/rgbd.hpp> ^~~~~~~~~~~~~~~~~~ compilation terminated. CMakeFiles/normalSpeed.dir/build.make:86: recipe for target 'CMakeFiles/normalSpeed.dir/pybind11.cpp.o' failed make[2]: *** [CMakeFiles/normalSpeed.dir/pybind11.cpp.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/normalSpeed.dir/all' failed make[1]: *** [CMakeFiles/normalSpeed.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2 Traceback (most recent call last): File "setup.py", line 67, in <module> zip_safe=False, File "/home/lzl/miniconda3/envs/FFB6D/lib/python3.6/site-packages/setuptools/__init__.py", line 153, in setup return distutils.core.setup(**attrs) File "/home/lzl/miniconda3/envs/FFB6D/lib/python3.6/distutils/core.py", line 148, in setup dist.run_commands() File "/home/lzl/miniconda3/envs/FFB6D/lib/python3.6/distutils/dist.py", line 955, in run_commands self.run_command(cmd) File "/home/lzl/miniconda3/envs/FFB6D/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/lzl/miniconda3/envs/FFB6D/lib/python3.6/site-packages/setuptools/command/install.py", line 67, in run self.do_egg_install() File "/home/lzl/miniconda3/envs/FFB6D/lib/python3.6/site-packages/setuptools/command/install.py", line 109, in do_egg_install self.run_command('bdist_egg') File "/home/lzl/miniconda3/envs/FFB6D/lib/python3.6/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/home/lzl/miniconda3/envs/FFB6D/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/lzl/miniconda3/envs/FFB6D/lib/python3.6/site-packages/setuptools/command/bdist_egg.py", line 164, in run cmd = self.call_command('install_lib', warn_dir=0) File "/home/lzl/miniconda3/envs/FFB6D/lib/python3.6/site-packages/setuptools/command/bdist_egg.py", line 150, in call_command self.run_command(cmdname) File "/home/lzl/miniconda3/envs/FFB6D/lib/python3.6/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/home/lzl/miniconda3/envs/FFB6D/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/lzl/miniconda3/envs/FFB6D/lib/python3.6/site-packages/setuptools/command/install_lib.py", line 11, in run self.build() File "/home/lzl/miniconda3/envs/FFB6D/lib/python3.6/distutils/command/install_lib.py", line 107, in build self.run_command('build_ext') File "/home/lzl/miniconda3/envs/FFB6D/lib/python3.6/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/home/lzl/miniconda3/envs/FFB6D/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "setup.py", line 33, in run self.build_extension(ext) File "setup.py", line 58, in build_extension subprocess.check_call(['cmake', '--build', '.'] + build_args, cwd=self.build_temp) File "/home/lzl/miniconda3/envs/FFB6D/lib/python3.6/subprocess.py", line 311, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '-j2']' returned non-zero exit status 2.
I have installed Opencv3.4.5.
Issue Analytics
- State:
- Created a year ago
- Comments:20
Top GitHub Comments
Hi, my pytorch version is 1.4.0, and I got errors when compile RanDLA😂
Hi, I have received it. Thank you very much!