maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Technology Preview: MADDE (https://talk.maemo.org/showthread.php?t=38075)

shep 2010-01-17 17:34

Re: Technology Preview: MADDE
 
I felt I was spamming this forum a bit with tech questions, I have started a new thread to follow my "app->package->icon-> install" journey.

i hope at the end of this journey we can have a step by step guide for the community on how to add the icon and deploy an app with icon with Madde.

The thread is here: http://talk.maemo.org/showthread.php...257#post478257

Please look in and advise, I'm getting closer (app installed with blue square icon now).

Thanks for all the help everyone,

Shep

too 2010-01-18 08:30

Re: Technology Preview: MADDE
 
Hot tip:

http://wiki.maemo.org/Documentation/...d_Distributing

mentions that if you want to have icon in application managed you
need to create 48x48 pixel png image and then add it as base64-encoded to the debian/control file.

With MADDE, until helper tool is created, the base64-data can be achieved with the following way:

Code:

perl -MMIME::Base64 -ne 'print decode_base64($_)' < icon48x48file.png

Sasler 2010-01-18 11:58

Re: Technology Preview: MADDE
 
Quote:

Originally Posted by too (Post 479388)
Hot tip:

http://wiki.maemo.org/Documentation/...d_Distributing

mentions that if you want to have icon in application managed you
need to create 48x48 pixel png image and then add it as base64-encoded to the debian/control file.

With MADDE, until helper tool is created, the base64-data can be achieved with the following way:

Code:

perl -MMIME::Base64 -ne 'print decode_base64($_)' < icon48x48file.png

Or one could use the following site as I did: ;)

http://www.motobit.com/util/base64-decoder-encoder.asp

jcnielsen 2010-01-19 09:07

Re: Technology Preview: MADDE
 
Hello hello
Is there any ETA on a version of MADDE that works with Qt 4.6.0?...I just bumped in to the 'This file was generated using the moc from 4.6.0. It cannot be used with the include files from this version of Qt'.

Will try fooling MADDE to believe the MOC is ok and see what happens :-)

Sasler 2010-01-19 13:12

Re: Technology Preview: MADDE
 
Quote:

Originally Posted by jcnielsen (Post 481519)
Hello hello
Is there any ETA on a version of MADDE that works with Qt 4.6.0?...I just bumped in to the 'This file was generated using the moc from 4.6.0. It cannot be used with the include files from this version of Qt'.

Will try fooling MADDE to believe the MOC is ok and see what happens :-)

Yes, I would like to know that too. And the integration with Qt Creator. What about that? ;)

All those working with MADDE: You are doing a great job. Thank you very much! :) Just could you please do it faster? :D

timperi 2010-01-19 16:20

Re: Technology Preview: MADDE
 
Quote:

Originally Posted by Sasler (Post 481866)
Yes, I would like to know that too. And the integration with Qt Creator. What about that? ;)

All those working with MADDE: You are doing a great job. Thank you very much! :) Just could you please do it faster? :D

Yes, my guess is that enabling (relatively easy) development on windows-platform will bring a lot of software to the N900.

And by the way, Qt 4.6.1 just came out ;)
http://labs.trolltech.com/blogs/2010...-461-released/

shep 2010-01-19 22:49

Re: Technology Preview: MADDE
 
Hi all,

I finally finished packaging my 1st app with an icon and deployed it to the N900.

I have added a page to the wiki to describe how to do this here.

I'd appreciate your feedback.

Shep

danielwilms 2010-01-20 08:49

Re: Technology Preview: MADDE
 
Quote:

Originally Posted by shep (Post 483070)
I have added a page to the wiki to describe how to do this here.

I'd appreciate your feedback.

hey, this looks good. We were planning to offer more documentation on MADDE, like a step by step guide as you have started during this week. Would you be ok, if I would integrate that into the page you have started?

And thanks a lot for your effort. It's nice!

Cheers Daniel

too 2010-01-20 10:36

Re: Technology Preview: MADDE
 
Quote:

Originally Posted by shep (Post 483070)
Hi all,

I finally finished packaging my 1st app with an icon and deployed it to the N900.

I have added a page to the wiki to describe how to do this here.

I'd appreciate your feedback.

Shep

Good work!

Quick first comment:

Code:

mad pscreate -t qt_simple projectname
helps with 'projectname' directory creation. Using this
also removes the need for 'mad qmake' before
'mad dpkg-buildpackage' (as it adds running qmake to debian/rules).

