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

error on build - linux #24

Open
juanbits opened this issue Dec 22, 2017 · 2 comments
Open

error on build - linux #24

juanbits opened this issue Dec 22, 2017 · 2 comments

Comments

@juanbits
Copy link

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
Copy link

earlve commented Apr 14, 2023

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
Copy link

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

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

3 participants