Ubuntu 14.04 and Lazarus

Post Reply
corpsman
Posts: 25
Joined: Thu Mar 13, 2014 10:00 pm
languages_spoken: english
ODROIDs: Odroid U3
Has thanked: 0
Been thanked: 0
Contact:

Ubuntu 14.04 and Lazarus

Post by corpsman »

Hello,

I have really big trouble getting Lazarus on a Ubuntu 14.04 Image to work.

Actual i use two Emmc Cards
1. xUbuntu 13.10 where lazarus works fine, but there are no more updates

2. emmc with image from here (14.02 2)
http://odroid.com/dokuwiki/doku.php?id= ... e_20150224
followed by the lazarus installation from here :
http://wiki.freepascal.org/Odroid
resulting in a complete FPC installation and a startable lazarus installation. But when i open projects that depend to "Package ImageforLazarus" i get some weired gtk errors and the whole Lazarus crashes.

Is there anyone who has installed Lazarus on the Odroid U3 with 14.04 successfully ?

corpsman
Posts: 25
Joined: Thu Mar 13, 2014 10:00 pm
languages_spoken: english
ODROIDs: Odroid U3
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 14.04 and Lazarus

Post by corpsman »

After some more Reasearch it seems a gtk2 error.

The Lazarus IDE renders Images as 24Bit to a so called 32-bit canvas, and this seems to be broken. The stacktrace points to a gtk routine

See my posts in other forums :

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

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

User avatar
rooted
Posts: 8553
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 742 times
Been thanked: 345 times
Contact:

Re: Ubuntu 14.04 and Lazarus

Post by rooted »

32bit is 24bit + alpha channel

corpsman
Posts: 25
Joined: Thu Mar 13, 2014 10:00 pm
languages_spoken: english
ODROIDs: Odroid U3
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 14.04 and Lazarus

Post by corpsman »

*g*

yes i know the RGB color room. Unfortunatunely this doesn't help with the GTK2 Lazarus problem.

Today i testet a Update from a working 13.10 to 14.04, and the dist upgrade made the same problem. Resulting in a not working version. The question is now, what exactly changed between these two Linux versions ?

And how to fix it.

corpsman
Posts: 25
Joined: Thu Mar 13, 2014 10:00 pm
languages_spoken: english
ODROIDs: Odroid U3
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 14.04 and Lazarus

Post by corpsman »

According to a user from the lazarus mailinglist, i need to change the pixeldepth to 24 to get the problem done

so i installed fbset and used the command "fbset -depth 24" the problem is still the same.

Is there a "natural" way to change the bit depth ?

by creating xorg.conf file like descripted here : http://forum.lxde.org/viewtopic.php?f=8&t=31177
the startlxde command fails

Editing the boot.ini (as described here http://forum.odroid.com/viewtopic.php?f ... bpp#p79297)fails, because i could not find it. adding the line to the /boot/boot.txt did not do it :(

hongbita2
Posts: 187
Joined: Mon Jun 15, 2015 2:41 pm
languages_spoken: english, korean
ODROIDs: c1
Location: seoul, korea
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 14.04 and Lazarus

Post by hongbita2 »

corpsman wrote:According to a user from the lazarus mailinglist, i need to change the pixeldepth to 24 to get the problem done

so i installed fbset and used the command "fbset -depth 24" the problem is still the same.

Is there a "natural" way to change the bit depth ?

by creating xorg.conf file like descripted here : http://forum.lxde.org/viewtopic.php?f=8&t=31177
the startlxde command fails

Editing the boot.ini (as described here http://forum.odroid.com/viewtopic.php?f ... bpp#p79297)fails, because i could not find it. adding the line to the /boot/boot.txt did not do it :(
I have same issue. Please see this Lazarus forum thread(not solved) : http://forum.lazarus.freepascal.org/ind ... 414.0.html

Did you solve the problem?

corpsman
Posts: 25
Joined: Thu Mar 13, 2014 10:00 pm
languages_spoken: english
ODROIDs: Odroid U3
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 14.04 and Lazarus

Post by corpsman »

Well, i would not call it solved.

Actual i develop on a Intel Core i5 Kubuntu machine. I got lazbuild to work on my odroid and use only "simple" lazarus apps, which can be compiled via "lazbuild -B xy.lpi"

When debugging or something other is really necessary i login in via X-forwarding (funny thing) there is no gtk Error.

So the problem is still pending.

hongbita2
Posts: 187
Joined: Mon Jun 15, 2015 2:41 pm
languages_spoken: english, korean
ODROIDs: c1
Location: seoul, korea
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 14.04 and Lazarus

Post by hongbita2 »

corpsman wrote:Well, i would not call it solved.

Actual i develop on a Intel Core i5 Kubuntu machine. I got lazbuild to work on my odroid and use only "simple" lazarus apps, which can be compiled via "lazbuild -B xy.lpi"

When debugging or something other is really necessary i login in via X-forwarding (funny thing) there is no gtk Error.

So the problem is still pending.

Thank you.

Im trying with BGRAControl on Lazarus 1.6. I'll report(not here). about this, plz see my thread http://forum.lazarus.freepascal.org/ind ... 09086.html

And, on 3.2" TFT LCD, the error is not occurred. I think it comes from incompatible bpp.

I've also tried change bpp on /media/boot/boot.ini to 24. But bpp didn't change.

Did you try changing 'native' bpp? (The problem is not limited to Lazarus. Some utils have it.)

corpsman
Posts: 25
Joined: Thu Mar 13, 2014 10:00 pm
languages_spoken: english
ODROIDs: Odroid U3
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 14.04 and Lazarus

Post by corpsman »

i tried a few things, but with no good results. Maybe my Linux skills are to bad :(

Ich you find a solution please post.

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 2 guests