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

Cannot compile without HTTP_API #1929

Closed
danez opened this issue Nov 4, 2020 · 2 comments
Closed

Cannot compile without HTTP_API #1929

danez opened this issue Nov 4, 2020 · 2 comments

Comments

@danez
Copy link

danez commented Nov 4, 2020

Describe the bug
When compiling without http api the compile fails

To Reproduce

cmake -DWITH_CUDA=OFF -DWITH_OPENCL=OFF -DWITH_HTTP=OFF ..
make
/opt/xmrig/src/backend/common/Benchmark.cpp: In member function ‘bool xmrig::Benchmark::finish(uint64_t)’:
/opt/xmrig/src/backend/common/Benchmark.cpp:87:68: error: ‘const class xmrig::IBackend’ has no member named ‘toJSON’
   87 |         doc.AddMember("backend",                        m_backend->toJSON(doc), allocator);
      |                                                                    ^~~~~~
make[2]: *** [CMakeFiles/xmrig.dir/build.make:778: CMakeFiles/xmrig.dir/src/backend/common/Benchmark.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:163: CMakeFiles/xmrig.dir/all] Error 2

Expected behavior
no compile error like with 6.4.0

Required data

  • OS: Gentoo Linux
@SChernykh
Copy link
Contributor

This is fixed in the dev branch, wait for the next release.

@danez
Copy link
Author

danez commented Nov 5, 2020

Ah thanks. I'll close then

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