-
Notifications
You must be signed in to change notification settings - Fork 205
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: cannot find -lgflags while building glog #74
Comments
Hi @stark123, please provide more details about how you built. Did you build gflags first? |
Yes, the gflags is build first. CMake Warning: |
I did not get such warnings when building via scripts/build_glog.sh. |
Could be reopened if needed. |
Hi @stark123, I met the same issue with you.
|
I am building glog for Android NDK. Getting this error while building-
[ 91%] Building CXX object CMakeFiles/stl_logging_unittest.dir/src/stl_logging_unittest.cc.o
/home/gaurav/deeplearning/caffe-android-lib/glog/src/logging_unittest.cc:641:3: error: #error There is no way to do glob.
error There is no way to do glob.
^
Linking CXX executable symbolize_unittest
cc1plus: warning: unrecognized command line option "-Wno-unnamed-type-template-args"
make[2]: *** [CMakeFiles/logging_unittest.dir/src/logging_unittest.cc.o] Error 1
make[1]: *** [CMakeFiles/logging_unittest.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/home/gaurav/Android/Sdk/ndk-bundle/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: cannot find -lgflags
collect2: error: ld returned 1 exit status
make[2]: *** [symbolize_unittest] Error 1
make[1]: *** [CMakeFiles/symbolize_unittest.dir/all] Error 2
Linking CXX executable demangle_unittest
/home/gaurav/Android/Sdk/ndk-bundle/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: cannot find -lgflags
collect2: error: ld returned 1 exit status
make[2]: *** [demangle_unittest] Error 1
make[1]: *** [CMakeFiles/demangle_unittest.dir/all] Error 2
Linking CXX executable stl_logging_unittest
/home/gaurav/Android/Sdk/ndk-bundle/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: cannot find -lgflags
collect2: error: ld returned 1 exit status
make[2]: *** [stl_logging_unittest] Error 1
make[1]: *** [CMakeFiles/stl_logging_unittest.dir/all] Error 2
make: *** [all] Error 2
Any suggestion?
The text was updated successfully, but these errors were encountered: