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

Building Error: cmake #655

Closed
coozgan opened this Issue Dec 22, 2017 · 6 comments

Comments

Projects
None yet
3 participants
@coozgan

coozgan commented Dec 22, 2017

Please provide as much as possible information to reproduce the issue.
Hello, I am really new to this, I am running a windows 10 with amd radeon graphics.
I ve been building your source code, i dont know if Im doing it right or what, docs says;

use the ncurses GUI
ccmake ..
edit your options
end the GUI by pressing the key c(create) and than g(generate)

set Options on the command line
enable a option: cmake .. -DNAME_OF_THE_OPTION=ON
disable a option cmake .. -DNAME_OF_THE_OPTION=OFF
set a value cmake .. -DNAME_OF_THE_OPTION=value

I try to follow this both but it gives me error such as this

C:\xmr-stak>cmake ..
-- Building for: Visual Studio 15 2017
-- The C compiler identification is MSVC 19.12.25830.2
-- The CXX compiler identification is MSVC 19.12.25830.2
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.12.25827/bin/Hostx86/x86/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.12.25827/bin/Hostx86/x86/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.12.25827/bin/Hostx86/x86/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.12.25827/bin/Hostx86/x86/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Set miner currency to 'monero' and 'aeon'
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) (Required is at least version "7.5")
CMake Error at C://CMakeLists.txt:203 (message):
  CUDA NOT found: use `-DCUDA_ENABLE=OFF` to build without NVIDIA GPU support


-- Configuring incomplete, errors occurred!
See also "C:/xmr-stak/CMakeFiles/CMakeOutput.log".

C:\xmr-stak>

and can you help me point out where to start with this. thank you.

@bomb-on

This comment has been minimized.

Show comment
Hide comment
@bomb-on

bomb-on Dec 22, 2017

You are running cmake .. command and this will try to compile the project for both Nvidia and AMD, along with CPU back ends.

As stated in documentation, you should disable Nvidia (or AMD if you wish) in your miner by using following syntax in your command:

cmake .. -DNAME_OF_THE_OPTION=OFF

Therefore, to disable Nvidia backend use this command (as the error also suggests):

cmake .. -DCUDA_ENABLE=OFF

and try to recompile...

bomb-on commented Dec 22, 2017

You are running cmake .. command and this will try to compile the project for both Nvidia and AMD, along with CPU back ends.

As stated in documentation, you should disable Nvidia (or AMD if you wish) in your miner by using following syntax in your command:

cmake .. -DNAME_OF_THE_OPTION=OFF

Therefore, to disable Nvidia backend use this command (as the error also suggests):

cmake .. -DCUDA_ENABLE=OFF

and try to recompile...

@coozgan

This comment has been minimized.

Show comment
Hide comment
@coozgan

coozgan Dec 22, 2017

@bomb-on i tried running in cmdcmake .. -DCUDA_ENABLE=OFF, but when i tried to recompile it says error could not load cache, I tried build cmake in cmake GUI it puts me to error saying;
Error in configuration process, project files may be invalid..

coozgan commented Dec 22, 2017

@bomb-on i tried running in cmdcmake .. -DCUDA_ENABLE=OFF, but when i tried to recompile it says error could not load cache, I tried build cmake in cmake GUI it puts me to error saying;
Error in configuration process, project files may be invalid..

@bomb-on

This comment has been minimized.

Show comment
Hide comment
@bomb-on

bomb-on Dec 22, 2017

@coozgan try to run the same cmake command, but ensure that you are starting all over, without any files from previous builds... The best way would be to delete the xmr-stak source folder completely and download it again and start all over.

bomb-on commented Dec 22, 2017

@coozgan try to run the same cmake command, but ensure that you are starting all over, without any files from previous builds... The best way would be to delete the xmr-stak source folder completely and download it again and start all over.

@coozgan

This comment has been minimized.

Show comment
Hide comment
@coozgan

coozgan Dec 23, 2017

@bomb-on hello, im trying to compile it again, Fresh download from the repo, but I get this error, I followed the command you gave me which is cmake .. -DCUDA_ENABLE=OFF still i have errors with it.

C:\xmr-stak\build>cmake -G "Visual Studio 15 2017 Win64" -T v141,host=x64 ..
-- Set miner currency to 'monero' and 'aeon'
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) (Required is at least version "7.5")
CMake Error at CMakeLists.txt:209 (message):
  CUDA NOT found: use `-DCUDA_ENABLE=OFF` to build without NVIDIA GPU support


-- Configuring incomplete, errors occurred!
See also "C:/xmr-stak/build/CMakeFiles/CMakeOutput.log".

C:\xmr-stak\build>cmake --build . --config Release --target install
Microsoft (R) Build Engine version 15.5.180.51428 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

MSBUILD : error MSB1009: Project file does not exist.
Switch: install.vcxproj

C:\xmr-stak\build>

coozgan commented Dec 23, 2017

@bomb-on hello, im trying to compile it again, Fresh download from the repo, but I get this error, I followed the command you gave me which is cmake .. -DCUDA_ENABLE=OFF still i have errors with it.

C:\xmr-stak\build>cmake -G "Visual Studio 15 2017 Win64" -T v141,host=x64 ..
-- Set miner currency to 'monero' and 'aeon'
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) (Required is at least version "7.5")
CMake Error at CMakeLists.txt:209 (message):
  CUDA NOT found: use `-DCUDA_ENABLE=OFF` to build without NVIDIA GPU support


-- Configuring incomplete, errors occurred!
See also "C:/xmr-stak/build/CMakeFiles/CMakeOutput.log".

C:\xmr-stak\build>cmake --build . --config Release --target install
Microsoft (R) Build Engine version 15.5.180.51428 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

MSBUILD : error MSB1009: Project file does not exist.
Switch: install.vcxproj

C:\xmr-stak\build>
@psychocrypt

This comment has been minimized.

Show comment
Hide comment
@psychocrypt

psychocrypt Dec 23, 2017

Collaborator
Collaborator

psychocrypt commented Dec 23, 2017

@coozgan

This comment has been minimized.

Show comment
Hide comment
@coozgan

coozgan Dec 23, 2017

@psychocrypt sorry bro, thats why Im confused that seems to solve it Thank you.

coozgan commented Dec 23, 2017

@psychocrypt sorry bro, thats why Im confused that seems to solve it Thank you.

@coozgan coozgan closed this Dec 23, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment