Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Glscene Ubuntu Working ?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    PGDCE Developer Carver413's Avatar
    Join Date
    Jun 2010
    Location
    Spokane,WA,Usa
    Posts
    206
    Thanks that did the trick. I'm trying to get the ODE to compile now I installed libode-dev (just guessing) but I'm still missing something.

    /home/carver413/programing/GLScene_v1.1_October_2010_SVN_revision_5227/Source/PhysicsAPIs/GLSModuleLoader.pas(1,1) Fatal: Can't find unit Libc used by GLSModuleLoader

  2. #2
    /home/carver413/programing/GLScene_v1.1_October_2010_SVN_revision_5227/Source/PhysicsAPIs/GLSModuleLoader.pas(1,1) Fatal: Can't find unit Libc used by GLSModuleLoader
    There is no libc unit in FreePascal for 64-bit Linux, and not recommended to use it on 32-bit Linux. So, this is a problem with GLScene. Try to remove Libc from uses in GLSModuleLoader.pas, and add these functions after implementation:
    Code:
    function dlopen ( Name : PChar; Flags : longint) : Pointer; cdecl; external 'dl';
    function dlclose( Lib : Pointer) : Longint; cdecl; external 'dl';
    function dlsym  ( Lib : Pointer; Name : Pchar) : Pointer; cdecl; external 'dl';
    Maybe it will help, but I can't guarantee this

  3. #3
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    Location
    UK (England, the bigger bit)
    Posts
    933
    Blog Entries
    45
    oh, that darn libc again. i made the mistake too but mine took a week to solve. i however do not believe the cdecl to be necessary - i have yet to find a lib that needs it
    I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.

  4. #4
    PGDCE Developer Carver413's Avatar
    Join Date
    Jun 2010
    Location
    Spokane,WA,Usa
    Posts
    206
    Quote Originally Posted by Andru View Post
    There is no libc unit in FreePascal for 64-bit Linux, and not recommended to use it on 32-bit Linux. So, this is a problem with GLScene. Try to remove Libc from uses in GLSModuleLoader.pas, and add these functions after implementation:
    Code:
    function dlopen ( Name : PChar; Flags : longint) : Pointer; cdecl; external 'dl';
    function dlclose( Lib : Pointer) : Longint; cdecl; external 'dl';
    function dlsym  ( Lib : Pointer; Name : Pchar) : Pointer; cdecl; external 'dl';
    Maybe it will help, but I can't guarantee this
    thanks I'll give it a try

  5. #5
    Somebody got it working with the latest SVN snapshot?

  6. #6
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    Location
    UK (England, the bigger bit)
    Posts
    933
    Blog Entries
    45
    What errors are you having trouble with? might be that you are missing some dev libs...
    I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.

  7. #7
    Quote Originally Posted by Andru View Post
    There is no libc unit in FreePascal for 64-bit Linux, and not recommended to use it on 32-bit Linux. So, this is a problem with GLScene. Try to remove Libc from uses in GLSModuleLoader.pas, and add these functions after implementation:
    Code:
    function dlopen ( Name : PChar; Flags : longint) : Pointer; cdecl; external 'dl';
    function dlclose( Lib : Pointer) : Longint; cdecl; external 'dl';
    function dlsym  ( Lib : Pointer; Name : Pchar) : Pointer; cdecl; external 'dl';
    Maybe it will help, but I can't guarantee this
    Oh, and instead of doing this, then import the dl unit, or even better: the dynlibs unit
    Peregrinus, expectavi pedes meos in cymbalis
    Nullus norvegicorum sole urinat

  8. #8
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    Location
    UK (England, the bigger bit)
    Posts
    933
    Blog Entries
    45
    It only just dawned on me: dude, no libc? WTF? I mean, I've seen so many libs use that and all I heard was that quite a few people weren't sure whether it was dead or not... Looks like I might need to do some cat and grep to find out if I have any dependencies on it...

    At a point, wasn't there 2 libcs? I recall changing LibC to some other package and seeing everything compile fine
    I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.

  9. #9
    There's the libc unit and libc C library. The libc unit is very deprecated and stems from Kylix times
    Peregrinus, expectavi pedes meos in cymbalis
    Nullus norvegicorum sole urinat

  10. #10
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    Location
    UK (England, the bigger bit)
    Posts
    933
    Blog Entries
    45
    Ah, then thats the one I must have recalled instead...
    I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •