Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-12

Lazarus (pendrive linux) can't find SDL libraries?

5 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Paul Nicholls

Hi all,
I downloaded and installed pendrive linux on my computer.

http://www.pendrivelinux.com/run-pendrivelinux-2009-in-windows/

After much fannying around (package dependancy issues), I managed to install freepascal, Lazarus 0.9.28.2, gdb (for Lazarus debugging), and SDL.

Ok, so far so good...

I am now trying to get a Win32 Lazarus SDL project I have already made to now also compile and run under my new shiny Linux ;)

When I try and compile the source code, I get this linking error:

"/usr/bin/ld: cannot find -lSDL"

if it helps, in Linux, I used this (from memory, might be slightly wrong package name) to install SDL (as root user):

"apt-get install SDL"

So, how do I tell Lazarus where Linux installed the SDL libraries, and how do I find them in the first place if I need a path to them?

LOL

cheers,
Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20091214/de2ae1c0/attachment.html>

Reply by email

Michael Joyner ᏩᏯ
to Paul Nicholls
Paul Nicholls wrote 22 lines
Hi all, I downloaded and installed pendrive linux on my computer. http://www.pendrivelinux.com/run-pendrivelinux-2009-in-windows/ After much fannying around (package dependancy issues), I managed to install freepascal, Lazarus 0.9.28.2, gdb (for Lazarus debugging), and SDL. Ok, so far so good... I am now trying to get a Win32 Lazarus SDL project I have already made to now also compile and run under my new shiny Linux ;) When I try and compile the source code, I get this linking error: "/usr/bin/ld: cannot find -lSDL" if it helps, in Linux, I used this (from memory, might be slightly wrong package name) to install SDL (as root user): "apt-get install SDL"

You have to install sdl-dev or similar.

Show quoted text 16 lines
So, how do I tell Lazarus where Linux installed the SDL libraries, and how do I find them in the first place if I need a path to them? LOL cheers, Paul ------------------------------------------------------------------------ -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Paul Nicholls
to Michael Joyner ᏩᏯ

Hi Michael, thanks :-)

I have now attempted to install SDL like so:

apt-get install libsdl1.2-dev

I will see if this works :)

cheers,
Paul

Earlier message 37 lines
----- Original Message ----- From: Michael Joyner ?? To: Lazarus mailing list Sent: Monday, December 14, 2009 2:51 PM Subject: Re: [Lazarus] Lazarus (pendrive linux) can't find SDL libraries? Paul Nicholls wrote: Hi all, I downloaded and installed pendrive linux on my computer. http://www.pendrivelinux.com/run-pendrivelinux-2009-in-windows/ After much fannying around (package dependancy issues), I managed to install freepascal, Lazarus 0.9.28.2, gdb (for Lazarus debugging), and SDL. Ok, so far so good... I am now trying to get a Win32 Lazarus SDL project I have already made to now also compile and run under my new shiny Linux ;) When I try and compile the source code, I get this linking error: "/usr/bin/ld: cannot find -lSDL" if it helps, in Linux, I used this (from memory, might be slightly wrong package name) to install SDL (as root user): "apt-get install SDL" You have to install sdl-dev or similar. So, how do I tell Lazarus where Linux installed the SDL libraries, and how do I find them in the first place if I need a path to them? LOL cheers, Paul ---------------------------------------------------------------------------- --

Reply by email

Michael Joyner ᏩᏯ
to Paul Nicholls
Paul Nicholls wrote 6 lines
Hi Michael, thanks :-) I have now attempted to install SDL like so: apt-get install libsdl1.2-dev I will see if this works :)

Look in synaptic for other libsdl stuff, like sdl-mixer-dev, etc, many of the sdl * dev are needed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20091213/925e9416/attachment.html>

Reply by email

Paul Nicholls
to Michael Joyner ᏩᏯ

Thanks Michael, that seems to have done the trick :)

Unfortunately, I ran Lazarus using debug mode (hadn't tried directly running the executable yet), and it killed my pendrive Linux (restoring now) :(

Nasty!

cheers,
Paul

Earlier message 23 lines
----- Original Message ----- From: Michael Joyner ?? To: Lazarus mailing list Sent: Monday, December 14, 2009 3:13 PM Subject: Re: [Lazarus] Lazarus (pendrive linux) can't find SDL libraries? Paul Nicholls wrote: Hi Michael, thanks :-) I have now attempted to install SDL like so: apt-get install libsdl1.2-dev I will see if this works :) Look in synaptic for other libsdl stuff, like sdl-mixer-dev, etc, many of the sdl * dev are needed. ------------------------------------------------------------------------------ --

Reply by email