HomeHome  CalendarCalendar  FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  Log inLog in  

Share | 
 

 [SPARK2] Compiling Errors

View previous topic View next topic Go down 
AuthorMessage
hotmirror



Messages : 2
Date d'inscription : 2011-08-11

PostSubject: [SPARK2] Compiling Errors   Thu Aug 11, 2011 12:21 pm

Hi, I'm very new in this forum so.. Hello! Smile

I downloaded Spark2 from the SVN repository and I tried to compile it. But I got some compiling errors with the TinyXml-lib.

Here are the errors and warnings (they are in german cause I'm from Germany, but all errors are "unresolved external Symbols")

Code:

 Code wird generiert...
1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5): warning MSB8012: TargetPath(D:\Spark Engine\projects\vc2008\SPARK engine\..\..\..\lib\vc2008\dynamic\SPARK Core.dll) entspricht nicht dem OutputFile-Eigenschaftswert (D:\Spark Engine\lib\vc2008\dynamic\SPARK.dll) von Linker. Das Projekt wird daher möglicherweise nicht ordnungsgemäß erstellt. Damit dieses Problem behoben werden kann, müssen die Eigenschaftswerte für $(OutDir), $(TargetName) und $(TargetExt) dem in %(Link.OutputFile) angegebenen Wert entsprechen.
1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(992,5): warning MSB8012: TargetName(SPARK Core) entspricht nicht dem OutputFile-Eigenschaftswert (SPARK) von Linker. Das Projekt wird daher möglicherweise nicht ordnungsgemäß erstellt. Damit dieses Problem behoben werden kann, müssen die Eigenschaftswerte für $(OutDir), $(TargetName) und $(TargetExt) dem in %(Link.OutputFile) angegebenen Wert entsprechen.
1>    Bibliothek "..\..\..\lib\vc2008\dynamic\SPARK Core.lib" und Objekt "..\..\..\lib\vc2008\dynamic\SPARK Core.exp" werden erstellt.
1>tinyxml_STL.lib(tinyxml.obj) : warning LNK4217: Lokal definiertes Symbol "??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@PBD@Z (public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > & __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::operator=(char const *))" wurde in "public: void __thiscall TiXmlNode::SetValue(char const *)" (?SetValue@TiXmlNode@@QAEXPBD@Z)-Funktion importiert.
1>tinyxml_STL.lib(tinyxmlparser.obj) : warning LNK4049: Lokal definiertes Symbol "??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@PBD@Z (public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > & __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::operator=(char const *))" wurde importiert.
1>tinyxml_STL.lib(tinyxml.obj) : warning LNK4217: Lokal definiertes Symbol "??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@ABV01@@Z (public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > & __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::operator=(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &))" wurde in "public: void __thiscall TiXmlAttribute::SetName(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?SetName@TiXmlAttribute@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)-Funktion importiert.
1>tinyxml_STL.lib(tinyxml.obj) : warning LNK4217: Lokal definiertes Symbol "??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ (public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void))" wurde in "public: virtual __thiscall TiXmlAttribute::~TiXmlAttribute(void)" (??1TiXmlAttribute@@UAE@XZ)-Funktion importiert.
1>tinyxml_STL.lib(tinyxmlparser.obj) : warning LNK4049: Lokal definiertes Symbol "??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ (public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void))" wurde importiert.
1>tinyxml_STL.lib(tinyxml.obj) : warning LNK4217: Lokal definiertes Symbol "??Y?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@ABV01@@Z (public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > & __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::operator+=(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &))" wurde in "private: void __thiscall TiXmlPrinter::DoIndent(void)" (?DoIndent@TiXmlPrinter@@AAEXXZ)-Funktion importiert.
1>tinyxml_STL.lib(tinyxmlparser.obj) : warning LNK4049: Lokal definiertes Symbol "??Y?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@ABV01@@Z (public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > & __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::operator+=(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &))" wurde importiert.
1>tinyxml_STL.lib(tinyxml.obj) : warning LNK4217: Lokal definiertes Symbol "??Y?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@PBD@Z (public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > & __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::operator+=(char const *))" wurde in "public: virtual void __thiscall TiXmlDeclaration::Print(struct _iobuf *,int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > *)const " (?Print@TiXmlDeclaration@@UBEXPAU_iobuf@@HPAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)-Funktion importiert.
1>tinyxml_STL.lib(tinyxml.obj) : warning LNK4217: Lokal definiertes Symbol "??$?8DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@0@Z (bool __cdecl std::operator==<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &))" wurde in "public: class TiXmlAttribute * __thiscall TiXmlAttributeSet::Find(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)const " (?Find@TiXmlAttributeSet@@QBEPAVTiXmlAttribute@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)-Funktion importiert.
1>tinyxml_STL.lib(tinyxml.obj) : warning LNK4217: Lokal definiertes Symbol "?reserve@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXI@Z (public: void __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::reserve(unsigned int))" wurde in "class std::basic_istream<char,struct std::char_traits<char> > & __cdecl operator>>(class std::basic_istream<char,struct std::char_traits<char> > &,class TiXmlNode &)" (??5@YAAAV?$basic_istream@DU?$char_traits@D@std@@@std@@AAV01@AAVTiXmlNode@@@Z)-Funktion importiert.
1>tinyxml_STL.lib(tinyxml.obj) : warning LNK4217: Lokal definiertes Symbol "??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ (public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void))" wurde in "class std::basic_istream<char,struct std::char_traits<char> > & __cdecl operator>>(class std::basic_istream<char,struct std::char_traits<char> > &,class TiXmlNode &)" (??5@YAAAV?$basic_istream@DU?$char_traits@D@std@@@std@@AAV01@AAVTiXmlNode@@@Z)-Funktion importiert.
1>tinyxml_STL.lib(tinyxmlparser.obj) : warning LNK4049: Lokal definiertes Symbol "??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ (public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void))" wurde importiert.
1>tinyxml_STL.lib(tinyxml.obj) : warning LNK4217: Lokal definiertes Symbol "??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z (public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(char const *))" wurde in "public: __thiscall TiXmlPrinter::TiXmlPrinter(void)" (??0TiXmlPrinter@@QAE@XZ)-Funktion importiert.
1>tinyxml_STL.lib(tinyxmlparser.obj) : warning LNK4049: Lokal definiertes Symbol "??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z (public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(char const *))" wurde importiert.
1>tinyxml_STL.lib(tinyxml.obj) : warning LNK4217: Lokal definiertes Symbol "??Y?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@D@Z (public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > & __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::operator+=(char))" wurde in "public: static void __cdecl TiXmlBase::EncodeString(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > *)" (?EncodeString@TiXmlBase@@SAXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAV23@@Z)-Funktion importiert.
1>tinyxml_STL.lib(tinyxmlparser.obj) : warning LNK4049: Lokal definiertes Symbol "??Y?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@D@Z (public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > & __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::operator+=(char))" wurde importiert.
1>tinyxml_STL.lib(tinyxml.obj) : warning LNK4217: Lokal definiertes Symbol "?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@PBDI@Z (public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > & __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::append(char const *,unsigned int))" wurde in "public: static void __cdecl TiXmlBase::EncodeString(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > *)" (?EncodeString@TiXmlBase@@SAXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAV23@@Z)-Funktion importiert.
1>tinyxml_STL.lib(tinyxmlparser.obj) : warning LNK4049: Lokal definiertes Symbol "?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@PBDI@Z (public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > & __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::append(char const *,unsigned int))" wurdeimportiert.
1>tinyxml_STL.lib(tinyxml.obj) : warning LNK4217: Lokal definiertes Symbol "?find@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDII@Z (public: unsigned int __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::find(char const *,unsigned int,unsigned int)const )" wurde in "public: void __thiscall TiXmlAttribute::Print(struct _iobuf *,int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > *)const " (?Print@TiXmlAttribute@@QBEXPAU_iobuf@@HPAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)-Funktion importiert.
1>tinyxml_STL.lib(tinyxml.obj) : warning LNK4217: Lokal definiertes Symbol "??$?6DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z (class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::operator<<<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_ostream<char,struct std::char_traits<char> > &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &))" wurde in "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl operator<<(class std::basic_ostream<char,struct std::char_traits<char> > &,class TiXmlNode const &)" (??6@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AAV01@ABVTiXmlNode@@@Z)-Funktion importiert.
1>tinyxml_STL.lib(tinyxml.obj) : warning LNK4217: Lokal definiertes Symbol "?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@ABV12@@Z (public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > & __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::append(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &))" wurde in "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > & __cdecl operator<<(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,class TiXmlNode const &)" (??6@YAAAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAV01@ABVTiXmlNode@@@Z)-Funktion importiert.
1>tinyxml_STL.lib(tinyxmlparser.obj) : warning LNK4217: Lokal definiertes Symbol "?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@PBDI@Z (public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > & __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::assign(char const *,unsigned int))" wurdein "protected: static char const * __cdecl TiXmlBase::ReadName(char const *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > *,enum TiXmlEncoding)" (?ReadName@TiXmlBase@@KAPBDPBDPAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@W4TiXmlEncoding@@@Z)-Funktion importiert.
1>tinyxml_STL.lib(tinyxml.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: static unsigned int const std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::npos" (__imp_?npos@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@2IB)" in Funktion ""public: void __thiscall TiXmlAttribute::Print(struct _iobuf *,int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > *)const " (?Print@TiXmlAttribute@@QBEXPAU_iobuf@@HPAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)".
1>tinyxml_STL.lib(tinyxmlparser.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: static void __cdecl std::_String_base::_Xran(void)" (__imp_?_Xran@_String_base@std@@SAXXZ)" in Funktion ""protected: virtual void __thiscall TiXmlComment::StreamIn(class std::basic_istream<char,struct std::char_traits<char> > *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > *)" (?StreamIn@TiXmlComment@@MAEXPAV?$basic_istream@DU?$char_traits@D@std@@@std@@PAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@3@@Z)".
1>..\..\..\lib\vc2008\dynamic\SPARK.dll : fatal error LNK1120: 2 nicht aufgelöste externe Verweise.
========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 übersprungen ==========

Do you know what I can do?
Thanks in advance!
Back to top Go down
View user profile
Darktib
Committer


Messages : 389
Date d'inscription : 2009-07-20
Localisation : A coté de Paris

PostSubject: Re: [SPARK2] Compiling Errors   Thu Aug 11, 2011 2:04 pm

There seems to be a problem with std::string.

Which version of Visual studio do you use ? Can you verify that TIXML_USE_STL is defined ?
Maybe the MSB8012 is the problem...

_________________
Back to top Go down
View user profile
Juff
Developer


Messages : 539
Date d'inscription : 2009-07-14
Age : 34

PostSubject: Re: [SPARK2] Compiling Errors   Thu Aug 11, 2011 3:11 pm

Hi,

Try to recompile tinyXML (you can get it here) and overwrite the generated *_STL libs in the "external" directory of SPARK2.

If you dont care about XML serialization/deserialization, you can define the macro SPK_NO_XML to build SPARK without xml support
Back to top Go down
View user profile http://spark.developpez.com
hotmirror



Messages : 2
Date d'inscription : 2011-08-11

PostSubject: Re: [SPARK2] Compiling Errors   Fri Aug 12, 2011 6:39 am

Hi!

Thanks for your quick answers!

Now everything works fine Very Happy
I just had to recompile the tinyXML-libs, cause I'm using the Visual Studio 2010 version...so the libs are not compatible.

If somone else has this problem:
When you recompile the tinyXML-libs, make sure to select the /MD Option (Multithreaded-DLL) for the run-time library (otherwise it didn't worked for me)

Now I have another little question:
Is it already possible to load a whole particle system from a *.xml or a *.spk file?
I saw the load and save-functions in the "SPARKTest"-demo so I tried them out in my project (I'm working with Irrlicht), but when I load a particle system from a xml-file nothing happens.
Maybe you can show me a little piece of code or sth. else that could help me?

Thanks in advance!
Ps: sorry for my bad english!
Back to top Go down
View user profile
Juff
Developer


Messages : 539
Date d'inscription : 2009-07-14
Age : 34

PostSubject: Re: [SPARK2] Compiling Errors   Fri Aug 12, 2011 6:50 am

Hi,

Actually the saving/loading system is not completely finished. Actually it works but not for the renderers which cannot be yet imported/exported.
Moreover for Irrlicht, it lacks a way to construct a CSPKParticleSystemNode from a System but that can be done quite soon.

So basically you can save/load a system but not the renderers which have to be set manually in the code atm

For the /MD option, you can put whatever you want, but it onloy has to be coherent with the SPARK settings (which is /MD) but if you change it in all project it should work too.
Back to top Go down
View user profile http://spark.developpez.com
Sponsored content




PostSubject: Re: [SPARK2] Compiling Errors   Today at 9:30 am

Back to top Go down
 
[SPARK2] Compiling Errors
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Selenium RC; Permission denied on session.([error] Element not found ")
» Can I check the error message displayed or not in Selenium?
» Getting error when i run selenium script in Eclipse, please help
» XHTML - Lesson 5/5
» iexpoloreproxy https certificate error

Permissions in this forum:You cannot reply to topics in this forum
 :: English Forum :: Questions (en)-
Jump to: