PlaneShift
Development => Development Deliberation => Topic started by: steuben on November 23, 2013, 07:11:12 pm
-
as i eventually work to build .6, is there any kinks that i should know about?
i'll be building on windows, using msvs2008.
an i used to, and still do, panic and crash compilers with the stock basic "hello world" code.
-
My god man we're like bad pennies around here. Nice to see you.
-
first hiccup as i work to build it.
libcal3d-csvc9_d.dll and libz-cs.dll don't seem to be generated durign the cs build.
important files?
-
Yes.
Not all DLLs are built, some are installed by a CS-WinLib installer...
-
those look to be cs-winlib dlls.
odd that they weren't copied over by the installer
let's try the core ps build again.
nope no luck getting errors in building libbreakpad, linking plgdmysql and plgsoundmngr
-
try the compile configure option --enable-reporter
-
umm... probably not.
i'm building with msvs 2008
though i just noticed a couple of thinks in the guide. i forgot to point mysql to the libs and something about soundmngr to libpsutil.
and i still get no such file for dia2.h in libbreakpad and linker errors in plgdbmysql something about dal.obj
-
hmm maybe leaving out breakpad....
and the statis build is even worse to i'm going to forgo that.
also i'm using this build guide.
https://svn.code.sf.net/p/planeshift/code/trunk/docs/compiling.html
though i maybe using the wrong cs lib version... going to try again.
nope still erroring in te same spots
will try without breakpad
-
Static builds may require the installation of different CS libs, IIRC; long ago, but I believe I had to switch a heap of files when I tried to.
-
yeah there is a different set of libs for static... but it was more trouble than worth to try and switch.
but even without breakpad i'mm still getting missing dia2.h errors in libbreakpad
it looks like dia2.h isn't anywhere in the trunk/head ps source.
but it looks like it is part of the (Debug Interface Access SDK). which when pointed to solved the missiag dia2.h.
however i now get the following:
Error 5 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\development\planeshift\src\tools\breakpad\common\windows\omap_internal.h 48 libbreakpad
Error 6 error C2078: too many initializers c:\development\planeshift\src\tools\breakpad\common\windows\omap_internal.h 48 libbreakpad
Error 7 error C2440: 'initializing' : cannot convert from 'const char [31]' to 'int' c:\development\planeshift\src\tools\breakpad\common\windows\omap_internal.h 48 libbreakpad
Error 8 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\development\planeshift\src\tools\breakpad\common\windows\omap_internal.h 48 libbreakpad
Error 9 error C2078: too many initializers c:\development\planeshift\src\tools\breakpad\common\windows\omap_internal.h 48 libbreakpad
Error 10 error C2440: 'initializing' : cannot convert from 'const char [31]' to 'int' c:\development\planeshift\src\tools\breakpad\common\windows\omap_internal.h 48 libbreakpad
Error 11 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\development\planeshift\src\tools\breakpad\common\windows\omap.cc 140 libbreakpad
Error 12 error C2078: too many initializers c:\development\planeshift\src\tools\breakpad\common\windows\omap.cc 140 libbreakpad
Error 13 error C2440: 'initializing' : cannot convert from 'const char [44]' to 'int' c:\development\planeshift\src\tools\breakpad\common\windows\omap.cc 140 libbreakpad
Error 14 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\development\planeshift\src\tools\breakpad\common\windows\omap.cc 142 libbreakpad
Error 15 error C2374: 'google_breakpad::`anonymous-namespace'::static_assert' : redefinition; multiple initialization c:\development\planeshift\src\tools\breakpad\common\windows\omap.cc 142 libbreakpad
Error 16 error C2078: too many initializers c:\development\planeshift\src\tools\breakpad\common\windows\omap.cc 142 libbreakpad
Error 17 error C2440: 'initializing' : cannot convert from 'const char [44]' to 'int' c:\development\planeshift\src\tools\breakpad\common\windows\omap.cc 142 libbreakpad
Error 18 error C2065: 'STATUS_INVALID_PARAMETER' : undeclared identifier c:\development\planeshift\src\tools\breakpad\client\windows\handler\exception_handler.cc 568 libbreakpad
Error 54 error LNK2001: unresolved external symbol "public: void __thiscall psNamedProfiles::Reset(void)" (?Reset@psNamedProfiles@@QAEXXZ) dal.obj plgdbmysql
Error 55 error LNK2001: unresolved external symbol "public: virtual void __thiscall psNamedProfiles::AddCons(class csString const &,unsigned int)" (?AddCons@psNamedProfiles@@UAEXABVcsString@@I@Z) dal.obj plgdbmysql
Error 56 error LNK2001: unresolved external symbol "public: class csString __thiscall psDBProfiles::Dump(void)" (?Dump@psDBProfiles@@QAE?AVcsString@@XZ) dal.obj plgdbmysql
Error 57 error LNK2001: unresolved external symbol "public: virtual void __thiscall psDBProfiles::AddSQLTime(class csString const &,unsigned int)" (?AddSQLTime@psDBProfiles@@UAEXABVcsString@@I@Z) dal.obj plgdbmysql
Error 58 error LNK2001: unresolved external symbol "public: unsigned int __thiscall psStopWatch::Stop(void)" (?Stop@psStopWatch@@QAEIXZ) dal.obj plgdbmysql
Error 59 error LNK2001: unresolved external symbol "public: void __thiscall psStopWatch::Start(void)" (?Start@psStopWatch@@QAEXXZ) dal.obj plgdbmysql
Error 60 error LNK2001: unresolved external symbol "public: void __thiscall LogCSV::Write(int,class csString &)" (?Write@LogCSV@@QAEXHAAVcsString@@@Z) dal.obj plgdbmysql
Error 61 error LNK2001: unresolved external symbol "public: static void __cdecl ConsoleOut::Intern_Printf(enum ConsoleOutMsgClass,char const *,...)" (?Intern_Printf@ConsoleOut@@SAXW4ConsoleOutMsgClass@@PBDZZ) dal.obj plgdbmysql
Error 62 error LNK2001: unresolved external symbol "public: __thiscall psOperProfileSet::psOperProfileSet(void)" (??0psOperProfileSet@@QAE@XZ) dal.obj plgdbmysql
Error 63 error LNK2001: unresolved external symbol "void __cdecl pslog::Initialize(struct iObjectRegistry *)" (?Initialize@pslog@@YAXPAUiObjectRegistry@@@Z) dal.obj plgdbmysql
Error 64 fatal error LNK1120: 10 unresolved externals ..\..\dbmysql.dll plgdbmysql
Error 84 error LNK2001: unresolved external symbol "void __cdecl pslog::LogMessage(char const *,int,char const *,int,enum LOG_TYPES,unsigned int,char const *,...)" (?LogMessage@pslog@@YAXPBDH0HW4LOG_TYPES@@I0ZZ) data.obj plgsoundmngr
Error 85 error LNK2001: unresolved external symbol "void __cdecl psMusic::PreviousPitch(char &,unsigned int &)" (?PreviousPitch@psMusic@@YAXAADAAI@Z) instrument.obj plgsoundmngr
Error 86 error LNK2001: unresolved external symbol "void __cdecl psMusic::NextPitch(char &,unsigned int &)" (?NextPitch@psMusic@@YAXAADAAI@Z) instrument.obj plgsoundmngr
Error 87 error LNK2001: unresolved external symbol "class csPtr<struct iDocument> __cdecl ParseFile(struct iObjectRegistry *,class csString const &)" (?ParseFile@@YA?AV?$csPtr@UiDocument@@@@PAUiObjectRegistry@@ABVcsString@@@Z) instrumentmngr.obj plgsoundmngr
Error 88 error LNK2001: unresolved external symbol "bool __cdecl pslog::DoLog(int,enum LOG_TYPES,unsigned int)" (?DoLog@pslog@@YA_NHW4LOG_TYPES@@I@Z) manager.obj plgsoundmngr
Error 89 error LNK2001: unresolved external symbol "bool __cdecl psMusic::GetAttributes(struct iDocument *,int &,int &,int &,int &,int &)" (?GetAttributes@psMusic@@YA_NPAUiDocument@@AAH1111@Z) songdata.obj plgsoundmngr
Error 90 error LNK2001: unresolved external symbol "bool __cdecl psMusic::GetStatistics(struct iDocument *,struct ScoreStatistics &)" (?GetStatistics@psMusic@@YA_NPAUiDocument@@AAUScoreStatistics@@@Z) songdata.obj plgsoundmngr
Error 91 error LNK2001: unresolved external symbol "bool __cdecl psMusic::GetMeasures(struct iDocument *,class csRefArray<struct iDocumentNode,class CS::Memory::AllocatorMalloc,struct csArrayCapacityFixedGrow<16> > &)" (?GetMeasures@psMusic@@YA_NPAUiDocument@@AAV?$csRefArray@UiDocumentNode@@VAllocatorMalloc@Memory@CS@@U?$csArrayCapacityFixedGrow@$0BA@@@@@@Z) songdata.obj plgsoundmngr
Error 92 error LNK2001: unresolved external symbol "public: void __thiscall psString::Split(class csStringArray &,char)" (?Split@psString@@QAEXAAVcsStringArray@@D@Z) soundmanager.obj plgsoundmngr
Error 93 fatal error LNK1120: 9 unresolved externals ..\..\soundmngr.dll plgsoundmngr
Error 131 error C2065: 'INET_ADDRSTRLEN' : undeclared identifier c:\development\planeshift\src\server\psserver.cpp 636 apppsserver
Error 132 error C2065: 'INET_ADDRSTRLEN' : undeclared identifier c:\development\planeshift\src\server\psserver.cpp 637 apppsserver
Error 141 error C2065: 'INET_ADDRSTRLEN' : undeclared identifier c:\development\planeshift\src\server\npcmanager.cpp 707 apppsserver
Error 142 error C2065: 'INET_ADDRSTRLEN' : undeclared identifier c:\development\planeshift\src\server\npcmanager.cpp 708 apppsserver
Error 144 error C2065: 'INET_ADDRSTRLEN' : undeclared identifier c:\development\planeshift\src\server\netmanager.cpp 757 apppsserver
Error 145 error C2065: 'INET_ADDRSTRLEN' : undeclared identifier c:\development\planeshift\src\server\netmanager.cpp 758 apppsserver
Error 146 fatal error LNK1181: cannot open input file '..\..\out\release9\libs\libbreakpad.lib' apppsclient apppsclient
Error 174 error C2065: 'INET_ADDRSTRLEN' : undeclared identifier c:\development\planeshift\src\server\clientstatuslogger.cpp 117 apppsserver
Error 175 error C2065: 'INET_ADDRSTRLEN' : undeclared identifier c:\development\planeshift\src\server\clientstatuslogger.cpp 118 apppsserver
Error 179 error C2065: 'INET_ADDRSTRLEN' : undeclared identifier c:\development\planeshift\src\server\client.cpp 375 apppsserver
Error 180 error C2065: 'INET_ADDRSTRLEN' : undeclared identifier c:\development\planeshift\src\server\client.cpp 376 apppsserver
Error 181 error C2065: 'INET_ADDRSTRLEN' : undeclared identifier c:\development\planeshift\src\server\client.cpp 388 apppsserver
Error 182 error C2065: 'INET_ADDRSTRLEN' : undeclared identifier c:\development\planeshift\src\server\client.cpp 389 apppsserver
Error 191 error C2065: 'INET_ADDRSTRLEN' : undeclared identifier c:\development\planeshift\src\server\authentserver.cpp 433 apppsserver
Error 192 error C2065: 'INET_ADDRSTRLEN' : undeclared identifier c:\development\planeshift\src\server\authentserver.cpp 434 apppsserver
Error 199 error C2065: 'INET_ADDRSTRLEN' : undeclared identifier c:\development\planeshift\src\server\adminmanager.cpp 5017 apppsserver
Error 200 error C2065: 'INET_ADDRSTRLEN' : undeclared identifier c:\development\planeshift\src\server\adminmanager.cpp 5046 apppsserver
-
i'm getting closer... atleast i've cut a few of the supporting code that they built in.
it looks like the static_asserts in the code aren't playing nice with msvs. so out they go.
leaves me with
Error 5 error C2065: 'STATUS_INVALID_PARAMETER' : undeclared identifier c:\development\planeshift\src\tools\breakpad\client\windows\handler\exception_handler.cc 568 libbreakpad
.....
looks like that is a windows defined constant somewhere in an unreferenence .h so i'm just going to hard code it.
now that just leaves a metric load of linker errors... lots that seem to centre around dal.obj. the last time i built i recall having seen something like this but i can't recall what it was or how i fixed it.
-
Hi,
the best way is to join #planeshift-build and ask there. Anyway I've removed the breakpad dependencies with DIA SDK, so should be easier to compile. I suggest you to refresh your /mk dir from latest SVN.
The dal.obj is the database plugin, be sure you have the mysql .h files and the PlaneShift database plugin compiles.
-
i think i do.
pointed things as per these steps in the build guide.
Do the following if you put mysql somewhere else than C:\mysql:
Right-click plgdbmysql, under properties->linker->general, change the "C:\mysql\lib\opt" in Additional Library Directories to whatever your location of mysql is.
If you get linker errors of projects which require psutils (example dbmysql or plgsoundmngr )
right-click>Properties>Configuration Properties>Linker>Input>Additional Dependencies> add zlib.lib and libpsutil.lib
-
no luck.
i'm still banging against the dal.obj and others. but i figure they might be the same issue
#-build hasn't been much help either. no chatter but my train of thoughts the few times i've been through
full list of errors if it provides some direction for anybody
http://pastebin.com/tfg2xtRD