Skip to content
This repository has been archived by the owner on Apr 24, 2022. It is now read-only.

does not appear to contain CMakeLists.txt #394

Closed
Ash-Digital opened this issue Nov 22, 2017 · 15 comments
Closed

does not appear to contain CMakeLists.txt #394

Ash-Digital opened this issue Nov 22, 2017 · 15 comments

Comments

@Ash-Digital
Copy link

Ash-Digital commented Nov 22, 2017

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

@chfast
Copy link
Contributor

chfast commented Nov 22, 2017

You are in the wrong dir.

@chfast chfast closed this as completed Nov 22, 2017
@Ash-Digital
Copy link
Author

@chfast Could you please elaborate?

@chfast
Copy link
Contributor

chfast commented Nov 23, 2017

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

@MeqdadDev
Copy link

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

@MeqdadDev
Copy link

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

@niranjanreddy891
Copy link

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

@MeqdadDev
Copy link

@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.

@niranjanreddy891
Copy link

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

@smurfy
Copy link
Collaborator

smurfy commented Feb 26, 2018

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 Files\CMake\bin"
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 Files\CMake\bin"
cmake -G "Visual Studio 14 2015 Win64" -H. -Bbuild -DETHASHCL=ON -DETHASHCUDA=ON -DAPICORE=ON
cmake --build build --config Release

@niranjanreddy891
Copy link

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

@askunix
Copy link

askunix commented Dec 28, 2018

image

Could you please elaborate? cmake install already.

@hackmod
Copy link
Contributor

hackmod commented Dec 28, 2018

@askunix // Please see #394 (comment)

@lisawebcoder
Copy link

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

Lisa

@62f
Copy link

62f commented Dec 16, 2020

Which instruction for Linux did you mean by "it", and what is the name of the file which 'it' "cannot even find"? Meaning to elaborate by posting both the command plus its error message.
Such generalizations aren't helpful.

@lisawebcoder
Copy link

lisawebcoder commented Dec 16, 2020

hello thank you for taking the time to reply
this was over 8 months ago and i dont recall exactly the error i got cuz i am not working on this now anymore
however the "it' for sure i was referring to the terminal in ubuntu 16 or 18 and i must of got errors running the commands in the tutorial sorry for now thats what i recall and i must have been referring to my run file which is supposed to be genereated after running Cmake
i was able to use Make instead of Cmake in my software and get my code to run on ubuntu 14
and thats why i did not continue with trying to build and run my C++ software with Cmake but just Make

bascally in my root project folder on ubuntu 14 at the terminal

make -j 4

this runs on 4 cores of cpu
then after my software is built

./gb -d

this runs my server at port 8000
and i open a webpage at the IP address of my webhost or localhost such as

localhost:8000
or live
192.169.44.33:8000 (example only)
or with a domain
run.ca:8000 (example only)

for awhile i couldnt get my C++ code to work
and so i tried Cmake and that didnt work either
but then i realized my code worked on Ubuntu14 only for now
and i have to fix updates for versions Ubuntu 16 or 18 or 20 etc.

LISA

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants