简体   繁体   English

无法编译库-openalpr

[英]Fail to compile library - openalpr

I'm trying to install openalpr on MacOSX El Capitan 10.11.6 and when I tried to run 'make' command, it goes smoothly until it reaches 55% which it generates following errors. 我正在尝试在MacOSX El Capitan 10.11.6上安装openalpr,当我尝试运行“ make”命令时,它运行得很顺利,直到达到55%,它会产生以下错误。 Here are the steps that I followed ( https://github.com/openalpr/openalpr/wiki/Compilation-instructions-(OS-X) ) 这是我遵循的步骤( https://github.com/openalpr/openalpr/wiki/Compilation-instructions-(OS-X)

error output image 错误输出图像

The remaining outputs are: 其余输出为:

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`

I believe you're missing the atomic library. 我相信您缺少原子库。 You can find it here . 你可以在这里找到它。 Place it alongside all the other c++ include files in your system. 将其与系统中所有其他c ++包含文件一起放置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM