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

Adds support for easyloggingpp to log WARNING, ERROR, and FATAL to standard error #762

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

mgood7123
Copy link

@mgood7123 mgood7123 commented Sep 2, 2020

This is a

  • Breaking change
  • New feature
  • Bugfix

I have

smallville7123@smallville7123-MacBookPro:~/AndroidCompositor/app/src/main/jni/GLIS/dependancies/pipeline/dependancies/easyloggingpp$ mkdir build
smallville7123@smallville7123-MacBookPro:~/AndroidCompositor/app/src/main/jni/GLIS/dependancies/pipeline/dependancies/easyloggingpp$ cd build
smallville7123@smallville7123-MacBookPro:~/AndroidCompositor/app/src/main/jni/GLIS/dependancies/pipeline/dependancies/easyloggingpp/build$ cmake -Dtest=ON ../
-- The CXX compiler identification is GNU 9.3.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Setting C++11
-- Found GTest: /usr/lib/x86_64-linux-gnu/libgtest.a  
-- Configuring done
-- Generating done
-- Build files have been written to: /home/smallville7123/AndroidCompositor/app/src/main/jni/GLIS/dependancies/pipeline/dependancies/easyloggingpp/build
smallville7123@smallville7123-MacBookPro:~/AndroidCompositor/app/src/main/jni/GLIS/dependancies/pipeline/dependancies/easyloggingpp/build$ make
Scanning dependencies of target easyloggingpp-unit-tests
[ 33%] Building CXX object CMakeFiles/easyloggingpp-unit-tests.dir/src/easylogging++.cc.o
[ 66%] Building CXX object CMakeFiles/easyloggingpp-unit-tests.dir/test/main.cc.o
[100%] Linking CXX executable easyloggingpp-unit-tests
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libgtest.a(gtest-all.cc.o): in function `testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo, std::allocator<testing::internal::TraceInfo> > >::~ThreadLocal()':
./obj-x86_64-linux-gnu/googletest/./googletest/include/gtest/internal/gtest-port.h:1750: undefined reference to `pthread_getspecific'
/usr/bin/ld: ./obj-x86_64-linux-gnu/googletest/./googletest/include/gtest/internal/gtest-port.h:1754: undefined reference to `pthread_key_delete'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libgtest.a(gtest-all.cc.o): in function `testing::internal::ThreadLocal<testing::TestPartResultReporterInterface*>::~ThreadLocal()':
./obj-x86_64-linux-gnu/googletest/./googletest/include/gtest/internal/gtest-port.h:1750: undefined reference to `pthread_getspecific'
/usr/bin/ld: ./obj-x86_64-linux-gnu/googletest/./googletest/include/gtest/internal/gtest-port.h:1754: undefined reference to `pthread_key_delete'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libgtest.a(gtest-all.cc.o): in function `testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo, std::allocator<testing::internal::TraceInfo> > >::GetOrCreateValue() const':
./obj-x86_64-linux-gnu/googletest/./googletest/include/gtest/internal/gtest-port.h:1787: undefined reference to `pthread_getspecific'
/usr/bin/ld: ./obj-x86_64-linux-gnu/googletest/./googletest/include/gtest/internal/gtest-port.h:1794: undefined reference to `pthread_setspecific'
/usr/bin/ld: ./obj-x86_64-linux-gnu/googletest/./googletest/include/gtest/internal/gtest-port.h:1787: undefined reference to `pthread_getspecific'
/usr/bin/ld: ./obj-x86_64-linux-gnu/googletest/./googletest/include/gtest/internal/gtest-port.h:1794: undefined reference to `pthread_setspecific'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libgtest.a(gtest-all.cc.o): in function `testing::internal::ThreadLocal<testing::TestPartResultReporterInterface*>::CreateKey()':
./obj-x86_64-linux-gnu/googletest/./googletest/include/gtest/internal/gtest-port.h:1780: undefined reference to `pthread_key_create'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libgtest.a(gtest-all.cc.o): in function `testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo, std::allocator<testing::internal::TraceInfo> > >::CreateKey()':
./obj-x86_64-linux-gnu/googletest/./googletest/include/gtest/internal/gtest-port.h:1780: undefined reference to `pthread_key_create'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libgtest.a(gtest-all.cc.o): in function `testing::internal::ThreadLocal<testing::TestPartResultReporterInterface*>::GetOrCreateValue() const':
./obj-x86_64-linux-gnu/googletest/./googletest/include/gtest/internal/gtest-port.h:1787: undefined reference to `pthread_getspecific'
/usr/bin/ld: ./obj-x86_64-linux-gnu/googletest/./googletest/include/gtest/internal/gtest-port.h:1794: undefined reference to `pthread_setspecific'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libgtest.a(gtest-all.cc.o): in function `testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo, std::allocator<testing::internal::TraceInfo> > >::GetOrCreateValue() const':
./obj-x86_64-linux-gnu/googletest/./googletest/include/gtest/internal/gtest-port.h:1787: undefined reference to `pthread_getspecific'
/usr/bin/ld: ./obj-x86_64-linux-gnu/googletest/./googletest/include/gtest/internal/gtest-port.h:1787: undefined reference to `pthread_getspecific'
/usr/bin/ld: ./obj-x86_64-linux-gnu/googletest/./googletest/include/gtest/internal/gtest-port.h:1794: undefined reference to `pthread_setspecific'
/usr/bin/ld: ./obj-x86_64-linux-gnu/googletest/./googletest/include/gtest/internal/gtest-port.h:1794: undefined reference to `pthread_setspecific'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libgtest.a(gtest-all.cc.o): in function `testing::internal::ThreadLocal<testing::TestPartResultReporterInterface*>::GetOrCreateValue() const':
./obj-x86_64-linux-gnu/googletest/./googletest/include/gtest/internal/gtest-port.h:1787: undefined reference to `pthread_getspecific'
/usr/bin/ld: ./obj-x86_64-linux-gnu/googletest/./googletest/include/gtest/internal/gtest-port.h:1794: undefined reference to `pthread_setspecific'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libgtest.a(gtest-all.cc.o): in function `testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo, std::allocator<testing::internal::TraceInfo> > >::~ThreadLocal()':
./obj-x86_64-linux-gnu/googletest/./googletest/include/gtest/internal/gtest-port.h:1750: undefined reference to `pthread_getspecific'
/usr/bin/ld: ./obj-x86_64-linux-gnu/googletest/./googletest/include/gtest/internal/gtest-port.h:1754: undefined reference to `pthread_key_delete'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libgtest.a(gtest-all.cc.o): in function `testing::internal::ThreadLocal<testing::TestPartResultReporterInterface*>::~ThreadLocal()':
./obj-x86_64-linux-gnu/googletest/./googletest/include/gtest/internal/gtest-port.h:1750: undefined reference to `pthread_getspecific'
/usr/bin/ld: ./obj-x86_64-linux-gnu/googletest/./googletest/include/gtest/internal/gtest-port.h:1754: undefined reference to `pthread_key_delete'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libgtest.a(gtest-all.cc.o): in function `testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo, std::allocator<testing::internal::TraceInfo> > >::GetOrCreateValue() const':
./obj-x86_64-linux-gnu/googletest/./googletest/include/gtest/internal/gtest-port.h:1787: undefined reference to `pthread_getspecific'
/usr/bin/ld: ./obj-x86_64-linux-gnu/googletest/./googletest/include/gtest/internal/gtest-port.h:1794: undefined reference to `pthread_setspecific'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/easyloggingpp-unit-tests.dir/build.make:99: easyloggingpp-unit-tests] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/easyloggingpp-unit-tests.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
smallville7123@smallville7123-MacBookPro:~/AndroidCompositor/app/src/main/jni/GLIS/dependancies/pipeline/dependancies/easyloggingpp/build$ make test
Running tests...
Test project /home/smallville7123/AndroidCompositor/app/src/main/jni/GLIS/dependancies/pipeline/dependancies/easyloggingpp/build
    Start 1: easyloggingppUnitTests
