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

Can't build the dynamic library. Facing error: "make: *** No targets specified and no makefile found" #41

Closed
ramkumarravy opened this issue Mar 29, 2020 · 4 comments

Comments

@ramkumarravy
Copy link

ramkumarravy commented Mar 29, 2020

I am trying to build the dynamic library for the "hello_world" example in the dart:ffi samples. While trying to do so, I am facing the following error:

make: *** No targets specified and no makefile found.

I have installed the "make" from the following site: http://gnuwin32.sourceforge.net/packages/make.htm

Could you please advise me on this? Thanks in advance :).

OS: Windows

@ramkumarravy ramkumarravy changed the title Couldn't build the dynamic library. Facing error: "make: *** No targets specified and no makefile found" Cann't build the dynamic library. Facing error: "make: *** No targets specified and no makefile found" Mar 29, 2020
@ramkumarravy ramkumarravy changed the title Cann't build the dynamic library. Facing error: "make: *** No targets specified and no makefile found" Can't build the dynamic library. Facing error: "make: *** No targets specified and no makefile found" Mar 29, 2020
@domesticmouse
Copy link
Member

Have you installed cmake? See the ffi readme for more information.

@ramkumarravy
Copy link
Author

Yes, I did @domesticmouse. Have downloaded it from https://cmake.org/download/ and I'm using the cmake v3.17.0.

Also, when running the 'cmake .' command, it was instructed that following files will be generated. But the 'MakeFile' and 'CmakeScripts' are not generated. What would be the reason?

CMake generated files and directories

CMakeCache.txt
CMakeFiles/
CmakeScripts/
Makefile
cmake_install.cmake

@domesticmouse
Copy link
Member

On windows, I believe cmake will default to making a visual studio solution file. I don’t know cmake in depth, especially on windows. I’d suggest digging into cmake’s documentation, and asking questions on stackoverflow.com

@function1983
Copy link

Same as #57. It has step by step instruction to build dll file in Windows.

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

No branches or pull requests

3 participants