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 compilation for windows 64x #547

Open
mibds opened this issue Oct 1, 2023 · 2 comments
Open

error compilation for windows 64x #547

mibds opened this issue Oct 1, 2023 · 2 comments
Labels

Comments

@mibds
Copy link

mibds commented Oct 1, 2023

in "msys mingw64" I was typed these commands :

cd c:/xps                            
mkdir build && cd build
cmake .. -G "Unix Makefiles" -DXMRIG_DEPS=c:/xd/gcc/x64 && make         

(xps = xmrig-proxy-6.20.0 - sourse path)
(xd = xmrig-deps-3.3)

...and when 54% is complete - an error occurs:

In file included from c:/xps/src/base/net/http/HttpResponse.cpp:21:
c:/xps/src/base/net/http/HttpResponse.h:34:26: error: expected ')' before 'id'
   34 |     HttpResponse(uint64_t id, int statusCode = 200);
      |                 ~        ^~~
      |                          )
c:/xps/src/base/net/http/HttpResponse.h:44:11: error: 'uint64_t' does not name a type
   44 |     const uint64_t m_id;
      |           ^~~~~~~~
c:/xps/src/base/net/http/HttpResponse.h:26:1: note: 'uint64_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
   25 | #include <string>
  +++ |+#include <cstdint>
   26 |
c:/xps/src/base/net/http/HttpResponse.cpp:43:1: error: no declaration matches 'xmrig::HttpResponse::HttpResponse(uint64_t, int)'
   43 | xmrig::HttpResponse::HttpResponse(uint64_t id, int statusCode) :
      | ^~~~~
c:/xps/src/base/net/http/HttpResponse.h:31:7: note: candidates are: 'xmrig::HttpResponse::HttpResponse(xmrig::HttpResponse&&)'
   31 | class HttpResponse
      |       ^~~~~~~~~~~~
c:/xps/src/base/net/http/HttpResponse.h:31:7: note:                 'xmrig::HttpResponse::HttpResponse(const xmrig::HttpResponse&)'
c:/xps/src/base/net/http/HttpResponse.h:31:7: note:                 'xmrig::HttpResponse::HttpResponse()'
c:/xps/src/base/net/http/HttpResponse.h:31:7: note: 'class xmrig::HttpResponse' defined here
c:/xps/src/base/net/http/HttpResponse.cpp: In member function 'bool xmrig::HttpResponse::isAlive() const':
c:/xps/src/base/net/http/HttpResponse.cpp:52:33: error: 'm_id' was not declared in this scope
   52 |     auto ctx = HttpContext::get(m_id);
      |                                 ^~~~
c:/xps/src/base/net/http/HttpResponse.cpp: In member function 'void xmrig::HttpResponse::end(const char*, size_t)':
c:/xps/src/base/net/http/HttpResponse.cpp:83:41: error: 'm_id' was not declared in this scope
   83 |     auto ctx         = HttpContext::get(m_id);
      |                                         ^~~~
make[2]: *** [CMakeFiles/xmrig-proxy.dir/build.make:1082: CMakeFiles/xmrig-proxy.dir/src/base/net/http/HttpResponse.cpp.obj] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/xmrig-proxy.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

why does the error occur, if I didn't change anything in these files?
can anyone tell me step by step instructions for compilation xmrig-proxy?
thanks

@SChernykh
Copy link
Contributor

#548 should fix it. You can try to build the dev branch after that PR is merged.

@mibds
Copy link
Author

mibds commented Oct 1, 2023

thanks, its works

#548 should fix it. You can try to build the dev branch after that PR is merged.

@xmrig xmrig added the bug label Oct 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants