Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    where is maemo 5 api and qt 4.6 header files in latest Maemo SDK image

    Reply
    pigling | # 1 | 2010-07-25, 06:45 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Diph | # 2 | 2010-07-25, 17:11 | Report

    You have to install libqt4-dev.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    sampppa | # 3 | 2010-07-26, 09:14 | Report

    inside scratchbox: fakeroot apt-get install libqt4-dev

    Edit | Forward | Quote | Quick Reply | Thanks

     
    pigling | # 4 | 2010-07-27, 03:35 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
vBulletin® Version 3.8.8
Normal Logout