Author Topic: Can i get a little help with my compiling? (:  (Read 6339 times)

Exazzo

  • Guest
Can i get a little help with my compiling? (:
« on: 9 November 2009, 11:43:37 »
1>------ Build started: Project: libglest, Configuration: Debug Win32 ------
1>Compiling...
1>cl : Command line warning D9035 : option 'Fr' has been deprecated and will be removed in a future release
1>cl : Command line warning D9036 : use 'FR' instead of 'Fr'
1>pch.cpp
1>c:\documents and settings\administrator\desktop\gae-0.2.12-src\0.2.12\source\glest_game\glprocs.h(1044) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\documents and settings\administrator\desktop\gae-0.2.12-src\0.2.12\source\glest_game\glprocs.h(1062) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>Creating browse information file...
1>Microsoft Browse Information Maintenance Utility Version 9.00.30729
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>BSCMAKE: error BK1506 : cannot open file '..\..\build\Debug\libglest\camera.sbr': No such file or directory
1>Build log was saved at "file://c:\Documents and Settings\Administrator\Desktop\gae-0.2.12-src\0.2.12\build\Debug\libglest\BuildLog.htm"
1>libglest - 3 error(s), 2 warning(s)
2>------ Build started: Project: game, Configuration: Debug Win32 ------
2>Compiling...
2>pch.cpp
2>c:\documents and settings\administrator\desktop\gae-0.2.12-src\0.2.12\source\glest_game\glprocs.h(1044) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>c:\documents and settings\administrator\desktop\gae-0.2.12-src\0.2.12\source\glest_game\glprocs.h(1062) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>Creating browse information file...
2>Microsoft Browse Information Maintenance Utility Version 9.00.30729
2>Copyright (C) Microsoft Corporation. All rights reserved.
2>BSCMAKE: error BK1506 : cannot open file '..\..\build\Debug\game\ai_interface.sbr': No such file or directory
2>Build log was saved at "file://c:\Documents and Settings\Administrator\Desktop\gae-0.2.12-src\0.2.12\build\Debug\game\BuildLog.htm"
2>game - 3 error(s), 0 warning(s)
========== Build: 0 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========

what to doooo ? ;P

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Can i get a little help with my compiling? (:
« Reply #1 on: 9 November 2009, 15:41:21 »
It says that the fatal error is the fact that it couldn't open two specific SBR files, but I got no clue what an SBR file is. That's not a standard c++ file. What gives???
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

silnarm

  • GAE Team
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: Can i get a little help with my compiling? (:
« Reply #2 on: 9 November 2009, 21:45:08 »
An sbr is just a 'source browser' file, generated by the compiler for debugging purposes.  They are not found because two errors in glprocs.h are preventing anything from compiling.

glprocs.h had been placed in glest_game, I wouldn't recommend you put your external dependencies in there, though your problem unfortunately will not be solved simply by moving files...

Where did you get your glprocs.h from ?

http://sourceforge.net/projects/glestae/files/glestae_dev_deps/windoze_deps.7z/download contains just about all the externals needed, if you unzip the contents of that in a (new) folder called 'deps' in 'desktop\gae-0.2.12-src\' you shouldn't need to modify the project files, and it should compile for you (no promises though :) )
Glest Advanced Engine - Code Monkey

Timeline | Downloads

Exazzo

  • Guest
Re: Can i get a little help with my compiling? (:
« Reply #3 on: 11 November 2009, 12:14:27 »
im down on 1 error with compiling libglest:
1>glprocs.c
1>c:\documents and settings\administrator\desktop\0.2.12\source\shared_lib\sources\glprocs.c : fatal error C1853: '../../build/Debug/libglest\libglest.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)

and in "game" 1 error too.
2>LINK : fatal error LNK1104: cannot open file 'dsound.lib'
what to doooo ? :)
« Last Edit: 11 November 2009, 12:20:40 by Exazzo »

hailstone

  • GAE Team
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
Re: Can i get a little help with my compiling? (:
« Reply #4 on: 11 November 2009, 21:40:13 »
Right click on libglest and press rebuild. dsound.lib should have come with the other dependencies.
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

silnarm

  • GAE Team
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: Can i get a little help with my compiling? (:
« Reply #5 on: 12 November 2009, 02:03:56 »
im down on 1 error with compiling libglest:
1>glprocs.c
1>c:\documents and settings\administrator\desktop\0.2.12\source\shared_lib\sources\glprocs.c : fatal error C1853: '../../build/Debug/libglest\libglest.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)

right click glprocs.c in the solution explorer and hit 'properties', ensure it is set to not use the pre-compiled header... though it should have already been set that way...
Glest Advanced Engine - Code Monkey

Timeline | Downloads

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Can i get a little help with my compiling? Maybe...?
« Reply #6 on: 12 November 2009, 04:28:10 »
On a related topic, I was finally able to get MSVS up and running (though a reg error stops me from creating new projects) and when I compiled, it stated it could not open a file called zconfig.h. It found zlib.h fine from the include directory (zconfig.h is included inside this). I thought I had all the GAE dependencies, but I guess I was mistaken. What to do?
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

silnarm

  • GAE Team
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: Can i get a little help with my compiling? Maybe...?
« Reply #7 on: 12 November 2009, 07:41:58 »
On a related topic, I was finally able to get MSVS up and running (though a reg error stops me from creating new projects) and when I compiled, it stated it could not open a file called zconfig.h. It found zlib.h fine from the include directory (zconfig.h is included inside this). I thought I had all the GAE dependencies, but I guess I was mistaken. What to do?

zconf.h is in the deps package...

make sure your directory structure is right, the 'deps' folder need to be two levels up from the 'source' folder.
Glest Advanced Engine - Code Monkey

Timeline | Downloads

hailstone

  • GAE Team
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
Re: Can i get a little help with my compiling? (:
« Reply #8 on: 12 November 2009, 07:58:31 »
right click glprocs.c in the solution explorer and hit 'properties', ensure it is set to not use the pre-compiled header... though it should have already been set that way...
I got this error when trying to compile an old project from when I was using vc++ 2008 express, I'm using VStudio 2008 now. It might have said a different file.
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

Exazzo

  • Guest
Re: Can i get a little help with my compiling? (:
« Reply #9 on: 16 November 2009, 07:43:52 »
right click glprocs.c in the solution explorer and hit 'properties', ensure it is set to not use the pre-compiled header... though it should have already been set that way...
I got this error when trying to compile an old project from when I was using vc++ 2008 express, I'm using VStudio 2008 now. It might have said a different file.

thx hailstorm .. it worked ;P

Exazzo

  • Guest
Re: Can i get a little help with my compiling? (:
« Reply #10 on: 16 November 2009, 08:48:23 »
1>Linking...
1>libglest.lib(xml_parser.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class xercesc_2_6::DOMImplementation * __cdecl xercesc_2_6::DOMImplementationRegistry::getDOMImplementation(unsigned short const *)" (__imp_?getDOMImplementation@DOMImplementationRegistry@xercesc_2_6@@SAPAVDOMImplementation@2@PBG@Z) referenced in function __catch$??0XmlIo@Xml@Shared@@AAE@XZ$0
1>libglest.lib(xml_parser.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static bool __cdecl xercesc_2_6::XMLString::transcode(char const * const,unsigned short * const,unsigned int,class xercesc_2_6::MemoryManager * const)" (__imp_?transcode@XMLString@xercesc_2_6@@SA_NQBDQAGIQAVMemoryManager@2@@Z) referenced in function __catch$??0XmlIo@Xml@Shared@@AAE@XZ$0
1>libglest.lib(xml_parser.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class xercesc_2_6::MemoryManager * xercesc_2_6::XMLPlatformUtils::fgMemoryManager" (__imp_?fgMemoryManager@XMLPlatformUtils@xercesc_2_6@@2PAVMemoryManager@2@A)
1>libglest.lib(xml_parser.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static void __cdecl xercesc_2_6::XMLPlatformUtils::Initialize(char const * const,char const * const,class xercesc_2_6::PanicHandler * const,class xercesc_2_6::MemoryManager * const)" (__imp_?Initialize@XMLPlatformUtils@xercesc_2_6@@SAXQBD0QAVPanicHandler@2@QAVMemoryManager@2@@Z) referenced in function "private: __thiscall Shared::Xml::XmlIo::XmlIo(void)" (??0XmlIo@Xml@Shared@@AAE@XZ)
1>libglest.lib(xml_parser.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static char const * const xercesc_2_6::XMLUni::fgXercescDefaultLocale" (__imp_?fgXercescDefaultLocale@XMLUni@xercesc_2_6@@2QBDB)
1>libglest.lib(xml_parser.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static void __cdecl xercesc_2_6::XMLPlatformUtils::Terminate(void)" (__imp_?Terminate@XMLPlatformUtils@xercesc_2_6@@SAXXZ) referenced in function "public: __thiscall Shared::Xml::XmlIo::~XmlIo(void)" (??1XmlIo@Xml@Shared@@QAE@XZ)
1>libglest.lib(xml_parser.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static char * __cdecl xercesc_2_6::XMLString::transcode(unsigned short const * const)" (__imp_?transcode@XMLString@xercesc_2_6@@SAPADQBG@Z) referenced in function __catch$?load@XmlIo@Xml@Shared@@QAEPAVXmlNode@23@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z$0
1>libglest.lib(xml_parser.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static unsigned short const * const xercesc_2_6::XMLUni::fgDOMValidation" (__imp_?fgDOMValidation@XMLUni@xercesc_2_6@@2QBGB)
1>libglest.lib(xml_parser.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static unsigned short const * const xercesc_2_6::XMLUni::fgXercesSchemaFullChecking" (__imp_?fgXercesSchemaFullChecking@XMLUni@xercesc_2_6@@2QBGB)
1>libglest.lib(xml_parser.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) protected: __thiscall xercesc_2_6::DOMErrorHandler::DOMErrorHandler(void)" (__imp_??0DOMErrorHandler@xercesc_2_6@@IAE@XZ) referenced in function "public: __thiscall Shared::Xml::ErrorHandler::ErrorHandler(void)" (??0ErrorHandler@Xml@Shared@@QAE@XZ)
1>libglest.lib(xml_parser.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static bool __cdecl xercesc_2_6::XMLString::transcode(unsigned short const * const,char * const,unsigned int,class xercesc_2_6::MemoryManager * const)" (__imp_?transcode@XMLString@xercesc_2_6@@SA_NQBGQADIQAVMemoryManager@2@@Z) referenced in function "public: virtual bool __thiscall Shared::Xml::ErrorHandler::handleError(class xercesc_2_6::DOMError const &)" (?handleError@ErrorHandler@Xml@Shared@@UAE_NABVDOMError@xercesc_2_6@@@Z)
1>libglest.lib(xml_parser.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall xercesc_2_6::DOMErrorHandler::~DOMErrorHandler(void)" (__imp_??1DOMErrorHandler@xercesc_2_6@@UAE@XZ) referenced in function "public: virtual __thiscall Shared::Xml::ErrorHandler::~ErrorHandler(void)" (??1ErrorHandler@Xml@Shared@@UAE@XZ)
1>libglest.lib(xml_parser.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall xercesc_2_6::MemBufInputSource::~MemBufInputSource(void)" (__imp_??1MemBufInputSource@xercesc_2_6@@UAE@XZ) referenced in function "public: class Shared::Xml::XmlNode * __thiscall Shared::Xml::XmlIo::parseString(char const *,unsigned int)" (?parseString@XmlIo@Xml@Shared@@QAEPAVXmlNode@23@PBDI@Z)
1>libglest.lib(xml_parser.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall xercesc_2_6::Wrapper4InputSource::~Wrapper4InputSource(void)" (__imp_??1Wrapper4InputSource@xercesc_2_6@@UAE@XZ) referenced in function "public: class Shared::Xml::XmlNode * __thiscall Shared::Xml::XmlIo::parseString(char const *,unsigned int)" (?parseString@XmlIo@Xml@Shared@@QAEPAVXmlNode@23@PBDI@Z)
1>libglest.lib(xml_parser.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall xercesc_2_6::Wrapper4InputSource::Wrapper4InputSource(class xercesc_2_6::InputSource * const,bool,class xercesc_2_6::MemoryManager * const)" (__imp_??0Wrapper4InputSource@xercesc_2_6@@QAE@QAVInputSource@1@_NQAVMemoryManager@1@@Z) referenced in function "public: class Shared::Xml::XmlNode * __thiscall Shared::Xml::XmlIo::parseString(char const *,unsigned int)" (?parseString@XmlIo@Xml@Shared@@QAEPAVXmlNode@23@PBDI@Z)
1>libglest.lib(xml_parser.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall xercesc_2_6::MemBufInputSource::MemBufInputSource(unsigned char const * const,unsigned int,unsigned short const * const,bool,class xercesc_2_6::MemoryManager * const)" (__imp_??0MemBufInputSource@xercesc_2_6@@QAE@QBEIQBG_NQAVMemoryManager@1@@Z) referenced in function "public: class Shared::Xml::XmlNode * __thiscall Shared::Xml::XmlIo::parseString(char const *,unsigned int)" (?parseString@XmlIo@Xml@Shared@@QAEPAVXmlNode@23@PBDI@Z)
1>libglest.lib(xml_parser.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall xercesc_2_6::LocalFileFormatTarget::~LocalFileFormatTarget(void)" (__imp_??1LocalFileFormatTarget@xercesc_2_6@@UAE@XZ) referenced in function "public: void __thiscall Shared::Xml::XmlIo::save(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class Shared::Xml::XmlNode const *)" (?save@XmlIo@Xml@Shared@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PBVXmlNode@23@@Z)
1>libglest.lib(xml_parser.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static unsigned short const * const xercesc_2_6::XMLUni::fgDOMWRTFormatPrettyPrint" (__imp_?fgDOMWRTFormatPrettyPrint@XMLUni@xercesc_2_6@@2QBGB)
1>libglest.lib(xml_parser.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall xercesc_2_6::LocalFileFormatTarget::LocalFileFormatTarget(char const * const,class xercesc_2_6::MemoryManager * const)" (__imp_??0LocalFileFormatTarget@xercesc_2_6@@QAE@QBDQAVMemoryManager@1@@Z) referenced in function "public: void __thiscall Shared::Xml::XmlIo::save(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class Shared::Xml::XmlNode const *)" (?save@XmlIo@Xml@Shared@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PBVXmlNode@23@@Z)
1>libglest.lib(xml_parser.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static void __cdecl xercesc_2_6::XMLString::release(unsigned short * *)" (__imp_?release@XMLString@xercesc_2_6@@SAXPAPAG@Z) referenced in function "public: char * __thiscall Shared::Xml::XmlIo::toString(class Shared::Xml::XmlNode const *,bool)" (?toString@XmlIo@Xml@Shared@@QAEPADPBVXmlNode@23@_N@Z)
1>libglest.lib(xml_parser.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static void __cdecl xercesc_2_6::XMLString::release(char * *)" (__imp_?release@XMLString@xercesc_2_6@@SAXPAPAD@Z) referenced in function "public: void __thiscall Shared::Xml::XmlIo::releaseString(char * *)" (?releaseString@XmlIo@Xml@Shared@@QAEXPAPAD@Z)
1>../../build/Debug/game\game.exe : fatal error LNK1120: 21 unresolved externals
1>Build log was saved at "file://c:\Documents and Settings\Administrator\Desktop\0.2.12\build\Debug\game\BuildLog.htm"
1>game - 22 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========

say woooooot ?
« Last Edit: 17 November 2009, 07:35:30 by Exazzo »

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Can i get a little help with my compiling? (:
« Reply #11 on: 18 November 2009, 16:42:28 »
Um, you don't expect us to read any of that, do you?

Something is definately wrong with your libs!
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

hailstone

  • GAE Team
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
Re: Can i get a little help with my compiling? (:
« Reply #12 on: 18 November 2009, 21:02:57 »
Somehow 0.2.12 never got the TinyXML replacement and since xerces-c doesn't come in the deps it won't link.

If you are using the 0.2.12 branch it should be updated with a fix soon.
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/