What's new

Jak skompilowa? ?r?d?a The Forgotten Server [8.1][SQL]

Status
Not open for further replies.

H@kU

User
Joined
Apr 18, 2008
Messages
44
Reaction score
3
Potrzebuj? dok?adnego poradnika (StepByStep) jak skompilowa? ?r?d?a The Forgotten Server.
Poza tym prosz? o link czy co? jak pobiera? te wszystkie pliki z SourceForge.net (a dok?adniej forgottenserver.svn.sourceforge.net/viewvc/forgottenserver/forgottenserver/trunk/
) automatycznie, a nie r?cznie.
W zamian mog? napisa? poradnik dla kogo? innego te? typem StepByStep :)


No dobra, ju? mam source TFS i kompilator, ale podczas kompilacji wyskakuj? 2 b??dy:
cannot find -lluasql-mysql
D:\OTS\source\Makefile.win [Build Error] [TheForgottenServer.exe] Error 1
to jest raczej brak bibliotek, ale sk?d je wzi????
 
Last edited:

H@kU

User
Joined
Apr 18, 2008
Messages
44
Reaction score
3
Od?wie?am... czy nikt nie wie o co chodzi??
 

vDk

Active User
Joined
Apr 4, 2008
Messages
111
Reaction score
19
?ci?gnij
A je?eli chcesz pobiera? automatycznie pliki source to musisz ?ci?gn?? program TortoiseSVN.
 
Last edited:

H@kU

User
Joined
Apr 18, 2008
Messages
44
Reaction score
3
No w?a?nie mi o to chodzi?o!! THX!:D
Mam jeszcze par? ma?ych problemik?w, ale se z nimi sam poradz?:p
 

H@kU

User
Joined
Apr 18, 2008
Messages
44
Reaction score
3
... a mo?e jednak tak w pe?ni sam to se nie poradz? ;)
Podczas kompilowania takie b??dy s?:
Code:
g++.exe -c databasepgsql.cpp -o databasepgsql.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__SERVER_PROTECTION__  

In file included from databasepgsql.h:28,
                 from databasepgsql.cpp:24:
C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.5/../../../../include/postgresql/libpq-fe.h:29:26: postgres_ext.h: No such file or directory
In file included from databasepgsql.h:28,
                 from databasepgsql.cpp:24:
C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.5/../../../../include/postgresql/libpq-fe.h:317: error: expected `,' or `...' before '*' token
C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.5/../../../../include/postgresql/libpq-fe.h:324: error: expected `,' or `...' before '*' token

C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.5/../../../../include/postgresql/libpq-fe.h:338: error: expected `,' or `...' before '*' token
C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.5/../../../../include/postgresql/libpq-fe.h:345: error: expected `,' or `...' before '*' token

C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.5/../../../../include/postgresql/libpq-fe.h:403: error: `Oid' does not name a type
C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.5/../../../../include/postgresql/libpq-fe.h:406: error: `Oid' does not name a type
C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.5/../../../../include/postgresql/libpq-fe.h:411: error: `Oid' does not name a type

C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.5/../../../../include/postgresql/libpq-fe.h:482: error: `Oid' has not been declared
C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.5/../../../../include/postgresql/libpq-fe.h:487: error: `Oid' does not name a type
C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.5/../../../../include/postgresql/libpq-fe.h:488: error: `Oid' does not name a type
C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.5/../../../../include/postgresql/libpq-fe.h:490: error: `Oid' has not been declared
C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.5/../../../../include/postgresql/libpq-fe.h:491: error: `Oid' does not name a type
C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.5/../../../../include/postgresql/libpq-fe.h:492: error: `Oid' has not been declared

databasepgsql.cpp: In constructor `DatabasePgSQL::DatabasePgSQL()':
databasepgsql.cpp:35: error: `SQL_HOST' is not a member of `ConfigManager'
databasepgsql.cpp:35: error: `SQL_DB' is not a member of `ConfigManager'
databasepgsql.cpp:35: error: `SQL_USER' is not a member of `ConfigManager'
databasepgsql.cpp:35: error: `SQL_PASS' is not a member of `ConfigManager'

make.exe: *** [databasepgsql.o] Error 1

Wykonanie zako?czone
Chodzi o PostageSQL, ale jak by to naprawi???
Zrobi?em to co w poni?szym linku:
 
Last edited:

Elf

