need help trying to compile with Visual Studio

Bugs should be reported at https://savannah.nongnu.org/bugs/?group=glob2
This section is read only for reference.
Locked
quinnteh
Explorer
Explorer
Posts: 36
Joined: Fri Jul 18, 2008 7:32 pm
Location: Melbourne, Australia

need help trying to compile with Visual Studio

Post by quinnteh » Tue Sep 02, 2008 9:48 pm

What exactly do these lines in sdl_config.h do?

/* Make sure that this isn't included by Visual C++ */
#ifdef _MSC_VER
#error You should copy include/SDL_config.h.default to include/SDL_config.h
#endif


Firstly, I don't understand what is meant by "#error You should copy include/SDL_config.h.default to include/SDL_config.h". Is there something I am supposed to be doing but didn't do?

Secondly, what is the reason to "Make sure that this isn't included by Visual C++"? How does that relate to the actual error message given?

Thanks.

quinnteh
Explorer
Explorer
Posts: 36
Joined: Fri Jul 18, 2008 7:32 pm
Location: Melbourne, Australia

Re: need help trying to compile with Visual Studio

Post by quinnteh » Sat Sep 06, 2008 6:51 pm

So I gave up trying to use Visual Studio to do it and went back to MinGW.

As I said in the other thread there was a big load or problems with the dependencies, but after some risky manual configurations and file-renaming I finally got over that stage (as you can see below). Now, I am getting the same compile error as I had with Visual Studio:

$ scons mingw=true
scons: Reading SConscript files ...
Checking for C library SDL... (cached) yes
Checking for C library SDL_ttf... (cached) yes
Checking for C library SDL_image... (cached) yes
Checking for C library SDL_net... (cached) yes
Checking for C library speex... (cached) yes
Checking for C++ header file speex/speex.h... (cached) yes
Checking for C library vorbisfile... (cached) yes
Checking for C library vorbis... (cached) yes
Checking for C library ogg... (cached) yes
Checking for C++ header file zlib.h... (cached) yes
Checking for C library z... (cached) no
Checking for C library zdll... (cached) yes
Checking for C library boost_thread... (cached) yes
Checking for C++ header file boost/thread/thread.hpp... (cached) yes
Checking for C++ header file boost/shared_ptr.hpp... (cached) yes
Checking for C++ header file boost/tuple/tuple.hpp... (cached) yes
Checking for C++ header file boost/tuple/tuple_comparison.hpp... (cached) yes
Checking for C++ header file boost/logic/tribool.hpp... (cached) yes
Checking for C++ header file boost/lexical_cast.hpp... (cached) yes
Checking for C++ header file boost/date_time/posix_time/posix_time.hpp... (cached) yes
Checking for C library GL... (cached) no
Checking for C library GL... (cached) no
Checking for C library opengl32... (cached) yes
Checking for C++ header file GL/gl.h... (cached) yes
Checking for C library GLU... (cached) no
Checking for C library GLU... (cached) no
Checking for C library glu32... (cached) yes
Checking for C++ header file GL/glu.h... (cached) yes
Checking for C library fribidi... (cached) no
scons: done reading SConscript files.
scons: Building targets ...
cl -g -O2 /DHAVE_CONFIG_H /D_GNU_SOURCE=1 /Dmain=SDL_main /IC:\msys\1.0\local\include\SDL /IC:\msys\1.0\local\include /IC:\msys\1.0\include\SDL /IC:\msys\1.0\include /Ilibgag\include /I. /IC:\usr\local\include\SDL /c libgag\src\BinaryStream.cpp /Folibgag\src\BinaryStream.obj
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.762 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.

cl : Command line warning D9002 : ignoring unknown option '-g'
BinaryStream.cpp
c:\msys\1.0\local\include\sdl\SDL_config.h(34) : fatal error C1189: #error : You should copy include/SDL_config.h.default to include/SDL_config.h
scons: building terminated because of errors.
scons: *** [libgag\src\BinaryStream.obj] Error 2



Has anybody here ever seen this error message before??

K776
Warrior
Warrior
Posts: 61
Joined: Sat Nov 26, 2005 10:23 pm
Location: New Zealand
Contact:

Re: need help trying to compile with Visual Studio

Post by K776 » Sun Sep 07, 2008 12:48 am

The output above suggests that the VSC compiler is the one being used (not mingw). I ran into this when I tried VSC once too. You need to uninstall everything and remove the paths from the PATH environment variable, restart the comp, then run it again.

MinGW should not be giving you any errors related to VSC. If it doesn't, it wasn't uninstalled 100%.

(you're almost there, the fact that its finding sdl/gl etc now means you're one step away).

*note: I am the only windows release maintainer now (genixpro left for university) and I plan to continue to be one, so you dont need to keep posting in different threads and mailing lists (I'm the only one who uses windows and mingw to compile glob2 as far as I know)

quinnteh
Explorer
Explorer
Posts: 36
Joined: Fri Jul 18, 2008 7:32 pm
Location: Melbourne, Australia

Re: need help trying to compile with Visual Studio

Post by quinnteh » Wed Sep 10, 2008 3:55 pm

I see... do you know how I can uninstall scons? I tried to run Removescons.exe but it says "This program is normally started by windows", and I can't find scons in my add/remove programs list.

Thanks

K776
Warrior
Warrior
Posts: 61
Joined: Sat Nov 26, 2005 10:23 pm
Location: New Zealand
Contact:

Re: need help trying to compile with Visual Studio

Post by K776 » Wed Sep 10, 2008 9:00 pm

You should be able to remove the directory at C:\Python25\scons and the menu option (if any).

quinnteh
Explorer
Explorer
Posts: 36
Joined: Fri Jul 18, 2008 7:32 pm
Location: Melbourne, Australia

Re: need help trying to compile with Visual Studio

Post by quinnteh » Thu Sep 11, 2008 12:37 pm

Found an alternative solution, to compile on my other computer and do everything else on my usual computer.

Thanks for your help.

Locked