Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    How to optify a QT/Madde App

    Reply
    shep | # 1 | 2010-02-22, 12:15 | Report

    Hi,

    I know there are similar posts about this and I have read them! I can't seem to get it straight in my head what you need to do to "optify" an app.

    I have modified my src.pro file
    Code:
    TARGET = myappname
    TEMPLATE = app
    SOURCES += qtmain.cpp \
        ... \ ...\ ...
    HEADERS += ...
    FORMS += ...
    
    unix {
        isEmpty(PREFIX) {
            PREFIX = /usr/local
        }
        # - Before BINDIR = $$PREFIX/bin
         #After:
    	BINDIR = /opt/maemo
        DATADIR = $$PREFIX/share
    
        DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"
    
        # MAKE INSTALL
        ...
    }
    and my .desktop file
    Code:
    ...
    (Before)
    Exec=/usr/bin/myapp
    (After)
    Exec=/opt/maemo/myapp
    
    ...
    Is this all I need to do? What is optimal about this???

    I have attached the full package code too.

    Thanks,

    Shep

    Edit | Forward | Quote | Quick Reply | Thanks
    Attached Files
    File Type: zip sitrep-0.4.zip (71.9 KB, 74 views)

     
    krk969 | # 2 | 2010-02-22, 12:22 | Report

    Originally Posted by shep View Post
    Hi,

    I know there are similar posts about this and I have read them! I can't seem to get it straight in my head what you need to do to "optify" an app.

    Is this all I need to do? What is optimal about this???

    I have attached the full package code too.

    Thanks,

    Shep
    Optification in simple terms is to ensure your app is installed in the /home/opt partition and not the rootfs partition.
    Also any configurations files or data files installed/generated must be in the opt partition.

    Seems like you are ready above !

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by krk969; 2010-02-22 at 14:10.
    The Following 3 Users Say Thank You to krk969 For This Useful Post:
    Blaizzen, danielwilms, shep

     
vBulletin® Version 3.8.8
Normal Logout