Re: [Quickfix-users] Building under Mac OS X
Brought to you by:
orenmnero
|
From: Tahir H B. <ta...@ac...> - 2004-10-06 18:43:24
|
Hi, so I don't know why this hadn't happened before but I need to run
'sh build.sh' in the src directory to get the at.jar compiled and
placed in lib.
now that is done, i don't get the old message.
instead i get:
<at>
Exception in thread "main" java.lang.UnsatisfiedLinkError: create
at quickfix.SessionSettings.create(Native Method)
at quickfix.SessionSettings.<init>(Unknown Source)
at at.main(at.java:42)
Runner.rb:79:in `sleep': Interrupt
from Runner.rb:79:in `createProcess'
from Runner.rb:72:in `each'
from Runner.rb:72:in `createProcess'
from Runner.rb:109
from Runner.rb:106:in `each'
from Runner.rb:106
any clues on where i need to look to find why this error occured?
just to be clear, in the root directory i had run ./configure and then
make, yet the java code did not compile at that time. i've had to go
into src and src/java and run the build scripts to get the jni and jar
files compiled. maybe i am still missing something. why didn't the
configure script setup the makefiles to do the java interface as well?
-- tahir
On Oct 5, 2004, at 1:42 PM, Oren Miller wrote:
> QuickFIX Documentation:
> http://www.quickfixengine.org/quickfix/doc/html/index.html
> QuickFIX FAQ:
> http://www.quickfixengine.org/wikifix/index.php?QuickFixFAQ
> QuickFIX Support: http://www.quickfixengine.org/services.html
>
> What version of OS/X are you running, and what version of ruby is
> installed? What results come out of runut_java?
>
> Currently the install scripts don't do a perfect job under OS/X, but
> the test scripts don't rely on this installation since they use the
> locally built libraries instead of the installed ones. Right now the
> only OS/X specific install feature the scripts are performing is
> creating a symlink to libquickfix_jni.dylib called
> libquickfix_jni.jnilib, since OS/X requires this extension. This
> symlink is also currently placed in /usr/local/lib. This probably
> isn't the ideal location as you pointed out, and we can see about
> installing them as per apple's recommendation. The current
> installation is basically the default for autotools which I don't
> think is very aware of how to deploy java in general, and even less so
> on OS/X.
>
> In the meantime it shouldn't particularly matter where the .jar and
> .jnilib are installed, as long as they get added to your classpath and
> java.library.path respectively.
>
> --oren
>
> On Oct 5, 2004, at 12:04 PM, Tahir H Butt wrote:
>
>> QuickFIX Documentation:
>> http://www.quickfixengine.org/quickfix/doc/html/index.html
>> QuickFIX FAQ:
>> http://www.quickfixengine.org/wikifix/index.php?QuickFixFAQ
>> QuickFIX Support: http://www.quickfixengine.org/services.html
>>
>> So right now after I do 'make install' -- it put
>> libquickfix_jni.dylib and quickfix.jar in /usr/local/lib, which isn't
>> what is recommended by Apple:
>>
>> http://developer.apple.com/documentation/Java/Conceptual/
>> Java141Development/Core_APIs/chapter_6_section_4.html
>>
>> but I would think people have written the Makefile (or patched the
>> standard one) for OS X such that it compiles and installs properly.
>> does anyone know what files need to be in /Library/Java/Extensions/?
>>
>> i was only able to compile it after I edited the Makefile with the
>> header path that the Apple jni document notes.
>>
>> if i run the test right now, i get:
>>
>> $ ./runat_java 81023
>> Exception in thread "main" java.lang.NoClassDefFoundError: at
>> <at>
>> <test name='definitions/server/fix40/10_MsgSeqNumEqual.def'
>> result='failure' >
>> <message>
>> Invalid argument - "connect(2)"
>> <line>3</line>
>> </message>
>> </test>
>>
>> -- tahir
>>
>> On Oct 5, 2004, at 12:51 PM, Oren Miller wrote:
>>
>>> Can you give some more details about what you mean by "did not work"?
>>>
>>> --oren
>>>
>>> On Oct 5, 2004, at 11:05 AM, Tahir H Butt wrote:
>>>
>>>> Hi,
>>>>
>>>> Though I've gotten the C++ code built and installed (and tested),
>>>> the Java code has given me problems.
>>>>
>>>> If anyone can help me, that would be much appreciated. I got the
>>>> library to compile once I included the Java framework headers, but
>>>> installing the libraries in /usr/local/lib did not work. Should it
>>>> be instead installed in some Mac OS X library location?
>>>>
>>>> Thanks,
>>>> -- tahir
>>>>
>>>>
>>>>
>>>> -------------------------------------------------------
>>>> This SF.net email is sponsored by: IT Product Guide on
>>>> ITManagersJournal
>>>> Use IT products in your business? Tell us what you think of them.
>>>> Give us
>>>> Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find
>>>> out more
>>>> http://productguide.itmanagersjournal.com/guidepromo.tmpl
>>>> _______________________________________________
>>>> Quickfix-users mailing list
>>>> Qui...@li...
>>>> https://lists.sourceforge.net/lists/listinfo/quickfix-users
>>>>
>>
>>
>>
>> -------------------------------------------------------
>> This SF.net email is sponsored by: IT Product Guide on
>> ITManagersJournal
>> Use IT products in your business? Tell us what you think of them.
>> Give us
>> Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find
>> out more
>> http://productguide.itmanagersjournal.com/guidepromo.tmpl
>> _______________________________________________
>> Quickfix-users mailing list
>> Qui...@li...
>> https://lists.sourceforge.net/lists/listinfo/quickfix-users
>>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IT Product Guide on
> ITManagersJournal
> Use IT products in your business? Tell us what you think of them. Give
> us
> Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out
> more
> http://productguide.itmanagersjournal.com/guidepromo.tmpl
> _______________________________________________
> Quickfix-users mailing list
> Qui...@li...
> https://lists.sourceforge.net/lists/listinfo/quickfix-users
|