|
You last visited: Today at 01:37
Advertisement
[SAMMELTHREAD] Metin2 Source Compile Tips/Tuts
Discussion on [SAMMELTHREAD] Metin2 Source Compile Tips/Tuts within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.
01/12/2014, 00:56
|
#151
|
elite*gold: 0
Join Date: Sep 2012
Posts: 30
Received Thanks: 0
|
And client ?
|
|
|
01/12/2014, 01:09
|
#152
|
elite*gold: 0
Join Date: Aug 2012
Posts: 974
Received Thanks: 89
|
wie krieg ich den source und dann auf freebsd ?
|
|
|
01/12/2014, 04:58
|
#153
|
elite*gold: 0
Join Date: Sep 2010
Posts: 31
Received Thanks: 6
|
Error while compiling game.
I managed to compile almost all the source, but when i'm trying to compile the game, i get this errors:
In file included from debug_allocator.h:5,
from stdafx.h:7,
from MarkImage.cpp:1:
/usr/include/c++/4.2/new:55: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:56: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:59: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:60: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:65: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:66: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
Freebsd Details:
FreeBSD Jimmy 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Thu Sep 26 22:50:31 UTC 2013  :/usr/obj/usr/src/sys/GENERIC amd64
SOLUTION: Compile the source on a i386 system!
|
|
|
01/12/2014, 06:08
|
#154
|
elite*gold: 0
Join Date: Aug 2010
Posts: 29
Received Thanks: 24
|
Source compiling DevIL error...
I think I've got rid of all the errors, but I think that some DevIL crap isn't included properly :-?
The error:
Code:
OBJDIR/MarkImage.o: In function `CGuildMarkImage::GetData(unsigned int, unsigned int, unsigned int, unsigned int, void*)':
/home/nova/work/metin2/mainline/Srcs/Server/game/src/MarkImage.cpp:128: undefined reference to `ilBindImage'
/home/nova/work/metin2/mainline/Srcs/Server/game/src/MarkImage.cpp:129: undefined reference to `ilCopyPixels'
OBJDIR/MarkImage.o: In function `CGuildMarkImage::PutData(unsigned int, unsigned int, unsigned int, unsigned int, void*)':
/home/nova/work/metin2/mainline/Srcs/Server/game/src/MarkImage.cpp:122: undefined reference to `ilBindImage'
/home/nova/work/metin2/mainline/Srcs/Server/game/src/MarkImage.cpp:123: undefined reference to `ilSetPixels'
OBJDIR/MarkImage.o: In function `CGuildMarkImage::Save(char const*)':
/home/nova/work/metin2/mainline/Srcs/Server/game/src/MarkImage.cpp:48: undefined reference to `ilEnable'
/home/nova/work/metin2/mainline/Srcs/Server/game/src/MarkImage.cpp:49: undefined reference to `ilBindImage'
/home/nova/work/metin2/mainline/Srcs/Server/game/src/MarkImage.cpp:51: undefined reference to `ilSave'
OBJDIR/MarkImage.o: In function `CGuildMarkImage::Create()':
/home/nova/work/metin2/mainline/Srcs/Server/game/src/MarkImage.cpp:43: undefined reference to `ilGenImages'
OBJDIR/MarkImage.o: In function `CGuildMarkImage::Destroy()':
/home/nova/work/metin2/mainline/Srcs/Server/game/src/MarkImage.cpp:34: undefined reference to `ilDeleteImages'
OBJDIR/MarkImage.o: In function `CGuildMarkImage::Load(char const*)':
/home/nova/work/metin2/mainline/Srcs/Server/game/src/MarkImage.cpp:92: undefined reference to `ilBindImage'
/home/nova/work/metin2/mainline/Srcs/Server/game/src/MarkImage.cpp:93: undefined reference to `ilEnable'
/home/nova/work/metin2/mainline/Srcs/Server/game/src/MarkImage.cpp:94: undefined reference to `ilOriginFunc'
/home/nova/work/metin2/mainline/Srcs/Server/game/src/MarkImage.cpp:96: undefined reference to `ilLoad'
/home/nova/work/metin2/mainline/Srcs/Server/game/src/MarkImage.cpp:102: undefined reference to `ilGetInteger'
/home/nova/work/metin2/mainline/Srcs/Server/game/src/MarkImage.cpp:108: undefined reference to `ilGetInteger'
/home/nova/work/metin2/mainline/Srcs/Server/game/src/MarkImage.cpp:114: undefined reference to `ilConvertImage'
OBJDIR/MarkImage.o: In function `CGuildMarkImage::Build(char const*)':
/home/nova/work/metin2/mainline/Srcs/Server/game/src/MarkImage.cpp:64: undefined reference to `ilBindImage'
/home/nova/work/metin2/mainline/Srcs/Server/game/src/MarkImage.cpp:65: undefined reference to `ilEnable'
/home/nova/work/metin2/mainline/Srcs/Server/game/src/MarkImage.cpp:66: undefined reference to `ilOriginFunc'
/home/nova/work/metin2/mainline/Srcs/Server/game/src/MarkImage.cpp:71: undefined reference to `ilTexImage'
/home/nova/work/metin2/mainline/Srcs/Server/game/src/MarkImage.cpp:79: undefined reference to `ilEnable'
/home/nova/work/metin2/mainline/Srcs/Server/game/src/MarkImage.cpp:81: undefined reference to `ilSave'
OBJDIR/main.o: In function `main':
/home/nova/work/metin2/mainline/Srcs/Server/game/src/main.cpp:456: undefined reference to `ilInit'
Notes:
1. Game binary compiles until it gets ~54 MB, and then the compiler deletes it, and shows the error above.
2. I've installed DevIL, the include files in /usr/local/include/IL are all there.
3. I don't know how the **** should <IL/il.h> be included in main.cpp since I've found it only in MarkImage.h. I really can't understand what is happening...
Some tips would be nice, thank you in advance!
Edit: I compiled with novaline and it works ! It just works
|
|
|
01/12/2014, 18:31
|
#155
|
elite*gold: 0
Join Date: Sep 2012
Posts: 66
Received Thanks: 25
|
If i try to compile the WorldEditor i got these Error and i dont know how to fix it.....
Code:
8> S=16
9>c:\users\..\desktop\metin2\..\tools\worldeditor\./DataCtrl/ObjectData.h(144): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
9>c:\users\..\desktop\metin2\..\tools\worldeditor\./DataCtrl/ObjectData.h(144): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
9>c:\users\..\desktop\metin2\..\tools\worldeditor\./DataCtrl/ObjectData.h(145): error C2146: syntax error : missing ';' before identifier 'strSourceSkinFileName'
9>c:\users\..\desktop\metin2\..\tools\worldeditor\./DataCtrl/ObjectData.h(145): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
9>c:\users\..\desktop\metin2\..\tools\worldeditor\./DataCtrl/ObjectData.h(145): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
9>c:\users\..\desktop\metin2\..\tools\worldeditor\./DataCtrl/ObjectData.h(146): error C2146: syntax error : missing ';' before identifier 'strTargetSkinFileName'
9>c:\users\..\desktop\metin2\..\tools\worldeditor\./DataCtrl/ObjectData.h(146): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
9>c:\users\..\desktop\metin2\..\tools\worldeditor\./DataCtrl/ObjectData.h(146): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
9>c:\users\..\desktop\metin2\..\tools\worldeditor\./DataCtrl/ObjectData.h(273): error C2146: syntax error : missing ';' before identifier 'm_strShapeDataPathName'
9>c:\users\..\desktop\metin2\..\tools\worldeditor\./DataCtrl/ObjectData.h(273): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
9>c:\users\..\desktop\metin2\..\tools\worldeditor\./DataCtrl/ObjectData.h(273): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
|
|
|
01/12/2014, 19:08
|
#156
|
elite*gold: 0
Join Date: Jan 2010
Posts: 104
Received Thanks: 158
|
Quote:
Originally Posted by Sujino
If i try to compile the WorldEditor i got these Error and i dont know how to fix it.....
Code:
8> S=16
9>c:\users\..\desktop\metin2\..\tools\worldeditor\./DataCtrl/ObjectData.h(144): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
9>c:\users\..\desktop\metin2\..\tools\worldeditor\./DataCtrl/ObjectData.h(144): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
9>c:\users\..\desktop\metin2\..\tools\worldeditor\./DataCtrl/ObjectData.h(145): error C2146: syntax error : missing ';' before identifier 'strSourceSkinFileName'
9>c:\users\..\desktop\metin2\..\tools\worldeditor\./DataCtrl/ObjectData.h(145): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
9>c:\users\..\desktop\metin2\..\tools\worldeditor\./DataCtrl/ObjectData.h(145): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
9>c:\users\..\desktop\metin2\..\tools\worldeditor\./DataCtrl/ObjectData.h(146): error C2146: syntax error : missing ';' before identifier 'strTargetSkinFileName'
9>c:\users\..\desktop\metin2\..\tools\worldeditor\./DataCtrl/ObjectData.h(146): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
9>c:\users\..\desktop\metin2\..\tools\worldeditor\./DataCtrl/ObjectData.h(146): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
9>c:\users\..\desktop\metin2\..\tools\worldeditor\./DataCtrl/ObjectData.h(273): error C2146: syntax error : missing ';' before identifier 'm_strShapeDataPathName'
9>c:\users\..\desktop\metin2\..\tools\worldeditor\./DataCtrl/ObjectData.h(273): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
9>c:\users\..\desktop\metin2\..\tools\worldeditor\./DataCtrl/ObjectData.h(273): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
|
Well, for future reference, none of us are wizards (or am I?) so posting the code the compiler points the error to would be a start, do not post the entire file though, try to post only the parts which are relevant. Nevertheless, in this case if I remember correctly the line which you're refering is:
Quote:
|
CFilename strSourceSkinFileName;
|
And this happens because the compiler doesn't know what CFilename is, check Client\EterBase\Filename.h and the class CFilename should be commented, un-comment it, rebuild.
|
|
|
01/12/2014, 19:14
|
#157
|
elite*gold: 135
Join Date: Oct 2007
Posts: 1,088
Received Thanks: 210
|
And this happens because the compiler doesn't know what CFilename is, check Client\EterBase\Filename.h and the class CFilename should be commented, un-comment it, rebuild.
and thats the way you shoudlnt use
|
|
|
01/12/2014, 19:39
|
#158
|
elite*gold: 135
Join Date: Oct 2007
Posts: 1,088
Received Thanks: 210
|
Quote:
Originally Posted by Sujino
*EDIT* U are the pro. (IRONIE!)
|
well just add me in skype and im gonna send u the fixed source ....
stop flaming kid thank you
|
|
|
01/12/2014, 20:19
|
#159
|
elite*gold: 0
Join Date: Sep 2012
Posts: 66
Received Thanks: 25
|
Quote:
Originally Posted by lolor2
well just add me in skype and im gonna send u the fixed source ....
stop flaming kid thank you
|
Wozu sollte ich die fixxed Source von dir brauchen? Ich habe es gefixxt auf eine andere
Art ich poste nur meine Error´s damit mir jemand vil bessere Lösungsansätze bieten kann
als die meine.
LG Sujino
|
|
|
01/12/2014, 20:57
|
#160
|
elite*gold: 0
Join Date: Jun 2010
Posts: 75
Received Thanks: 58
|
UserInterface error. all .lib are compiled successfully. what`s wrong?
|
|
|
01/12/2014, 22:42
|
#161
|
elite*gold: 0
Join Date: Apr 2008
Posts: 35
Received Thanks: 0
|
Do I need FreeBSD 7.2 32bit to compile?
Or I can use every version I want?
Muss ich FreeBSD 7.2 32-Bit zu kompilieren?
Oder ich kann jede Version möchte ich benutzen?
|
|
|
01/12/2014, 23:18
|
#162
|
elite*gold: 100
Join Date: Jun 2009
Posts: 168
Received Thanks: 711
|
Quote:
Originally Posted by lukeido
Do I need FreeBSD 7.2 32bit to compile?
Or I can use every version I want?
Muss ich FreeBSD 7.2 32-Bit zu kompilieren?
Oder ich kann jede Version möchte ich benutzen?
|
On freebsd 9.2 32bit works fine
|
|
|
01/13/2014, 13:04
|
#163
|
elite*gold: 0
Join Date: Apr 2008
Posts: 35
Received Thanks: 0
|
Someone has tried to compile a 64-bit system?
Jemand hat versucht, in einer 64-Bit-System zu kompilieren?
|
|
|
01/13/2014, 17:20
|
#164
|
elite*gold: 0
Join Date: Jun 2013
Posts: 65
Received Thanks: 9
|
Error "sh start.sh"
/libexec/ld-elf.so.1: /lib/libc.so.7: version FBSD_1.3 required by /usr/woz/share/game_r40250_32 not found
?????
Thanks
|
|
|
01/13/2014, 17:34
|
#165
|
elite*gold: 100
Join Date: Feb 2008
Posts: 195
Received Thanks: 270
|
Quote:
Originally Posted by Originale_59
Error "sh start.sh"
/libexec/ld-elf.so.1: /lib/libc.so.7: version FBSD_1.3 required by /usr/woz/share/game_r40250_32 not found
?????
Thanks
|
Code:
cd /usr/ports/misc/compat5x/ && make install clean
cd /usr/ports/misc/compat6x/ && make install clean
cd /usr/ports/misc/compat7x/ && make install clean
cd /usr/ports/misc/compat8x/ && make install clean
cd /usr/ports/misc/compat9x/ && make install clean
|
|
|
Similar Threads
|
Reverse Crypt Systems [Tips/Hints/Tuts needed]]
03/01/2012 - CO2 Private Server - 8 Replies
Hello PVPers,
So the Title says it all, Since i came here and i am trying to learn how to be a good Coder and Co2 P.Server Specially , i guess i dd well so far but i'v noticed that all my prev experience ddnt came near Encrypting/Decrypting systems , i also aware of that most of good coders around here are very busy coding stuff and so ,i was away for sometime and about 2 months ago i came back from AD (work trip) and a friend asked for an up to date P.Server , actually i miss that fun so...
|
All times are GMT +1. The time now is 01:37.
|
|