[fpc-pascal] Library does not compile on freeBSD

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Sat Aug 2 10:45:25 CEST 2014


On 2014-08-01 23:48, fredvs wrote:
>>> >> /usr/home/fred/fpGUI-develop/lib/x86_64-freebsd/fpg_base.o: could not
>>> >> read symbols: Bad value
> Compilation was done with -fPIC parameter...
> 
> What is wrong ?


The classic down side of using Lazarus Packages (*.lpk files). You
applied a new compiler option to your project, but Lazarus doesn't apply
that to any packages you are using. Same goes for enabling/disabling
debug info etc.  Hence I am moving away from Lazarus Packages and using
path macros like Maximus IDE and MSEide does. I think with newer Lazarus
IDE you can somehow do it, but I find the new build modes dialog too
confusing, so haven't bothered figuring it out yet.

To solve you problem, define all fpGUI Toolkit paths in your project -
removing the fpgui_toolkit.lpk dependency. Or add -fPIC to the
fpgui_toolkit.lpk compiler options and recompile that as well.


Regards,
  - Graeme -

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



More information about the fpc-pascal mailing list