Sign in Join

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

Mailing lists / fpc-devel / 2013-01

Freebsd 9.1 -liconv not found

8 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

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

Jonas Maebe
to Leonardo M. Ramé
Leonardo M. Ramé wrote
I'm trying to compile fpc on a new FreeBsd 9.1 machine, I've installed iconv and libiconv from ports, but /usr/bin/ld keeps complaining about cannot finding -liconv.

Install libiconv-dev, libiconv-devel or something like that.

Jonas

Reply by email

Leonardo M. Ramé
to Jonas Maebe
Show quoted text 20 lines
________________________________ From: Jonas Maebe To: "FPC developers' list" Sent: Sunday, January 27, 2013 12:13 PM Subject: Re: [fpc-devel] Freebsd 9.1 -liconv not found On 27 Jan 2013, at 16:03, Leonardo M. Ramé wrote: I'm trying to compile fpc on a new FreeBsd 9.1 machine, I've installed iconv and libiconv from ports, but /usr/bin/ld keeps complaining about cannot finding -liconv. > Install libiconv-dev, libiconv-devel or something like that. Jonas

Mmm, no, that would work for Linux, but not on bsd.

Leonardo M. Ramé
http://leonardorame.blogspot.com

Reply by email

Leonardo M. Ramé
to Marco van de Voort

----- Original Message -----

Show quoted text 15 lines
From: Marco van de Voort To: Leonardo M. Ramé ; FPC developers' list Cc: Sent: Sunday, January 27, 2013 12:28 PM Subject: Re: [fpc-devel] Freebsd 9.1 -liconv not found In our previous episode, Leonardo M. Ram? said: > I'm trying to compile fpc on a new FreeBsd 9.1 machine, I've installed iconv and libiconv from ports, but /usr/bin/ld keeps complaining about cannot finding -liconv.? > Any hint?. Pass -Fl/usr/local/lib in OPT=""

Thanks Marco, that did the trick!.
 
Leonardo M. Ramé
http://leonardorame.blogspot.com

Reply by email

Graeme Geldenhuys
to Leonardo M. Ramé
Leonardo M. Ramé wrote 5 lines
> > Pass -Fl/usr/local/lib in OPT="" > Thanks Marco, that did the trick!.

I had a similar problem for X11 apps recently. I simply modified my ~/.fpc.cfg file and specified -Fl/usr/local/lib inside there. Solved my problem without too much fuss, and no need to modify compiler parameters per project.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Reply by email

Marco van de Voort
to Graeme Geldenhuys

In our previous episode, Graeme Geldenhuys said:

Show quoted text 9 lines
>> Pass -Fl/usr/local/lib in OPT="" >> > > Thanks Marco, that did the trick!. I had a similar problem for X11 apps recently. I simply modified my ~/.fpc.cfg file and specified -Fl/usr/local/lib inside there. Solved my problem without too much fuss, and no need to modify compiler parameters per project.

The TAR installer and afaik the port should add this line to the config already, so if your installation derives from that, it should be already done.

But building fpc ignores (.)fpc.cfg, so it is not a solution anyway for the reported problem.

Reply by email

Graeme Geldenhuys
to Marco van de Voort
Marco van de Voort wrote
The TAR installer and afaik the port should add this line to the config already,

I installed the stable FPC from the TAR installer, then installed the "fixes" version from the repository. All done as a normal user, not root.

But building fpc ignores (.)fpc.cfg, so it is not a solution anyway for the reported problem.

Thanks for correcting me, my mistake. Re-reading the original post, I see he mentions compiling FPC itself. My message referred to compiling my applications.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Reply by email