Skip to content
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

make[1]: *** No targets specified and no makefile found. Stop #418

Open
arungmkumar opened this issue Jun 12, 2021 · 4 comments
Open

make[1]: *** No targets specified and no makefile found. Stop #418

arungmkumar opened this issue Jun 12, 2021 · 4 comments
Labels

Comments

@arungmkumar
Copy link

Hello,

Hope everyone is dong fine.

I need a help here please. I forked and cloned the repo to my local (windows). And when I try to run make , I am getting below error. Not sure what I am missing though !


gmarunkumar@LFCPCSQ2 MINGW64 /c/Arun/GitHub/ProAlgos-Cpp/cpp (master)
$ ls -lrt
total 9
-rw-r--r-- 1 gmarunkumar 1049089 6233 Jun 12 16:00 CMakeLists.txt
-rw-r--r-- 1 gmarunkumar 1049089 328 Jun 12 16:00 Makefile
drwxr-xr-x 1 gmarunkumar 1049089 0 Jun 12 16:00 include/
drwxr-xr-x 1 gmarunkumar 1049089 0 Jun 12 16:00 scripts/
drwxr-xr-x 1 gmarunkumar 1049089 0 Jun 12 16:00 test/
drwxr-xr-x 1 gmarunkumar 1049089 0 Jun 12 17:33 bin/

gmarunkumar@LFCPCSQ2 MINGW64 /c/Arun/GitHub/ProAlgos-Cpp/cpp (master)
$

gmarunkumar@LFCPCSQ2 MINGW64 /c/Arun/GitHub/ProAlgos-Cpp/cpp (master)
$ make
-- Building for: Visual Studio 15 2017
-- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.19041.
-- The C compiler identification is MSVC 19.16.27030.1
-- The CXX compiler identification is MSVC 19.16.27030.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/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
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Arun/GitHub/ProAlgos-Cpp/cpp/build
make[1]: *** No targets specified and no makefile found. Stop.
Makefile:7: recipe for target 'default' failed
make: *** [default] Error 2

gmarunkumar@LFCPCSQ2 MINGW64 /c/Arun/GitHub/ProAlgos-Cpp/cpp (master)
$ which make
/c/MinGW/bin/make


Thanks

@faheel
Copy link
Member

faheel commented Jun 13, 2021

@arungmkumar Does make test work?

@faheel faheel added the Bug label Jun 13, 2021
@arungmkumar
Copy link
Author

@faheel
make test runs , but doesn't do anything. Just creates empty dirs bin and build.

gmarunkumar@LFCPCSQ2 MINGW64 /c/Arun/GitHub/ProAlgos-Cpp/cpp (master)
$ make test

gmarunkumar@LFCPCSQ2 MINGW64 /c/Arun/GitHub/ProAlgos-Cpp/cpp (master)
$ ls -lrt
total 9
-rw-r--r-- 1 gmarunkumar 1049089 6233 Jun 12 16:00 CMakeLists.txt
-rw-r--r-- 1 gmarunkumar 1049089 328 Jun 12 16:00 Makefile
drwxr-xr-x 1 gmarunkumar 1049089 0 Jun 12 16:00 include/
drwxr-xr-x 1 gmarunkumar 1049089 0 Jun 12 16:00 test/
drwxr-xr-x 1 gmarunkumar 1049089 0 Jun 14 11:16 scripts/
drwxr-xr-x 1 gmarunkumar 1049089 0 Jun 14 11:18 build/
drwxr-xr-x 1 gmarunkumar 1049089 0 Jun 14 11:18 bin/

gmarunkumar@LFCPCSQ2 MINGW64 /c/Arun/GitHub/ProAlgos-Cpp/cpp (master)
$ ls bin

gmarunkumar@LFCPCSQ2 MINGW64 /c/Arun/GitHub/ProAlgos-Cpp/cpp (master)
$ ls build

gmarunkumar@LFCPCSQ2 MINGW64 /c/Arun/GitHub/ProAlgos-Cpp/cpp (master)

@faheel
Copy link
Member

faheel commented Jul 26, 2021

@arungmkumar You can try making this change in the Makefile and then run make:

-	cd build && cmake .. && make
+	cd build && cmake .. --config release --target install && make

Source

@arungmkumar
Copy link
Author

@faheel
After the suggested change in Makefile , the below is the result.

gmarunkumar@LFCPCSQ2 MINGW64 /c/Arun/GitHub/ProAlgos-Cpp/cpp (master)
$ make
CMake Error: The source directory "C:/Arun/GitHub/ProAlgos-Cpp/cpp/build/install" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
Makefile:7: recipe for target 'default' failed
make: *** [default] Error 1

-------------- manually created install directory ----------------------------------

gmarunkumar@LFCPCSQ2 MINGW64 /c/Arun/GitHub/ProAlgos-Cpp/cpp/build (master)
$ mkdir install

gmarunkumar@LFCPCSQ2 MINGW64 /c/Arun/GitHub/ProAlgos-Cpp/cpp (master)
$ make
CMake Error: The source directory "C:/Arun/GitHub/ProAlgos-Cpp/cpp/build/--target" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
Makefile:7: recipe for target 'default' failed
make: *** [default] Error 1

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

No branches or pull requests

2 participants