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 compiling on fedora #2734

Closed
bialystok opened this issue Mar 9, 2024 · 4 comments · Fixed by #2742
Closed

error compiling on fedora #2734

bialystok opened this issue Mar 9, 2024 · 4 comments · Fixed by #2742
Milestone

Comments

@bialystok
Copy link

$cmake ..
all ok
$make
...
[ 85%] Linking CXX executable unit_rtp_test
[ 85%] Built target unit_rtp_test
[ 85%] Building CXX object CMakeFiles/unit_DHT_test.dir/toxcore/DHT_test.cc.o
/home/oooo/c-toxcore/toxcore/DHT_test.cc:3:10: fatal error: gmock/gmock.h: Nie ma takiego pliku ani katalogu
    3 | #include <gmock/gmock.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
@iphydf iphydf added this to the v0.2.19 milestone Mar 9, 2024
@Green-Sky
Copy link
Member

can you share more of that log?

@nurupo
Copy link
Member

nurupo commented Mar 9, 2024

Please tell us:

  • Full cmake command invocation
  • Full cmake output
  • Toxcore version you are building (e.g. provide a specific commit or a release tag)
  • OS version

Please run export LC_ALL=C in your shell, which would make programs print in English. You can later run unset LC_ALL to undo the export command.

@iphydf
Copy link
Member

iphydf commented Mar 25, 2024

I'd recommend installing gmock or uninstalling gtest. In some cases, if gtest is installed, we assume that gmock is also available. You can also disable the unit tests by removing all the unit_test calls from CMakeLists.txt (we don't have an option for that, yet).

@iphydf iphydf modified the milestones: v0.2.19, v0.2.20 Mar 25, 2024
@iphydf
Copy link
Member

iphydf commented Mar 26, 2024

I'm adding a UNITTEST flag in #2742 which you can use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

4 participants