@EVA001
2020-06-02T13:11:43.000000Z
字数 5411
阅读 328
未分类
prints
tzloop@tzloop-GE62-6QC:~/Desktop/ProjectionExplain$ make
clang++ -c -I. -Iinclude -O3 -g -m64 -I../CUBu -I../Geometry/tsANN/include -I../Geometry/Triangle -I/Developer/NVIDIA/CUDA-6.0/include -I/Developer/NVIDIA/CUDA-6.0/samples/common/inc -stdlib=libstdc++ -o main.o main.cpp
In file included from main.cpp:2:
In file included from ./include/vis.h:9:
./include/pointcloud.h:4:10: fatal error: 'ANN/ANN.h' file not found
#include "ANN/ANN.h"
^~~~~~~~~~~
1 error generated.
Makefile:32: recipe for target 'main.o' failed
make: *** [main.o] Error 1
Solved
Pay attention to check the source code of the project, whether it is called directly or depends on the compilation environment. The former needs to put the module into the project after the construction is completed, while the latter only needs to install the corresponding module in the system, and the library will be called when the program runs.
The installation of Cubu must be downloaded first, and then manually rebuild and placed in the project.link。
missing: GLUI_INCLUDE_DIR GLUI_LIBRARY
tzloop@tzloop-GE62-6QC:~/Desktop/rmmartins-cubu-ee034cafdaa2$ mkdir -p build && cd build && cmake .. && make install
-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.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
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so
-- Found GLUT: /usr/lib/x86_64-linux-gnu/libglut.so
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find GLUI (missing: GLUI_INCLUDE_DIR GLUI_LIBRARY)
Call Stack (most recent call first):
/usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
cmake/FindGLUI.cmake:106 (find_package_handle_standard_args)
CMakeLists.txt:8 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/tzloop/Desktop/rmmartins-cubu-ee034cafdaa2/build/CmakeFiles/CmakeOutput.log".
Solve
Cubu has dependencies on other modules, it is best to install other modules first. Here install them directly with one command (then it will be okay):
tzloop@tzloop-GE62-6QC:~$ sudo apt-get install libtriangle-dev libann-dev libann-dev libfreeimage-dev libglew-dev libboost-all-dev libftgl-dev libfreetype6-dev libeigen3-dev
Solve
During the process, there was a failure to install libglui-dev. I found that Ubuntu does not provide this module anymore, so I can only go to github to download the source code and build it manually. The download version is glui-2.35. link
After download, enter its root directory, because it is also built by Makefile, here just use 'make' directly:
Same resolution with the module of ANN/Triangle/Cubu.
Solve
Here we need to modify the arch parameter in the Makefile, here I use compute_50 is okay.
Solve
Just modify the reference name of the header file inside skelf.cu. (pointcloud->PointCloud)
Solve
This is caused by the Cuda path configuration error. Check the cuda path in the makefile and modify the path corresponding to the local environment. The CUDALIB path should also be modified accordingly.
Because the above is an error reported by vis.app, find vis.h and modify the reference name of its header file:
After that, glui.h was not found
Copy libglui.a and glui.h to the corresponding directory of 'usr', then run again and it still repeat the undeclared error.
vis.cpp:343:2: error: use of undeclared identifier 'glGenFramebuffersEXT'
glGenFramebuffersEXT(2,framebuffers); //Make t...
^
vis.cpp:347:2: error: use of undeclared identifier 'glBindFramebufferEXT'
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT,framebuffer_lum);
^
vis.cpp:352:2: error: use of undeclared identifier 'glFramebufferTexture2DEXT'
glFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT,GL_COLOR_ATTACHMENT...
^
vis.cpp:354:2: error: use of undeclared identifier 'glBindFramebufferEXT'
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT,framebuffer_rgba);
^
vis.cpp:359:2: error: use of undeclared identifier 'glFramebufferTexture2DEXT'
glFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT,GL_COLOR_ATTACHMENT...
^
... ...
It seems that the EXT extension of a module is wrong, but I don’t know how to change it ...
The compilation is complete, but the linking error occurs. Here, I speculate that the original static link file (with the source code) does not work properly on my machine. I need to recompile it and generate it again. Then most of the errors disappeared, but new errors appeared, as follows:
There is a problem with 'graphdrawing', and also 'Cubu'. I suspect that it's the static link library libcubu.a caused this problem, but after I recompile the new file generated to replace it, the following error will appear,
I suspected that the version of Cubu does not match here, and the compilation fails. With the old Cubu include folder + newly compiled libcubu.a, the error is still reappear:
With the new project + the original libcubu.a (from another project), the error will reappear.
Stuck..