Recent

Author Topic: "Can't find libc used by module loader"  (Read 5821 times)

skr

  • Newbie
  • Posts: 2
"Can't find libc used by module loader"
« on: December 15, 2011, 10:17:37 am »
I have just installed Debian (64 bit NeuroDebian 6.05), downloaded Lazarus from http://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20x86_64%20RPM/, installed SDL (apt-get install libsdl1.2-dev) and then downloaded the JEDI-SDL libraries from sourceforge.net/projects/jedi-sdl.

When I try to compile one of the demos (3d/Nehe/Tutorial2) I get the error "Can't find libc used by module loader".

I'm a newbie when it comes to Linux so could someone tell me how I fix this?

simon

benohb

  • Full Member
  • ***
  • Posts: 213
Re: "Can't find libc used by module loader"
« Reply #1 on: December 15, 2011, 03:10:18 pm »
You do not need  installation ...It already exists

Code: [Select]
/usr/share/fpcsrc/2.4.4/packages/sdl
or

Code: [Select]
/usr/share/fpcsrc/2.4.0/packages/sdl

Check the installation of libc

Code: [Select]
sudo aptitude install build-essential

This will help you

http://jedi-sdl.pascalgamedevelopment.com/docs.php#Docs
« Last Edit: December 15, 2011, 03:13:36 pm by benohb »

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: "Can't find libc used by module loader"
« Reply #2 on: December 15, 2011, 04:57:08 pm »
I have just installed Debian (64 bit NeuroDebian 6.05), downloaded Lazarus from http://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20x86_64%20RPM/, installed SDL (apt-get install libsdl1.2-dev) and then downloaded the JEDI-SDL libraries from sourceforge.net/projects/jedi-sdl.

When I try to compile one of the demos (3d/Nehe/Tutorial2) I get the error "Can't find libc used by module loader".

Update the libraries so that they use FPC libraries. (examples in the URL below).

libc is a Kylix compatibility unit that has been deprecated since 2003. (and was linux/x86 only to begin with)

Some pointers and background info is at

http://wiki.freepascal.org/libc_unit
 

skr

  • Newbie
  • Posts: 2
Re: "Can't find libc used by module loader"
« Reply #3 on: December 16, 2011, 05:29:18 pm »
Thanks for the responses.

I'm still unclear how I fix this.  The FP link takes me to a page that tells me what alternatives there are.  I'd prefer not to start trying to do open-heart surgery on an existing unit (moduleloader which is part of JEDI-SDL).  Is there an updated version of moduleloader out there that does not use libc?  Or is there a simple fix?

Btw, I also followed the pascalgamer link.  In theory that takes me to detailed instructions on JEDI-SDL installation on Linux.  The problem is the link takes me back to the front page.


marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: "Can't find libc used by module loader"
« Reply #4 on: December 16, 2011, 06:21:35 pm »
Thanks for the responses.

I'm still unclear how I fix this.  The FP link takes me to a page that tells me what alternatives there are.  I'd prefer not to start trying to do open-heart surgery on an existing unit (moduleloader which is part of JEDI-SDL).  Is there an updated version of moduleloader out there that does not use libc?  Or is there a simple fix?

Afaik a version of jedi-sdl comes with FPC (directory /packages/sdl ?)

 

TinyPortal © 2005-2018