07-10-2007, 07:43 AM,
|
|
mak77
Junior Member
![*](images/star.png) ![*](images/star.png)
|
Posts: 24
Threads: 1
Joined: Mar 2007
|
|
probably glew references should be put under a ifdef WIN32, or it will no more compile on other platforms...
hwv i can compile your last build, but in XP vm it crashes with a stack trace in deinit(), i don't get any message on opengl... it continues to open window and close immediately on Vista
|
|
07-10-2007, 10:13 AM,
|
|
joevenzon
Administrator
![*](images/star.png) ![*](images/star.png) ![*](images/star.png) ![*](images/star.png) ![*](images/star.png) ![*](images/star.png) ![*](images/star.png)
|
Posts: 2,679
Threads: 52
Joined: Jun 2005
|
|
I noticed in R1764 you're using glewGetExtension. Don't use the glew extensions functions! I've already got a dedicated cardinfo class set up to manage them. So replace any lines like
Code: if( glewGetExtension("GL_ARB_multitexture") )
with
Code: if (game.gfxcard.GetCapability(CARDINFOTYPE::MULTITEXTURE) )
|
|
07-11-2007, 04:20 PM,
|
|
mak77
Junior Member
![*](images/star.png) ![*](images/star.png)
|
Posts: 24
Threads: 1
Joined: Mar 2007
|
|
to readd the vdrift icon to the exe add to tools/win a resource.rc containing
Code: #include <windows>
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
100 ICON VDrift.ico
then modify src/sconscript like
Code: if sys.platform == 'win32':
vdrift = local_env.Program(target='vdrift', source=[src, vamosobjs, guiobjs, env.RES('../tools/win/resource.rc')])
else:
vdrift = local_env.Program(target='vdrift', source=[src, vamosobjs, guiobjs])
notice that this way the resource.rc is compiled into tools/win/resource.o, while it should compile to build folder
|
|
07-12-2007, 05:38 AM,
|
|
mak77
Junior Member
![*](images/star.png) ![*](images/star.png)
|
Posts: 24
Threads: 1
Joined: Mar 2007
|
|
i have moved the build (with the new data folder) to Vista with a 7900GS and it works!
It's not very stable, i have often crashes (and in virtual machine without a 3D card it crashes instead of tell me that my card is not supported) and suffer of graphic glitches... Also changing the resolution makes all menu texture disappear
|
|
07-14-2007, 05:18 AM,
|
|
mak77
Junior Member
![*](images/star.png) ![*](images/star.png)
|
Posts: 24
Threads: 1
Joined: Mar 2007
|
|
.rc files MUST be compiled by windres (see in dev-cpp bin folder or mingw32 i think), it takes a .rc and resources (.ico in our case) and compiles them together in a .res file (it's however a .o in mingw)
env.RES does recognize that as a resource file and uses windres to compile it, the result is a (.res).o file that can be linked with others, containing the icon... i don't think that you can add those headers to a common .h...
|
|
07-16-2007, 06:22 AM,
|
|
mak77
Junior Member
![*](images/star.png) ![*](images/star.png)
|
Posts: 24
Threads: 1
Joined: Mar 2007
|
|
don't remember if this has already been fixed but stdout.txt and stderr.txt should not be written to game dir, but they should be written to user dir, in Vista the program cannot write to its folder
i don't know what other problems are related to windows, what are related to incomplete data, what to normale development... i get frequent crashes but different results selecting different tracks or cars
however i compile on XP, on Vista i have only tested the game
latest build does not compile because it lacks SDL into libs
else:
libs_link = [ 'opengl32', 'glu32', 'glew32', 'mingw32', 'SDLmain', 'SDL', common_libs ]
I could also suggest to compress (don't know if scons can call external tools) the executable using UPX, the final exe is now 31MB while compressed it's about 4.5MB
also "Status: Using GLEW 1.4.0" is probably lacking a \n
|
|
07-16-2007, 11:41 AM,
|
|
mak77
Junior Member
![*](images/star.png) ![*](images/star.png)
|
Posts: 24
Threads: 1
Joined: Mar 2007
|
|
joevenzon Wrote:If you compile without debugging (used to be release=1, does that still work?) the executable is on the order of a meg or two.
yes, you're right, sorry!
|
|
07-17-2007, 07:10 AM,
|
|
rookie1
Member
![*](images/star.png) ![*](images/star.png) ![*](images/star.png)
|
Posts: 231
Threads: 32
Joined: Nov 2006
|
|
Is GLEW going to be a required library in Linux as well? My copy of svn trunk does not compile now in Linux without GLEW.
|
|
|