Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 21994

Problem with installing/compilling Apache Lucy, C Bindings

$
0
0

Lucy search has sadly gone attic, and I can't make it work with the C bindings...

# IMPORTANT: change variables FOLDER and PREFIX according to your system

FOLDER=`pwd`/lucy_dist # must be absolute !

PREFIX=$FOLDER/prefix # where includes and libs will be installed in your system

rm -rf $FOLDER $PREFIX
mkdir -p $FOLDER
mkdir -p $PREFIX

cd $FOLDER
git clone https://github.com/apache/attic-lucy-clownfish.git

cd $FOLDER
git clone https://github.com/apache/attic-lucy.git


cd $FOLDER/attic-lucy-clownfish/runtime/c
./configure --prefix=$PREFIX --disable-threads
make clean
make
make install  

cd $FOLDER/attic-lucy-clownfish/compiler/c
./configure --prefix=$PREFIX
make clean
make 
make install  

cd $FOLDER/attic-lucy/c
./configure --prefix=$PREFIX --clownfish-prefix=$PREFIX 
make clean
make
make install


# now compile a lucy example and run it:
cd $FOLDER/attic-lucy/c/sample

gcc getting_started.c -L $PREFIX/lib -I $FOLDER/attic-lucy/c/autogen/include -I $FOLDER/attic-lucy/c \
    -I $PREFIX/attic-lucy-clownfish/runtime/c/autogen/include/Clownfish \
    -l clownfish -l lucy -o getting_started.out


LD_PRELOAD="$PREFIX/lib/libclownfish.so.0.6 $PREFIX/lib/liblucy.so.0.6" \
    ./getting_started.out

Everything goes fine until gcc compile getting_started.c and fail with the following error:

/usr/bin/ld: lib/liblucy.so: undefined reference to `cfish_Err_certify'
collect2: error: ld returned 1 exit status

Does anyone has a clue how to fix this?


Viewing all articles
Browse latest Browse all 21994

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>