.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Developer's Farm > General Programming
General Programming Help others and get yourself helped here!

Reply
 
Thread Tools
How to use MinGW?
Old
  (#1)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,620
Join Date: Jul 2004
Location: Bulgaria
Default How to use MinGW? - 18-09-2005

Today I get the MinGW full pack. I now know how to compile a single .cpp source but when I try to use makefiles and type the command "make" it return the massege:
Code:
'make' is not recognized as an
operable program or batch file.
The question is how to use MinGW with make files?
  
Reply With Quote
Re: How to use MinGW?
Old
  (#2)
sfx1999
Member
 
sfx1999's Avatar
 
Status: Offline
Posts: 534
Join Date: Jan 2004
Location: Pittsburgh, PA, USA
Default Re: How to use MinGW? - 19-09-2005

Install MSYS and use it with MinGW. It has make in it.


sfx1999.postcount++
  
Reply With Quote
Re: How to use MinGW?
Old
  (#3)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: How to use MinGW? - 21-09-2005

Quote:
Originally Posted by THE_STORM
Today I get the MinGW full pack. I now know how to compile a single .cpp source but when I try to use makefiles and type the command "make" it return the massege:
Code:
'make' is not recognized as an
operable program or batch file.
The question is how to use MinGW with make files?
the command in current version of MinGW is "mingw32-make"
  
Reply With Quote
Re: How to use MinGW?
Old
  (#4)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,620
Join Date: Jul 2004
Location: Bulgaria
Default Re: How to use MinGW? - 21-09-2005

Yea but I have downloaded the full pack ~50mb for Windows. And in this pack there is not any kind of make.exe file even mingw32-make.exe was not there. Rick had gived to me a link to download mingw32-make.exe but I wonder why this has not be included in ot the this "Full Pack"?
  
Reply With Quote
Re: How to use MinGW?
Old
  (#5)
sfx1999
Member
 
sfx1999's Avatar
 
Status: Offline
Posts: 534
Join Date: Jan 2004
Location: Pittsburgh, PA, USA
Default Re: How to use MinGW? - 21-09-2005

Use MSYS. Trust me.


sfx1999.postcount++
  
Reply With Quote
Re: How to use MinGW?
Old
  (#6)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: How to use MinGW? - 22-09-2005

I'd recommend this one for HL stuff:

http://prdownloads.sourceforge.net/m...1.exe?download

and using MSYS is also a good idea, but you will need to know some UNIX basics.
  
Reply With Quote
Re: How to use MinGW?
Old
  (#7)
sfx1999
Member
 
sfx1999's Avatar
 
Status: Offline
Posts: 534
Join Date: Jan 2004
Location: Pittsburgh, PA, USA
Default Re: How to use MinGW? - 23-09-2005

I have heard MinGW's stock make sucks. MSYS has a better one built in.


sfx1999.postcount++
  
Reply With Quote
Re: How to use MinGW?
Old
  (#8)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,620
Join Date: Jul 2004
Location: Bulgaria
Default Re: How to use MinGW? - 08-10-2005

OK now I have anoder problem...
All it compile OK but when I try the EPB in game it just crash but if I use it as metamod plugin it work OK. I think that there is some problem with the .def file.
Here the makefile:
Quote:
#
# E[POD]bot makefile for MingW32
#

CPP = g++

CPPFLAGS = -march=pentium4 -O2 -w -I./hlsdk -I./metamod

OBJ=bot.o bot_ai.o bot_chat.o bot_client.o bot_combat.o bot_globals.o bot_navigate.o bot_sounds.o compress.o dll.o engine.o log.o linkfunc.o meta_api.o namefunc.o util.o waypoint.o

EPB.dll: ${OBJ}
dllwrap -s --add-stdcall-alias --def epb.def --driver-name g++ -o EPB.dll ${OBJ}

clean:
-del *.o
-del *.dll

%.o: %.cpp
${CPP} ${CPPFLAGS} -c $< -o $@

%.o: %.c
${CPP} ${CPPFLAGS} -c $< -o $@
Here the .def file:
Quote:
LIBRARY EPB
EXPORTS
GiveFnptrsToDll @1
SECTIONS
.data READ WRITE
When linking it come the error:
Quote:
dlltool: Syntax error in def file epb.def:4
Warning: resolving _GiveFnptrsToDll by linking to _GiveFnptrsToDll@8
Use --enable-stdcall-fixup to disable these warnings
Use --disable-stdcall-fixup to disable these fixups
dlltool: Syntax error in def file epb.def:4
Warning: resolving _GiveFnptrsToDll by linking to _GiveFnptrsToDll@8
Use --enable-stdcall-fixup to disable these warnings
Use --disable-stdcall-fixup to disable these fixups
What I must do?
  
Reply With Quote
Re: How to use MinGW?
Old
  (#9)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: How to use MinGW? - 09-10-2005

You'll need this version for non-Metamod HL stuff:
http://prdownloads.sourceforge.net/m...1.exe?download

or, use the method which the Metamod-p is using. But this will make your DLL file much bigger.
  
Reply With Quote
Re: How to use MinGW?
Old
  (#10)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,620
Join Date: Jul 2004
Location: Bulgaria
Default Re: How to use MinGW? - 09-10-2005

Thanks but I wonder why with version 4.1 it crash?
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com