Results 1 to 4 of 4

Thread: Two question about create an application.

  1. #1
    Join Date
    Feb 2006
    Posts
    6
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Two question about create an application.

    In Qtopia4.2.0 phone edition, in the game folder,
    it contains "fifteen", "snake", "minesweep", and "qasteroids" 4 games.
    I create a folder "GuessNumber", and implement my game in the folder.
    I can "make", and "make install" the "GuessNumber"(my creation game) into image folder,
    but I try to clean build(make clean), then use "configure, make , make install",
    for a long time , I check the image folder, I can't see the "GuessNumber" application.

    (1)the question is when I want to add a new application into Qtopia4.2.0, which steps I should
    do first, or I need add some script or modify some file to let "configure" parser correctly.

    (2)Maybe I find a "configure" script bug, this bug will let system crash when you make code.

    the below is qtopia4.2.0 fifteen game .pro file , when I modify the TARGET name to *list,
    then run "../../../bin/qtopiamake" create Makefile, then run "make", ==> it will infinite loop and system crash. but if I use any other TARGET name no contain "list" keyword , it's OK.

    [HTML]
    qtopia_project(qtopia app)
    TARGET=fifteen ==> modify to ftmlist
    CONFIG+=qtopia_main no_quicklaunch

    HEADERS = fifteen.h
    SOURCES = fifteen.cpp main.cpp

    desktop.files=$$QTOPIA_DEPOT_PATH/apps/Games/fifteen.desktop
    desktop.path=/apps/Games
    desktop.hint=desktop
    help.source=$$QTOPIA_DEPOT_PATH/help
    help.files=fifteen.html
    help.hint=help
    pics.files=$$QTOPIA_DEPOT_PATH/pics/fifteen/*
    pics.path=/pics/fifteen
    pics.hint=pics
    INSTALLS+=desktop help pics

    pkg.desc=Try to get the fifteen pieces in order by sliding them around.
    pkg.domain=window,games,docapi,cardreader
    [/HTML]

    Best Regards
    Thanks~
    K.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Two question about create an application.

    Why do you run configure, make and make install after compiling your app? This will cause Qtopia to be rebuilt, nothing more... I think you should build your application outside Qtopia build tree and then copy it to the rest of Qtopia binaries before uploading them to the phone.

  3. #3
    Join Date
    Feb 2006
    Posts
    6
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Two question about create an application.

    Quote Originally Posted by wysota View Post
    Why do you run configure, make and make install after compiling your app? This will cause Qtopia to be rebuilt, nothing more... I think you should build your application outside Qtopia build tree and then copy it to the rest of Qtopia binaries before uploading them to the phone.
    Thanks for your reponse ~
    I am doing a project that will added a lot of applications, and many of people create their application each other.
    So I hope that each one can run "configure , make , make install" then all thing is OK.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Two question about create an application.

    I think you don't understand - configure, make and make install don't do anything with your applications, they only build and install the development environment (Qtopia).

    When you create a new application, you don't have to "rebuild" Qtopia.

Similar Threads

  1. Can't create an object : initialisation problem ?
    By Nyphel in forum Qt Programming
    Replies: 5
    Last Post: 12th March 2007, 09:07
  2. Replies: 2
    Last Post: 22nd February 2007, 08:08
  3. Replies: 3
    Last Post: 8th December 2006, 18:51
  4. Application very heavy for lots object
    By Kapil in forum Newbie
    Replies: 1
    Last Post: 29th April 2006, 17:33
  5. Simple Question on Variable initialization
    By Naveen in forum Qt Programming
    Replies: 3
    Last Post: 17th March 2006, 11:01

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.