Reply
Thread Tools
Posts: 341 | Thanked: 57 times | Joined on Nov 2009
#1
Hi all .. Well I want to fix this simple bug in a program called N9Profil .. The author simply can't be bothered I guess, so I just want to fix it myself ..

The code is available here: http://gitorious.org/n9profile

My problem is how exactly do I recompile a program to install on the N900 .. ? Like from the link above I dont download all the code files, make the changes, but then what ? I don't know how to actually make an installer out of the code ..

Any help here would be really appreciated ..
 
Posts: 1,994 | Thanked: 3,342 times | Joined on Jun 2010 @ N900: Battery low. N950: torx 4 re-used once and fine; SIM port torn apart
#2
Originally Posted by ahmadka View Post
Hi all .. Well I want to fix this simple bug in a program called N9Profil .. The author simply can't be bothered I guess, so I just want to fix it myself ..

The code is available here: http://gitorious.org/n9profile

My problem is how exactly do I recompile a program to install on the N900 .. ? Like from the link above I dont download all the code files, make the changes, but then what ? I don't know how to actually make an installer out of the code ..

Any help here would be really appreciated ..
Download all these files and folders:
http://gitorious.org/n9profile/n9profile/trees/master
Edit the files you want.
(the package name, version, author are stated in files in debian folder)

Then in scratchbox or in MADDE terminal, MADDE terminal is included into Nokia Qt SDK, in the main directory of source files, run either
dpkg-buildpackage -sa -S
and submit it to Maemo Extras Assistant
https://garage.maemo.org/extras-assi...dex.php?step=2
to have it in extras-devel

or dpkg-buildpackage -sa
and test it on your N900.

EDIT: If you just want to fix a bug, it would be better to contact the developer so that he could incorporate the fix. Of course, you are welcome to test the fix for yourself before showing it to the developer.

Last edited by Wikiwide; 2010-12-30 at 09:49.
 

The Following 7 Users Say Thank You to Wikiwide For This Useful Post:
Posts: 341 | Thanked: 57 times | Joined on Nov 2009
#3
Its just a simple bug, only one number needs to be replaced with another .. i've tried posting the bug in the program's thread but the author hasn't responded in weeks ..

Anyways, I have Qt Creator which I've been using for my own development .. Is MADDE included in it ? If yes, can you tell me specifically how to use it ? I haven't explicitly used MADDE so far ..
 
Posts: 1,994 | Thanked: 3,342 times | Joined on Jun 2010 @ N900: Battery low. N950: torx 4 re-used once and fine; SIM port torn apart
#4
Originally Posted by ahmadka View Post
Its just a simple bug, only one number needs to be replaced with another .. i've tried posting the bug in the program's thread but the author hasn't responded in weeks ..

Anyways, I have Qt Creator which I've been using for my own development .. Is MADDE included in it ? If yes, can you tell me specifically how to use it ? I haven't explicitly used MADDE so far ..
The developer offers to report bugs to his email, jakub.bzouk at Gmail.
http://maemo.org/packages/view/n9profil/

Nokia Qt SDK includes Qt Creator and MADDE Terminal, but Qt Creator doesn't include MADDE Terminal (I think).

When you get all source files downloaded in one directory, open MADDE Terminal and 'cd' to this directory. Then run
dpkg-buildpackage -sa
to build complete deb (which can be tested on N900)
or
dpkg-buildpackage -sa -S
to build source-only package (which can be uploaded to extras-devel)
 
Posts: 341 | Thanked: 57 times | Joined on Nov 2009
#5
Alright, I just tried what you said and I'm getting the following error:

Code:
MADDE-0.6.46 /d/n9profile-n9profile
Ahmad $ dpkg-buildpackage -sa
sh: dpkg-buildpackage: command not found
I started MADDE from the start menu, and since my Qt Creator works properly (compiles and runs stuff on my N900, etc ..), I'm assuming that MADDE is 'linked' properly too ..

I installed the complete Qt SDK AFAIK ..
 

The Following User Says Thank You to ahmadka For This Useful Post:
Posts: 1,994 | Thanked: 3,342 times | Joined on Jun 2010 @ N900: Battery low. N950: torx 4 re-used once and fine; SIM port torn apart
#6
Originally Posted by ahmadka View Post
Alright, I just tried what you said and I'm getting the following error:

Code:
MADDE-0.6.46 /d/n9profile-n9profile
Ahmad $ dpkg-buildpackage -sa
sh: dpkg-buildpackage: command not found
I started MADDE from the start menu, and since my Qt Creator works properly (compiles and runs stuff on my N900, etc ..), I'm assuming that MADDE is 'linked' properly too ..

