Hi John,

I change line 16336 and 16337 to

CFLAGS="$CFLAGS $PTHREAD_CFLAGS -I ${PWD}/win"
CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS -I ${PWD}/win"

It still does not found FlexLexer.h. The head file is in the win folder though.

Also, is there any way to build a more portable .so file? It is probably not so 
convenient if we have to build the FastBit code on every machine before 
deployment.

Cheers,
Bailu

________________________________
From: [email protected] 
[[email protected]] on behalf of Kesheng Wu [[email protected]]
Sent: Tuesday, June 04, 2013 5:12 PM
To: FastBit Users
Subject: Re: [FastBit-users] portable JAR with the JNI library?

Hi, Bailu,

There is a copy of FlexLexer.h in the directory win.  If you modify the 
CXXFLAGS to include the path to win, the code should compile fine.  Let me know 
if you need additional information.

John


On Tue, Jun 4, 2013 at 2:00 PM, Bailu Ding 
<[email protected]<mailto:[email protected]>> wrote:
Hi John,

I would like to pack my code in a JAR file and run it on a remote machine. 
Since the libfastbitjni.so links to the local copy of libfastbit.so.0, the link 
breaks on the remote machine. Unfortunately, I am not able to install FastBit 
successfully on the remote machine (it is not able to find FlexLexer.h, and the 
solutions in the mailing list did not work).

I have tried to play with the make file a bit, but no success. How could I 
compile the libfastbitjni.so so that I can just load the library, i.e. 
System.load('fastbitjni'), without any local dependency and run it on the 
remote machine? Thanks.

Cheers,
Bailu


_______________________________________________
FastBit-users mailing list
[email protected]<mailto:[email protected]>
https://hpcrdm.lbl.gov/cgi-bin/mailman/listinfo/fastbit-users


_______________________________________________
FastBit-users mailing list
[email protected]
https://hpcrdm.lbl.gov/cgi-bin/mailman/listinfo/fastbit-users

Reply via email to