• Advertisement
Sign in to follow this  

Help! I cannot run makefiles with commands D:!

This topic is 1221 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, I am having some really strange issues with building libraries.

 

I've never really had a lot of luck with building libraries, and I usually end up throwing all the source code into an Eclipse program and compiling.

 

Every time I run a makefile, I do it by opening cmd.exe, then type make, and I just get an error. If I type make mingw, as many libraries specify me to do, I also get errors, and the program failed to start correctly message pops up. I just don't know what I am supposed to do :|.

 

I really just don't get it... I have Mingw\bin, and MSYS/bin in my PATH variables, so I figured there wouldn't be any problems, but apparently there are. And no, the libraries don't require cmake.

 

For example, I am trying to compile the Lua libraries (which is supposed to be a very simple compile, apparently :|), and it just gives me this output:

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users\NULL>make
make: *** No targets specified and no makefile found.  Stop.

C:\Users\NULL>make mingw
make: *** No rule to make target `mingw'.  Stop.

C:\Users\NULL>cd C:\Users\NULL\Downloads\lua-5.2.3.tar\lua-5.2.3\lua-5.2.3

C:\Users\NULL\Downloads\lua-5.2.3.tar\lua-5.2.3\lua-5.2.3>make mingw
cd src && make mingw
make: *** [mingw] Error 66

C:\Users\NULL\Downloads\lua-5.2.3.tar\lua-5.2.3\lua-5.2.3>make
make: *** [none] Error 66

C:\Users\NULL\Downloads\lua-5.2.3.tar\lua-5.2.3\lua-5.2.3>make mingw
cd src && make mingw
make: *** [mingw] Error 66

C:\Users\NULL\Downloads\lua-5.2.3.tar\lua-5.2.3\lua-5.2.3>

Please help D:, I can't go on like this!!!1!

 

Share this post


Link to post
Share on other sites
Advertisement

You need to run make (or mingw32-make as it is called in the MinGW destribution I use) in the directory that contains the Makefile. In this case this would be the "lua-5.2.3" folder (for some reason you have 2 or these, there should be only one after unzipping the archive).

 

btw: make mingw tells make to build a target called "mingw" so that's not going to work. ;) Lua actually has a "mingw" target, so forget about this line.

Edited by Jan2go

Share this post


Link to post
Share on other sites

You need to run make (or mingw32-make as it is called in the MinGW destribution I use) in the directory that contains the Makefile. In this case this would be the "lua-5.2.3" folder (for some reason you have 2 or these, there should be only one after unzipping the archive).

 

btw: make mingw tells make to build a target called "mingw" so that's not going to work. ;)

That's what I was doing.. I went into the proper directory, and ran make.exe by entering make.d i'll try it with mingw32-make.

 

EDIT: It didn't work :/. Even when I changed the files.

 

here is my code:

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users\NULL>cd C:\Users\NULL\Downloads\lua-5.2.3.tar\lua-5.2.3\lua-5.2.3

C:\Users\NULL\Downloads\lua-5.2.3.tar\lua-5.2.3\lua-5.2.3>mingw32-make
Please do 'make PLATFORM' where PLATFORM is one of these:
   aix ansi bsd freebsd generic linux macosx mingw posix solaris
See doc/readme.html for complete instructions.

C:\Users\NULL\Downloads\lua-5.2.3.tar\lua-5.2.3\lua-5.2.3>mingw32-make mingw
cd src && mingw32-make mingw
      0 [main] sh 3780 sync_with_child: child 11864(0x164) died before initializ
ation with status code 0xC0000142
    147 [main] sh 3780 sync_with_child: *** child state waiting for longjmp
/usr/bin/sh: fork: Resource temporarily unavailable
Makefile:55: recipe for target 'mingw' failed
mingw32-make: *** [mingw] Error 128

C:\Users\NULL\Downloads\lua-5.2.3.tar\lua-5.2.3\lua-5.2.3>
Edited by Solid_Spy

Share this post


Link to post
Share on other sites

Strange. On my machine it compiles without any problems. What distribution of MinGW do you use? The "/usr/bin/sh" part looks like Cygwin to me. If it is I can't really help you as I never used it before.

Share this post


Link to post
Share on other sites

Strange. On my machine it compiles without any problems. What distribution of MinGW do you use? The "/usr/bin/sh" part looks like Cygwin to me. If it is I can't really help you as I never used it before.

I used the version that was provided in the download link on the main website, I don't know how to check the version. I downloaded the installer, and even updated it. I'm pretty sure i'm using MinGW. I checked the files.

 

I just wish someone would show me a step by step guide on how to run a simple makefile, like the Lua makefile. I know how to build code using g++ -o XXX commands, but this stuff is a bit more advanced.

 

Or better yet, I would like to know why I am getting this error.

Share this post


Link to post
Share on other sites

UPDATE:

 

Well, I reinstalled MSYS, and this time installed it into the right directory, and now I get these errors when trying to compile the Lua libraries:

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users\NULL>cd C:\Users\NULL\Downloads\lua-5.2.3

C:\Users\NULL\Downloads\lua-5.2.3>make
Please do 'make PLATFORM' where PLATFORM is one of these:
   aix ansi bsd freebsd generic linux macosx mingw posix solaris
See doc/readme.html for complete instructions.

C:\Users\NULL\Downloads\lua-5.2.3>make mingw
cd src && make mingw
make[1]: Entering directory `/c/Users/NULL/Downloads/lua-5.2.3/src'
make[1]: *** No rule to make target `mingw'.  Stop.
make[1]: Leaving directory `/c/Users/NULL/Downloads/lua-5.2.3/src'
make: *** [mingw] Error 2

C:\Users\NULL\Downloads\lua-5.2.3>mingw32-make
Please do 'make PLATFORM' where PLATFORM is one of these:
   aix ansi bsd freebsd generic linux macosx mingw posix solaris
See doc/readme.html for complete instructions.

C:\Users\NULL\Downloads\lua-5.2.3>mingw32-make mingw
cd src && mingw32-make mingw
mingw32-make[1]: Entering directory 'c:/Users/NULL/Downloads/lua-5.2.3/src'
mingw32-make[1]: *** No rule to make target 'mingw'.  Stop.
mingw32-make[1]: Leaving directory 'c:/Users/NULL/Downloads/lua-5.2.3/src'
Makefile:55: recipe for target 'mingw' failed
mingw32-make: *** [mingw] Error 2

C:\Users\NULL\Downloads\lua-5.2.3>

Share this post


Link to post
Share on other sites

Well, there very obviously is a mingw target, so your mingw32-make is completely broken, if this is the same lua-5.2.3 I am looking at. Try mingw32-make posix? Also try running the "cd src && mingw32-make mingw" command manually. Also try running a simpler, basic makefile, and see if the same error occurs.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement