Luigi Auriemma

aluigi.org (ARCHIVE-ONLY FORUM!)
It is currently 19 Jul 2012 15:52

All times are UTC [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 29 posts ] 
Author Message
 Post subject: q3dirtrav translating
PostPosted: 01 Sep 2008 17:28 

Joined: 24 Aug 2008 11:06
Posts: 38
Hi! I want to translate the q3dirtrav.Can I do it?How?
Please help


Top
 Profile  
 
 
 Post subject: Re: q3dirtrav translating
PostPosted: 02 Sep 2008 10:52 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
if you mean a language translation you need to modify the C code and recompiling it


Top
 Profile  
 
 Post subject: Re: q3dirtrav translating
PostPosted: 02 Sep 2008 18:53 

Joined: 24 Aug 2008 11:06
Posts: 38
I modified the C file but it doesn't work :(
Image
Please tell me why


Top
 Profile  
 
 Post subject: Re: q3dirtrav translating
PostPosted: 02 Sep 2008 21:10 

Joined: 05 Oct 2007 01:20
Posts: 402
Location: Florida
if u modified it, did u compile it? :P


Top
 Profile  
 
 Post subject: Re: q3dirtrav translating
PostPosted: 03 Sep 2008 06:11 

Joined: 24 Aug 2008 11:06
Posts: 38
compile??? How can I compile it? :)


Top
 Profile  
 
 Post subject: Re: q3dirtrav translating
PostPosted: 03 Sep 2008 09:09 

Joined: 24 Sep 2007 02:12
Posts: 1114
Location: http://sethioz.co.uk
lol... if you didn't compile it, then how you even expect some changes ?! uh im totally lost here. anyways..
mingw gcc compiler maybe. quite easy to use :)


Top
 Profile  
 
 Post subject: Re: q3dirtrav translating
PostPosted: 05 Oct 2008 06:49 

Joined: 24 Aug 2008 11:06
Posts: 38
ok I have MinGW. So how can I compile the q3dirtrav?(I new in programming...)
I try this:
Code:
gcc -o q3dirtrav.exe q3dirtrav.c
but it didn't work
Please help!


Top
 Profile  
 
 Post subject: Re: q3dirtrav translating
PostPosted: 05 Oct 2008 07:55 

Joined: 16 Aug 2007 06:25
Posts: 367
What kind of error message did you get? With that input, the compiler assumes the source file is in the same folder as gcc. Was it? When you compile, do the following:

1) Change directory to where the gcc compiler is located:

cd C:\MinGW\bin

2) Now that you're in the same folder as GCC, run the command and try providing full file paths so you can control where everything is, and where it should go:

gcc -o c:\q3dirtrav.exe c:\myfiles\q3dirtrav.c

This will compile q3dirtrav.c and place it in c:\.

If you're getting compiling errors, post the exact errors here so we can further help.


Top
 Profile  
 
 Post subject: Re: q3dirtrav translating
PostPosted: 05 Oct 2008 12:47 

Joined: 24 Sep 2007 02:12
Posts: 1114
Location: http://sethioz.co.uk
Code:
gcc -o name.exe name.c -lws2_32 -lz


Top
 Profile  
 
 Post subject: Re: q3dirtrav translating
PostPosted: 07 Oct 2008 08:23 

Joined: 24 Aug 2008 11:06
Posts: 38
Code:
C:\MinGW> gcc -o q3dirtrav.exe q3dirtrav.c -lws2_32 -lz
C:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot fin
d -lz


Top
 Profile  
 
 Post subject: Re: q3dirtrav translating
PostPosted: 07 Oct 2008 13:02 

Joined: 24 Sep 2007 02:12
Posts: 1114
Location: http://sethioz.co.uk
I had similiar problem too. Think Luigi told me to delete something from /lib/ folder.
think that only ''libz'' file in there has to be "libz.a". i had to remove "libz.dll.a" from /lib/ folder.
first ofcourse check if you even have "libz.a" in the /lib/ folder.


Top
 Profile  
 
 Post subject: Re: q3dirtrav translating
