Overview
Features
Download
Documentation
Community
Add-Ons & Services

Poco libraries using Raspberry Pi and Qt

Please post support and help requests here.

Poco libraries using Raspberry Pi and Qt

Postby helthans » 27 Nov 2013, 09:41

Hi,

Is it possible to compile Poco libs such that I can use them on Raspberry Pi with my Qt project? Currently I have my Qt project up and running on Raspberry Pi except for the functions using Poco. I thought that I could compile Poco directly on Raspberry Pi and just copy the compiled libs and header files to my Ubuntu machine, which does the compiling of my Qt project. I changed LIBS += -L/path/to/poco/libs/compiled/for/raspberrypi -lPocoFoundation -lPocoNet in my .pro file but am just told that "Cannot find -lPocoFoundation and -lPocoNet". Anyone knows what I'm doing wrong?

Thanks and Regards

EDIT: Ok found out that I missing adding the following to my .pro file
target.path = /home/pi/<path>/<to>/<my>/<executable>
INSTALLS += target

but still I get the following error the first time the compiler encounters a Poco include:
Poco/Net/HTTPRequestHandlerFactory.h: No such file or directory

I have added the Poco include lib to the include path but still I get the following message from the compiler:
/home/jon/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf-g++ -c -pipe -marm -mfpu=vfp -mtune=arm1176jzf-s -march=armv6zk -mabi=aapcs-linux -mfloat-abi=hard --sysroot=/mnt/rasp-pi-rootfs -g -std=c++0x -Wall -W -D_REENTRANT -fPIC -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_PLUGIN -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/local/qt5pi/mkspecs/devices/linux-rasp-pi-g++ -I../../../BeatQtPlayer/src/pocowebserverplugin -I../../../BeatQtPlayer/src -I/home/jon/tmp/BeatQtPlayer/src/pocowebserverplugin/../../external_tools/poco-1.4.6p2/lib_raspberrypi/include -I/mnt/rasp-pi-rootfs/usr/local/qt5pi/include -I/mnt/rasp-pi-rootfs/usr/local/qt5pi/include/QtNetwork -I/mnt/rasp-pi-rootfs/usr/local/qt5pi/include/QtCore -I. -I. -o pocowebserverplugin.o ../../../BeatQtPlayer/src/pocowebserverplugin/pocowebserverplugin.cpp
In file included from ../../../BeatQtPlayer/src/pocowebserverplugin/pocowebserverplugin.h:5:0,
from ../../../BeatQtPlayer/src/pocowebserverplugin/pocowebserverplugin.cpp:1:
../../../BeatQtPlayer/src/pocowebserverplugin/requesthandler.h:4:48: fatal error: Poco/Net/HTTPRequestHandlerFactory.h: No such file or directory
compilation terminated.
helthans
 
Posts: 13
Joined: 05 Nov 2013, 15:07

Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron