Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-03

How to get Lazarus on Odroid U3 with Ubuntu 14.04 to work ?

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Corpsman

Hello Mailinglist,

Is there someone who got lazarus (doesn't matter which version) to work under Ubuntu 14.04 on a Odroid U3 ?

I tried this in several ways, unfortunatunelly without success. The core problem seems to be in the GTK2 api (i don't need especially gtk2 but qt did not work as well).

i try :
Installing a fresh 14.04 Image, using the lazarus fpc from the packet manager -> all icons in the ide are broken (invisible) if the ide is started from a console it writes something like "try to write 24-bit on a 32-bit canvas..)

i try :
Update from 13.04 (with working fpc 2.6.2 and lazarus from trunk), after update to 14.04 same behavier as above.

i try :
fpcup (and did what the warning tells), the fpc installation runs through, the compilation of the ide runs the first time, the second run (to install anchordicking, fails). Using the binary from the first run has the same behavior as in the following buglist ticket.

a lot of research got me

- A Buglist ticket : http://bugs.freepascal.org/view.php?id=26726 |-> unfortunatunelly it seems that no one of the core developer has a odriod so that they can fix it

- the fpcup skript (that did not work) from
http://wiki.freepascal.org/Odroid

- also i tried different forums, but no one could help me

[german] http://www.lazarusforum.de/viewtopic.php?f=3&t=8537 [^]

[german] http://www.lazarusforum.de/viewtopic.php?f=5&t=8456 [^]

[english] http://forum.odroid.com/viewtopic.php?f=77&t=10840 [^]

- the download link of the Ubuntu 14.04 1 / 2 images for odroid

http://odroid.com/dokuwiki/doku.php?id=en:u3_ubuntu_release_note_20150224

At the moment i run 13.10 on my Odroid U3, with Lazarus trunk and fpc from the packet center. But 13.10 gets more and more in trouble. I use the Odroid as my Desktop PC so there is a big need to move to the LTS version.

it would be very nice if someone could help me.

Uwe Sch?chterle

Reply by email

Marc Weustink
to Corpsman
Corpsman wrote 14 lines
Hello Mailinglist, Is there someone who got lazarus (doesn't matter which version) to work under Ubuntu 14.04 on a Odroid U3 ? I tried this in several ways, unfortunatunelly without success. The core problem seems to be in the GTK2 api (i don't need especially gtk2 but qt did not work as well). i try : Installing a fresh 14.04 Image, using the lazarus fpc from the packet manager -> all icons in the ide are broken (invisible) if the ide is started from a console it writes something like "try to write 24-bit on a 32-bit canvas..)

This is the key to the problem.
Using different fpc version, different Lazarus versions, different Ubuntu version won't help.

When drawing images on gtk, lazarus has to use the same pixeldepth as your X server. gtk won't do any conversion, except for 32 bit. Usually drawing 24 bit images on 32 bit X is also OK.
In your case not. The only thing you can do is reducing the pixeldepth of your X server.

Marc

Reply by email

Unknown author

Well i tried with fbset -depth 24

same result see below :

odroid at odroid:~/development/lazarus$ fbset

mode "1280x1024"
geometry 1280 1024 1280 3072 24
timings 0 0 0 0 0 0 0
accel true
rgba 8/16,8/8,8/0,0/0
endmode

and in Lazarus when showing the "about" screen

(lazarus:10115): Gdk-WARNING **: Attempt to draw a drawable with depth 24 to a drawable with depth 32

(lazarus:10115): Gdk-WARNING **: Attempt to draw a drawable with depth 24 to a drawable with depth 32

(lazarus:10115): Gdk-WARNING **: Attempt to draw a drawable with depth 24 to a drawable with depth 32

(lazarus:10115): GLib-CRITICAL **: Source ID 1592 was not found when attempting to remove it

(lazarus:10115): GLib-CRITICAL **: Source ID 1591 was not found when attempting to remove it LAZARUS END - cleaning up ...
[TMainIDE.Destroy] A
TIDEProgressWindow.Notification 0
TIDEProgressWindow.Notification 0
TIDEProgressWindow.Notification 0
TIDEProgressWindow.Notification 0
TIDEProgressWindow.Notification 0
TIDEProgressWindow.Notification 0
TIDEProgressWindow.Notification 0
TIDEProgressWindow.Notification 0
TIDEProgressWindow.Notification 0
TIDEProgressWindow.Notification 0
TIDEProgressWindow.Notification 0
[TMainIDE.Destroy] B -> inherited Destroy... TMainIDE [TMainIDE.Destroy] END

-----Urspr?ngliche Nachricht-----
Gesendet: Thursday, 12 March 2015 um 10:05:52 Uhr
Von: "Marc Weustink"
An: "Lazarus mailing list"
Betreff: Re: [Lazarus] How to get Lazarus on Odroid U3 with Ubuntu 14.04 to work ?

Corpsman wrote 14 lines
Hello Mailinglist, Is there someone who got lazarus (doesn't matter which version) to work under Ubuntu 14.04 on a Odroid U3 ? I tried this in several ways, unfortunatunelly without success. The core problem seems to be in the GTK2 api (i don't need especially gtk2 but qt did not work as well). i try : Installing a fresh 14.04 Image, using the lazarus fpc from the packet manager -> all icons in the ide are broken (invisible) if the ide is started from a console it writes something like "try to write 24-bit on a 32-bit canvas..)

This is the key to the problem.
Using different fpc version, different Lazarus versions, different Ubuntu version won't help.

When drawing images on gtk, lazarus has to use the same pixeldepth as your X server. gtk won't do any conversion, except for 32 bit. Usually drawing 24 bit images on 32 bit X is also OK.
In your case not. The only thing you can do is reducing the pixeldepth of your X server.

Marc

Reply by email