PostPosted: 07 Oct 2008 14:11 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
http://gnuwin32.sourceforge.net/downlin ... ib-zip.php

in case of doubts use c:\mingw\lib\libz.a instead of -lz


Top
 Profile  
 
 Post subject: Re: q3dirtrav translating
PostPosted: 07 Oct 2008 15:59 

Joined: 24 Aug 2008 11:06
Posts: 38
huh....ok,now this is the problem:
Code:
C:\MinGW>gcc -o q3dirtrav.exe q3dirtrav.c -lws2_32 -lz
C:\DOCUME~1\XY\LOCALS~1\Temp/ccW9Hwks.o:q3dirtrav.c:(.text+0xa13): undefined ref
erence to `CreateFontA@56'
collect2: ld returned 1 exit status


Top
 Profile  
 
 Post subject: Re: q3dirtrav translating
PostPosted: 07 Oct 2008 17:37 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
add -mwindows


Top
 Profile  
 
 Post subject: Re: q3dirtrav translating
PostPosted: 08 Oct 2008 18:42 

Joined: 24 Aug 2008 11:06
Posts: 38
huh.....i totally lost here.....I tried the
Code:
C:\MinGW>gcc -s -Os -o q3dirtrav.exe q3dirtrav.c -mwindows -lws2_32 -lz lib\libz.dll.a
but it doesn't work...I tried the
Code:
C:\MinGW>gcc -s -Os -o q3dirtrav.exe q3dirtrav.c -nostdlib -mwindows -luser32 -lz lib\stristr.o
but
Code:
gcc: lib\stristr.o: No such file or directory
... I dont know what to do...
Any ideas?


Top
 Profile  
 
 Post subject: Re: q3dirtrav translating
PostPosted: 08 Oct 2008 18:45 

Joined: 24 Aug 2008 11:06
Posts: 38
and whats this q3dirtrav_res.rc???


Top
 Profile  
 
 Post subject: Re: q3dirtrav translating
PostPosted: 08 Oct 2008 19:34 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
ok, I give you the full commands I use (the compilation of q3dirtrav is a bit "atypical" than usual):

windres.exe q3dirtrav_res.c -o q3dirtrav_res.o
gcc -s -O2 -mwindows -o q3dirtrav.exe q3dirtrav.c q3dirtrav_res.o


Top
 Profile  
 
 Post subject: Re: q3dirtrav translating
PostPosted: 08 Oct 2008 21:07 

Joined: 24 Sep 2007 02:12
Posts: 1114
Location: http://sethioz.co.uk
seems like you missing stristr.c and stristr.o .. i also had those problems.
DOH cant upload stristr.c and stristr.o ...


Top
 Profile  
 
 Post subject: Re: q3dirtrav translating
PostPosted: 08 Oct 2008 23:07 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
q3dirtrav doesn't use the stristr function, anyway it's on my website:

http://aluigi.org/mytoolz/stristr.c


Top
 Profile  
 
 Post subject: Re: q3dirtrav translating
PostPosted: 09 Oct 2008 19:15 

Joined: 24 Aug 2008 11:06
Posts: 38
yeah it works!!!thanks Aluigi!thanks Sethioz!Many Thx!:D


Last edited by edzo on 10 Oct 2008 15:27, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: q3dirtrav translating
PostPosted: 10 Oct 2008 14:38 

Joined: 24 Sep 2007 02:12
Posts: 1114
Location: http://sethioz.co.uk
:)
but next time plz write my name right ;) Luigi can you fix it ?!


Top
 Profile  
 
 Post subject: Re: q3dirtrav translating
PostPosted: 10 Oct 2008 15:27 

Joined: 24 Aug 2008 11:06
Posts: 38
oh sorry :)
Sethioz,not Seithoz :D


Top
 Profile  
 
 Post subject: Re: q3dirtrav translating
PostPosted: 10 Oct 2008 15:33 

Joined: 24 Aug 2008 11:06
Posts: 38
and how can I compile the multircon and the q3fill?please write down the full command


Top
 Profile  
 
 Post subject: Re: q3dirtrav translating
PostPosted: 10 Oct 2008 17:18 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
I have tons of fun when people mispell the name of sethioz ah ah ah senthios, serios, seithoz... 8-)

anyway it's not needed a special command to compile them, consider "gcc -s -O2 -o file.exe file.c" as base for ANY tool.
if you use that default command with q3fill you will receive an error like md5something undefined so it's enough that you append md5.c to that default command and it will work.
while on multircon you will have other undefined like mybrutesomething and so you do the same: mybrute.c


Top
 Profile  
 
 Post subject: Re: q3dirtrav translating
PostPosted: 10 Oct 2008 18:38 

Joined: 24 Aug 2008 11:06
Posts: 38
So
Code:
gcc -s -O2 -o q3fill.exe q3fill.c
? and how can I append md5.c to default?(Im new in programming...)


these are the errors:
Code:
C:\DOCUME~1\XY\LOCALS~1\Temp/ccvnN1nN.o:q3fill.c:(.text+0x9c7): undefined refere
nce to `WSAGetLastError@0'
C:\DOCUME~1\XY\LOCALS~1\Temp/ccvnN1nN.o:q3fill.c:(.text+0x1029): undefined refer
ence to `stristr'
C:\DOCUME~1\XY\LOCALS~1\Temp/ccvnN1nN.o:q3fill.c:(.text+0x130d): undefined refer
ence to `md5_update'
C:\DOCUME~1\XY\LOCALS~1\Temp/ccvnN1nN.o:q3fill.c:(.text+0x1321): undefined refer
ence to `md5_finish'
C:\DOCUME~1\XY\LOCALS~1\Temp/ccvnN1nN.o:q3fill.c:(.text+0x1846): undefined refer
ence to `select@20'
C:\DOCUME~1\XY\LOCALS~1\Temp/ccvnN1nN.o:q3fill.c:(.text+0x18ad): undefined refer
ence to `sendto@24'
C:\DOCUME~1\XY\LOCALS~1\Temp/ccvnN1nN.o:q3fill.c:(.text+0x1923): undefined refer
ence to `recvfrom@24'
C:\DOCUME~1\XY\LOCALS~1\Temp/ccvnN1nN.o:q3fill.c:(.text+0x19a9): undefined refer
ence to `socket@12'
C:\DOCUME~1\XY\LOCALS~1\Temp/ccvnN1nN.o:q3fill.c:(.text+0x19fe): undefined refer
ence to `closesocket@4'
C:\DOCUME~1\XY\LOCALS~1\Temp/ccvnN1nN.o:q3fill.c:(.text+0x1bee): undefined refer
ence to `inet_addr@4'
C:\DOCUME~1\XY\LOCALS~1\Temp/ccvnN1nN.o:q3fill.c:(.text+0x1c04): undefined refer
ence to `gethostbyname@4'
C:\DOCUME~1\XY\LOCALS~1\Temp/ccvnN1nN.o:q3fill.c:(.text+0x1c7d): undefined refer
ence to `htons@4'
C:\DOCUME~1\XY\LOCALS~1\Temp/ccvnN1nN.o:q3fill.c:(.text+0x1ca8): undefined refer
ence to `socket@12'
C:\DOCUME~1\XY\LOCALS~1\Temp/ccvnN1nN.o:q3fill.c:(.text+0x1cfb): undefined refer
ence to `sendto@24'
C:\DOCUME~1\XY\LOCALS~1\Temp/ccvnN1nN.o:q3fill.c:(.text+0x1d39): undefined refer
ence to `recvfrom@24'
C:\DOCUME~1\XY\LOCALS~1\Temp/ccvnN1nN.o:q3fill.c:(.text+0x1d69): undefined refer
ence to `closesocket@4'
C:\DOCUME~1\XY\LOCALS~1\Temp/ccvnN1nN.o:q3fill.c:(.text+0x1d8f): undefined refer
ence to `closesocket@4'
C:\DOCUME~1\XY\LOCALS~1\Temp/ccvnN1nN.o:q3fill.c:(.text+0x1eb6): undefined refer
ence to `WSAStartup@8'
C:\DOCUME~1\XY\LOCALS~1\Temp/ccvnN1nN.o:q3fill.c:(.text+0x2035): undefined refer
ence to `htons@4'
C:\DOCUME~1\XY\LOCALS~1\Temp/ccvnN1nN.o:q3fill.c:(.text+0x2064): undefined refer
ence to `ntohs@4'
C:\DOCUME~1\XY\LOCALS~1\Temp/ccvnN1nN.o:q3fill.c:(.text+0x2075): undefined refer
ence to `inet_ntoa@4'
C:\DOCUME~1\XY\LOCALS~1\Temp/ccvnN1nN.o:q3fill.c:(.text+0x20f6): undefined refer
ence to `socket@12'
C:\DOCUME~1\XY\LOCALS~1\Temp/ccvnN1nN.o:q3fill.c:(.text+0x212d): undefined refer
ence to `bind@12'
C:\DOCUME~1\XY\LOCALS~1\Temp/ccvnN1nN.o:q3fill.c:(.text+0x21a0): undefined refer
ence to `stristr'
C:\DOCUME~1\XY\LOCALS~1\Temp/ccvnN1nN.o:q3fill.c:(.text+0x2239): undefined refer
ence to `ntohs@4'
C:\DOCUME~1\XY\LOCALS~1\Temp/ccvnN1nN.o:q3fill.c:(.text+0x2463): undefined refer
ence to `stristr'
C:\DOCUME~1\XY\LOCALS~1\Temp/ccvnN1nN.o:q3fill.c:(.text+0x24af): undefined refer
ence to `stristr'
C:\DOCUME~1\XY\LOCALS~1\Temp/ccvnN1nN.o:q3fill.c:(.text+0x24bb): undefined refer
ence to `closesocket@4'
C:\DOCUME~1\XY\LOCALS~1\Temp/ccvnN1nN.o:q3fill.c:(.text+0x24e3): undefined refer
ence to `stristr'
C:\DOCUME~1\XY\LOCALS~1\Temp/ccvnN1nN.o:q3fill.c:(.text+0x27fc): undefined refer
ence to `stristr'
C:\DOCUME~1\XY\LOCALS~1\Temp/ccvnN1nN.o:q3fill.c:(.text+0x28c6): undefined refer
ence to `stristr'
C:\DOCUME~1\XY\LOCALS~1\Temp/ccvnN1nN.o:q3fill.c:(.text+0x28e1): undefined refer
ence to `stristr'
C:\DOCUME~1\XY\LOCALS~1\Temp/ccvnN1nN.o:q3fill.c:(.text+0x299f): undefined refer
ence to `stristr'
C:\DOCUME~1\XY\LOCALS~1\Temp/ccvnN1nN.o:q3fill.c:(.text+0x29e4): more undefined
references to `stristr' follow
collect2: ld returned 1 exit status


Top
 Profile  
 
 Post subject: Re: q3dirtrav translating
PostPosted: 10 Oct 2008 22:43 

Joined: 24 Sep 2007 02:12
Posts: 1114
Location: http://sethioz.co.uk
Code:
gcc -s -O2 -o q3fill.exe q3fill.c md5.c

like this i think, but not sure. i would have put -lws2_32 and -lz too.


Top
 Profile  
 
 Post subject: Re: q3dirtrav translating
PostPosted: 11 Oct 2008 00:52 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
-lws2_32 stristr.c (this file is located in my previous posts)


Top
 Profile  
 
 Post subject: Re: q3dirtrav translating
PostPosted: 11 Oct 2008 14:59 

Joined: 24 Sep 2007 02:12
Posts: 1114
Location: http://sethioz.co.uk
lol Luigi. just give him a full command :)


Top
 Profile  
 
 Post subject: Re: q3dirtrav translating
PostPosted: 11 Oct 2008 16:35 

Joined: 24 Aug 2008 11:06
Posts: 38
thx


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 29 posts ] 

All times are UTC [ DST ]


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 post attachments in this forum

Search for: