RE: Pascal/Delphi and XCode
RE: Pascal/Delphi and XCode
- Subject: RE: Pascal/Delphi and XCode
- From: "Lyndsey Ferguson" <email@hidden>
- Date: Fri, 9 Feb 2007 11:40:36 -0500
- Thread-topic: Pascal/Delphi and XCode
You need to read:
"Linking to a Dynamic Library in a Nonstandard Location"
In the Xcode help. There is a lot of useful information in the Help
documentation.
While running Xcode, select "Documentation" from the "Help" menu. In the
search field on the upper right, type "dynamic library" (making sure
that the search is "Full-Text Search") and find the article I mentioned
above.
Good luck,
Lyndsey Ferguson
-----Original Message-----
From: xcode-users-bounces+lyndsey=email@hidden
[mailto:xcode-users-bounces+lyndsey=email@hidden] On
Behalf Of Dave
Sent: Friday, February 09, 2007 11:31 AM
To: Xcode Users
Subject: Re: Pascal/Delphi and XCode
*****STOP PRESS*****
Hi All,
I copied the Pascal Dynamic Library to /usr/lib and now it works!!!
I'm not sure if this is the recommended way of doing things, but I'm
happy for now. I would rather have the Dynamic Library held in the same
folder as the PlugIn. Is this possible and if so how do I do it???
Thanks a lot to all who have helped on this and have a Great Weekend!
All the Best
Dave
Hi,
I'm not sure exactly what I have to do in this case! I have an XCode
project that contains .c and .h files and one Dynamic Library that was
build with Free Pascal. I added the Pascal Dynamic Library using the
"Add to Project" command in the "Project" library. The Project produces
a bundle file when is then used as a PlugIn. I am not sure which file I
should run the "install_name_tool" on?
The PlugIn could be located anywhere on the disk and more than one
plugin may want to use the Pascal Dynamic Library.
Really Confused Now!!!
All the Best
Dave
On 9 Feb 2007, at 15:43, Jonas Maebe wrote:
>
> On 9 feb 2007, at 16:34, Dave wrote:
>
>> One more thing though, do I need to do anything special in order to
>> get the Dynamic Library to Load? Does it need to be in the same
>> folder as the place it is used from? I am developing a Plug-In that
>> calls the Pascal library. When I don't use the pascal library my
>> PlugIn loads and works ok (except that the functionality of the
>> Pascal Library isn't there!!!) but when I make it call and reference
>> the pascal library is doesn't load so I am guessing that the problem
>> is that it is not finding the Pascal library correctly.
>
> You have to store inside the library where it will be located. Have a
> look at "man install_name_tool". For it to work, you may have to pass
>
> -k-header-pad_max_install_names
>
> when compiling the library with Free Pascal (-k means "pass the
> following option to the linker"). An easier way would be to setup an
> Xcode/Free Pascal dynamic library project and let Xcode do this for
> you (setting the correct install path based on where you specify the
> install location), but I haven't had the time you to create an Xcode
> template for that (I do have a project doing this though).
>
>
> Jonas
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> 40looktowindward.com
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40looktowindward.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
net
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden