On Linux, my program (DocFetcher) is started with a shell script. Since the
program is supposed to be portable, I can't put anything into
LD_LIBRARY_PATH.

When I install libwpd2 and libwpd2-bindings with make install, the program
does not crash, but it does after make uninstall. The error shown is just
the typical java.lang.UnsatisfiedLinkError that is thrown from Java programs
when a native library is not found:

Exception in thread "Thread-3" java.lang.UnsatisfiedLinkError: no
libwpd-java-0.9 in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1709)
    at java.lang.Runtime.loadLibrary0(Runtime.java:823)
    at java.lang.System.loadLibrary(System.java:1030)
    at org.libwpd.WPDocumentJava.<clinit>(WPDocumentJava.java:39)
    at
net.sourceforge.docfetcher.parse.WordPerfectParser.renderText(WordPerfectParser.java:38)
    at net.sourceforge.docfetcher.parse.Parser.parse(Parser.java:42)
    at
net.sourceforge.docfetcher.dev.ParserTestboxInjector$ResultsThread.run(ParserTestboxInjector.aj:198)

Despite of what this stacktrace says, I *know* that libwpd-java-0.9 is on my
java.library.path, so my guess is that libwpd-java-0.9 tries and fails to
load the other libwpd libraries (libwpd-0.9 and libwpd-stream, I think).
Perhaps there's some shell command to add paths to LD_LIBRARY_PATH that you
can point me to?

When I run make check, I get the following errors:

==========================
    libwpd2
==========================

...
make[1]: Leaving directory `/media/Workspace/Downloads/libwpd/libwpd2'
cd src/test && make check
make[1]: Entering directory
`/media/Workspace/Downloads/libwpd/libwpd2/src/test'
g++ -DHAVE_CONFIG_H -I. -I../..    -I../../src/lib/  -DNDEBUG -g -O2 -Wall
-Werror -pedantic -MT test.o -MD -MP -MF .deps/test.Tpo -c -o test.o
test.cpp
test.cpp:24:32: error: cppunit/TestRunner.h: No such file or directory
test.cpp:25:32: error: cppunit/TestResult.h: No such file or directory
test.cpp:26:41: error: cppunit/TestResultCollector.h: No such file or
directory
test.cpp:27:45: error: cppunit/extensions/HelperMacros.h: No such file or
directory
test.cpp:28:47: error: cppunit/BriefTestProgressListener.h: No such file or
directory
test.cpp:29:52: error: cppunit/extensions/TestFactoryRegistry.h: No such
file or directory
test.cpp:30:39: error: cppunit/CompilerOutputter.h: No such file or
directory
test.cpp:39: error: 'CPPUNIT_NS' has not been declared
test.cpp:39: error: expected `{' before 'TestFixture'
test.cpp:39: error: function definition does not declare parameters
test.cpp:52: error: extra ';'
test.cpp:54: error: invalid use of incomplete type 'class Test'
test.cpp:39: error: forward declaration of 'class Test'
test.cpp:62: error: invalid use of incomplete type 'class Test'
test.cpp:39: error: forward declaration of 'class Test'
test.cpp:67: error: invalid use of incomplete type 'class Test'
test.cpp:39: error: forward declaration of 'class Test'
test.cpp:275: error: expected constructor, destructor, or type conversion
before ';' token
test.cpp: In function 'int main(int, char**)':
test.cpp:280: error: 'CPPUNIT_NS' has not been declared
test.cpp:280: error: expected `;' before 'controller'
test.cpp:283: error: 'CPPUNIT_NS' has not been declared
test.cpp:283: error: expected `;' before 'result'
test.cpp:284: error: 'controller' was not declared in this scope
test.cpp:284: error: 'result' was not declared in this scope
test.cpp:287: error: 'CPPUNIT_NS' has not been declared
test.cpp:287: error: expected `;' before 'progress'
test.cpp:288: error: 'progress' was not declared in this scope
test.cpp:291: error: 'CPPUNIT_NS' has not been declared
test.cpp:291: error: expected `;' before 'runner'
test.cpp:292: error: 'runner' was not declared in this scope
test.cpp:292: error: 'CPPUNIT_NS' has not been declared
test.cpp:296: error: 'CPPUNIT_NS' has not been declared
test.cpp:296: error: expected `;' before 'outputter'
test.cpp:297: error: 'outputter' was not declared in this scope
make[1]: *** [test.o] Error 1
make[1]: Leaving directory
`/media/Workspace/Downloads/libwpd/libwpd2/src/test'
make: *** [check] Error 2


==========================
    libwpd2-bindings
==========================

...
make[3]: Entering directory
`/media/Workspace/Downloads/libwpd/libwpd2-bindings/src/java'
make[3]: Nothing to be done for `check-am'.
make[3]: Leaving directory
`/media/Workspace/Downloads/libwpd/libwpd2-bindings/src/java'
sh test.sh
[: 13: ==: unexpected operator
failed, debug info @ /tmp/tmp.ojavuV4137
make[2]: *** [check] Error 1
make[2]: Leaving directory
`/media/Workspace/Downloads/libwpd/libwpd2-bindings/src/java'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory
`/media/Workspace/Downloads/libwpd/libwpd2-bindings/src'
make: *** [check-recursive] Error 1

2009/1/9 Fridrich Strba <fridrich.st...@bluewin.ch>

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> OK, these libraries should be basically in systems LD_LIBRARY_PATH. But
> a more detailed error would maybe help. Now, after you compiled the
> bindings, did "make check" succeed?
>
> Cheers
>
> Fridrich
>
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Libwpd-devel mailing list
Libwpd-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libwpd-devel

Reply via email to