• 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:Problems With Cross Development of a JNI Library
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re:Problems With Cross Development of a JNI Library


  • Subject: Re:Problems With Cross Development of a JNI Library
  • From: Doug Zwick <email@hidden>
  • Date: Wed, 9 Feb 2005 15:21:54 -0700

Doug Zwick wrote:

I am trying to build a Java Native Interface library using XCode 1.5
on OS X 10.3.7, targetting OS X 10.1.5+, but it keeps linking with
the 10.3.7 frameworks. I've read the "Setting Up Cross-Development"
article, and TN 2064. I hope someone here can spot my mistake and
help me get this working.

I think I've answered my own question. It looks like the cross-dev features only work for "native" targets. I tried converting my old target to a native target, but it wound up building a static library no matter what I set the library type to. I had created the target using Project Builder, and converted the project to XCode, and the target was a "Bundle" library type, which the XCode native target converter treated as "Static". If I changed the original target to a "Dynamic" library and *then* converted it, it worked. I also put back the DYLIB_COMPATIBILITY_VERSION and DYLIB_CURRENT_VERSION values (basically undoing the edits described in steps 7 to 9 of Q&A JAVA28 (Creating JNI Libraries with Project Builder). The (relatively) newer XCode template for a JNI Java app creates such a target, so I used that as an example.

_______________________________________________
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


  • Prev by Date: Re: when does the escape key work?
  • Next by Date: Re: Build failed with cc1plus: error: output filename specified twice
  • Previous by thread: Problems With Cross Development of a JNI Library
  • Next by thread: Fwd: WTF, my application is writing *directly* into Xcode log?
  • Index(es):
    • Date
    • Thread