[关闭]
@EVA001 2020-06-02T13:11:43.000000Z 字数 5411 阅读 328

Log

未分类


Error: Can't find ANN.. libs

prints

  1. tzloop@tzloop-GE62-6QC:~/Desktop/ProjectionExplain$ make
  2. 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
  3. In file included from main.cpp:2:
  4. In file included from ./include/vis.h:9:
  5. ./include/pointcloud.h:4:10: fatal error: 'ANN/ANN.h' file not found
  6. #include "ANN/ANN.h"
  7. ^~~~~~~~~~~
  8. 1 error generated.
  9. Makefile:32: recipe for target 'main.o' failed
  10. make: *** [main.o] Error 1

Solved

image.png

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.

Error: Cubu cmake failed

The installation of Cubu must be downloaded first, and then manually rebuild and placed in the project.link

missing: GLUI_INCLUDE_DIR GLUI_LIBRARY

  1. tzloop@tzloop-GE62-6QC:~/Desktop/rmmartins-cubu-ee034cafdaa2$ mkdir -p build && cd build && cmake .. && make install
  2. -- The C compiler identification is GNU 7.4.0
  3. -- The CXX compiler identification is GNU 7.4.0
  4. -- Check for working C compiler: /usr/bin/cc
  5. -- Check for working C compiler: /usr/bin/cc -- works
  6. -- Detecting C compiler ABI info
  7. -- Detecting C compiler ABI info - done
  8. -- Detecting C compile features
  9. -- Detecting C compile features - done
  10. -- Check for working CXX compiler: /usr/bin/c++
  11. -- Check for working CXX compiler: /usr/bin/c++ -- works
  12. -- Detecting CXX compiler ABI info
  13. -- Detecting CXX compiler ABI info - done
  14. -- Detecting CXX compile features
  15. -- Detecting CXX compile features - done
  16. -- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so
  17. -- Found GLUT: /usr/lib/x86_64-linux-gnu/libglut.so
  18. CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  19. Could NOT find GLUI (missing: GLUI_INCLUDE_DIR GLUI_LIBRARY)
  20. Call Stack (most recent call first):
  21. /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  22. cmake/FindGLUI.cmake:106 (find_package_handle_standard_args)
  23. CMakeLists.txt:8 (find_package)
  24. -- Configuring incomplete, errors occurred!
  25. 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):

  1. 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

Error: glui install failed

image.png

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.

Error: Unsupported gpu architecture ‘compute_12’

image.png

Solve

Here we need to modify the arch parameter in the Makefile, here I use compute_50 is okay.

Error: skelf.cu: pointcloud not found

Solve

Just modify the reference name of the header file inside skelf.cu. (pointcloud->PointCloud)

image.png

Error: cuda_ruantime.h not found

image.png

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.

image.png

Error: undeclared identifier of xxEXT

image.png

Because the above is an error reported by vis.app, find vis.h and modify the reference name of its header file:

image.png

After that, glui.h was not found

image.png

Copy libglui.a and glui.h to the corresponding directory of 'usr', then run again and it still repeat the undeclared error.

  1. vis.cpp:343:2: error: use of undeclared identifier 'glGenFramebuffersEXT'
  2. glGenFramebuffersEXT(2,framebuffers); //Make t...
  3. ^
  4. vis.cpp:347:2: error: use of undeclared identifier 'glBindFramebufferEXT'
  5. glBindFramebufferEXT(GL_FRAMEBUFFER_EXT,framebuffer_lum);
  6. ^
  7. vis.cpp:352:2: error: use of undeclared identifier 'glFramebufferTexture2DEXT'
  8. glFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT,GL_COLOR_ATTACHMENT...
  9. ^
  10. vis.cpp:354:2: error: use of undeclared identifier 'glBindFramebufferEXT'
  11. glBindFramebufferEXT(GL_FRAMEBUFFER_EXT,framebuffer_rgba);
  12. ^
  13. vis.cpp:359:2: error: use of undeclared identifier 'glFramebufferTexture2DEXT'
  14. glFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT,GL_COLOR_ATTACHMENT...
  15. ^
  16. ... ...

It seems that the EXT extension of a module is wrong, but I don’t know how to change it ...

Summarize the steps of rebuilding


(the second project)

Error: recompile with -fPTC / Cubu

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..

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注