Recent

Author Topic: Frameworks - Mac OS  (Read 4542 times)

wagenheimer

  • New Member
  • *
  • Posts: 21
Frameworks - Mac OS
« on: November 22, 2013, 03:58:57 pm »
Hi!
I configured Lazarus on my Mac several years ago, and now I had to do a clean install of OSX Mavericks.

My program does use LUA, but I can't remember where and what I need to install, so any help would be very apreciated.

Where does Lazarus looks for Frameworks when I use -kLua ?

Error : Id: framework not found Lua

I don't remember what I have to install and where I have to put it to make it work.

Any advice?

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1071
Re: Frameworks - Mac OS
« Reply #1 on: November 22, 2013, 04:07:42 pm »
1) the parameter is "-k-framework -kLua", not just -kLua"
2) it's the linker that looks for the framework, not Lazarus nor FPC
3) you should find an official installer for that Lua framework, or at least instructions where to put that copy of the Lua framework, because frameworks contain the path where they have to be installed and won't work if they're installed elsewhere (this is done to avoid accidentally using a wrong copy of a framework if multiple ones exist on the system). Common installation locations are /Library/Frameworks (for frameworks accessible to all users) and $HOME/Library/Frameworks (for frameworks accessible only to the current user -- note that to make the Library folder visible in the Finder you have to go to its preferences under OS X 10.9)

kamischi

  • Full Member
  • ***
  • Posts: 177
Re: Frameworks - Mac OS
« Reply #2 on: November 22, 2013, 04:43:27 pm »
You could also use fink to install lua, which results in dylibs. Also, the lua headers from freepascal may not work with the latest lua (version 5.2). You might have a look at this commit for the lua headers of UltraStar Deluxe regarding changes for version 5.2. I updated them and did a few tests.

I had in mind to pass the changes back to freepascal, but did not find the time and no one asked.

MiSchi

fpc 2.6.4, lazarus 1.4.0, Mac OS X, fink

wagenheimer

  • New Member
  • *
  • Posts: 21
Re: Frameworks - Mac OS
« Reply #3 on: December 06, 2013, 08:14:07 pm »
So... I have to Mac... 1 where I upgraded from Old MAC OS and another where I installed Mavericks from 0.

In the Mac I upgraded, I can compile, it works and find the Lua Framework... But strange, there is nothing in /Library/Frameworks!
On the another other, I was not able to make it works! I made all kind of Lua Installations but Lazarus still could no find Lua Framework.

How can I check where the Lazarus search for the framework on the Mac which is already working to copy to the machine with the clean install?

kamischi

  • Full Member
  • ***
  • Posts: 177
Re: Frameworks - Mac OS
« Reply #4 on: December 11, 2013, 12:08:23 am »
you can pass an option to the linker, in order to have a log of all the places, which are searched. I think it is -va or -vt. so pass -k-va or -k-vt to fpc. expect lots of output.

MiSchi
fpc 2.6.4, lazarus 1.4.0, Mac OS X, fink

 

TinyPortal © 2005-2018