Open iblislin opened 8 years ago
Thanks for the AUR patch! some notes:
make -j
: using -j
without limit is dangerous, could exhaust the memory and lead to race conditions under certain circumstances
also see: https://bbs.archlinux.org/viewtopic.php?pid=1391531#p1391531chewing-editor-git
after #69 is merged.gtest
, I'll let other admins review that...Is it possible to use https://cmake.org/cmake/help/v3.0/module/FindGTest.html to find gtest in ubuntu build?
Hi @czchen ! Accutally, using the cmake module do not fix the problem in ubuntu. I made anothor branch to test that: commit and travis. The problem in ubuntu is that the package do not ship the share library.
But i think using the cmake module is still a goo idea, i will amend my commit later.
If you really want to hide this problem behind users, i will investigate on static linking.
@iblis17 I think the problem is that cmake FindGTest script cannot find the source only gtest in system. We need to patch the FindGTest script so that it can find the source only gtest in system.
:-o ok, i will make it, but i do not patch module before. Any tips for that?
We need to make a custom module right?
I think the problem is that cmake FindGTest script cannot find the source only gtest in system. We need to patch the FindGTest script so that it can find the source only gtest in system.
I managed to handle source-only gtest in system without patching FindGTest
: https://github.com/yan12125/chewing-editor/commit/d199ecb3c5f1e7b62cc5431af433581cec22830a. It can handle source-only /usr/src/gtest on Ubuntu 16.04, source-only /usr/src/googletest on Ubuntu 18.04 and static library /usr/lib/x86_64-linux-gnu/libgtest.a on Ubuntu 20.04. See Travis CI test results at https://travis-ci.org/github/yan12125/chewing-editor/builds/706409508 for build logs for various systems.
The self-shipped
gmock
removed!Hi @Chocobo1 ! Here is a patch for AUR.