+1. I remember doing some changes to Makefile to the path relative in
.SO. What would be ideal is to generate one .so that only depends on
system libraries.


On Wed, Jun 5, 2013 at 6:07 PM, Bailu Ding <[email protected]> wrote:
> Hi John,
>
> Thanks for your help! Just figure out it is some configuration setting that
> keeps FastBit from compiling successfully. Now it works nicely. Since we
> have experienced trouble in compiling FastBit on different machines, could
> we make the libfastbitjni.so more portable?
>
> Cheers,
> Bailu
>
> ________________________________
> From: Bailu Ding
> Sent: Wednesday, June 05, 2013 1:44 PM
> To: FastBit Users
> Subject: RE: [FastBit-users] portable JAR with the JNI library?
>
> 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]> 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]
>> 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
>
_______________________________________________
FastBit-users mailing list
[email protected]
https://hpcrdm.lbl.gov/cgi-bin/mailman/listinfo/fastbit-users

Reply via email to