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"?