Closed mohamed786 closed 6 years ago
I use the below batch file to compile without issue with CUDA 8 or 9 (Separate compile machine per CUDA version). Change:
cmake -G "Visual Studio 15 2017 Win64" -T v141,host=x64 ..
to suit your CUDA version per the compile guide.
@echo off PUSHD %~DP0 echo ########## Running VsMSBuildCmd.bat CALL "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsMSBuildCmd.bat" PUSHD %~DP0 echo ########## Setting CMAKE_PREFIX_PATH set CMAKE_PREFIX_PATH=C:\xmr-stak-dep\hwloc;C:\xmr-stak-dep\libmicrohttpd;C:\xmr-stak-dep\openssl echo ########## Making build directory mkdir build echo ########## Changing to build directory cd build echo ########## Running cmake -G "Visual Studio 15 2017 Win64" -T v140,host=x64 .. cmake -G "Visual Studio 15 2017 Win64" -T v140,host=x64 .. echo ########## Running cmake --build . --config Release --target install cmake --build . --config Release --target install echo ########## Changing to bin\Release directory cd bin\Release echo ########## Copy OpenSSL DLLs xcopy C:\xmr-stak-dep\openssl\bin*.dll . /v echo ########## Running Explorer explorer.exe . echo ########## Done... Exiting POPD pause
Thanks For the .bat file i will try it now ! basically am building for AMD !
########## Running VsMSBuildCmd.bat
Visual Studio 2017 MSBuild Command Prompt Copyright (c) 2017 Microsoft Corporation
########## Setting CMAKE_PREFIX_PATH ########## Making build directory ########## Changing to build directory ########## Running cmake -G "Visual Studio 15 2017 Win64" -T v141,host=x64 .. -- The C compiler identification is MSVC 19.12.25831.0 -- The CXX compiler identification is MSVC 19.12.25831.0 -- Check for working C compiler: D:/Microsoft-VisualStudio-2017/VC/Tools/MSVC/14.12.25827/bin/Hostx64/x64/cl.exe -- Check for working C compiler: D:/Microsoft-VisualStudio-2017/VC/Tools/MSVC/14.12.25827/bin/Hostx64/x64/cl.exe -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: D:/Microsoft-VisualStudio-2017/VC/Tools/MSVC/14.12.25827/bin/Hostx64/x64/cl.exe -- Check for working CXX compiler: D:/Microsoft-VisualStudio-2017/VC/Tools/MSVC/14.12.25827/bin/Hostx64/x64/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' -- Looking for CL_VERSION_2_0 -- Looking for CL_VERSION_2_0 - found -- Found OpenCL: C:/Program Files (x86)/AMD APP SDK/3.0/lib/x86_64/OpenCL.lib (found version "2.0") -- Found OpenSSL: C:/xmr-stak-dep/openssl/lib/libeay32.lib (found version "1.0.2m") You have called ADD_LIBRARY for library xmr-stak-c without any source files. This typically indicates a problem with your CMakeLists.txt file You have called ADD_LIBRARY for library xmr-stak-backend without any source files. This typically indicates a problem with your CMakeLists.txt file You have called ADD_LIBRARY for library xmrstak_opencl_backend without any source files. This typically indicates a problem with your CMakeLists.txt file CMake Error at CMakeLists.txt:525 (add_executable): add_executable called with incorrect number of arguments
CMake Error at CMakeLists.txt:532 (target_link_libraries): Cannot specify link libraries for target "xmr-stak" which is not built by this project.
-- Configuring incomplete, errors occurred! See also "C:/Users/mohamed786/Desktop/Build [XMR-STAK Miner]/xmr-stak-2.2.0/build/CMakeFiles/CMakeOutput.log". ########## Running 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 ########## Changing to bin\Release directory The system cannot find the path specified. ########## Copy OpenSSL DLLs File not found - bin*.dll 0 File(s) copied ########## Running Explorer ########## Done... Exiting Press any key to continue . . .
Do the files exist in the path indicated in ADD_LIBRARY as indicated by the error?
You have called ADD_LIBRARY for library xmr-stak-c without any source files. This typically indicates a problem with your CMakeLists.txt file
You have called ADD_LIBRARY for library xmr-stak-backend without any source files. This typically indicates a problem with your CMakeLists.txt file
You have called ADD_LIBRARY for library xmrstak_opencl_backend without any source files. This typically indicates a problem with your CMakeLists.txt file
``
Do No where to add the PATH whether as i have to add path in CMakelist or in Windows Environment variable!
Do No where to add the PATH whether as i have to add path in CMakelist or in Windows Environment variable!
Sorry but environment variables in Windows are a very basic knowledge item. If you do not understand them then compiling is going to be about impossible.
instead of negative replay ! will you pls help me to resolve the issue ! nothing is impossible for me !
Note: Practice makes a man perfect !
By the Way ! the compiling started now ! i will post the sucessful build image !
You have called ADD_LIBRARY for library xmr-stak-c without any source files. This typically indicates a problem with your CMakeLists.txt file You have called ADD_LIBRARY for library xmr-stak-backend without any source files. This typically indicates a problem with your CMakeLists.txt file You have called ADD_LIBRARY for library xmrstak_opencl_backend without any source files. This typically indicates a problem with your CMakeLists.txt file ``
FIX: Just Build in New Directory or in New Folder
for example : if you have build it on directory [C;\Users\Desktop\XMR-Stak\Build] Then Build it on [C;\Users\Desktop\XMR-Stak-1\Build]
BTC: 1Gwp6BkYndtkRXUSerbHR1NTq6iB8kzwBz BCH[BitcoinCash]: 1DEoTTmiosyasswGbvKYY559r22CDWBoNp
@JerichoJones ## DONT UnderEstimate the POWER of a Comman man !
Well done!
Please provide as much as possible information to reproduce the issue.
Basic information
Compile issues
Which OS do you use? -Windows 10 [64 bit]
C:\Users\Mohamed786\Desktop\Build [XMR-STAK Miner]\xmr-stak-2.2.0\xmr-stak-2.2.0\build>cmake -G "Visual Studio 15 2017 Win64" -T v141,host=x64 -DCMAKE_LINK_STATIC=ON -DCPU_ENABLE=ON -DCUDA_ENABLE=OFF -DOpenCL_ENABLE=ON .. -- The C compiler identification is MSVC 19.12.25831.0 -- The CXX compiler identification is MSVC 19.12.25831.0 -- Check for working C compiler: D:/Microsoft-VisualStudio-2017/VC/Tools/MSVC/14.12.25827/bin/Hostx64/x64/cl.exe -- Check for working C compiler: D:/Microsoft-VisualStudio-2017/VC/Tools/MSVC/14.12.25827/bin/Hostx64/x64/cl.exe -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: D:/Microsoft-VisualStudio-2017/VC/Tools/MSVC/14.12.25827/bin/Hostx64/x64/cl.exe -- Check for working CXX compiler: D:/Microsoft-VisualStudio-2017/VC/Tools/MSVC/14.12.25827/bin/Hostx64/x64/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' -- Looking for CL_VERSION_2_0 -- Looking for CL_VERSION_2_0 - found -- Found OpenCL: C:/Program Files (x86)/AMD APP SDK/3.0/lib/x86_64/OpenCL.lib (found version "2.0") -- Found OpenSSL: C:/xmr-stak-dep/openssl/lib/libeay32.lib (found version "1.0.2m") You have called ADD_LIBRARY for library xmr-stak-c without any source files. This typically indicates a problem with your CMakeLists.txt file You have called ADD_LIBRARY for library xmr-stak-backend without any source files. This typically indicates a problem with your CMakeLists.txt file You have called ADD_LIBRARY for library xmrstak_opencl_backend without any source files. This typically indicates a problem with your CMakeLists.txt file CMake Error at CMakeLists.txt:525 (add_executable): add_executable called with incorrect number of arguments
CMake Error at CMakeLists.txt:532 (target_link_libraries): Cannot specify link libraries for target "xmr-stak" which is not built by this project.
-- Configuring incomplete, errors occurred! See also "C:/Users/Mohamed786/Desktop/Build [XMR-STAK Miner]/xmr-stak-2.2.0/xmr-stak-2.2.0/build/CMakeFiles/CMakeOutput.log".
run
cmake -LA .
in the build folder and add the output hereAMD OpenCl issue
Stability issue