计算机视觉--caltech-lane-detection

源码

https://github.com/vershov/caltech-lane-detection

问题

  1. make: gengetopt: Command not found
    去gnu下载gengetopt,推荐使用华中科技大学镜像
    http://mirror.hust.edu.cn/gnu/gengetopt/
    选择合适的版本
    wget http://mirror.hust.edu.cn/gnu/gengetopt/gengetopt-2.22.tar.gz
    下载编译安装
    tar xvf gengetopt-2.22.tar.gz
    cd gengetopt-2.22
    ./configure
    make
    sudo make install
    补充说明:
    如果在编译过程中出现
    fileutils.cpp: In function ‘char* create_filename(char*, char*)’:
    fileutils.cpp:23: 错误:‘strlen’在此作用域中尚未声明
    修改src/fileutils.cpp 源文件添加头文件
    #include
    继续编译安装即可

    参考资料:http://www.gsymy.com/2015/07/30/linux_not_found_gengetopt.html

  2. 环境在ubuntu16.04下,gcc 5.4,需要添加c++11
    在59行的

    g++ $< $(CFLAGS) $(LIBS) $(LDFLAGS) -c -o $@

改为

    g++ -std=c++11 $< $(CFLAGS) $(LIBS) $(LDFLAGS) -c -o $@

即可编译成功

你可能感兴趣的:(计算机视觉)