Reply
Thread Tools
fcrochik's Avatar
Posts: 722 | Thanked: 1,223 times | Joined on Apr 2010 @ USA
#11
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.
__________________

My maemo work:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
For Harmattan:
GeePS - native UI around google maps - GApp - access to optimized mobile "google apps".
Shutdown - shutdown and reboot with one click - QuickCall - one click call, skypeout and google voice integration using dial tones.
WakeOnLan - wake computers on your local network.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
For Maemo/N900:
GApp - access to optimized mobile "google apps". - MobWebMail: browser optimized to access multiple gmail accounts
MyContacts: 75 Contacts on your desktop, ring tones per group and more - GeePS: native front-end for google maps
Macuco2 : web browser to access web sites optimized for the iphone - WakeOnLan: wake up computers on your local network
dbBrowser: Simple application to browse sqlite databases

Last edited by fcrochik; 2010-08-27 at 20:15.
 

The Following User Says Thank You to fcrochik For This Useful Post:
Berserk's Avatar
Posts: 199 | Thanked: 156 times | Joined on May 2010 @ Holland
#12
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!
__________________
Wallpaeper - Desktop background manager (in Extras!)
Config Reader - Export all Gconf to an HTML file + compare feature (Extras-testing)
Even though these programs are available for free, I would appreciate any donations
 
fcrochik's Avatar
Posts: 722 | Thanked: 1,223 times | Joined on Apr 2010 @ USA
#13
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.
__________________

My maemo work:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
For Harmattan:
GeePS - native UI around google maps - GApp - access to optimized mobile "google apps".
Shutdown - shutdown and reboot with one click - QuickCall - one click call, skypeout and google voice integration using dial tones.
WakeOnLan - wake computers on your local network.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
For Maemo/N900:
GApp - access to optimized mobile "google apps". - MobWebMail: browser optimized to access multiple gmail accounts
MyContacts: 75 Contacts on your desktop, ring tones per group and more - GeePS: native front-end for google maps
Macuco2 : web browser to access web sites optimized for the iphone - WakeOnLan: wake up computers on your local network
dbBrowser: Simple application to browse sqlite databases
 

The Following User Says Thank You to fcrochik For This Useful Post:
Berserk's Avatar
Posts: 199 | Thanked: 156 times | Joined on May 2010 @ Holland
#14
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"
__________________
Wallpaeper - Desktop background manager (in Extras!)
Config Reader - Export all Gconf to an HTML file + compare feature (Extras-testing)
Even though these programs are available for free, I would appreciate any donations

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


 
Forum Jump


All times are GMT. The time now is 20:13.