(steps from http://www.bluishcoder.co.nz/bitcoin-pool/)
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Found BerkeleyDB: /usr/lib/libdb.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/denizzz/bitcoin-pooled
$ make
[ 11%] Building CXX object cmake-bitcoinr/CMakeFiles/bitcoinr.dir/__/src/remoteminermain.cpp.o
In file included from /home/denizzz/bitcoin-pooled/src/remote/remotebitcoinheaders.h:33,
from /home/denizzz/bitcoin-pooled/src/remoteminermain.cpp:19:
/home/denizzz/bitcoin-pooled/src/remote/../uint256.h:364: error: ‘VERSION’ was not declared in this scope
/home/denizzz/bitcoin-pooled/src/remote/../uint256.h:370: error: ‘VERSION’ was not declared in this scope
/home/denizzz/bitcoin-pooled/src/remote/../uint256.h:376: error: ‘VERSION’ was not declared in this scope
Try to move the #include for serialize.h before the #include for uint256.h in remotebitcoinheaders.h, and see if you get further.