Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 744 Bytes

Build.md

File metadata and controls

20 lines (16 loc) · 744 Bytes

Building problems and solutions

  1. fatal error: cuda_runtime.h: No such file or directory

    CPATH=/path/to/your/cuda/include ./make.sh 

    reference

  2. error: ‘for’ loop initial declarations are only allowed in C99 mode;
    CompileError: command 'gcc' failed with exit status 1

    gcc version should >= 5.4

    sudo add-apt-repository ppa:ubuntu-toolchain-r/test
    sudo apt-get update
    sudo apt-get install gcc-5 g++-5
    
    sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5

    reference