0

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

错误输出图像

剩余的输出是:

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`
4

1 回答 1

0

我相信您缺少原子库。你可以在这里找到它。将它与系统中的所有其他 c++ 包含文件放在一起。

于 2018-04-10T09:21:38.543 回答