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

CUDA compilation issue with CMake #2

Open
wants to merge 12 commits into
base: L4T-R24.1
Choose a base branch
from

Conversation

yaochx
Copy link

@yaochx yaochx commented Sep 14, 2016

follow the tutorial
mkdir build
cd build
cmake ..
make
I got the errors I get are as follows:
`/usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h(432): error: identifier "nullptr" is undefined

/usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h(432): error: expected
a ";"

/usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h(190): error:
expected a ";"

/usr/include/c++/4.8/exception(63): error: expected a ";"

/usr/include/c++/4.8/exception(68): error: expected a ";"`

This worked for me using CUDA 7.0.74, gcc/g++ 4.8.4 and CMake 2.8.12.2

The C++11 flag should be turned on in CUDA code compilation

@dusty-nv
Copy link
Owner

dusty-nv commented Sep 14, 2016

With CUDA 7 and JetPack 2.2 / L4T R24.1, this is the branch of the repo to use: https://github.com/dusty-nv/jetson-inference/tree/L4T-R24.1

With updates to CUDA 8, JetPack 2.3 / L4T R24.2, and Ubuntu 16.04 (which is on master branch), I had to remove the nvcc c++11 flag because it started complaining about seeing the flag twice (as is also included in CXX flags for normal non-CUDA compilation).

@ghost ghost mentioned this pull request Sep 11, 2019
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 this pull request may close these issues.

2 participants