我正在尝试使用OpenWRT工具链交叉编译用于OpenWRT Linux环境的POCO源代码包。我已经下载了POCO源代码包,并试图交叉编译它,但是我得到的错误日志如下所示
src/Error.cpp: In static member function 'static std::string
Poco::Error::getMessage(int)': src/Error.cpp:71:55: error: invalid
conversion from 'int' to 'const char*' [-fpermissive]
return
root@OpenWrt:~/poco-1.8.1-all# ./configure --no-tests --no-samples --omit=CppUnit,Data,MongoDB,PageCompiler,Redis,Zip
root@OpenWrt:~/poco-1.8.1-all# make
In file included from include/Poco/Crypto/CipherKeyImpl.h:22:0,
from include/Poco/Crypto/CipherKey.h:22,
from sr
我一直试图在仿生海狸上安装网络责任,并遇到了很多问题。首先,我尝试了:(根据网站)
sudo add-apt-repository ppa:roggan87/nr
但是,我得到了以下错误:
E: The repository 'http://ppa.launchpad.net/roggan87/nr/ubuntu bionic
Release' does not have a Release file. N: Updating from such a repository
can't be done securely, and is therefore disabled
我试着用Makefile来做我的项目。Makefile对其他Mac的工作正常,但在我的情况下会带来错误。
产出如下:
CC kernel.cpp
In file included from kernel.cpp:13:
In file included from ./kernel.hpp:22:
In file included from /usr/local/include/Poco/JSON/Object.h:24:
In file included from /usr/local/include/Poco/JSON/Array.h:25:
In file included from /
我以前编写了一个简单的命令行程序,它使用了Poco C++ (顺便说一下,我很喜欢它)。这个程序完美地运行了几个月。
我的计算机上肯定有一些变化,因为现在当我运行程序时,我会收到以下错误。
dyld: Symbol not found: __ZN4Poco4Util11Application12handleOptionERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEESA_
Referenced from: /Users/me/bin/sqlmerge
Expected in: /usr/local/o
我在Poco库中找到了一个PocoConfig.cmake,我在/cmake/Modules下复制了它
我还在我的CMakeLists.txt中添加了:
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
现在我运行/构建/cmake ..
我不断地得到:
CMake Error at CMakeLists.txt:41 (find_package):
By not providing "FindPoco.cmake" in CMAKE_MODULE
我已经成功地用MinGW64 (MSYS2)编译了POCO库。为了构建它,我安装了Windows并将mc.exe的路径添加到PATH环境中,所以我执行了以下操作:
pacman -S mingw-w64-x86_64-cmake
# Get POCO
git clone -b master https://github.com/pocoproject/poco.git
# set Windows SDK to the PATH
export PATH="/c/Program Files (x86)/Windows Kits/10/bin/10.0.18362.0/x64:$PATH
我一直试图构建使用Poco::Application类作为基础的可执行文件,但是编译器给出了指向Poco代码的错误。
In file included from /home/mie/Poco/poco-1.4.6p4/Util/include/Poco/Util/Application.h:48:0,
from /home/mie/myproject/src/main.cpp:15:
/home/mie/Poco/poco-1.4.6p4/Foundation/include/Poco/Logger.h:152:59: error: macro "lo