shep 2010-01-20 11:27

Re: Technology Preview: MADDE
 
Quote:

Originally Posted by danielwilms (Post 483784)
hey, this looks good. We were planning to offer more documentation on MADDE, like a step by step guide as you have started during this week. Would you be ok, if I would integrate that into the page you have started?

And thanks a lot for your effort. It's nice!

Cheers Daniel

Of course, I'm standing on the shoulders of giants here...I just clobbered together bits and pieces I gleaned from the forums...I'm more than happy to have it integrated into anything else.

shep 2010-01-24 00:36

Re: Technology Preview: MADDE
 
Quote:

Originally Posted by too (Post 483910)
Good work!

Quick first comment:

Code:

mad pscreate -t qt_simple projectname
helps with 'projectname' directory creation. Using this
also removes the need for 'mad qmake' before
'mad dpkg-buildpackage' (as it adds running qmake to debian/rules).

I have made these 2 changes now.

qwerty12 2010-01-24 09:43

Re: Technology Preview: MADDE
 
Hiya,

How well does MADDE work for GTK+ development (in C)? It seems rather Qt-oriented and I really have no desire to learn Qt.

Currently using VMware to get my stuff done; being able to do this from Windows would be a lot nicer.

saxen 2010-01-24 13:07

Re: Technology Preview: MADDE
 
hi! i've just installed on mac osx! i think you should write on installation procedure something about adding bin path!

after installation "mad" command didn't work, so i had to:
1) create ".bash_profile" file on my user home folder
2) add this line: export PATH=/Users/"your_username"/bin:$PATH
3) save it, close shell, reopen and then it worked!


regards!

VDVsx 2010-01-24 14:25

Re: Technology Preview: MADDE
 
Quote:

Originally Posted by qwerty12 (Post 491613)

... It seems rather Qt-oriented and I really have no desire to learn Qt.

I had the same feeling months ago, but now I saw that I was entirely wrong, Qt is very sweet :D , you should give it a chance at least.

VDVsx - Proud Gnome user :D .

too 2010-01-24 21:28

Re: Technology Preview: MADDE
 
Quote:

Originally Posted by qwerty12 (Post 491613)
Hiya,

How well does MADDE work for GTK+ development (in C)? It seems rather Qt-oriented and I really have no desire to learn Qt.

Currently using VMware to get my stuff done; being able to do this from Windows would be a lot nicer.

MADDE works well for GTK+ development (in C).

At minimum the lines 'pkg-config --cflags gtk+-2.0' (for sourrce to object
file compiling) and 'pkg-config --libs gtk+-2.0' (for linking) is needed
in your Makefile

Use 'mad pkg-config --list-all' to see some other (gtk) modules you may
need.