Could not find executable /home/smallville7123/AndroidCompositor/app/src/main/jni/GLIS/dependancies/pipeline/dependancies/easyloggingpp/build/easyloggingpp-unit-tests
Looked in the following places:
/home/smallville7123/AndroidCompositor/app/src/main/jni/GLIS/dependancies/pipeline/dependancies/easyloggingpp/build/easyloggingpp-unit-tests
/home/smallville7123/AndroidCompositor/app/src/main/jni/GLIS/dependancies/pipeline/dependancies/easyloggingpp/build/easyloggingpp-unit-tests
/home/smallville7123/AndroidCompositor/app/src/main/jni/GLIS/dependancies/pipeline/dependancies/easyloggingpp/build/Release/easyloggingpp-unit-tests
/home/smallville7123/AndroidCompositor/app/src/main/jni/GLIS/dependancies/pipeline/dependancies/easyloggingpp/build/Release/easyloggingpp-unit-tests
/home/smallville7123/AndroidCompositor/app/src/main/jni/GLIS/dependancies/pipeline/dependancies/easyloggingpp/build/Debug/easyloggingpp-unit-tests
/home/smallville7123/AndroidCompositor/app/src/main/jni/GLIS/dependancies/pipeline/dependancies/easyloggingpp/build/Debug/easyloggingpp-unit-tests
/home/smallville7123/AndroidCompositor/app/src/main/jni/GLIS/dependancies/pipeline/dependancies/easyloggingpp/build/MinSizeRel/easyloggingpp-unit-tests
/home/smallville7123/AndroidCompositor/app/src/main/jni/GLIS/dependancies/pipeline/dependancies/easyloggingpp/build/MinSizeRel/easyloggingpp-unit-tests
/home/smallville7123/AndroidCompositor/app/src/main/jni/GLIS/dependancies/pipeline/dependancies/easyloggingpp/build/RelWithDebInfo/easyloggingpp-unit-tests
/home/smallville7123/AndroidCompositor/app/src/main/jni/GLIS/dependancies/pipeline/dependancies/easyloggingpp/build/RelWithDebInfo/easyloggingpp-unit-tests
/home/smallville7123/AndroidCompositor/app/src/main/jni/GLIS/dependancies/pipeline/dependancies/easyloggingpp/build/Deployment/easyloggingpp-unit-tests
/home/smallville7123/AndroidCompositor/app/src/main/jni/GLIS/dependancies/pipeline/dependancies/easyloggingpp/build/Deployment/easyloggingpp-unit-tests
/home/smallville7123/AndroidCompositor/app/src/main/jni/GLIS/dependancies/pipeline/dependancies/easyloggingpp/build/Development/easyloggingpp-unit-tests
/home/smallville7123/AndroidCompositor/app/src/main/jni/GLIS/dependancies/pipeline/dependancies/easyloggingpp/build/Development/easyloggingpp-unit-tests
home/smallville7123/AndroidCompositor/app/src/main/jni/GLIS/dependancies/pipeline/dependancies/easyloggingpp/build/easyloggingpp-unit-tests
home/smallville7123/AndroidCompositor/app/src/main/jni/GLIS/dependancies/pipeline/dependancies/easyloggingpp/build/easyloggingpp-unit-tests
home/smallville7123/AndroidCompositor/app/src/main/jni/GLIS/dependancies/pipeline/dependancies/easyloggingpp/build/Release/easyloggingpp-unit-tests
home/smallville7123/AndroidCompositor/app/src/main/jni/GLIS/dependancies/pipeline/dependancies/easyloggingpp/build/Release/easyloggingpp-unit-tests
home/smallville7123/AndroidCompositor/app/src/main/jni/GLIS/dependancies/pipeline/dependancies/easyloggingpp/build/Debug/easyloggingpp-unit-tests
home/smallville7123/AndroidCompositor/app/src/main/jni/GLIS/dependancies/pipeline/dependancies/easyloggingpp/build/Debug/easyloggingpp-unit-tests
home/smallville7123/AndroidCompositor/app/src/main/jni/GLIS/dependancies/pipeline/dependancies/easyloggingpp/build/MinSizeRel/easyloggingpp-unit-tests
home/smallville7123/AndroidCompositor/app/src/main/jni/GLIS/dependancies/pipeline/dependancies/easyloggingpp/build/MinSizeRel/easyloggingpp-unit-tests
home/smallville7123/AndroidCompositor/app/src/main/jni/GLIS/dependancies/pipeline/dependancies/easyloggingpp/build/RelWithDebInfo/easyloggingpp-unit-tests
home/smallville7123/AndroidCompositor/app/src/main/jni/GLIS/dependancies/pipeline/dependancies/easyloggingpp/build/RelWithDebInfo/easyloggingpp-unit-tests
home/smallville7123/AndroidCompositor/app/src/main/jni/GLIS/dependancies/pipeline/dependancies/easyloggingpp/build/Deployment/easyloggingpp-unit-tests
home/smallville7123/AndroidCompositor/app/src/main/jni/GLIS/dependancies/pipeline/dependancies/easyloggingpp/build/Deployment/easyloggingpp-unit-tests
home/smallville7123/AndroidCompositor/app/src/main/jni/GLIS/dependancies/pipeline/dependancies/easyloggingpp/build/Development/easyloggingpp-unit-tests
home/smallville7123/AndroidCompositor/app/src/main/jni/GLIS/dependancies/pipeline/dependancies/easyloggingpp/build/Development/easyloggingpp-unit-tests
Unable to find executable: /home/smallville7123/AndroidCompositor/app/src/main/jni/GLIS/dependancies/pipeline/dependancies/easyloggingpp/build/easyloggingpp-unit-tests
1/1 Test #1: easyloggingppUnitTests ...........***Not Run   0.00 sec

0% tests passed, 1 tests failed out of 1

Total Test time (real) =   0.00 sec

The following tests FAILED:
          1 - easyloggingppUnitTests (Not Run)
Errors while running CTest
make: *** [Makefile:130: test] Error 8
smallville7123@smallville7123-MacBookPro:~/AndroidCompositor/app/src/main/jni/GLIS/dependancies/pipeline/dependancies/easyloggingpp/build$ ls
CMakeCache.txt  CMakeFiles  cmake_install.cmake  CTestTestfile.cmake  easyloggingpp.pc  Makefile  Testing
smallville7123@smallville7123-MacBookPro:~/AndroidCompositor/app/src/main/jni/GLIS/dependancies/pipeline/dependancies/easyloggingpp/build$

@mgood7123
Copy link
Author

wow this has not been updated yet?

@mgood7123
Copy link
Author

been 2 years

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

Successfully merging this pull request may close these issues.

1 participant