GithubHelp home page GithubHelp logo

Compiler errors about badslam HOT 6 CLOSED

eth3d avatar eth3d commented on July 18, 2024
Compiler errors

from badslam.

Comments (6)

nonlinear1 avatar nonlinear1 commented on July 18, 2024

I have solve this problem. change cmake to the latest version 3.15.1. everything is OK

from badslam.

HTLife avatar HTLife commented on July 18, 2024

Even if I upgrade the CMake to CMake version 3.15.3, the error still exists.
@puzzlepaint Do you aware of any possible solutions?
I found that you mention we should install CUDA SDK here. What does this mean? CUDA Toolkit ?
However, even I already install CUDA 10.1 the compilation doesn't work.

Hardware

  • GPU: NVidia GTX 1070

Software

  • OS: Ubuntu 18.04
  • CUDA: 10.1
  • CMake: 3.15.3

NVCC version

nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Sun_Jul_28_19:07:16_PDT_2019
Cuda compilation tools, release 10.1, V10.1.243

Warring message from cmake:

$ cmake -DSCSDK_ROOT=k4a -DSCSDK_TARGET_ARCH=x86_64 -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_CUDA_FLAGS="-arch=sm_61" ..-- 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
-- Looking for a CUDA compiler
-- Looking for a CUDA compiler - /usr/local/cuda/bin/nvcc
-- The CUDA compiler identification is NVIDIA 10.1.243
-- Check for working CUDA compiler: /usr/local/cuda/bin/nvcc
-- Check for working CUDA compiler: /usr/local/cuda/bin/nvcc -- works
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so   
-- Found Eigen3: /usr/include/eigen3 (Required is at least version "2.91.0") 
-- Found Boost: /usr/include (found version "1.65.1") found components:  serialization filesystem system 
-- Found PythonInterp: /usr/bin/python (found version "2.7.15") 
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11") 
-- Performing Test HAVE_LD_VERSION_SCRIPT
-- Performing Test HAVE_LD_VERSION_SCRIPT - Success
-- Symbol prefix: 
-- Found GLEW: /usr/include (found version "2.0.0") 
-- Found OpenCV: /usr/local (found version "3.4.6") 
-- Found X11: /usr/include   
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
CMake Error at applications/badslam/CMakeLists.txt:20 (set_target_properties):
  set_target_properties Can not find target to add properties to:
  Dependencies


-- The following OPTIONAL packages have been found:

 * PythonInterp
 * realsense2
 * k4a
 * k4arecord

-- The following REQUIRED packages have been found:

 * Boost
 * ZLIB
 * GLEW
 * Qt5Core
 * Qt5Gui (required version >= 5.9.5)
 * Qt5OpenGL
 * Qt5Widgets
 * Qt5 (required version >= 5.8)
 * Qt5X11Extras
 * SuiteSparse
 * Eigen3
 * g2o
 * OpenGL
 * Threads
 * X11
 * OpenCV
 * DLib
 * opengv

-- The following OPTIONAL packages have not been found:

 * Structure

-- Configuring incomplete, errors occurred!
See also "/home/jacky/code/badslam/build/CMakeFiles/CMakeOutput.log".
See also "/home/jacky/code/badslam/build/CMakeFiles/CMakeError.log".

from badslam.

nonlinear1 avatar nonlinear1 commented on July 18, 2024

Have you solve your problem?

from badslam.

HTLife avatar HTLife commented on July 18, 2024

@nonlinear1 I still have no luck to solve this problem.

from badslam.

HTLife avatar HTLife commented on July 18, 2024

This is my environment setting (docker)
https://github.com/HTLife/badslam_env

from badslam.

nonlinear1 avatar nonlinear1 commented on July 18, 2024

Do you have wechat (微信)? you can add. my wechat number is 31781410, then we can discuss your problem.

from badslam.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.