The POCO C++ Libraries are powerful cross-platform C++ libraries for building network- and internet-based applications that run on desktop, server, mobile, IoT, and embedded systems.
Cross-Compiling
With a proper CMake toolchain file (specified via the CMAKE_TOOLCHAIN_FILE
CMake variable), the POCO C++ Libraries can be cross-compiled for embedded Linux systems:
mkdir cmake-build
cd cmake-build
cmake .. -DCMAKE_TOOLCHAIN_FILE=/path/to/mytoolchain.cmake -DCMAKE_INSTALL_PREFIX=/path/to/target
cmake -DENAMLE-SAMPLE=YES
cmake --build . --target install
# make all install
OR
mkdir cmake-build-ipc2 &&
cd cmake-build-ipc2 && cmake .. -DCMAKE_TOOLCHAIN_FILE= /opt/IPCam2_Host/host/share/buildroot/toolchainfile.cmake -DCMAKE_INSTALL_PREFIX=target -DENABLE_SAMPLES=ON -DBUILD_SHARED_LIBS=ON
Installing
The POCO C++ Libraries headers and libraries can be optionally be installed by building the install
target.
cmake --build . --target install
The default install location is /usr/local/
on Linux and macOS and C:\Program Files (x64)\
on Windows and can be overridden by setting the CMAKE_INSTALL_PREFIX
CMake variable.