Ethminer: does not appear to contain CMakeLists.txt

Created on 22 Nov 2017  Â·  13Comments  Â·  Source: ethereum-mining/ethminer

ethminer@ethminer-System-Product-Name:~$ mkdir build; cd build
mkdir: cannot create directory ‘build’: File exists
ethminer@ethminer-System-Product-Name:~/build$ cmake ..
CMake Error: The source directory "/home/ethminer" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
ethminer@ethminer-System-Product-Name:~/build$

Can't seem to get passed this part. I looked in the ethminer folder and I DO have the CMakeLists.txt file in there.
screenshot from 2017-11-21 22-54-40

Most helpful comment

You are in the wrong dir.

All 13 comments

You are in the wrong dir.

@chfast Could you please elaborate?

You must be in /home/ethminer/ethminer dir not /home/ethminer.

What about Windows 10?
I'm in the folder which I download it from the official website and the same error message appears!

Ok, I solved that with OpenCV in win 10
it's in sources folder

I am having the same issue. I am using windows 7. I am getting the same error which @Arrashg had. please solve the issue. Please go through the image that I have attached.
This is what I am getting

@niranjanreddy891
Try with this link, it could be useful for your case.
https://cmake.org/Wiki/CMake/Tutorials/How_to_create_a_ProjectConfig.cmake_file

My problem was with openCV library.

Thanks for the response @MeqdadDarweesh . I already tried the link you mentioned, but still i am facing the same issue.

Please try the following:

Linux:
git clone https://github.com/ethereum-mining/ethminer.git cd ethminer cmake -DETHASHCL=ON -DETHASHCUDA=ON -DAPICORE=ON -H. -Bbuild cmake --build build --config Release

Windows VS 2017:
````
git clone https://github.com/ethereum-mining/ethminer.git
cd ethminer

set PATH=%PATH%;"c:Program FilesCMakebin"
cmake -G "Visual Studio 15 2017 Win64" -Tv140 -H. -Bbuild -DETHASHCL=ON -DETHASHCUDA=ON -DAPICORE=ON
cmake --build build --config Release
````

Windows VS 2015:
````
git clone https://github.com/ethereum-mining/ethminer.git
cd ethminer

set PATH=%PATH%;"c:Program FilesCMakebin"
cmake -G "Visual Studio 14 2015 Win64" -H. -Bbuild -DETHASHCL=ON -DETHASHCUDA=ON -DAPICORE=ON
cmake --build build --config Release
````

@smurfy. I couldn't understand the link which you mentioned. Can you elaborate it. Also I am using visualstudio 2013.

image

Could you please elaborate? cmake install already.

this doesnt work for linux
it says errors not complete
and then the last command it doesnt even find the file
wyv

Lisa

Was this page helpful?
0 / 5 - 0 ratings

Related issues

unknown2this picture unknown2this  Â·  4Comments

Penziplays picture Penziplays  Â·  5Comments

krrkrr picture krrkrr  Â·  5Comments

gennadiv picture gennadiv  Â·  5Comments

moozzee picture moozzee  Â·  5Comments