Active Topics

 


Reply
Thread Tools
Posts: 27 | Thanked: 8 times | Joined on Jan 2009 @ Singapore
#1
Hi All,
I install the latest Maemo 5 SDK Karmic desktop image from http://tablets-dev.nokia.com/maemo-d...-downloads.php. After struggling with probleoms for open vmware tools installation and other scratchbox confiuration, I can run Qt hello world sample in ESBOX.
But the issues arise when I dig into programming through Qt and Maemo API.
1. Where is Qt header files in scratchbox? I see following in ESBOX include path setting:
Code:
/scratchbox/users/maemo/targets/FREMANTLE_X86/usr/include/qt4
/scratchbox/users/maemo/targets/FREMANTLE_X86/usr/include/qt4/QtCore
/scratchbox/users/maemo/targets/FREMANTLE_X86/usr/include/qt4/QtGui
I check these folders and can't find them in the Freemantle_X86 folder ever! But I check with
Code:
apt-get install libqt4-gui
It tells that the latest libqt4-gui has been installed in scratchbox. So where is the header file that libqt4-gui?

2. I follow the examples in "Qt for Maemo Developer's Guide v0.5 Beta" wiki.forum.nokia.com/.../File:Qt_for_Maemo_Developers_Guide_v0_5_Beta.pdf. I choose the simple LIBCITYINFO example in Chapter 5 "Using Maemo APIs in Qt applications". I check the .pro files:
Code:
TEMPLATE = app
TARGET =
DEPENDPATH += .
INCLUDEPATH += . /usr/include/glib-2.0/glib /usr/include/glib-2.0/ /usr/lib/glib-2.0/include
LIBS += -lcityinfo0 -lglib-2.0
# Input
HEADERS += QCityInfoWidget.h
SOURCES += main.cpp QCityInfoWidget.cpp
In scratchbox I can find glib-2.0/glib folder. But can't glib-2.0/usr/lib/glib-2.0/include. Nor the header file "cityinfo.h". Obviously the compiling fails.

I search for the issues and can't find very clear resolution. Can anyone help? Thanks.

regards,
pigling
 
Posts: 180 | Thanked: 76 times | Joined on May 2010
#2
You have to install libqt4-dev.
 
sampppa's Avatar
Posts: 166 | Thanked: 191 times | Joined on Dec 2007 @ Oulu, Finland
#3
inside scratchbox: fakeroot apt-get install libqt4-dev
 
Posts: 27 | Thanked: 8 times | Joined on Jan 2009 @ Singapore
#4
Originally Posted by sampppa View Post
inside scratchbox: fakeroot apt-get install libqt4-dev
In fact, I have tried that twice. Each time it will shows that the latest libqt4-dev has already been installed in scratchbox. But I can't see any header file folder for qt4 after the first time trying. It is very odd that the header file folder appears after second try. It seems that the latest libraries have been installed in Maemo SDK image but the header files disappear.

Anyway, I can now compile the project. Thanks for all your help.
 
Reply


 
Forum Jump


All times are GMT. The time now is 10:14.