![]() |
Re: My tutorial for RB
Quote:
Krillin |
Re: My tutorial for RB
Looks like you're so good at linux, then you could probably just read the makefile, know that there are dependencies missing and grab the source file. Piece of cake with Linux right?
I don't like the additude towards Microsoft, just because coders use it. I code on Windows , Mac and Linux. And i don't care what OS it is, as long as it works. 8) RealBot was re-released with a purpose to give out an official, easy to install (for Windows yes) latest version. Instead of just downloading an old version, incremental updates, etc. Source code is delivered with it, with a bit effort you can get it compiling for sure. Hint: Metamod, HLSDK. |
Re: My tutorial for RB
you need to download the HLSDK and Metamod sources (as stefan said - they can be found at http://www.metamod.org ), and then adapt the Makefile (change the compiler command name and the paths to HLSDK and Metamod sources) then running "make" will produce the .so file if nothing is wrong.
to sum up, these are the lines which you need to change in Makefile: CPP = gcc-2.95.3 METAMOD_SRCDIR = /usr/src/hl_bot_build/metamod-1.17/metamod HLSDK_BASEDIR = /usr/src/hl_bot_build/hlsdk-2.3 |
Re: My tutorial for RB
Actually he don't need to use gcc-2.95.3 anymore. :)
GCC-3.4.4 do perfect job. |
Re: My tutorial for RB
I have read the ./Makefile and the commands in this file are invalid as I told you in the e-mail I sent you with the console errors "Command not found:" if you like I will show you here if you need the reminder?
I am not going to get into a debate about coders making script or code for liunx in Microshaft Winblows. With all due respect it makes you coders lazy. You guys tend to forget with your code that Linux is CaSe SeNcItIvE. You have no idea how many problems were cause by lazy windoze programmers who are clueless about Linux constraints in this mannor. This is not an opinion, this is plain old fact. And this only in the third+ on going years I have been working with Linux. If you do not like the posts of scarcasium then remove them. Krillin |
Re: My tutorial for RB
Removed a Double Post
|
Re: My tutorial for RB
The GCC verion on the build I am working with is 4.1.1-3
All components match this version. I hear the 2.95 comes as like a legacy package labled LSB and is the prefered GCC build product. Ok, I have made some progress. Silly me was trying to run the Makefile, rahter then "make" to let it compile. Now the files included in the source code for realbot have hldsk and metamod. These files are missing and need to be placed in the hlsdk and metamod /user/src/ folders repectively, but I can not seem to figure out where they go. Compliling indicates these files are missing. Where do the files located in hlsdk and metamod from /realbot/source/ need to go in what folder(s) for /usr/src/hlsdk-2.3 and /usr/src/metamod-1.19? Krillin |
Re: My tutorial for RB
read my post above.
you can extract them to anywhere you want, just edit the makefile to make the variables pointing to them. |
Re: My tutorial for RB
Quote:
Will post back in a few minutes and see if it worked or not. Krillin [edit1] Just as I suspected, I was right. I was prompted to overright some files with metamod, but here is what came out of this trial. gcc -Dstricmp=strcasecmp -Dstrcmpi=strcasecmp -march=i586 -O2 -w -I"/usr/src/metamod-1.19/metamod" -I"/usr/src/hlsdk-2.3/multiplayer/common" -I"/usr/src/hlsdk-2.3/multiplayer/dlls" -I"/usr/src/hlsdk-2.3/multiplayer/engine" -I"/usr/src/hlsdk-2.3/multiplayer/pm_shared" -c NodeMachine.cpp -o NodeMachine.o In file included from /usr/src/metamod-1.19/metamod/meta_api.h:81, from NodeMachine.cpp:40: /usr/src/metamod-1.19/metamod/engine_api.h:79:23: error: archtypes.h: No such file or directory /usr/src/metamod-1.19/metamod/engine_api.h:291: error: ‘int32’ has not been declared /usr/src/metamod-1.19/metamod/engine_api.h:341: error: ‘uint32’ does not name a type /usr/src/metamod-1.19/metamod/engine_api.h:343: error: ‘uint32’ was not declared in this scope /usr/src/metamod-1.19/metamod/engine_api.h:383: error: ‘int32’ does not name a type /usr/src/metamod-1.19/metamod/engine_api.h:535: error: expected initializer before ‘*’ token /usr/src/metamod-1.19/metamod/engine_api.h:537: error: expected initializer before ‘*’ token /usr/src/metamod-1.19/metamod/engine_api.h:707: error: ‘int32’ has not been declared /usr/src/metamod-1.19/metamod/engine_api.h:747: error: ISO C++ forbids declaration of ‘uint32’ with no type /usr/src/metamod-1.19/metamod/engine_api.h:747: error: typedef ‘uint32’ is initialized (use __typeof__ instead) /usr/src/metamod-1.19/metamod/engine_api.h:747: error: ‘FN_FUNCTIONFROMNAME’ was not declared in this scope /usr/src/metamod-1.19/metamod/engine_api.h:747: error: expected ‘,’ or ‘;’ before ‘(’ token /usr/src/metamod-1.19/metamod/engine_api.h:779: error: ISO C++ forbids declaration of ‘int32’ with no type /usr/src/metamod-1.19/metamod/engine_api.h:779: error: typedef ‘int32’ is initialized (use __typeof__ instead) /usr/src/metamod-1.19/metamod/engine_api.h:779: error: ‘FN_RANDOMLONG’ was not declared in this scope /usr/src/metamod-1.19/metamod/engine_api.h:779: error: expected ‘,’ or ‘;’ before ‘(’ token /usr/src/metamod-1.19/metamod/engine_api.h:895: error: expected initializer before ‘*’ token /usr/src/metamod-1.19/metamod/engine_api.h:897: error: expected initializer before ‘*’ token /usr/src/metamod-1.19/metamod/meta_api.h:187: error: expected unqualified-id before ‘do’ /usr/src/metamod-1.19/metamod/meta_api.h:187: error: expected unqualified-id before ‘while’ /usr/src/metamod-1.19/metamod/meta_api.h:191: error: expected unqualified-id before ‘while’ /usr/src/metamod-1.19/metamod/meta_api.h:223: error: expected constructor, destructor, or type conversion before ‘;’ token /usr/src/metamod-1.19/metamod/meta_api.h:287: error: ‘META_FUNCTIONS’ has not been declared /usr/src/metamod-1.19/metamod/meta_api.h:295: error: ‘META_FUNCTIONS’ has not been declared make: *** [NodeMachine.o] Error 1 [/edit1] [edit2] I was right again, the files for HLDSK needed to go into the multiplayer/common folder, metamod was fine, now here is what I am getting in compliling gcc -Dstricmp=strcasecmp -Dstrcmpi=strcasecmp -march=i586 -O2 -w -I"/usr/src/hl_bot_build/metamod-1.19/metamod" -I"/usr/src/hl_bot_build/hlsdk-2.3/multiplayer/common" -I"/usr/src/hl_bot_build/hlsdk-2.3/multiplayer/dlls" -I"/usr/src/hl_bot_build/hlsdk-2.3/multiplayer/engine" -I"/usr/src/hl_bot_build/hlsdk-2.3/multiplayer/pm_shared" -c NodeMachine.cpp -o NodeMachine.o /usr/src/hl_bot_build/metamod-1.19/metamod/engine_api.h:268: error: expected initializer before '*' token /usr/src/hl_bot_build/metamod-1.19/metamod/engine_api.h:269: error: expected initializer before '*' token /usr/src/hl_bot_build/metamod-1.19/metamod/engine_api.h:448: error: expected initializer before '*' token /usr/src/hl_bot_build/metamod-1.19/metamod/engine_api.h:449: error: expected initializer before '*' token make: *** [NodeMachine.o] Error 1 Now this is out of my hands as this is a syntax coding error. I am gonna try to put back the files the includes from the RB Source overwrote and see if this will do any better. Some files which were overwritten by RB Souce Files were much smaller than the ones they were replaced with. [/edit2] |
Re: My tutorial for RB
the HLSDK at http://metamod.org is updated. Make sure you are download the updated version and not the original version.
direct download link: http://metamod.sourceforge.net/files...-2.3-p3.tar.gz PS: I'd recommend you to read this article: http://www.catb.org/~esr/faqs/smart-questions.html |
All times are GMT +2. The time now is 09:33. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.