Author Topic: Compiling on Windows with VC++ 7.1  (Read 52478 times)

zhuaple

  • Guest
(No subject)
« Reply #25 on: 19 February 2006, 19:27:32 »
Well, how can i do this? And, btw, i want it with sound :(
« Last Edit: 1 January 1970, 00:00:00 by zhuaple »

fireborn

  • Guest
(No subject)
« Reply #26 on: 19 February 2006, 20:03:57 »
edit glest.ini and change

SoundStaticBuffers=16
SoundStreamingBuffers=4

to

SoundStaticBuffers=0
SoundStreamingBuffers=0    this will disable sound, try it, if it works, then the problem is not in the game, if not, then i simply don't know how to solve this problem :?
« Last Edit: 1 January 1970, 00:00:00 by fireborn »

zhuaple

  • Guest
(No subject)
« Reply #27 on: 19 February 2006, 20:08:23 »
ini..?
i'm talking about compiling the source code, ini has nothing to do with it...
« Last Edit: 1 January 1970, 00:00:00 by zhuaple »

fireborn

  • Guest
(No subject)
« Reply #28 on: 19 February 2006, 20:12:19 »
now you got me, i don't know how to solve your problem,
 i thought you were trying to play the game for the first time,
but since you aren't, i simply have no solution,
 sorry
« Last Edit: 1 January 1970, 00:00:00 by fireborn »

martiño

  • Behemoth
  • *******
  • Posts: 1,095
    • View Profile
(No subject)
« Reply #29 on: 22 February 2006, 00:05:29 »
Are you linking against dsound.lib?
« Last Edit: 1 January 1970, 00:00:00 by martiño »

zhuaple

  • Guest
(No subject)
« Reply #30 on: 22 February 2006, 05:48:27 »
Sorry, what do you mean against? I've included it exactly like it's said in a guide:

"C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Lib\dsound.lib"

(the file exists, i've checked)
« Last Edit: 1 January 1970, 00:00:00 by zhuaple »

Message

  • Guest
(No subject)
« Reply #31 on: 4 March 2006, 11:22:37 »
Quote from: "martinho"
Thanx a lot for the guide. As you can see I've stickyed the post so it's always easy to find for the people visiting the forum.

I'd just like to add that if you want to disable those annoying warnings, you can add the following line to the "command line options" in the VC project:

/wd 4018 /wd 4267 /wd 4250

4018/4267 : signed/unsigned mismatch: Warnings that appear when you try to compare or assign a signed and unsigned integers. These warnings are quite stupid since there is no problem in doing that when the numbers are below half of the precision of the type. I systematically ignore them.

4250: "this" used in base member initializer list": Glest uses "this" to initialize "attributes" not "base members", this seems to be a bug in VC.


Why not just fix the signed/unsigned errorsfor glest and shared_lib? Should be extremely easy for atleast the for loops..
« Last Edit: 1 January 1970, 00:00:00 by Message »

martiño

  • Behemoth
  • *******
  • Posts: 1,095
    • View Profile
(No subject)
« Reply #32 on: 4 March 2006, 16:20:21 »
Quote from: "Message"
Quote from: "martinho"
Thanx a lot for the guide. As you can see I've stickyed the post so it's always easy to find for the people visiting the forum.

I'd just like to add that if you want to disable those annoying warnings, you can add the following line to the "command line options" in the VC project:

/wd 4018 /wd 4267 /wd 4250

4018/4267 : signed/unsigned mismatch: Warnings that appear when you try to compare or assign a signed and unsigned integers. These warnings are quite stupid since there is no problem in doing that when the numbers are below half of the precision of the type. I systematically ignore them.

4250: "this" used in base member initializer list": Glest uses "this" to initialize "attributes" not "base members", this seems to be a bug in VC.

Why not just fix the signed/unsigned errorsfor glest and shared_lib? Should be extremely easy for atleast the for loops..


Because they are stupid, tere is no problem at all in comparing signed and unsigned values, and in general i prefer to use int for everything, otherwise I will have to place static_casts all over the place.
« Last Edit: 1 January 1970, 00:00:00 by martiño »

Message

  • Guest
(No subject)
« Reply #33 on: 4 March 2006, 19:39:19 »
I've gotten Glest to compile from the latest cvs source using GLsdk, libogg-1.1.3, libvorbis-1.1.2, xerces-2.7.0

Seems to be working fine for me. If anyone is interested in the project file, i can send them.
« Last Edit: 1 January 1970, 00:00:00 by Message »

zhuaple

  • Guest
(No subject)
« Reply #34 on: 4 March 2006, 23:29:28 »
Yes, please send to zhuaple(at)mail.ru
« Last Edit: 1 January 1970, 00:00:00 by zhuaple »

Message

  • Guest
(No subject)
« Reply #35 on: 5 March 2006, 11:38:43 »
You can get the the project files here:
http://http://www.4shared.com/file/918053/68aa30c4/glest.html

should unzip this over the same directory the glest source is in.

directory structure should look like this:

\glest\docs
\glest\mk
\glest\source
\glest\mk\linux
\glest\mk\msvc <--------------------------- project files are here
\glest\source\g3d_viewer
\glest\source\glest_game
\glest\source\shared_lib
\glest\source\glest_map_editor
\glest\source\GLsdk
\glest\source\libogg-1.1.3
\glest\source\libvorbis-1.1.2
\glest\source\xerces-c-src_2_7_0
« Last Edit: 1 January 1970, 00:00:00 by Message »

zhuaple

  • Guest
(No subject)
« Reply #36 on: 6 March 2006, 03:19:43 »
Is it possible to compile it under VC 2005? I tried, but got billions of errors...
« Last Edit: 1 January 1970, 00:00:00 by zhuaple »

Message

  • Guest
(No subject)
« Reply #37 on: 6 March 2006, 04:23:47 »
Quote from: "zhuaple"
Is it possible to compile it under VC 2005? I tried, but got billions of errors...


I've only got VC 2003, but try posting some of you errors... just ignore the warnings
« Last Edit: 1 January 1970, 00:00:00 by Message »

zhuaple

  • Guest
(No subject)
« Reply #38 on: 6 March 2006, 16:37:00 »
Okay, here it is:
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

This is the only one error i'm getting when compiling GlestLib.
« Last Edit: 1 January 1970, 00:00:00 by zhuaple »

Message

  • Guest
(No subject)
« Reply #39 on: 6 March 2006, 16:52:10 »
Quote from: "zhuaple"
Okay, here it is:
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

This is the only one error i'm getting when compiling GlestLib.


Can you post the offending code? Thanks!
« Last Edit: 1 January 1970, 00:00:00 by Message »

zhuaple

  • Guest
(No subject)
« Reply #40 on: 6 March 2006, 17:04:47 »
Sure, for example:

1>D:\dev\glest\GLsdk\GL\glprocs.h(1044) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

it points me to

 const (WINAPI *GetExtensionsStringARB) (HDC hdc); (in glprocs.h)

and the other error

1>D:\dev\glest\GLsdk\GL\glprocs.h(1062) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

in

const (WINAPI *GetExtensionsStringEXT) (void); (same file)
« Last Edit: 1 January 1970, 00:00:00 by zhuaple »

Message

  • Guest
(No subject)
« Reply #41 on: 6 March 2006, 18:16:01 »
Quote from: "zhuaple"
Sure, for example:

1>D:\dev\glest\GLsdk\GL\glprocs.h(1044) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

it points me to

 const (WINAPI *GetExtensionsStringARB) (HDC hdc); (in glprocs.h)

and the other error

1>D:\dev\glest\GLsdk\GL\glprocs.h(1062) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

in

const (WINAPI *GetExtensionsStringEXT) (void); (same file)


change const (WINAPI *GetExtensionsStringARB)(HDC hdc) to
const char* (WINAPI *GetExtensionsStringARB)(HDC hdc) and
const (WINAPI *GetExtensionsStringEXT)(void) to
const char* (WINAPI *GetExtensionsStringEXT)(void)

Perhaps it is time to make those changes and put the SDK in CVS, would make it easier for everyone else and it is not that many files
« Last Edit: 1 January 1970, 00:00:00 by Message »

zhuaple

  • Guest
(No subject)
« Reply #42 on: 6 March 2006, 18:20:06 »
Hang on, i will give it a try  right now...
« Last Edit: 1 January 1970, 00:00:00 by zhuaple »

Message

  • Guest
(No subject)
« Reply #43 on: 6 March 2006, 18:32:17 »
Quote from: "zhuaple"
Hang on, i will give it a try  right now...


Ok, AIM is Message975 and yahoo is uofsc2001 if you have either of those if you need help
« Last Edit: 1 January 1970, 00:00:00 by Message »

zhuaple

  • Guest
(No subject)
« Reply #44 on: 6 March 2006, 18:32:57 »
Okay, it worked out.  But i got a new error on finding dsound.h - i fixed it adding the inlude path to C:\Program Files\Microsoft DirectX SDK (February 2006)\Include

(I thing this path was lost due to conversion of the project from VC 2003)

Now i got GlestLib compiled, BUT it's size (release build) is ~ 5.87 mb - under VC2003 it was ~ 4.72  - is it okay?

I'm going to compile glestSource r now.. I'm sure there will be errors:)
« Last Edit: 6 March 2006, 18:40:56 by zhuaple »

Message

  • Guest
(No subject)
« Reply #45 on: 6 March 2006, 18:34:48 »
Quote from: "zhuaple"
Okay, it worked out.  But i got a new error on finding dsound.h - i fixed it adding the inlude path to C:\Program Files\Microsoft DirectX SDK (February 2006)\Include

(I thing this path was lost due to conversion of the project from VC 2003)

Now i got GlestLib compiled, BUT it's size (release build) is ~ 5.87 mb - under VC200 it was ~ 4.72  - is it okay?

I'm going to compile glestSource r now.. I'm sure there will be errors:)


