[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [platform-swt-dev] Compiling of GCJ and SWT under MacOS X
|
sorry i didn't know. I thought that since this is the *developers* mailing list, that I should've gotten information from the
developer's point of view. I will do as you say though.
Thanks
On Wed Feb 9 9:27 , Mike Wilson <Mike_Wilson@xxxxxxxxxx> sent:
>Well if you're looking for input from the community, I would suggest using
>the eclipse.platform.swt newsgroup. This is the SWT *developer's* mailing
>list and has a much smaller readership (and we don't use GCJ).
>
>McQ.
>
>
>
>
>cyberdeth@xxxxxxxxxx>
>Sent by: platform-swt-dev-admin@xxxxxxxxxxx
>02/09/05 10:31
>Please respond to
>platform-swt-dev@xxxxxxxxxxx
>
>
>To
>platform-swt-dev@xxxxxxxxxxx
>cc
>
>Subject
>Re: [platform-swt-dev] Compiling of GCJ and SWT under MacOS X
>
>
>
>
>
>
>hmmm well AFAIK only ld has any references to frameworks but some of the
>command line arguments for gcc might have been modified to send the extra
>cmd
>line parameters through to ld.
>
>Well I know they are different but I was jsut about to try anything just
>to get a java
>program to compile with gcj and SWT.
>
>As for searching on Apple's Developer's pages, I have not tried that, but
>I have
>tried Google and I get a lot of references of how to compile a native
>application
>using gcj and SWT on linux and windows but absolutely none on compiling
>native
>applications on MacOS X.
>
>I just need one concrete example of how to build a native MacOS X
>application
>using gcj and SWT. Just one. Someone, somewhere must have done it.
>
>I can't think that I am the first one to struggle with this.
>
>Any help will be appreciated.
>
>Thanks
>
>On Wed Feb 9 7:37 , Greg Watson gwatson@xxxxxxxx> sent:
>
>>I don't know the exact answer to your question, but here are a few
>>pointers:
>>
>>1. The Apple distributed gcc is modified from the standard version, so
>>the standard gnu version may not work correctly with frameworks, etc.
>>
>>2. jnilib's and dylib's are very different things. See the following
>>URL's for more information:
>>
>>http://developer.apple.com/documentation/Java/Conceptual/
>>Java14Development/Core_APIs/chapter_6_section_4.html
>>http://developer.apple.com/documentation/DeveloperTools/Conceptual/
>>MachORuntime/Overview/chapter_2_section_4.html
>>
>>3. MacOSX has a library management tool called 'libtool'. You probably
>>want to take a look at the man page.
>>
>>Searching for 'java', 'jnilib' and 'dylib' on
>>http://developer.apple.com might provide you with more information.
>>
>>Regards,
>>
>>Greg
>>
>>On Feb 9, 2005, at 1:02 AM, cyberdeth@xxxxxxxxxx> wrote:
>>
>>> Hi.
>>>
>>> I have downloaded gnu gcc 3.4.3 and compiled it with the following
>>> command line
>>> parameters :
>>>
>>> configure --prefix=/usr --enable-languages=c,c++,java,f77,objc
>>> --enable-threads=posix --enable-shared
>>>
>>> make bootstrap
>>>
>>> make install
>>>
>>> Now this compiles everything fine under MacOS X.3 using the gcc
>>> compiler that
>>> comes with the Developer Tools ie. gcc 3.3
>>>
>>> When I compile a Hello World program using gcj, like so :
>>>
>>> gcj Test.java -o Test --classpath
>>> /usr/share/java/libgcjxxx.jar:$CLASSPATH
>>> --main=Test -lgcj
>>>
>>> Then it compiles fine and the output from the program is as expected.
>>>
>>> But. When I try to link against the libswt-carbon-xxxx.jnilib all hell
>
>>> breaks loose. I
>>> have tried to make a symlink from *.jnilib to *.dylib and even to .a.
>>> When I do a file
>>> on the jnilib it says it's a bundle.
>>>
>>> I have tried to copy the jnilib files
>>> into /System/Library/Frameworks/JavaVM.framework/Libraries and linking
>
>>> the
>>> program as follows.
>>>
>>> gcj Test.java -o Test --classpath
>>> /usr/share/java/libgcjxxx.jar:$CLASSPATH
>>> --main=Test -lgcj -framework JavaVM
>>>
>>> which fails.
>>>
>>> When I do an ld style
>>>
>>> ld Test.o -o Test -lgcj -framework JavaVM then it gives me an error
>>> that no __main is
>>> found hence the --main=Test option.
>>>
>>> when doing a gcj Test.o -o Test -lgcj libswt-carbon-xxxx.jnilib it
>>> fails as well telling
>>> me that i can't call a static link editor using a dynamic link editor
>>> or something like
>>> this. And this is where I'm struggling with.
>>>
>>> I mean if I link against any other jnilib in the JavaVM framework it
>>> compiles
>>> correctly. Maybe the jnilibs shouldn't be bundles ???
>>>
>>>
>>> My long winded questions is :
>>>
>>> 1) Is my gcc configuration flags correct ?
>>> 2) How do you compile a program natively using the
>>> swt-carbon-xxxx.jnilib's ? If
>>> you have a MacOS specific example could you please supply me with it.
>>>
>>> I have been struggling with it for over a week now and I'm lost....
>>>
>>>
>>> PLEASE....... Help me.
>>>
>>>
>>> Francois Hensley
>>> _______________________________________________
>>> platform-swt-dev mailing list
>>> platform-swt-dev@xxxxxxxxxxx
>>> http://dev.eclipse.org/mailman/listinfo/platform-swt-dev
>>>
>>
>>_______________________________________________
>>platform-swt-dev mailing list
>>platform-swt-dev@xxxxxxxxxxx
>>http://dev.eclipse.org/mailman/listinfo/platform-swt-dev
>
>
>_______________________________________________
>platform-swt-dev mailing list
>platform-swt-dev@xxxxxxxxxxx
>http://dev.eclipse.org/mailman/listinfo/platform-swt-dev
>
>
>_______________________________________________
>platform-swt-dev mailing list
>platform-swt-dev@xxxxxxxxxxx
>http://dev.eclipse.org/mailman/listinfo/platform-swt-dev