Recent

Author Topic: Lazarus won't start  (Read 4255 times)

Drannok

  • Newbie
  • Posts: 2
Lazarus won't start
« on: October 21, 2007, 07:13:34 am »
Hello all...

I installed Lazarus on my Fedora 7 without any warnings / errors at all (i tried both RPM and Compilation methods).

But when i try:
# lazarus

or

# startlazarus

nothing happens :(

i must use Ctrl + C to retrieve the bash prompt

I tried to let the application appear but after 30 min i decided to Ctrl + C one more time.

Can anyone help me please ?

Thanks by advance

Fedora 7 with KDE + Compiz-Fusion
Lazarus-0.9.22-0.rpm
fpc-2.0.4-0.rpm
fpc-src-2.0.4-0.rpm

Drannok

  • Newbie
  • Posts: 2
RE: Lazarus won
« Reply #1 on: October 22, 2007, 09:21:25 am »
Well, i finally found the problem...

Actually i'm using Fedora 7 with Compiz-Fusion (a 3D desktop environment) and this works in the XGL session mode.

But actually Lazarus seems not to support that mode, so i use a trick to make it work:

launching Lazarus on another display.

Here is a script i put in the /usr/bin path:

Code: [Select]
#!/bin/sh

if [ "$1" = "-h" ] || [ "$1" = "--help" ] || [ $# -eq 0 ] ; then
echo "Usage : noxgl <program> [options]"
echo "        noxgl -b <program> [options]"
echo "              (-b option means 'border' so it adds a window border)"
exit
fi

if [ "$1" = "-b" ]; then
if [ -x /usr/bin/kwin ]; then
WM=kwin
else
WM=metacity
fi
DISPLAY=:0.0
$WM&
shift
$@
killall $WM
else
DISPLAY=:0.0 "$@"
fi


i named this scrip "noxgl" so if i want to launch an app without XGL i just type for example:

noxgl -b startlazarus

it works for all the apps

Thanks to Nicofo for his help

Almindor

  • Sr. Member
  • ****
  • Posts: 412
    • http://www.astarot.tk
RE: Lazarus won
« Reply #2 on: October 22, 2007, 11:02:22 am »
I'm not sure why this is a problem, on ubuntu/nvidia lazarus works fine in both gtk1 and gtk2 with compiz [fusion]. I guess AIGLX is just better...

On the other hand Qt gives problems with window borders but that's probably compiz bug.

 

TinyPortal © 2005-2018