Sing blue silver
Joined
Apr 12, 2008
Messages
409
Reaction score
50
Age
32
1. Pod ?adnym pozorem nie kompiluj trunk, gdy? jest on przeznaczony wy??cznie do testowania. Sam nad nim pracuje (FightingElf here ^^) i do u?ytku go oddamy, gdy tylko zostanie ustabilizowany. Wtedy wyjdzie jako 0.3, ale do tego jeszcze d?uga droga. Dlatego zalecam Ci kompilowanie tags/0.2.
2. Je?li ju? uparcie chcesz trunk, to musisz z projektu wyrzuci? 'databasepgsql.cpp', 'databasepgsql.h', 'databaseodbc.cpp' i 'databaseodbc.h' - ale odradzam, gdy? jest kilka b??d?w (zaraz b?de dawa? commit zreszt?, jak sko?cz? przenoszenie broadcast do lua).
 

H@kU

User
Joined
Apr 18, 2008
Messages
44
Reaction score
3
Dzi?ki za wyja?nienie. :D
Ale nawet jak te 0.2 z tags kompiluj?, to takie byki na samym ko?cu wyskakuj?:
Code:
Kompilator: Default compiler
Building Makefile: "D:\DriveOTS\SVN TFS\forgottenserver\tags\0.2\Makefile.win"
Wykonywanie  make...
make.exe -f "D:\DriveOTS\SVN TFS\forgottenserver\tags\0.2\Makefile.win" all
windres.exe -i DriveOTS_private.rc --input-format=rc -o DriveOTS_private.res -O coff 

In file included from DriveOTS_private.rc:4,
                 from DriveOTS_private.rc:4,
(tutaj bardzo du?o tych "from DriveOTS_private.rc:4,")
                 from DriveOTS_private.rc:4,
                 from DriveOTS_private.rc:4:
DriveOTS_private.rc:4:31: #include nested too deeply
DriveOTS_private.rc:5:28: #include nested too deeply
In file included from DriveOTS_private.rc:5,
                 from DriveOTS_private.rc:4,
                 from DriveOTS_private.rc:4,
(tutaj bardzo du?o tych "from DriveOTS_private.rc:4,")
                 from DriveOTS_private.rc:4,
                 from DriveOTS_private.rc:4:
gui_resources.rc:2:23: #include nested too deeply
gui_resources.rc:3:21: #include nested too deeply
In file included from gui_resources.rc:3,
                 from DriveOTS_private.rc:5,
                 from DriveOTS_private.rc:4,
(tutaj bardzo du?o tych "from DriveOTS_private.rc:4,")
                 from DriveOTS_private.rc:4,
                 from DriveOTS_private.rc:4:
C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.5/../../../../include/windows.h:44:22: #include nested too deeply
DriveOTS_private.rc:0: fatal error: when writing output to : Invalid argument
compilation terminated.

windres.exe: gui_resources.rc:11: syntax error

windres.exe: preprocessing failed.

make.exe: *** [DriveOTS_private.res] Error 1

Wykonanie zako?czone
:confused::confused::confused::confused:
 

Elf

Sing blue silver
Joined
Apr 12, 2008
Messages
409
Reaction score
50
Age
32
Olej, *_private Ci nie est do niczego potrzebne.
 

H@kU

User
Joined
Apr 18, 2008
Messages
44
Reaction score
3
Dzi?ki ci Elf za wszystko, ale w kompilowaniu to niestety jestem laikiem...
Czy m?g?by mi kto? pokaza? lub da? jaki? link (testowany przedtem, ?e dzia?a) co i jak z kompilowaniem TFS, to by?bym wdzi?czny.


Wy??czy?em z konsolidatora te linijki tekstu:
Code:
-lluasql-mysql
-lluasql-sqlite3
-lregex
z my?l?, ?e zadzia?a, lecz tylko nowe b??dy wyskakuj? z databasemysql.cpp
Sk?d wytrzasn?? w/w biblioteki?? Jak pobra?em niby ju? gotowy kompilator z posta vDk, to wyst?puj? w?a?nie ty b??dy.
 
Last edited:

H@kU

User
Joined
Apr 18, 2008
Messages
44
Reaction score
3
*** od?wierzam ***
Elf, jako cz?onek teamu tworz?cego ten serwer, mo?esz mi pom?c??
Prosz? o sprawdzony spos?b, co wiesz i sam kompilujesz TFS.
 
Status
Not open for further replies.
Top