.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   HPB_bot (http://forums.bots-united.com/forumdisplay.php?f=35)
-   -   Compiling dlls with MingWing (http://forums.bots-united.com/showthread.php?t=3701)

botman 16-03-2005 15:49

Re: Compiling dlls with MingWing
 
The backslash should ONLY occur as the last character of a line that is being broken between 2 lines.

If this...

OBJ = "../../mod-code/Single-Player\ _TAB_Source/cl_dll/ammo.o"

...is all on one line, then it should actually be this...

OBJ = "../../mod-code/Single-PlayerSource/cl_dll/ammo.o"

(assuming that your directory is "Single-PlayerSouce" and not "Single-Player Source").

botman

Pierre-Marie Baty 16-03-2005 21:07

Re: Compiling dlls with MingWing
 
When a path is between quotes, you do NOT need to prefix spaces with a backslash.

Examples:

OBJ=../../mod-code/Single-Player\ Source/cl_dll/ammo.o (right)
OBJ="../../mod-code/Single-Player Source/cl_dll/ammo.o" (right)
OBJ=../../mod-code/Single-Player Source/cl_dll/ammo.o (wrong)
OBJ="../../mod-code/Single-Player\ Source/cl_dll/ammo.o" (wrong)

Beasty 17-03-2005 10:07

Re: Compiling dlls with MingWing
 
Thanks!

Beasty 19-03-2005 00:54

Re: Compiling dlls with MingWing
 
I have updated my Dev C++ to version 4.9.9.2 and now I get this error when compiling the client.dll:

E:\Dev-Cpp\projects\Makefile.win [Build Error] No rule to make target `"../../mod-code/Single-Player', needed by `client.dll'. Stop.

Note that this error is in one line. And I get these errors when compiling the HPB_bot:

102 E:\Bot-code\HPB_bot\floyd.c `main' must return `int'
E:\Bot-code\HPB_bot\floyd.c In function `int main(...)':
139 E:\Bot-code\HPB_bot\floyd.c `atoi' undeclared (first use this function)
(Each undeclared identifier is reported only once for each function it appears in.)
E:\Dev-Cpp\projects\Makefile.win [Build Error] [../../Bot-code/HPB_bot/floyd.o] Error 1

Each of these errors are in one line as well. Thanks for the help!

Whistler 19-03-2005 06:45

Re: Compiling dlls with MingWing
 
the floyd.c (as well as exports.c) isn't part of HPB bot so remove it from the project

Beasty 20-03-2005 04:52

Re: Compiling dlls with MingWing
 
I have but now I get these errors:

9 E:\Bot-code\HPB_bot\dlls\Bot-code\HPB_bot\dlls\bot.cpp In file included from ../../Bot-code/HPB_bot/dlls/extdll.h:82, from ../../Bot-code/HPB_bot/dlls/bot.cpp

9 E:\Bot-code\HPB_bot\dlls\bot.cpp from ../../Bot-code/HPB_bot/dlls/bot.cpp

112:7 E:\Bot-code\HPB_bot\dlls\vector.h [Warning] no newline at end of file

9 E:\Bot-code\HPB_bot\dlls\bot.cpp In file included from ../../Bot-code/HPB_bot/dlls/bot.cpp

88 E:\Bot-code\HPB_bot\dlls\extdll.h const.h: No such file or directory.

And so on. Here's the last two messages:
[General Error] Too many messages; abort.
There must be something terribly wrong with your code. Please fix it.

And what about the client.dll? :(

Beasty 21-03-2005 00:16

Re: Compiling dlls with MingWing
 
For the HPB_bot project, I included every file in every folder except for floyd.c and exports.c, including everything inside bot_logo folder. And for the client project I included everything in the cl_dll folder and hl folder inside it. Has anyone made a patch for the HPB_bot source code that makes it compile under Dev C++. And Whistler, you have Dev C++ installed, don't you? Why don't you try compiling the client.dll? I've extracted your patch files to my Single-Player Source directory so it can't be that.

Whistler 21-03-2005 00:34

Re: Compiling dlls with MingWing
 
here is the Dev-C++/MinGW version of HPB bot Template source code:
http://filebase.bots-united.com/inde...on=file&id=225

also I've uploaded the SDK with Dev-C++ project file for client dll, just redownload it

Note that the MinGW version comes with Dev-C++ won't compile HL mods or bots correctly (it will crash when starting games). The solution is delete "lib" and "include" folder in Dev-C++ folder, and then install this version of MinGW to the Dev-C++ folder and it will be okay:
http://prdownloads.sourceforge.net/m...1.exe?download
(after that there will be an error message in the first time starting Dev-C++, just ignore it)

Beasty 21-03-2005 01:10

Re: Compiling dlls with MingWing
 
Thanks! It worked! :) Is the template all I need to compile the HPB_bot dll? Or do I have to compile the contents of the hpb_bot_plugin folder? The error that comes up, do I just click no? And how can I change the name of the dll? Do I have to create a new project with the name? Thanks a lot, Whistler!!! :D

Pierre-Marie Baty 21-03-2005 02:10

Re: Compiling dlls with MingWing
 
Such questions would rather belong to the coding forum, not the HPB_bot forum. To change the name of the DLL, set it in the Makefile.


All times are GMT +2. The time now is 03:49.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.