无法编译库 - openalpr

时间:2018-04-10 05:16:12

标签: c++ macos openalpr

我正在尝试在MacOSX El Capitan 10.11.6上安装openalpr 当我试图运行'make'命令时,它会顺利进行,直到它达到55%,然后产生错误。以下是我遵循的步骤(https://github.com/openalpr/openalpr/wiki/Compilation-instructions-(OS-X)

error output image

其余的输出是:

In file included from /Users/Anonymous/openalpr/src/daemon.cpp:8:
In file included from 
/Users/Anonymous/openalpr/src/video/logging_videobuffer.h:5:
In file included from /usr/local/include/log4cplus/logger.h:36:
In file included from 
/usr/local/include/log4cplus/spi/appenderattachable.h:33:
In file included from /usr/local/include/log4cplus/appender.h:36:
/usr/local/include/log4cplus/helpers/pointer.h:134:21: error: cannot 
initialize object parameter of type 'const 
log4cplus::helpers::SharedObject' with an expression of type 
'log4cplus::spi::Filter'
                pointee->removeReference();
                ^~~~~~~
/usr/local/include/log4cplus/helpers/pointer.h:152:17: note: in 
instantiation of member function 
'log4cplus::helpers::SharedObjectPtr<log4cplus::spi::Filter>::~SharedObjectPtr' requested here
            SharedObjectPtr<T> (rhs).swap (*this);
                ^
/usr/local/include/log4cplus/helpers/pointer.h:147:30: note: in instantiation of member function 'log4cplus::helpers::SharedObjectPtr<log4cplus::spi::Filter>::operator=' requested here
            return this->operator = (rhs.pointee);
                         ^
   /usr/local/include/log4cplus/appender.h:211:62: note: in instantiation of member function 
   'log4cplus::helpers::SharedObjectPtr<log4cplus::spi::Filter>::operator=' requested here
    void setFilter(log4cplus::spi::FilterPtr f) { filter = f; }
                                                         ^
1 warning and 7 errors generated.
make[2]: *** [CMakeFiles/alprd.dir/daemon.cpp.o] Error 1
make[1]: *** [CMakeFiles/alprd.dir/all] Error 2
make: *** [all] Error 2`

1 个答案:

答案 0 :(得分:0)

我相信你错过了原子库。你可以找到它here。将它与系统中所有其他c ++包含文件放在一起。