Skip to content

CUDA compilation issue with CMake#2

Open
yaochx wants to merge 12 commits intodusty-nv:L4T-R24.1from
yaochx:master
Open

CUDA compilation issue with CMake#2
yaochx wants to merge 12 commits intodusty-nv:L4T-R24.1from
yaochx:master

Conversation

@yaochx
Copy link
Copy Markdown

@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
Copy Markdown
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