Common Issues Building on Windows LINK : fatal error LNK1158: cannot run 'rc.exe' G "Visual Studio 16 2019" -A 圆4Īfter the necessary dependencies have been downloaded and built and the solution has been generated, aleth.sln can be found in theīuild directory. sln) for the 64-bit architecture via the following command: You should generate a Visual Studio solution file (. On Windows we support Visual Studio 2017, and 2019.
Mkdir build cd build # Create a build directory.Ĭmake -build. BuildĬonfigure the project build with the following command to create the Scripts/install_cmake.sh script that downloadsĪ fixed version of CMake and unpacks it to the given directory prefix.Įxample usage: scripts/install_cmake.sh -prefix /usr/local. The CMake package available in your operating system can also be installedĪnd used if it meets the minimum version requirement.
We strongly recommend you to install CMake by downloading and unpacking the binaryĭistribution of the latest version available on the (at the time of writing 3.9.3 is the minimum). Install CMakeĬMake is used to control the build configuration of the project. If you missed -recursive option, you are able to correct your mistake with command But if that's the case you'll quickly find yourself going down the dependency rabbit hole.The -recursive option is important. If dependencies are still an issue you could always try building those from source as well. That way any compiled binaries are kept within your home directory. If for whatever reason you still want to try to be profitable mining on someone else's system without sudo access (which seems really fishy/suspicious by the way) you could always try building from source. In that case you would have sudo permissions as it would be your own system. If you're actually trying to mine for profit, I would recommend getting dedicated hardware or otherwise building a dedicated mining rig. This way you can have sudo permissions inside the vm without compromising/breaking the parent machine if something goes wrong or you screw something up. If you're just testing things, set up a virtual machine, or ask whoever has sudo permissions to set up a virtual machine for you. How do I make it aware or is there an alternative? It still comes up with the same error, because (obviously), it isn't aware of the library I compiled from source myself.
The problem is, I have no idea how to build the ethminer by making it use that library in my home folder, rather than the /usr/include/cryptopp folder. This worked and the tests ran successfully. Detecting CXX compiler ABI info - doneĬMake Error at cmake/FindPackageHandleStandardArgs.cmake:138 (message):Ĭould NOT find CryptoPP: Found unsuitable version "5.6.1", but required isĬmake/FindPackageHandleStandardArgs.cmake:372 (_FPHSA_FAILURE_MESSAGE)Ĭmake/FindCryptoPP.cmake:107 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)Ĭmake/EthDependencies.cmake:44 (find_package)Īfter this, I downloaded it and started compiling CryptoPP myself by following the first few steps in this guide. Check for working CXX compiler: /usr/bin/c++ - works Check for working CXX compiler: /usr/bin/c++ Check for working C compiler: /usr/bin/cc - works Check for working C compiler: /usr/bin/cc The CXX compiler identification is GNU 5.4.0 The C compiler identification is GNU 5.4.0
When installing the Ethminer the same way I installed it on my home PC (And it worked btw), during compilation I get the error saying my CryptoPP is 5.6.1 version, but 5.6.2 is required. He's reluctant to do so and also to give me sudo. without doing the step described in the instructions where an additional repository is added. I got a person with sudo access to install these, but only from the official Ubuntu 16.04 repositories, i.e. sudo apt-get install git cmake libcryptopp-dev libleveldb-dev libjsoncpp-dev libjsonrpccpp-dev libboost-all-dev libgmp-dev libreadline-dev libcurl4-gnutls-dev ocl-icd-libopencl1 opencl-headers mesa-common-dev libmicrohttpd-dev build-essential cuda -y The Github instructions require some packages to be installed. I am trying to get Genoil's Ethminer installed on a machine without sudo access.