mikemccand / chromium-compact-language-detector

Automatically exported from code.google.com/p/chromium-compact-language-detector
160 stars 31 forks source link

error on build - linux #24

Open juanbits opened 6 years ago

juanbits commented 6 years ago

hi, i try to build this and i get the next error:

$ python setup.py build
running build
running build_ext
building 'cld2' extension
creating build
creating build/temp.linux-x86_64-2.7
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/lib/cld2/public -I/usr/lib/cld2/internal -I/usr/include/python2.7 -c pycldmodule.cc -o build/temp.linux-x86_64-2.7/pycldmodule.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/lib/cld2/public -I/usr/lib/cld2/internal -I/usr/include/python2.7 -c encodings.cc -o build/temp.linux-x86_64-2.7/encodings.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
creating build/lib.linux-x86_64-2.7
c++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/pycldmodule.o build/temp.linux-x86_64-2.7/encodings.o -lcld2 -o build/lib.linux-x86_64-2.7/cld2.so
/usr/bin/ld: no se puede encontrar -lcld2
collect2: error: ld returned 1 exit status
error: command 'c++' failed with exit status 1

anyone have any idea about how can i solve this? thanks

earlve commented 1 year ago

I got the same error with QT when creating Ultrastar-Creator, the problem is that the instruction says on line 115: LIBS += -L"/usr/lib/x86_64-linux-gnu" \ -lcld2 but, at least ubuntu does not have that library added and it is not there to install it in the SRC folder either...


yo obtuve el mismo error con QT al crear UltraStrar-Creator, el problema es que la instruccion dice en la linea 115: LIBS += -L"/usr/lib/x86_64-linux-gnu" \ -lcld2 pero, por lo menos ubuntu no tiene esa librería agregada y en la carpeta SRC tampoco está para instalarla...

DerGitRob commented 7 months ago

You have to install the package libcld2-dev to use the library cld2