I installed the complete Qt SDK AFAIK ..
You are on the right track, I hope.
Try:
mad dpkg-buildpackage -sa

I have just forgot for a moment MADDE needs mad before many commands.
 
Posts: 341 | Thanked: 57 times | Joined on Nov 2009
#7
Alright, I just tried this command and now the output is this:

Code:
MADDE-0.6.46 /d/n9profile-n9profile
Ahmad $ mad dpkg-buildpackage -sa
which: pgp: unknown command
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value: 
dpkg-buildpackage: set LDFLAGS to default value: 
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package n9profil
dpkg-buildpackage: source version 0.2-0
dpkg-buildpackage: source changed by Jakub Splichal <jakub.bzouk@gmail.com>
dpkg-buildpackage: host architecture armel
 debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
/bin/make clean
make[1]: Entering directory `/d/n9profile-n9profile'
make[1]: *** No rule to make target `clean'.  Stop.
make[1]: Leaving directory `/d/n9profile-n9profile'
make: *** [clean] Error 2
dpkg-buildpackage: failure: debian/rules clean gave error exit status 2
Thanks for your help dude
 

The Following User Says Thank You to ahmadka For This Useful Post:
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#8
Run qmake
 

The Following User Says Thank You to MohammadAG For This Useful Post:
Posts: 1,994 | Thanked: 3,342 times | Joined on Jun 2010 @ N900: Battery low. N950: torx 4 re-used once and fine; SIM port torn apart
#9
Originally Posted by ahmadka View Post
Alright, I just tried this command and now the output is this:

Code:
MADDE-0.6.46 /d/n9profile-n9profile
Ahmad $ mad dpkg-buildpackage -sa
which: pgp: unknown command
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value: 
dpkg-buildpackage: set LDFLAGS to default value: 
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package n9profil
dpkg-buildpackage: source version 0.2-0
dpkg-buildpackage: source changed by Jakub Splichal <jakub.bzouk@gmail.com>
dpkg-buildpackage: host architecture armel
 debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
/bin/make clean
make[1]: Entering directory `/d/n9profile-n9profile'
make[1]: *** No rule to make target `clean'.  Stop.
make[1]: Leaving directory `/d/n9profile-n9profile'
make: *** [clean] Error 2
dpkg-buildpackage: failure: debian/rules clean gave error exit status 2
Thanks for your help dude
While editing debian/rules file you made something wrong with 'clean' part of it, it cannot find how to clean the directories before building.

I get:

mad dpkg-buildpackage -sa
which: pgp: unknown command
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value:
dpkg-buildpackage: set LDFLAGS to default value:
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package n9profil
dpkg-buildpackage: source version 0.1-2
dpkg-buildpackage: source changed by Jakub Splichal <jakub.bzouk@gmail.com>
dpkg-buildpackage: host architecture armel
debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp
# Add here commands to clean up after the build process.
rm -rf builddir
dh_clean
dpkg-source -b n9profil-0.1
C:\NokiaQtSDK\Maemo\4.6.2\madbin\dpkg-source: info: using source format `1.0'
C:\NokiaQtSDK\Maemo\4.6.2\madbin\dpkg-source: info: building n9profil in n9profil_0.1-2.tar.gz
C:\NokiaQtSDK\Maemo\4.6.2\madbin\dpkg-source: info: building n9profil in n9profil_0.1-2.dsc
debian/rules build


Then it cannot build because it has space in folder path, so I will have to move it somewhere else now.

EDIT:
Originally Posted by MohammadAG View Post
Run qmake
I haven't run qmake, and I have 'clean' working.

So, the problem is with some edit.

Oh, yes, I have misread the reply of dpkg-buildpackage:
debian/rules clean
works
while
make clean
doesn't work.

Originally Posted by MohammadAG View Post
Or he removed the Makefile, which again, can be fixed by running qmake.
Yes, it could be Makefile renamed, moved to another place, deleted, or broken by editing.
Including, some problems might be caused by editing Makefile in Windows's Notepad: Linux has one type of Enter and Windows has another (^M as displayed in vi). I have rarely (read: never) used Makefile, so I don't know how tolerant make is.

Last edited by Wikiwide; 2010-12-31 at 05:34.
 
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#10
Or he removed the Makefile, which again, can be fixed by running qmake.
 

The Following User Says Thank You to MohammadAG For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 04:09.