jtgrassie / monero-pool

A Monero mining pool server written in C
BSD 3-Clause "New" or "Revised" License
344 stars 125 forks source link

Compilation error #132

Closed GergelyGombai closed 1 year ago

GergelyGombai commented 1 year ago
Creating object file for src/xmr... g++ -Wp,-MMD,build/debug/src/xmr.dd -W -Wall -Wno-unused-parameter -Wuninitialized -Wno-attributes -Wno-reorder -maes -fPIC -std=c++11 -g \ -Isrc -Idata -Irxi/log/src -I/root/monero/build/bin//src -I/root/monero/build/bin//external -I/root/monero/build/bin//external/easylogging++ -I/root/monero/build/bin//contrib/epee/include -I/opt/local/include -I/usr/local/include \ -I/usr/include/json-c \ -D_GNU_SOURCE -DAUTO_INITIALIZE_EASYLOGGINGPP -DLOG_USE_COLOR -DDEBUG \ -c src/xmr.cpp -o build/debug/src/xmr.o src/xmr.cpp:38:10: fatal error: cryptonote_basic/cryptonote_basic.h: No such file or directory 38 #include "cryptonote_basic/cryptonote_basic.h"
jtgrassie commented 1 year ago

fatal error: cryptonote_basic/cryptonote_basic.h: No such file or directory

Read the readme: https://github.com/jtgrassie/monero-pool#dependencies

GergelyGombai commented 1 year ago

fatal error: cryptonote_basic/cryptonote_basic.h: No such file or directory

Read the readme: https://github.com/jtgrassie/monero-pool#dependencies

I did everything just as said in the readme

jtgrassie commented 1 year ago

I did everything just as said in the readme

No you didn't, otherwise you wouldn't get that error.

GergelyGombai commented 1 year ago

Any idea what I could have messed up? I did everything as told.

GergelyGombai commented 1 year ago

for my monero folder: export MONERO_ROOT=/root/monero/build/Linux/release-v0.18/release/bin/

jtgrassie commented 1 year ago

for my monero folder:...

That's not your monero root (the cloned repository), it's your monero build directory.

Assuming the repository is cloned here, you use: export MONERO_ROOT=/root/monero.

GergelyGombai commented 1 year ago

fuck, I just realised. Sorry, I have been up for like 1.2 Day :D checked the error and found out that I was messing with the wrong monero dir

GergelyGombai commented 1 year ago

The ports in the config file are testnet, right?

jtgrassie commented 1 year ago

The ports in the config file are testnet, right?

This is not a general Monero support channel, it's a bug/issue tracker.

And again, read the README: https://github.com/jtgrassie/monero-pool#configuration

GergelyGombai commented 1 year ago

There is no info about this in the readme. Please. just say yes/no.

jtgrassie commented 1 year ago

From the README, with emphasis:

During compilation, a copy of pool.conf is placed in the output build directory. Edit this file as you see fit. When running the pool, if a custom location is not set via the command-line parameter --config-file , the pool will first look for this file in the same directory as the pool binary, then in the current users home directory. The configuration options should all be self explanatory.

But yes, port 28081 is the default Monero daemon RPC port for testnet. But that's changeable at both Monero and the pool. Hence "Edit this file as you see fit."

Lastly, again, this is not a general Monero support channel, it's a bug/issue tracker.

GergelyGombai commented 1 year ago

I just wanted to confirm, that I am correct.

jtgrassie commented 1 year ago

Again, this is not a general Monero support channel, it's a bug/issue tracker.

I just wanted to confirm, that I am correct.

You are not correct, as it's whatever port you configured the monerod RPC port to listen on. Just because the default monerod default RPC port for testnet is 28081, doesn't mean you haven't used something else. Hence you have to edit the pool.conf accordingly.