That size should be fine, just changes in the compiler I hope
« Last Edit: 1 January 1970, 00:00:00 by Message »

zhuaple

  • Guest
(No subject)
« Reply #46 on: 6 March 2006, 18:47:58 »
Oh my god! 1546 errors :(

Here i  attach my build log (too many errors to post here)

http://http://www.x.2x.ru/BuildLog.zip
« Last Edit: 1 January 1970, 00:00:00 by zhuaple »

Message

  • Guest
(No subject)
« Reply #47 on: 6 March 2006, 18:53:25 »
Quote from: "zhuaple"
Oh my god! 1546 errors :(

Here i  attach my build log (too many errors to post here)

http://http://www.x.2x.ru/BuildLog.zip


Ok most of those are link errors, do you have ignore all default libraries selected in the linker options for the Glest project?
« Last Edit: 1 January 1970, 00:00:00 by Message »

zhuaple

  • Guest
(No subject)
« Reply #48 on: 6 March 2006, 19:02:28 »
Quote from: "Message"
Ok most of those are link errors, do you have ignore all default libraries selected in the linker options for the Glest project?


I had only this /NODEFAULTLIB:LIBCMT in my command line parameters. I removed it and now i got only 8 errors. Here's the BuildLog

http://http://www.x.2x.ru/BuildLog2.zip
« Last Edit: 1 January 1970, 00:00:00 by zhuaple »

Message

  • Guest
(No subject)
« Reply #49 on: 6 March 2006, 19:10:58 »
Quote from: "zhuaple"
Quote from: "Message"
Ok most of those are link errors, do you have ignore all default libraries selected in the linker options for the Glest project?

I had only this /NODEFAULTLIB:LIBCMT in my command line parameters. I removed it and now i got only 8 errors. Here's the BuildLog

http://http://www.x.2x.ru/BuildLog2.zip


GlestLib.lib(xml_parser.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static wchar_t const * const xercesc_2_7::XMLUni::fgDOMValidation" (__imp_?fgDOMValidation@XMLUni@xercesc_2_7@@2QB_WB)

Make sure you have xerceslib.lib added to your linker options... (or if your xerces is under another name, use that)
« Last Edit: 1 January 1970, 00:00:00 by Message »