• 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: Frustrated compiling a simple .m file which uses JNI
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Frustrated compiling a simple .m file which uses JNI


  • Subject: Re: Frustrated compiling a simple .m file which uses JNI
  • From: Kustaa Nyholm <email@hidden>
  • Date: Sun, 07 Oct 2012 22:01:01 +0300
  • Acceptlanguage: en-US, fi-FI
  • Thread-topic: Frustrated compiling a simple .m file which uses JNI

On 7.10.2012 21.26, "Jens Alfke" <email@hidden> wrote:

>
>On Oct 7, 2012, at 1:08 AM, Kustaa Nyholm <email@hidden>
>wrote:
>
>
>I've now been trying to compile this with Xcode for three hours trying
>various
>approaches from command line clang to creating a Coco application from
>template, googling like mad, but always there is a snag.
>
>
>
>
>Like what? Describe the errors, don¹t just say it doesn¹t work.
>
>‹Jens

Well, I was really fishing for an example on how make a simple
JNI / objC project with some Cocoa thrown in to compile, I thought
it would be easiest with Xcode, but apparently not. I've
since worked out that I can do that from the command line with:

clang -I/System/Library/Frameworks/JavaVM.framework/Headers -framework
Foundation -framework AppKit main.m


but for the record, in Xcode, when I created a Coco application
from a template (my thinking was that I could use that project
as spring board for my needs) I could not add any files to the
project, the Add Files brought up a file dialog that showed
all the files as greyed out.

That was my last issue, before I gave up and asked for help.

Before that I struggled to configure my project (created
more or less manually) to reference the JavaVM frame work
so that #include <jni.h> would be found. I could make that
to work, sort of, but then something was wrong because
it pulled in some other include that ref fed something that
was not in the include path. Figured out that and then
had more path issues with Coco includes, when it looked
like some Coco files could be found but others not. At
that point I ditched that approach and tried to use the
Coco Application Template approach above.

So, at the moment I'm ok, but I would like to know why
I can't any files to my project... thats gona be a problem
next time I come back to Xcode (sigh).

br Kusti




 _______________________________________________
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:
    • Re: Frustrated compiling a simple .m file which uses JNI
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Frustrated compiling a simple .m file which uses JNI
  • Next by Date: Re: Frustrated compiling a simple .m file which uses JNI
  • Previous by thread: Frustrated compiling a simple .m file which uses JNI
  • Next by thread: Re: Frustrated compiling a simple .m file which uses JNI
  • Index(es):
    • Date
    • Thread