Re: [Quickfix-developers] quickfix_jni.dll compilation problem
Brought to you by:
orenmnero
|
From: Joerg T. <Joe...@ma...> - 2006-02-10 13:47:10
|
Hi Alexander,
> I am a newbee in Fix. I want to use quickFix as a FIX engine for a new =
project and I
> have a problem running the junit tests.
>=20
> I downloaded the sources and I tried to compile the quickfix_jni.dll fo=
r Windows/Java
> using postgreSQL as the db platform. I did the following:
[...]
> java.lang.UnsatisfiedLinkError: create at quickfix.Dictionary.create(Na=
tive Method) at
> quickfix.Dictionary.<init>(Dictionary.java:30) at
> quickfix.test.DictionaryTest.setUp(DictionaryTest.java:20) at
> junit.framework.TestCase.runBare(TestCase.java:138) at
> junit.framework.TestResult$1.protect(TestResult.java:106) at
> junit.framework.TestResult.runProtected(TestResult.java:124) at
> junit.framework.TestResult.run(TestResult.java:109) at
> junit.framework.TestCase.run(TestCase.java:131) at
> junit.framework.TestSuite.runTest(TestSuite.java:173) at
> junit.framework.TestSuite.run(TestSuite.java:168) at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteT=
estRunner.java:478)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRu=
nner.java:344)=20
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestR=
unner.java:196)
>=20
> I investigated a bit and found out that all the failed tests fail while=
running a
> native method create (from the constructor of the class quickfix.Dictio=
nary) which
> apparently calls the constructor of the Dictionary.cpp class.
For some reason, a constructor method with the appropriate signature coul=
d not found in=20
the quickfix_jni.dll. I am not a windows expert at all, but I suggest to =
look at the=20
symbols exported by quickfix_jni.dll. Maybe also some dependent library, =
ie the XML=20
library is missing:
Dictionary constructor is called
shared loader loads objects needed by the constructor method...
...ie method/object from quickfix.dll
...shared loader loads objects needed for method/object from qui=
ckfix.dll
......libxml2 stuff not found
Just some thoughts...
> Could someone suggest something to resolve this problem and/or tell how=
important is
> that these tests fail.
Did you try the non-java unit tests? Do they run completely?
Anyway, all tests should run successfully, otherwise your QuickFIX instal=
lation will not=20
be usable.
Cheers, J=F6rg
--=20
Joerg Thoennes
http://macd.com
Tel.: +49 (0)241 44597-24 Macdonald Associates GmbH
Fax : +49 (0)241 44597-10 Lothringer Str. 52, D-52070 Aachen
|