Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Post-development steps

    Reply
    Page 1 of 2 | 1   2   | Next
    Berserk | # 1 | 2010-08-23, 19:59 | Report

    EDIT:
    Hmm.. 56 views and no replies, I think I'm asking too much
    I've just sent the upload request with the package name 'imagesetmaker', I took a look at other apps and figured that out, sorry for asking..

    Maybe I'm just worrying too much, It'll probably be easier than I think.


    For reference, the original post is here:
    Originally Posted by
    Hi,

    I just finished developing a well-featured stable version of my first Qt/C++ app "Image Set Maker" and I'd like to upload it to Extras-Devel, but I have too much questions before I can do that..
    Thanks to anyone who can brighten up my knowledge about the following:

    - Upload requesting
    I have a Maemo.org account
    I need to fill in a package name.. is that the full app name ("Image Set Maker"), or something like "imagesetmaker_0.1_armel.deb"?

    - Version numbers
    When testing with Nokia Qt SDK, it always transfers "imagesetmaker_0.1_armel.deb" to my N900, can I set version numbers with maemo.org?

    - Autobuilder instructions
    I have close to zero knowledge about Linux commands.. I really appreciate the help given on the instruction page, but unfortunately, I can't make much sense of it

    - Which files should I upload?
    .pro, .cpp and .h files? And/or .o files, or anythins else?

    Maybe a lot of this is made clear and easy with the Extras Assistant mentioned on this page... ?

    I suppose that... when I am allowed to upload and and being given a package page, I can setup a bugtacker, track downloads, see test/vote when it's gotten to Extras-Testing etc.?

    - Licencing
    Basically I'm looking for a licence that says "Use it at no cost, spread it, read (and learn from?) the freely available source code.. but I'm the author and copyright holder. Please give credit, don't say you made the app, because I did."


    I'm starting to think I missed something, since there are so many apps in Extras(-Devel, -Testing), and I haven't found a topic that covers these questions..
    Please go easy on the "RTFM" remarks
    Thanks!

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by Berserk; 2010-08-23 at 23:19.
    The Following User Says Thank You to Berserk For This Useful Post:
    leighw

     
    kif | # 2 | 2010-08-24, 10:54 | Report

    Hi Berserk

    > - Version numbers

    I too have this problem, and have asked in the qt development forum.

    I have gotten some answers that may solve the problem, but it requires some testing before I know if it is a solution.

    I'll let you know the result.

    Kim

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to kif For This Useful Post:
    Berserk

     
    DeargDoom | # 3 | 2010-08-24, 11:05 | Report

    Originally Posted by kif View Post
    > - Version numbers

    I too have this problem, and have asked in the qt development forum.

    I have gotten some answers that may solve the problem, but it requires some testing before I know if it is a solution.
    I am very far from being an expert but following the wiki instructions works for me.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 3 Users Say Thank You to DeargDoom For This Useful Post:
    Berserk, danielwilms, Helmuth

     
    Berserk | # 4 | 2010-08-25, 16:24 | Report

    Well.. I finally got it to upload, thanks to the wiki's

    But now the autobuild fails.. I copied the rules contents from the Packaging a Qt application page, but I'm not sure how to edit the rules file.
    I think I have to replace "(APPNAME)", "(CURDIR)" and "(MAKE)"? I did anyway, except the "(MAKE)", I don't know what that needs to be. Don't know if replacing is good or not either..

    At the top of the rules file, it says
    Code:
    #!/usr/bin/make -f
    APPNAME := my_app_name
    When I put "APPNAME := imagesetmaker" there, will every APPNAME be replaced? I don't get it..
    I really feel stupid for not understanding the rules file




    I just noticed/read that "libqt4-dev" needs to be added, so this line is now in my control file:
    (Didn't have "libqt4-dev" before this post)
    Code:
    Build-Depends: debhelper (>= 5), autotools-dev, libhildon1 (>= 2.2), libqt4-dev

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Berserk | # 5 | 2010-08-25, 16:40 | Report

    It seems to me that things like $(CURDIR) are some sort of system variables that don't need to be specified by the developer.. I'm just not sure

    Edit | Forward | Quote | Quick Reply | Thanks

     
    DeargDoom | # 6 | 2010-08-26, 00:27 | Report

    Originally Posted by Berserk View Post
    Well.. I finally got it to upload, thanks to the wiki's

    But now the autobuild fails.. I copied the rules contents from the Packaging a Qt application page, but I'm not sure how to edit the rules file.
    If I were you I would try and package it yourself and test installing it on your own device before uploading it to extras-devel. From your post I dont think you have done this yet.

    Speaking for myself I found it quite helpful to use the qt-maemo-example package. Once you have that correctly building a package you can use it as a reference to see where you might be going wrong with your own packaging.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to DeargDoom For This Useful Post:
    Berserk, danielwilms

     
    Berserk | # 7 | 2010-08-26, 23:23 | Report

    Thanks for pointing me in the right direction!
    I've tried numerous times now.. and I think it's almost working now.
    So far I've had *empty* .deb's showing up, only the bin and doc dir had files in it, no icons, .desktop or .service files..

    After I've prepared the folders/sources and ran "mad dh_make", I edited the files inside the debian folder, then I ran "mad qmake", and right after that I ran the "mad dpkg-buildpackage -sa" command.

    The problem is.. the files that should go into debian/<appname> show up somewhere else.
    (I use WinXP with Nokia Qt SDK, both installed on E: )

    My source files are in
    E:\QtPrograms\... etc.

    While building, the necessary files go into
    E:\e\QtPrograms\... etc.


    I know Linux doesn't work with drive letters, but how can I fix this? :P
    EDIT: I could probably (?) put those folders in the .deb with an archiver, but that's not the way it should go, I think.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by Berserk; 2010-08-26 at 23:28.

     
    fcrochik | # 8 | 2010-08-26, 23:36 | Report

    Originally Posted by Berserk View Post
    Thanks for pointing me in the right direction!
    I've tried numerous times now.. and I think it's almost working now.
    So far I've had *empty* .deb's showing up, only the bin and doc dir had files in it, no icons, .desktop or .service files..

    After I've prepared the folders/sources and ran "mad dh_make", I edited the files inside the debian folder, then I ran "mad qmake", and right after that I ran the "mad dpkg-buildpackage -sa" command.

    The problem is.. the files that should go into debian/<appname> show up somewhere else.
    (I use WinXP with Nokia Qt SDK, both installed on E: )

    My source files are in
    E:\QtPrograms\... etc.

    While building, the necessary files go into
    E:\e\QtPrograms\... etc.


    I know Linux doesn't work with drive letters, but how can I fix this? :P
    EDIT: I could probably (?) put those folders in the .deb with an archiver, but that's not the way it should go, I think.
    I develop on the Nokia SDK but create my packages on scratchbox.

    I have never tried to create a package using Mad but a common problem for me on scratchbox is that qmake adds the "absolute paths" to the Makefile. I always have to edit by hand the Makefile before creating the package in order for the autobuilder to work.

    Just an idea ... if you think this maybe the case post your Makefile.

    Felipe

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to fcrochik For This Useful Post:
    Berserk

     
    Berserk | # 9 | 2010-08-26, 23:41 | Report

    Thanks! I'll try it, and post the Makefile in case it screws up..

    In the meantime I've gotten the idea of replacing
    INSTALL_ROOT=$(CURDIR)/debian/$(APPNAME) install
    with
    INSTALL_ROOT=debian/$(APPNAME) install
    in debian/rules

    Since CURDIR probably starts with /e/

    EDIT: hmm.. I'd better not, I don't know where it will end up then

    EDIT2:
    INSTALL_ROOT=E:\QtPrograms\ImageSetMaker\0.1.2\imagesetmaker-0.1.2/debian/$(APPNAME) install
    Gave a build error: "e:e:" not found

    INSTALL_ROOT=QtPrograms\ImageSetMaker\0.1.2\imagesetmaker-0.1.2/debian/$(APPNAME) install
    Partially worked, it put that whole path in the .deb package but with the needed folders/files! (DEBIAN, qtprograms and usr folders)
    Also, "dh_shlibdebs" took quite long in the process.

    INSTALL_ROOT=debian/$(APPNAME) install
    Made E:\debian (wrong again)

    EDIT3:
    INSTALL_ROOT=$(APPNAME) install
    Made E:\imagesetmaker

    I'll post my Makefile then

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by Berserk; 2010-08-27 at 00:19.

     
    Berserk | # 10 | 2010-08-27, 00:12 | Report

    Here's my Makefile (first half of it)
    It does seem to recognise E:\
    Could you help me with this one?

    Code:
    #############################################################################
    # Makefile for building: imagesetmaker
    # Generated by qmake (2.01a) (Qt 4.6.2) on: vr 27. aug 02:08:55 2010
    # Project:  imagesetmaker.pro
    # Template: subdirs
    # Command: e:/NokiaQtSDK/Maemo/4.6.2/targets/fremantle-1030/bin/qmake.exe -unix -o Makefile imagesetmaker.pro
    #############################################################################
    
    first: make_default
    MAKEFILE      = Makefile
    QMAKE         = e:/NokiaQtSDK/Maemo/4.6.2/targets/fremantle-1030/bin/qmake.exe
    DEL_FILE      = rm -f
    CHK_DIR_EXISTS= test -d
    MKDIR         = mkdir -p
    COPY          = cp -f
    COPY_FILE     = $(COPY)
    COPY_DIR      = $(COPY) -r
    INSTALL_FILE  = install -m 644 -p
    INSTALL_PROGRAM = install -m 755 -p
    INSTALL_DIR   = $(COPY_DIR)
    DEL_FILE      = rm -f
    SYMLINK       = ln -f -s
    DEL_DIR       = rmdir
    MOVE          = mv -f
    CHK_DIR_EXISTS= test -d
    MKDIR         = mkdir -p
    SUBTARGETS    =  \
            sub-src
    
    src/$(MAKEFILE): 
        @$(CHK_DIR_EXISTS) src/ || $(MKDIR) src/ 
        cd src/ && $(QMAKE) e:/qtprograms/imagesetmaker/0.1.2/imagesetmaker-0.1.2/src/src.pro -unix -o $(MAKEFILE)
    sub-src-qmake_all:  FORCE
        @$(CHK_DIR_EXISTS) src/ || $(MKDIR) src/ 
        cd src/ && $(QMAKE) e:/qtprograms/imagesetmaker/0.1.2/imagesetmaker-0.1.2/src/src.pro -unix -o $(MAKEFILE)
    sub-src: src/$(MAKEFILE) FORCE
        cd src/ && $(MAKE) -f $(MAKEFILE)
    sub-src-make_default: src/$(MAKEFILE) FORCE
        cd src/ && $(MAKE) -f $(MAKEFILE) 
    sub-src-make_first: src/$(MAKEFILE) FORCE
        cd src/ && $(MAKE) -f $(MAKEFILE) first
    sub-src-all: src/$(MAKEFILE) FORCE
        cd src/ && $(MAKE) -f $(MAKEFILE) all
    sub-src-clean: src/$(MAKEFILE) FORCE
        cd src/ && $(MAKE) -f $(MAKEFILE) clean
    sub-src-distclean: src/$(MAKEFILE) FORCE
        cd src/ && $(MAKE) -f $(MAKEFILE) distclean
    sub-src-install_subtargets: src/$(MAKEFILE) FORCE
        cd src/ && $(MAKE) -f $(MAKEFILE) install
    sub-src-uninstall_subtargets: src/$(MAKEFILE) FORCE
        cd src/ && $(MAKE) -f $(MAKEFILE) uninstall
    
    (There's some more here.. .prf files and stuff
    If needed, I'll paste the remaining contents too

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 1 of 2 | 1   2   | Next
vBulletin® Version 3.8.8
Normal Logout