Recent

Author Topic: linux+lazarus+glscene  (Read 10617 times)

bonobo

  • Guest
linux+lazarus+glscene
« on: November 18, 2005, 10:59:30 pm »
hi everybody,

i'm looking for a clear step by step tutorial to install glscene under the linux version of lazarus.

is there anybody can help me?

i am using glscene with delphi for a looonnngg time, i tried the win32 pre-packaged version of lazarus+glscene but i'm very frustrated cause i don't know how to use it under linux.

And another question is: is there somebody knows what work/not work with glscene under linux.

thanx in advance.

Anonymous

  • Guest
linux+lazarus+glscene
« Reply #1 on: November 28, 2005, 05:11:23 am »
I'm having similar problems. I'd like to get GLScene working in Linux under Lazarus but I haven't been able to make it install yet. It got it to compile by ruthlessly IFDEFing anything that looked Windows (or Kylix) related. Problems I noticed with the source as I was doing this are:

- There are some filename case issues with some of the units as they are configured in the package (I had this problem with the PascalScript package as well)

- Lots of Win32 stuff wants to compile (this is probably a result of units not being IFDEFed in uses clauses, I didn't check this thoroughly though)

- Sometimes Linux IFDEFs are used when the code will only build in Kylix (QDialogs and so on)

- GLKeyboard has a define in it to complain that it isn't supported under Linux when built on linux. I unchecked the unit in the package configuration so it wasn't used.

- Some required units are missing from the package. Some gameapi stuff and ODE stuff.


Anyway, after that I got it to compile. When I went to install it, ld complained that it couldn't find SDL1.2 to link against (ie /usr/bin/ld: cannot find -lSDL1.2). It's because SDL1.2 was libSDL1.2.so.0.0 on my system. I created an libSDL1.2.so sym link and that resolved the issue.

Now I'm stuck on the ode libraries. I've downloaded, built, and installed them but as yet Lazarus can't statically link against them. I testing this a couple of times but eventually Lazarus got an access violation during the process and I was left without a Lazarus exectuable. At this point I gave up for the time being.

I need to rebuild lazarus but does anyone have any advice on how to get ld to stop saying "/usr/bin/ld: cannot find -lode"?

Anonymous

  • Guest
linux+lazarus+glscene
« Reply #2 on: November 28, 2005, 05:13:10 am »
I should add I realise glscene probably won't work even if I do get it to install (due to my ifdefs), but I just want to achieve the first step of getting it to install.

Anonymous

  • Guest
linux+lazarus+glscene
« Reply #3 on: November 28, 2005, 11:01:28 am »
I resolved my ode linking issue, but now I get errors like the following (this is all with GLScene 0.9.1.4 by the way):

src/lazarus/components/glscene/Source/PhysicsAPIs/ODEImport.pas:1712: undefined reference to `dCreateTerrainY'
src/lazarus/components/glscene/LazarusLin/lib/ODEImport.o(.text+0x8bc): In function `DCREATETERRAINZ':
src/lazarus/components/glscene/Source/PhysicsAPIs/ODEImport.pas:1728: undefined reference to `dCreateTerrainZ'
src/lazarus/components/glscene/LazarusLin/lib/ODEImport.o(.text+0x943): In function `DCREATECYLINDER':
src/lazarus/components/glscene/Source/PhysicsAPIs/ODEImport.pas:1760: undefined reference to `dCreateCylinder'
lazarus/components/glscene/LazarusLin/lib/ODEImport.o(.text+0x9c9): In function `DCREATETRIMESH':
src/lazarus/components/glscene/Source/PhysicsAPIs/ODEImport.pas:1792: undefined reference to `dCreateTriMesh'
src/lazarus/ide/lazarus.pp(103,1) Error: Error while linking
make[2]: *** [lazarus] Error 1

Anonymous

  • Guest
linux+lazarus+glscene
« Reply #4 on: November 28, 2005, 11:39:01 am »
Well, I gave up on 0.9.1.4 and decided to give the 0.9.1.3 release a try. It builds and installs in Linux with Lazarus 0.9.11beta without problems. I wish I knew that before I tried 0.9.1.4. ;-)

Anonymous

  • Guest
linux+lazarus+glscene
« Reply #5 on: November 28, 2005, 01:22:50 pm »
While GLScene seems to all work, I'm having trouble actually seeing useful output in my little hello world apps and the GLScene demos. I built the megacube demo and I can see the first frame but viewer goes to all black after that. It seems like whenever the viewer invalidates it fails to repaint the scene correctly (i.e. it gets it right once at the start, but subsequent repaints don't work).

I've tried GLScene 0.9.1.3 in both Lazarus 0.9.10 and 0.9.11beta. Is this a GLScene problem, an LCL problem, or both?

bonobo

  • Guest
linux+lazarus+glscene
« Reply #6 on: December 10, 2005, 11:42:46 am »
thank's all and sorry for the long time before my answer.

Well here's the bad news: i had to give up with lazarus+glscene cause i'm out of time. And i have to finish my soft, cause it's for a professional purpose. So, i see it'not so easy to port win32 delphi+glscene appz into linux/lazarus/glscene... i'll not be able to work on that problem until next august.

anyway thank's.

 

TinyPortal © 2005-2018