• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Pascal/Delphi and XCode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pascal/Delphi and XCode


  • Subject: Re: Pascal/Delphi and XCode
  • From: Dave <email@hidden>
  • Date: Fri, 9 Feb 2007 16:31:10 +0000


*****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:
This email sent to email@hidden


  • Follow-Ups:
    • Debugging PlugIn
      • From: Dave <email@hidden>
    • RE: Pascal/Delphi and XCode
      • From: "Lyndsey Ferguson" <email@hidden>
References: 
 >Help Regarding Xcode 2.4 (From: "Lijith P" <email@hidden>)
 >Pascal/Delphi and XCode (From: Dave <email@hidden>)
 >Re: Pascal/Delphi and XCode (From: Jonas Maebe <email@hidden>)
 >Re: Pascal/Delphi and XCode (From: Dave <email@hidden>)
 >Re: Pascal/Delphi and XCode (From: Jonas Maebe <email@hidden>)

  • Prev by Date: Re: Pascal/Delphi and XCode
  • Next by Date: RE: Pascal/Delphi and XCode
  • Previous by thread: Re: Pascal/Delphi and XCode
  • Next by thread: RE: Pascal/Delphi and XCode
  • Index(es):
    • Date
    • Thread