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

Compilation error on Yosemite #41

Open
cduongvn opened this issue Oct 1, 2015 · 1 comment
Open

Compilation error on Yosemite #41

cduongvn opened this issue Oct 1, 2015 · 1 comment

Comments

@cduongvn
Copy link

cduongvn commented Oct 1, 2015

./compile_libs.sh Warning: None of CFLAGS, CXXFLAGS or CPPFLAGS is set; you probably should enable some options.
ld: unknown option: -soname=libcld2.so
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ld: unknown option: -soname=libcld2_full.so
clang: error: linker command failed with exit code 1 (use -v to see invocation)

is it available for Yosemite? please let me know

Thanks in advance,
Canh

@pquentin
Copy link

You should only care about this if you need the shared libraries. Anyway, to get the compilation to work you can replace -o libcld2.so $LDFLAGS -Wl,-soname=libcld2.so with -o libcld2.dylib $LDFLAGS -Wl,-install_name,libcld2.dylib. (Note that the equal sign after soname got replaced by a comma.)

This will fix compilation and allow you to use the library in Python bindings such as chromium-compact-language-detector. But a proper fix would do more things related to library versions, I guess.

lemig added a commit to sprycer/cld2 that referenced this issue Dec 31, 2017
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

2 participants