Hi there.
I'm having trouble compiling on Ubuntu 16.04.
Here's what I have at the terminal:
linux@linux:/media/linux/STORAGE/1GPU miner/cpp-ethereum/build$ cmake -DBUNDLE=miner ..
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- ctest path: /usr/local/bin/ctest
-- Found CryptoPP: /usr/include (found suitable version "5.6.2", minimum required is "5.6.2")
- CryptoPP header: /usr/include
- CryptoPP lib : /usr/lib/libcryptopp.so
-- Found leveldb: /usr/include
- LevelDB header: /usr/include
- LevelDB lib: /usr/lib/x86_64-linux-gnu/libleveldb.so
-- Found jsoncpp: /usr/include/jsoncpp
- Jsoncpp header: /usr/include/jsoncpp
- Jsoncpp lib : /usr/lib/x86_64-linux-gnu/libjsoncpp.so
-- Found json_rpc_cpp: /usr/include (found suitable version "0.6.0", minimum required is "0.4")
- json-rpc-cpp header: /usr/include
- json-rpc-cpp lib : /usr/lib/x86_64-linux-gnu/libjsonrpccpp-common.so;/usr/lib/x86_64-linux-gnu/libjsonrpccpp-server.so;/usr/lib/x86_64-linux-gnu/libjsonrpccpp-client.so
-- Found mhd: /usr/include
- microhttpd header: /usr/include
- microhttpd lib : /usr/lib/x86_64-linux-gnu/libmicrohttpd.so
- microhttpd dll :
-- Found readline: /usr/include
- readline header: /usr/include
- readline lib : /usr/lib/x86_64-linux-gnu/libreadline.so
-- Found miniupnpc: /usr/include
- miniupnpc header: /usr/include
- miniupnpc lib : /usr/lib/x86_64-linux-gnu/libminiupnpc.so
-- Found gmp: /usr/include/x86_64-linux-gnu
- gmp header: /usr/include/x86_64-linux-gnu
- gmp lib : /usr/lib/x86_64-linux-gnu/libgmp.so
-- Found CURL: /usr/include
- curl header: /usr/include
- curl lib : /usr/lib/x86_64-linux-gnu/libcurl.so
-- Could NOT find cpuid (missing: CPUID_INCLUDE_DIR CPUID_LIBRARY)
-- Looking for CL_VERSION_2_0
-- Looking for CL_VERSION_2_0 - found
-- Found OpenCL: /usr/lib/x86_64-linux-gnu/libOpenCL.so.1 (found version "2.0")
- opencl header: /usr/include
- opencl lib : /usr/lib/x86_64-linux-gnu/libOpenCL.so.1
CUDA_TOOLKIT_ROOT_DIR not found or specified
-- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY)
- jsonrpcstub location : ETH_JSON_RPC_STUB-NOTFOUND
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- thread
-- date_time
-- system
-- regex
-- chrono
-- filesystem
-- unit_test_framework
-- program_options
-- random
-- atomic
- boost header: /usr/include
- boost lib : /usr/lib/x86_64-linux-gnu/libboost_thread.so;/usr/lib/x86_64-linux-gnu/libboost_date_time.so;/usr/lib/x86_64-linux-gnu/libboost_system.so;/usr/lib/x86_64-linux-gnu/libboost_regex.so;/usr/lib/x86_64-linux-gnu/libboost_chrono.so;/usr/lib/x86_64-linux-gnu/libboost_filesystem.so;/usr/lib/x86_64-linux-gnu/libboost_unit_test_framework.so;/usr/lib/x86_64-linux-gnu/libboost_program_options.so;/usr/lib/x86_64-linux-gnu/libboost_random.so;/usr/lib/x86_64-linux-gnu/libboost_atomic.so
------------------------------------------------------------------------
-- CMake Version 3.7.1
-- CMAKE_BUILD_TYPE Build type Release
-- TARGET_PLATFORM Target platform Linux
-- BUNDLE Build bundle miner
--------------------------------------------------------------- features
-- Chromium support 1
-- Hardware identification support FALSE
-- HTTP Request support TRUE
-- VMTRACE VM execution tracing OFF
-- PROFILING Profiling support OFF
-- FATDB Full database exploring
-- JSONRPC JSON-RPC support ON
-- OLYMPIC Default to the Olympic network OFF
------------------------------------------------------------- components
-- MINER Build miner ON
-- GUI Build GUI components OFF
-- ETHASHCL Build OpenCL components ON
-- ETHASHCUDA Build CUDA components OFF
-- ETHSTRATUM Build Stratum components ON
------------------------------------------------------------------------
-- CXXFLAGS: -std=c++11 -Wall -Wno-unknown-pragmas -Wextra -Wno-error=parentheses -pedantic -DSHAREDLIB -fPIC -fuse-ld=gold
creating build info...
createBuildInfo()
-- Configuring done
-- Generating done
-- Build files have been written to: /media/linux/STORAGE/1GPU miner/cpp-ethereum/build
linux@linux:/media/linux/STORAGE/1GPU miner/cpp-ethereum/build$ sudo make -j8
Scanning dependencies of target ethash
Scanning dependencies of target devcore
Scanning dependencies of target BuildInfo.h
Scanning dependencies of target ethstratum
CMake Error: File /media/linux/STORAGE/1GPU\ miner/cpp-ethereum/BuildInfo.h.in does not exist.
CMake Error at cmake/scripts/buildinfo.cmake:50 (configure_file):
configure_file Problem configuring file
CMakeFiles/BuildInfo.h.dir/build.make:57: recipe for target 'CMakeFiles/BuildInfo.h' failed
make[2]: *** [CMakeFiles/BuildInfo.h] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/BuildInfo.h.dir/all' failed
make[1]: *** [CMakeFiles/BuildInfo.h.dir/all] Error 2
make[1]: ** Esperando que outros processos terminem.
[ 2%] Building C object libethash/CMakeFiles/ethash.dir/io.c.o
[ 4%] Building C object libethash/CMakeFiles/ethash.dir/internal.c.o
[ 6%] Building CXX object libethash/CMakeFiles/ethash.dir/sha3_cryptopp.cpp.o
[ 8%] Building C object libethash/CMakeFiles/ethash.dir/io_posix.c.o
[ 10%] Building CXX object libstratum/CMakeFiles/ethstratum.dir/EthStratumClient.cpp.o
[ 13%] Building CXX object libstratum/CMakeFiles/ethstratum.dir/EthStratumClientV2.cpp.o
[ 15%] Building CXX object libdevcore/CMakeFiles/devcore.dir/Base64.cpp.o
[ 17%] Building CXX object libdevcore/CMakeFiles/devcore.dir/Common.cpp.o
[ 21%] Building CXX object libdevcore/CMakeFiles/devcore.dir/CommonIO.cpp.o
[ 21%] Building CXX object libdevcore/CMakeFiles/devcore.dir/CommonData.cpp.o
[ 23%] Building CXX object libdevcore/CMakeFiles/devcore.dir/CommonJS.cpp.o
[ 26%] Linking CXX shared library libethash.so
[ 26%] Built target ethash
[ 28%] Building CXX object libdevcore/CMakeFiles/devcore.dir/FileSystem.cpp.o
/media/linux/STORAGE/1GPU miner/cpp-ethereum/libdevcore/Common.cpp:25:23: fatal error: BuildInfo.h: Arquivo ou diretório não encontrado
compilation terminated.
libdevcore/CMakeFiles/devcore.dir/build.make:86: recipe for target 'libdevcore/CMakeFiles/devcore.dir/Common.cpp.o' failed
make[2]: *** [libdevcore/CMakeFiles/devcore.dir/Common.cpp.o] Error 1
make[2]: ** Esperando que outros processos terminem.
In file included from /media/linux/STORAGE/1GPU miner/cpp-ethereum/libstratum/EthStratumClientV2.cpp:2:0:
/media/linux/STORAGE/1GPU miner/cpp-ethereum/libstratum/EthStratumClientV2.h:13:23: fatal error: BuildInfo.h: Arquivo ou diretório não encontrado
compilation terminated.
libstratum/CMakeFiles/ethstratum.dir/build.make:86: recipe for target 'libstratum/CMakeFiles/ethstratum.dir/EthStratumClientV2.cpp.o' failed
make[2]: *** [libstratum/CMakeFiles/ethstratum.dir/EthStratumClientV2.cpp.o] Error 1
make[2]: ** Esperando que outros processos terminem.
In file included from /media/linux/STORAGE/1GPU miner/cpp-ethereum/libstratum/EthStratumClient.cpp:2:0:
/media/linux/STORAGE/1GPU miner/cpp-ethereum/libstratum/EthStratumClient.h:11:23: fatal error: BuildInfo.h: Arquivo ou diretório não encontrado
compilation terminated.
libstratum/CMakeFiles/ethstratum.dir/build.make:62: recipe for target 'libstratum/CMakeFiles/ethstratum.dir/EthStratumClient.cpp.o' failed
make[2]: *** [libstratum/CMakeFiles/ethstratum.dir/EthStratumClient.cpp.o] Error 1
CMakeFiles/Makefile2:320: recipe for target 'libstratum/CMakeFiles/ethstratum.dir/all' failed
make[1]: *** [libstratum/CMakeFiles/ethstratum.dir/all] Error 2
CMakeFiles/Makefile2:122: recipe for target 'libdevcore/CMakeFiles/devcore.dir/all' failed
make[1]: *** [libdevcore/CMakeFiles/devcore.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
Looks like the problem is this missing BuildInfo.h file...
EDIT: I just looked at the cpp-ethereum directory and th file actually IS there:
linux@linux:/media/linux/STORAGE/1GPU miner/cpp-ethereum$ ls -la BuildInfo.h.in
-rwxrwxrwx 1 linux linux 286 Abr 3 12:42 BuildInfo.h.in
With the following content:
#pragma once
#define ETH_PROJECT_VERSION "@PROJECT_VERSION@-genoil-@GENOIL_VERSION@"
#define ETH_COMMIT_HASH @ETH_COMMIT_HASH@
#define ETH_CLEAN_REPO @ETH_CLEAN_REPO@
#define ETH_BUILD_TYPE @ETH_BUILD_TYPE@
#define ETH_BUILD_PLATFORM @ETH_BUILD_PLATFORM@
#define ETH_FATDB @ETH_FATDB@
Now I got really confused, why didn't Cmake find it??