miniupnp.tuxfamily.org Forum Index miniupnp.tuxfamily.org
The forum about miniupnp and libnatpmp
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Compilation under MinGW help !

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc Compilation/Installation
View previous topic :: View next topic  
Author Message
suplin



Joined: 23 Nov 2009
Posts: 2

PostPosted: Mon Nov 23, 2009 3:45 am    Post subject: Compilation under MinGW help ! Reply with quote

Hello!
I am trying to compile miniupnpc v1.3 with MinGW32 (Vista OS), but for some reason (probably foolish) i cannot.
I am typing mingw32make.bat to compile it (as shows ReadMe) and the results

Code:

./mingw32make.bat: line1: @mingw32-make: command not found
./mingw32make.bat: line2: @if: command not found
./mingw32make.bat: line3: @strip: command not found
./mingw32make.bat: line4: @upx: command not found
./mingw32make.bat: line5: @strip: command not found
./mingw32make.bat: line6: @upx: command not found
./mingw32make.bat: line7: :end: command not found


Thanks!
S.Thomas
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1477

PostPosted: Mon Nov 23, 2009 1:58 pm    Post subject: Re: Compilation under MinGW help ! Reply with quote

suplin wrote:
Hello!
I am trying to compile miniupnpc v1.3 with MinGW32 (Vista OS), but for some reason (probably foolish) i cannot.
I am typing mingw32make.bat to compile it (as shows ReadMe) and the results

Code:

./mingw32make.bat: line1: @mingw32-make: command not found
./mingw32make.bat: line2: @if: command not found
./mingw32make.bat: line3: @strip: command not found
./mingw32make.bat: line4: @upx: command not found
./mingw32make.bat: line5: @strip: command not found
./mingw32make.bat: line6: @upx: command not found
./mingw32make.bat: line7: :end: command not found


Thanks!
S.Thomas


Are you runing the program at a windows command prompt ?
It looks like you try to run the script using a sh like shell...
you can also try to run
Code:
mingw32-make -f Makefile.mingw

_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
suplin



Joined: 23 Nov 2009
Posts: 2

PostPosted: Tue Nov 24, 2009 2:28 am    Post subject: Reply with quote

Thanks a lot ! Yes i was using a bash shell to compile.
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1477

PostPosted: Tue Nov 24, 2009 9:25 am    Post subject: Reply with quote

.bat file are DOS/windows "batch" files. They can be run just by dbl clicking them in the windows explorer
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
derekcate



Joined: 19 Mar 2010
Posts: 4

PostPosted: Mon Apr 05, 2010 4:26 pm    Post subject: Reply with quote

I ran into this as well, had been running it in a DOS window, needed to have the path variable set. So in the DOS window you can do

path = %PATH%;c:\mingw\bin

(which will only be set for that session) or set it in the control panel->system->advanced->environment variables (warning, it doesn't apply to dos windows already open).
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc Compilation/Installation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP
© 2007 Thomas Bernard, author of MiniUPNP.