2013-11-27 2 views
1

Poco 라이브러리를 컴파일하여 Qt 프로젝트에서 Raspberry Pi에 사용할 수 있습니까? 현재 Poco를 사용하는 함수를 제외하고는 RtBree Pi에서 실행중인 Qt 프로젝트를 가지고 있습니다. 나는 Raspberry Pi에서 Poco를 직접 컴파일하고 컴파일 된 libs 및 헤더 파일을 내 Ubuntu 시스템에 복사한다고 생각했습니다. 그러면 내 Qt 프로젝트를 컴파일합니다. 포함 된 파일은Raspberry Pi와 Qt를 사용하는 Poco C++

INCLUDEPATH += /path/to/poco/libs/compiled/for/raspberrypi/include 
DEPENDPATH += /path/to/poco/libs/compiled/for/raspberrypi/include 
LIBS += -L/path/to/poco/libs/compiled/for/raspberrypi -lPocoFoundation -lPocoNet 
target.path = /home/pi/path/to/my/executable 
INSTALLS += target 

입니다.

는하지만 다음과 같은 오류를 컴파일러가 마시고 포함 발견 처음 얻을 :

/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.

답변

0

이들은 컴파일러가보고있는 포함 경로입니다. Poco/Net은 어딘가에 있습니까?

-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. 
+0

Argggh .. 나는이 주위에 재생을위한 중복 프로젝트를 만들었다 :(나무의 숲을 볼 수없는이 - 그럼 바보 .. 잘못된 프로젝트에 libs와 복사 한 나 감사를 맞춤법. 나와 시간을 낭비하는 것에 대해 유감스럽게 생각합니다. –

1

는 사용자가 설정했는지 확인을하여 올바르게 마시고 라이브러리 자체에 대한 경로가 포함되어 있습니다. Poco 내부 헤더는 루트 '/path/to/.../include/'경로가 포함 경로에 포함되도록하는 다른 디렉토리가 필요할 수 있습니다.