ProAlgos-Cpp icon indicating copy to clipboard operation
ProAlgos-Cpp copied to clipboard

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

Open arungmkumar opened this issue 4 years ago • 4 comments

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

arungmkumar avatar Jun 12 '21 12:06 arungmkumar

@arungmkumar Does make test work?

faheel avatar Jun 13 '21 16:06 faheel

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

arungmkumar avatar Jun 14 '21 07:06 arungmkumar

@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

faheel avatar Jul 26 '21 18:07 faheel

@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

arungmkumar avatar Jul 27 '21 13:07 arungmkumar