View previous topic :: View next topic |
Author |
Message |
suplin
Joined: 23 Nov 2009 Posts: 2
|
Posted: Mon Nov 23, 2009 3:45 am Post subject: Compilation under MinGW help ! |
|
|
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 |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1589
|
Posted: Mon Nov 23, 2009 1:58 pm Post subject: Re: Compilation under MinGW help ! |
|
|
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.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
suplin
Joined: 23 Nov 2009 Posts: 2
|
Posted: Tue Nov 24, 2009 2:28 am Post subject: |
|
|
Thanks a lot ! Yes i was using a bash shell to compile. |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1589
|
Posted: Tue Nov 24, 2009 9:25 am Post subject: |
|
|
.bat file are DOS/windows "batch" files. They can be run just by dbl clicking them in the windows explorer _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
derekcate
Joined: 19 Mar 2010 Posts: 4
|
Posted: Mon Apr 05, 2010 4:26 pm Post subject: |
|
|
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 |
|
|
|