(Note that if you try to run gcc compilation from command line
outside mad environment the line must be like

mad gcc -o foo foo.c `mad pkg-config --cflags --libs gtk+-2.0'

to get both gcc and pkg-config be run inside mad environment --
When inside Makefile this is not a problem as whole make is run
inside mad environment...).

rontti 2010-01-27 12:11

Re: Technology Preview: MADDE
 
I added MADDE FAQ page http://wiki.maemo.org/MADDE/FAQ.

All suggestions for content of that page are welcomed.

wazd 2010-01-28 19:55

Re: Technology Preview: MADDE
 
I thought that MADDE needs some proper icon, so I've madde this concept:
http://s59.radikal.ru/i166/1001/c5/5151f9494842.png

tekojo 2010-01-29 06:59

Re: Technology Preview: MADDE
 
Quote:

Originally Posted by qwerty12 (Post 491613)
Hiya,

How well does MADDE work for GTK+ development (in C)? It seems rather Qt-oriented and I really have no desire to learn Qt.

Currently using VMware to get my stuff done; being able to do this from Windows would be a lot nicer.

It's a cross compiler :D
It should just work. There is the 'simple' project type, which is a plain C or C++ project.

But if nothing else take a look at the Qt docs to see what Qt provides.

rontti 2010-01-29 14:13

Re: Technology Preview: MADDE
 
When you are developing your application and you are tired to
copy all your test versions into N900 every now and then, why not trying remote mounting.

With MADDE you can mount your local working directory to N900.
Then you are able to run your application by using remote interface.
See instructions from there:
http://wiki.maemo.org/MADDE/Mounting

Hrw 2010-02-02 16:11

Re: Technology Preview: MADDE
 
Does MADDE uses same toolchain version as MaemoSDK?

I am asking because after unpacking it I see gcc 4.3.3 + binutils 2.19.51.x in targets/fremantle-qt-0942/bin (also in /toolchains/ dir) but gccc 4.2.1 + binutils 2.18.50.x in sysroot.

rontti 2010-02-02 20:44

Re: Technology Preview: MADDE
 
Quote:

Originally Posted by Hrw (Post 507083)
Does MADDE uses same toolchain version as MaemoSDK?

I am asking because after unpacking it I see gcc 4.3.3 + binutils 2.19.51.x in targets/fremantle-qt-0942/bin (also in /toolchains/ dir) but gccc 4.2.1 + binutils 2.18.50.x in sysroot.

No it doesn't. It uses newer as you noticed. We will downgrade the toolchain with next release update.

sevla 2010-02-02 21:07

Re: Technology Preview: MADDE
 
This should be made available from the developer link on the main page http://maemo.org/development/ if it's not already. I looked and I wasn't able to locate the wiki other then using the direct link on the first page of this thread. Unless I just wasn't looking in the right location.

It's only by chance I happen to come across this thread and I suspect this will help a lot of developers who are used to coding in Windows.

danielwilms 2010-02-05 13:27

Re: Technology Preview: MADDE
 
Hi,

there is an updated version of MADDE available for download. The biggest changes are a new toolchain, which matches the one in the Maemo5 SDK and the use of PR1.1 as target. Other changes are:
  • Fremantle target updated to PR.1.1
  • Toolchain changed for Fremantle. Now it matches with Maemo5 SDK. cc command fixed.
  • Windows target creation performance improved.
  • Maemo Desktop files added to Qt example. base64 command added to support that
  • Qt library example fixed.
  • Following https://bugs.maemo.org/buglist.cgi?component=madde bugs fixed.
  • 8415 Cannot install MADDE to different directory than the default
  • 7637 pscreate writes a localized, invalid trailer line into de...
  • 7821 Library search path wrong
  • 7350 MADDE 0.5's dpkg replacement does not work with --search ...
  • 7774 Can't run GLES applications under madde environment
  • 8623 hildon-1 pkg-config configuration broken
  • Minor buf fixes and improvements.

Please check as well the whole blog-post. Feel free to test it and give your feedback as usual. And thanks a lot for the suggestions and feedback you gave since the first preview!!

Daniel

sjaensch 2010-02-05 14:00

Re: Technology Preview: MADDE
 
Hi Daniel, thanks for the update! How about some Qt 4.6 love? It's now in beta, so the Maemo5-specific API should be stable enough. Fixing bug 7773 along the way would help too... :)

rontti 2010-02-05 19:42

Re: Technology Preview: MADDE
 
About MADDE update.

There is no update instructions available. What do you think about that? Do you need instructions or not? Actually update packet uses same installer as first time installation packet.

My opinion is that update should be so simple operation that you don't need instructions at all. We have tried to do MADDE in that way. I hope that we have succeed our goal. Let us now if we have failed or not.

planetf1 2010-02-06 00:17

Re: Technology Preview: MADDE
 
I ddin't read any instructions since I'd only installed the xmas MADDE last night.

That installed into a version-specific directory, so when I installed the new version I place it in an independent directory.

So if I had used the same directory update would have worked just fine?

danielwilms 2010-02-06 09:16

Re: Technology Preview: MADDE
 
Quote:

Originally Posted by rontti (Post 512295)
My opinion is that update should be so simple operation that you don't need instructions at all. We have tried to do MADDE in that way. I hope that we have succeed our goal. Let us now if we have failed or not.

This was what I thought. The installation-instructions on the wiki-page were so general, that they fit onto the new version as well. And the installation is perfectly easy! Good job rontti, I think I can speak for all, who have used it - nice piece of software ;)

Quote:

Originally Posted by planetf1 (Post 512595)
So if I had used the same directory update would have worked just fine?

The installer prevents you from doing that ;)

Daniel

too 2010-02-06 09:30

Re: Technology Preview: MADDE
 
Unix installer prevents installing on top of older version, as '.madde/<version>' is appended to the installation path.
On windows installation on top of previous install is possible, but
should not cause any problems -- we've done installations over
previous builds dozens of times and seldom had any problems -- which
vere always fixed to the build/installation system :)

DrWilken 2010-02-07 20:31

Re: Technology Preview: MADDE
 
Hi :)

I'm trying to package nmon for the N900... ;)

I've created a simple project called nmon12f, copied the .c file to src/simple.c, ran mad qmake, but when running mad make I'm getting these errors:
Code:

src/simple.c:4001: error: 'struct mem_stat' has no member named 'dirty'
src/simple.c:4002: error: 'struct mem_stat' has no member named 'writeback'
src/simple.c:4003: error: 'struct mem_stat' has no member named 'mapped'
src/simple.c:4005: error: 'struct mem_stat' has no member named 'slab'
src/simple.c:4006: error: 'struct mem_stat' has no member named 'committed_as'
src/simple.c:4007: error: 'struct mem_stat' has no member named 'pagetables'
src/simple.c:4047: error: 'struct mem_stat' has no member named 'hugetotal'
src/simple.c:4048: error: 'struct mem_stat' has no member named 'hugetotal'
src/simple.c:4048: error: 'struct mem_stat' has no member named 'hugefree'
src/simple.c:4049: error: 'struct mem_stat' has no member named 'hugetotal'
src/simple.c:4049: error: 'struct mem_stat' has no member named 'hugefree'
src/simple.c:4050: error: 'struct mem_stat' has no member named 'hugetotal'
src/simple.c:4050: error: 'struct mem_stat' has no member named 'hugesize'
src/simple.c:4052: error: 'struct mem_stat' has no member named 'hugetotal'
src/simple.c:4052: error: 'struct mem_stat' has no member named 'hugefree'
src/simple.c:4053: error: 'struct mem_stat' has no member named 'hugetotal'
src/simple.c:4053: error: 'struct mem_stat' has no member named 'hugefree'
src/simple.c:4053: error: 'struct mem_stat' has no member named 'hugetotal'
src/simple.c:4055: error: 'struct mem_stat' has no member named 'hugefree'
src/simple.c:4055: error: 'struct mem_stat' has no member named 'hugefree'
src/simple.c:4055: error: 'struct mem_stat' has no member named 'hugetotal'
src/simple.c:4062: error: 'struct mem_stat' has no member named 'hugetotal'
src/simple.c:4069: error: 'struct mem_stat' has no member named 'hugetotal'
src/simple.c:4070: error: 'struct mem_stat' has no member named 'hugefree'
src/simple.c:4071: error: 'struct mem_stat' has no member named 'hugesize'
src/simple.c:3039: warning: unused variable 'fs_size_used'
src/simple.c:3038: warning: unused variable 'fs_free'
src/simple.c:3037: warning: unused variable 'fs_size'
src/simple.c:3036: warning: unused variable 'statfs_buffer'
make: *** [build/simple.o] Error 1

I'm new to all this stuff but thought I would give it a go with my favorite monitor... :) Use it on just about every *nix system I come across... :)

rontti 2010-02-08 09:59

Re: Technology Preview: MADDE
 
Quote:

Originally Posted by DrWilken (Post 514817)
Hi :)

I'm trying to package nmon for the N900... ;)

I've created a simple project called nmon12f, copied the .c file to src/simple.c, ran mad qmake, but when running mad make I'm getting these errors:

Hi, you don't need qmake at all. Use nmon makefile.
Code:

mkdir nmon-0.1
cp nmon12d.c nmon-0.1/
cp makefile nmon-0.1/
cd nmon-0.1
mv nmon12d.c lmon.c
mad make

Now code is compiled. If you wanna debian package also we need
to do following.

Code:

mad dh_make --single --createorig
Now you are almost able to build debian package. makefile still
need install and clean targets. Lets do these.

Code:

# add these after following line
#FILE=lmon.c
TARGET=nmon_power_rhel3
all: $(TARGET)

install: $(TARGET)
        mkdir -p  $(DESTDIR)/usr/bin
        cp $(TARGET) $(DESTDIR)/usr/bin

clean:
        rm $(target)

Now you can build debian package with
Code:

mad dpkg-buildpackage

DrWilken 2010-02-08 10:27

Re: Technology Preview: MADDE
 
Thanks... I will try this when I get home from work... ;)

Hrw 2010-02-08 13:07

Re: Technology Preview: MADDE
 
There should be a way to upgrade MADDE to newer versions other then fetching CD sized archives.

DrWilken 2010-02-08 13:41

Re: Technology Preview: MADDE
 
Quote:

Originally Posted by rontti (Post 515863)
Hi, you don't need qmake at all. Use nmon makefile.

Code:

mkdir nmon-0.1
cp nmon12d.c nmon-0.1/
cp makefile nmon-0.1/
cd nmon-0.1
mv nmon12d.c lmon.c
mad make

I think I need to create and extra line in the makefile like this:
Code:

nmon_armel:
        cc -o nmon $(FILE) $(CFLAGS) $(LDFLAGS) -D ARMEL

And then run:
Code:

$ mad make nmon_armel
cc -o nmon lmon.c -g -O2 -D JFS -D GETUSER -Wall -D LARGEMEM -lncurses -g -D ARMEL

Otherwise I'm compiling to POWER architecture (right?)... :D

DrWilken 2010-02-08 13:51

Re: Technology Preview: MADDE
 
WORKS! :D

nmon for the N900...! Yay! ;)

http://static.pixelpipe.com/365f2e18...64c85942_m.jpg

http://talk.maemo.org/showthread.php...284#post516284

too 2010-02-08 14:15

Re: Technology Preview: MADDE
 
Quote:

Originally Posted by Hrw (Post 516166)
There should be a way to upgrade MADDE to newer versions other then fetching CD sized archives.

There are plans to implement such functionality; however, we have
not concentrated on this issue much so far for these TECH PREVIEW releases.

DrWilken 2010-02-08 14:59

Re: Technology Preview: MADDE
 
I think I finally figured it out... :)

This is the makefile I ended up with:
Code:

CFLAGS=-g -O2 -D JFS -D GETUSER -Wall -D LARGEMEM
# CFLAGS=-g -O2 -D JFS -D GETUSER -Wall -D POWER
#CFLAGS=-g -D JFS -D GETUSER
LDFLAGS=-lncurses -g
FILE=lmon.c
TARGET=armel
all: $(TARGET)

install: $(TARGET)
        mkdir -p  $(DESTDIR)/usr/bin
        cp $(TARGET) $(DESTDIR)/usr/bin

clean:
        rm $(TARGET)

armel:
        cc -o nmon $(FILE) $(CFLAGS) $(LDFLAGS) -D ARMEL

With the above make file I was able to run mad make, mad dh_make --single --createorig and mad dpkg-buildpackage as advised by rontti... :D

Sasler 2010-02-17 09:34

Re: Technology Preview: MADDE
 
Since PR1.2 is coming soon with Qt 4.6, I would like to know when will MADDE officially support 4.6?

Oh, and is the integration with Qt Creator ready yet? ;)

nick.read 2010-02-17 09:43

Re: Technology Preview: MADDE
 
Quote:

Originally Posted by Sasler (Post 531736)
Since PR1.2 is coming soon with Qt 4.6, I would like to know when will MADDE officially support 4.6?

Oh, and is the integration with Qt Creator ready yet? ;)

Straight from http://labs.trolltech.com/blogs/2010...mo-5-released/

Quote:

We’re trying to get Qt Creator with MADDE support to a decent level before PR 1.2 is released.

too 2010-02-17 18:55

Re: Technology Preview: MADDE
 
Quote:

Originally Posted by Sasler (Post 531736)

Oh, and is the integration with Qt Creator ready yet? ;)

MADDE and QT Creator integration has been there for months
now; both have evolved since and new Maemo releases bring
new integration work to be completed.

pta0007 2010-02-18 19:22

Re: Technology Preview: MADDE
 
Quote:

Originally Posted by too (Post 492477)
MADDE works well for GTK+ development (in C).

At minimum the lines 'pkg-config --cflags gtk+-2.0' (for sourrce to object
file compiling) and 'pkg-config --libs gtk+-2.0' (for linking) is needed
in your Makefile

I got some problems when trying to use GTK+ in Qt/MADDE. First, I created the project with Qt Creator, where Gtk+ is used. In order to inform qmake the project is using GTK..., I added
unix {
CONFIG += link_pkgconfig
PKGCONFIG += gtk+-2.0 hildon-1 gstreamer-0.10
}
to the .pro file.
Then I tried to build the project with MADDE, using mad qmake. I got
'pkg-config' is not recognized as an internal or external command,
operable program or batch file.

I have asked the question at Nokia forum, but it seems I still can't get the solution. Any one help?

Cheers.


All times are GMT. The time now is 11:43.

vBulletin® Version 3.8.8