Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not find -lmitie #2

Closed
bsed opened this issue Jun 8, 2015 · 4 comments
Closed

can not find -lmitie #2

bsed opened this issue Jun 8, 2015 · 4 comments

Comments

@bsed
Copy link

bsed commented Jun 8, 2015

c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: cannot fin
d -lmitie
collect2.exe: error: ld returned 1 exit status

@jpillora
Copy link

jpillora commented Jun 9, 2015

and also on Mac OSX

$ go build -v gofreeling.go
github.com/advancedlogic/go-freeling/nlp
# github.com/advancedlogic/go-freeling/nlp
ld: library not found for -lmitie
clang: error: linker command failed with exit code 1 (use -v to see invocation)

@advancedlogic
Copy link
Owner

you have to compile the mitie lib and put the library into /usr/local/lib (as in the header of mitie.go):

#cgo LDFLAGS: -L/usr/local/lib -lmitie

@hiteshjoshi
Copy link

Go to /path/to/MITIE/mitielib and do make install

@thomasmodeneis
Copy link

I've been into the same problem, I've run this to install Mitie:

# install the MITIE library
RUN apt-get install -y libjpeg-dev
RUN sudo apt-get install -y libopenblas-dev liblapack-dev
RUN mkdir /usr/lib/mitie \
    && cd /usr/lib/mitie \
    && git clone https://github.com/mitll/MITIE.git \
    && cd MITIE \
    && make MITIE-models \
    && cd tools/ner_stream \
    && mkdir build \
    && cd build \
    && cmake .. \
    && cmake --build . --config Release \
    && cd ../../../mitielib \
    && make install

However now there is another error, any ideas?

/tmp/go-build297469961/github.com/advancedlogic/go-freeling/nlp/_obj/mitie.cgo2.o: In function `get_entity':
../github.com/advancedlogic/go-freeling/nlp/mitie.go:28: undefined reference to `mitie_ner_get_detection_score'
collect2: error: ld returned 1 exit status

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants