Re: Pascal/Delphi and XCode
Re: Pascal/Delphi and XCode
- Subject: Re: Pascal/Delphi and XCode
- From: Dave <email@hidden>
- Date: Fri, 9 Feb 2007 16:06:31 +0000
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:
This email sent to email@hidden