Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Post-development steps

    Reply
    Page 2 of 2 | Prev |   1   2 |
    fcrochik | # 11 | 2010-08-27, 00:34 | Report

    Originally Posted by Berserk View Post
    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
    Anything on the Makefile that points to an absolute path on "your machine" will not work on the autobuilder. A good hint is any path that starts with the drive letter or with the "absolute path to your source code". You need will to replace all the paths with paths relative to the root folder of the source and "absolute paths" for everything that is not your code (/usr/include/... , /usr/lib, ...).

    There must be a way to get it right with MADDE but I just don't know how. I have a linux box with scratchbox and create all my packages there.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by fcrochik; 2010-08-27 at 20:15.
    The Following User Says Thank You to fcrochik For This Useful Post:
    Berserk

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

    Thanks, and for this I moved the root folder (appname-version) to E:\NokiaQtSDK\Maemo\home\<user>

    Replaced
    e:/NokiaQtSDK/Maemo/
    with
    ../../../

    And
    e:/NokiaQtSDK/Maemo/home/<user>/imagesetmaker-0.1.2/
    with
    $(CURDIR)

    But it still has the E:\e\ problem :P many thanks for your help so far!
    I need to get some sleep now..

    Tomorrow I'll be gone all day, but maybe I can read replies via Gprs, if there will be any :P
    Thanks so far!

    Edit | Forward | Quote | Quick Reply | Thanks

     
    fcrochik | # 13 | 2010-08-27, 20:07 | Report

    Hopefully you figured out by now... but just in case, I found this link:
    http://wiki.maemo.org/MADDE/Packaging

    I didn't try and didn't see anything that sounds like the solution but maybe they made so simple that you don't need to worry about the Makefile.

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

     
    Berserk | # 14 | 2010-08-28, 00:04 | Report

    Thanks again
    Sorry for the late response..
    I must say that I've read that page quite a lot of times, along with the other packaging pages, but thanks all the same


    I started trying again about 2 hours ago, and now I've got it working locally!
    Also, there is a fair chance that it will be allright with the autobuilder, since I didn't find a Makefile in the .orig.tar.gz file, autobuilder is going to make it's own Makefile, which applies it's own paths.

    The problem was in src/src.pro, first it had
    Code:
    isEmpty(PREFIX) {
        PREFIX = /usr
      }
    As specified on the Packaging a Qt application page

    But after taking a close look in the dpkg-buildpackage output, I saw "PREFIX = E:\NokiaQtSDK\Maemo\4.6.2", which is the dir that holds madde.bat. So logically "isEmpty(PREFIX)" returned false, and the PREFIX was not changed into "/usr".

    I changed the entry in src/src.pro into
    Code:
    PREFIX = /usr
    After that, the E:\e\ problem was gone, I'm not exactly sure why, but it was. And because of the right PREFIX, the dir structure in the .deb was right

    Thanks everybody, I owe you one

    EDIT: by the way, I didn't use "mad qmake"

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by Berserk; 2010-08-28 at 01:57.

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