Nex 2.0 hangs and stuff

If you've had any problems with Nexuiz, or would like to report bugs, post here.

Moderators: Nexuiz Moderators, Moderators

Postby dIM » Thu Jun 22, 2006 8:36 am

Glad to hear that Nexuiz now is working for you R4ND0M. What u wrote makes me wanna try to make a build on my own, as i could use some more FPS..
I must admit i have never compiled anything, yet , so maybe u could give me and all others that wanna try some tips how to compile Nexuiz under Windows?
dIM
Alien
 
Posts: 160
Joined: Wed Mar 01, 2006 4:10 am
Location: DD ger

Postby esteel » Thu Jun 22, 2006 10:06 am

Its not that much work.. download and install MSYS-1.0.10.exe, MinGW-3.1.0-1.exe from mingw.org. download the original quake1 sources OR the DirectX SDK (you just need some header files, the q1 sources are smaller and less MS :)) and put those header files into your MingGW installation (its been some time.. copying them into MINGW/include should be it). Then you need the DarkPlaces souces either from cvs or the included sources in Nexuiz. Now a simple 'make DP_MAKE_TARGET=mingw cl-nexuiz' in the DP source dir should be enough to produce a binary.
*edit* corrected make target
Last edited by esteel on Thu Jun 22, 2006 2:19 pm, edited 1 time in total.
esteel
Site admin and forum addon
 
Posts: 3924
Joined: Wed Mar 01, 2006 8:27 am

Postby dIM » Thu Jun 22, 2006 1:46 pm

Thanks for your help esteel.
When i try to compile i get the following errors:
Code: Select all
sys_sdl.o(.text+0x127):sys_sdl.c: undefined reference to `SDL_GetTicks'
sys_sdl.o(.text+0x1b):sys_sdl.c: undefined reference to `SDL_Quit'
sys_sdl.o(.text+0x29f):sys_sdl.c: undefined reference to `SDL_Delay'
vid_sdl.o(.text+0x5a):vid_sdl.c: undefined reference to `SDL_WM_GrabInput'
vid_sdl.o(.text+0x93):vid_sdl.c: undefined reference to `SDL_WM_GrabInput'
vid_sdl.o(.text+0xcd):vid_sdl.c: undefined reference to `SDL_GetRelativeMouseSta                                             te'
vid_sdl.o(.text+0x175):vid_sdl.c: undefined reference to `SDL_PollEvent'
vid_sdl.o(.text+0x2c9):vid_sdl.c: undefined reference to `SDL_Init'
vid_sdl.o(.text+0x2e6):vid_sdl.c: undefined reference to `SDL_GetError'
vid_sdl.o(.text+0x30f):vid_sdl.c: undefined reference to `SDL_WM_SetCaption'
vid_sdl.o(.text+0x326):vid_sdl.c: undefined reference to `SDL_GetWMInfo'
vid_sdl.o(.text+0x3b6):vid_sdl.c: undefined reference to `SDL_Linked_Version'
vid_sdl.o(.text+0x4d1):vid_sdl.c: undefined reference to `SDL_SetVideoMode'
vid_sdl.o(.text+0x502):vid_sdl.c: undefined reference to `SDL_GL_LoadLibrary'
vid_sdl.o(.text+0x555):vid_sdl.c: undefined reference to `SDL_GL_SetAttribute'
vid_sdl.o(.text+0x56c):vid_sdl.c: undefined reference to `SDL_GL_SetAttribute'
vid_sdl.o(.text+0x577):vid_sdl.c: undefined reference to `SDL_GL_SetAttribute'
vid_sdl.o(.text+0x582):vid_sdl.c: undefined reference to `SDL_GL_SetAttribute'
vid_sdl.o(.text+0x58d):vid_sdl.c: undefined reference to `SDL_GL_SetAttribute'
vid_sdl.o(.text+0x598):vid_sdl.c: more undefined references to `SDL_GL_SetAttrib                                             ute' follow
vid_sdl.o(.text+0x5b5):vid_sdl.c: undefined reference to `SDL_SetVideoMode'
vid_sdl.o(.text+0x5c6):vid_sdl.c: undefined reference to `SDL_GetError'
vid_sdl.o(.text+0x5fe):vid_sdl.c: undefined reference to `SDL_SetEventFilter'
vid_sdl.o(.text+0x60a):vid_sdl.c: undefined reference to `SDL_EnableUNICODE'
vid_sdl.o(.text+0x618):vid_sdl.c: undefined reference to `SDL_EnableKeyRepeat'
vid_sdl.o(.text+0x6b7):vid_sdl.c: undefined reference to `SDL_GL_SetAttribute'
vid_sdl.o(.text+0x6c2):vid_sdl.c: undefined reference to `SDL_GL_SetAttribute'
vid_sdl.o(.text+0x6cd):vid_sdl.c: undefined reference to `SDL_GL_SetAttribute'
vid_sdl.o(.text+0x6fb):vid_sdl.c: undefined reference to `SDL_GetError'
vid_sdl.o(.text+0x735):vid_sdl.c: undefined reference to `SDL_QuitSubSystem'
vid_sdl.o(.text+0x756):vid_sdl.c: undefined reference to `SDL_SetGammaRamp'
vid_sdl.o(.text+0x786):vid_sdl.c: undefined reference to `SDL_GetGammaRamp'
vid_sdl.o(.text+0x7c9):vid_sdl.c: undefined reference to `SDL_GetAppState'
vid_sdl.o(.text+0x6c):vid_sdl.c: undefined reference to `SDL_ShowCursor'
vid_sdl.o(.text+0x295):vid_sdl.c: undefined reference to `SDL_GL_GetProcAddress'
vid_sdl.o(.text+0x8e1):vid_sdl.c: undefined reference to `SDL_GL_SwapBuffers'
snd_sdl.o(.text+0x390):snd_sdl.c: undefined reference to `SDL_InitSubSystem'
snd_sdl.o(.text+0x453):snd_sdl.c: undefined reference to `SDL_OpenAudio'
snd_sdl.o(.text+0x462):snd_sdl.c: undefined reference to `SDL_GetError'
snd_sdl.o(.text+0x4ad):snd_sdl.c: undefined reference to `SDL_CloseAudio'
snd_sdl.o(.text+0x521):snd_sdl.c: undefined reference to `SDL_PauseAudio'
snd_sdl.o(.text+0x566):snd_sdl.c: undefined reference to `SDL_CloseAudio'
snd_sdl.o(.text+0x5e6):snd_sdl.c: undefined reference to `SDL_LockAudio'
snd_sdl.o(.text+0x605):snd_sdl.c: undefined reference to `SDL_UnlockAudio'
cd_sdl.o(.text+0x25):cd_sdl.c: undefined reference to `SDL_CDStatus'
cd_sdl.o(.text+0x5e):cd_sdl.c: undefined reference to `SDL_CDEject'
cd_sdl.o(.text+0xe7):cd_sdl.c: undefined reference to `SDL_CDStop'
cd_sdl.o(.text+0x11f):cd_sdl.c: undefined reference to `SDL_CDPlayTracks'
cd_sdl.o(.text+0x151):cd_sdl.c: undefined reference to `SDL_CDStop'
cd_sdl.o(.text+0x16d):cd_sdl.c: undefined reference to `SDL_CDStatus'
cd_sdl.o(.text+0x183):cd_sdl.c: undefined reference to `SDL_CDPause'
cd_sdl.o(.text+0x1ae):cd_sdl.c: undefined reference to `SDL_CDResume'
cd_sdl.o(.text+0x20e):cd_sdl.c: undefined reference to `SDL_CDPlayTracks'
cd_sdl.o(.text+0x267):cd_sdl.c: undefined reference to `SDL_CDStatus'
cd_sdl.o(.text+0x35c):cd_sdl.c: undefined reference to `SDL_InitSubSystem'
cd_sdl.o(.text+0x4a6):cd_sdl.c: undefined reference to `SDL_CDNumDrives'
cd_sdl.o(.text+0x4e6):cd_sdl.c: undefined reference to `SDL_CDOpen'
cd_sdl.o(.text+0x525):cd_sdl.c: undefined reference to `SDL_CDOpen'
cd_sdl.o(.text+0x555):cd_sdl.c: undefined reference to `SDL_CDOpen'
cd_sdl.o(.text+0x5ab):cd_sdl.c: undefined reference to `SDL_CDStatus'
cd_sdl.o(.text+0x5d4):cd_sdl.c: undefined reference to `SDL_CDClose'
cd_sdl.o(.text+0x5f5):cd_sdl.c: undefined reference to `SDL_CDStatus'
cd_sdl.o(.text+0x622):cd_sdl.c: undefined reference to `SDL_CDClose'
cd_sdl.o(.text+0x645):cd_sdl.c: undefined reference to `SDL_CDStatus'
cd_sdl.o(.text+0x672):cd_sdl.c: undefined reference to `SDL_CDClose'
cd_sdl.o(.text+0x6b7):cd_sdl.c: undefined reference to `SDL_CDClose'
cd_sdl.o(.text+0x756):cd_sdl.c: undefined reference to `SDL_CDNumDrives'
cd_sdl.o(.text+0x7ad):cd_sdl.c: undefined reference to `SDL_CDOpen'
cd_sdl.o(.text+0x7d5):cd_sdl.c: undefined reference to `SDL_CDStatus'
cd_sdl.o(.text+0x81b):cd_sdl.c: undefined reference to `SDL_CDClose'
c:/MinGW/bin/../lib/gcc-lib/mingw32/3.2.3/../../../libmingw32.a(main.o)(.text+0x                                             97):main.c: undefined reference to `WinMain@16'
make[3]: *** [nexuiz-sdl.exe] Error 1
make[3]: Leaving directory `/c/Downloads/Nexuiz/make/darkplaces'
make[2]: *** [bin-release] Error 2
make[2]: Leaving directory `/c/Downloads/Nexuiz/make/darkplaces'
make[1]: *** [sdl-nexuiz] Error 2
make[1]: Leaving directory `/c/Downloads/Nexuiz/make/darkplaces'
make: *** [nexuiz] Error 2

I think i have all the headers from the quake source (q1\WinQuake and q1\WinQuake\dxsdk\SDK\INC). I also copied all the headers from nexuiz/Nexuiz-SDL.app\Contents\Frameworks\SDL.framework\Versions\A\Headers to MinGW/include as there were some of them requested during make and i did not find them in the quake source. But the errors above remain. Any suggestions?
dIM
Alien
 
Posts: 160
Joined: Wed Mar 01, 2006 4:10 am
Location: DD ger

Postby esteel » Thu Jun 22, 2006 1:52 pm

Ah sorry.. I never bothered to get the sdl version to build.. the wgl (nexuiz.exe) should build though with 'make DP_MAKE_TARGET=mingw cl-nexuiz'
esteel
Site admin and forum addon
 
Posts: 3924
Joined: Wed Mar 01, 2006 8:27 am

Postby dIM » Thu Jun 22, 2006 1:55 pm

yes the nexuiz.exe did built :) . But i cant say yet, if it is faster than the precompiled or not...i think would be interesting to know.

EDIT:
I did timedemo several times on each build and the results were the same.
dIM
Alien
 
Posts: 160
Joined: Wed Mar 01, 2006 4:10 am
Location: DD ger

Postby esteel » Thu Jun 22, 2006 2:22 pm

Well the problem for R4ND0M was a crash that was fixed by compiling DP himself. I just hope we can find the cause so that future versions of Nexuiz do not crash. Having to compile something because of such an error is ugly!
As i wrote in some other thread its very unlikely that DP gets faster by compiling it with some options. It already very fast but it still seems to have problems with some cards/drivers..

Hmm can someone tell my why some edits show the line *last edited..* and some do not? :)
esteel
Site admin and forum addon
 
Posts: 3924
Joined: Wed Mar 01, 2006 8:27 am

Postby divVerent » Thu Jun 22, 2006 3:02 pm

dIM wrote:Thanks for your help esteel.
When i try to compile i get the following errors:
Code: Select all
sys_sdl.o(.text+0x127):sys_sdl.c: undefined reference to `SDL_GetTicks'


Just do "make cl-nexuiz" - then you won't need the SDL stuff.
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby R4ND0M » Thu Jun 22, 2006 3:24 pm

@dIM:

http://www.libsdl.org/release/SDL-devel ... w32.tar.gz

I used these libs (the vc 6 version of them tho) to build the nexuiz-sdl.exe. You will need to exchange the sdl.dll from the nex-dir with the one from the newer version too.

hope this helps
R4ND0M
Member
 
Posts: 28
Joined: Sun Jun 18, 2006 2:31 am

Postby divVerent » Fri Jun 23, 2006 7:59 am



Is that one still broken with respect to international keyboards or can I use it?
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby R4ND0M » Fri Jun 23, 2006 1:12 pm

I have no idea, didn't test them yet. the vc6 version from that page is running well.

For my dev-c++ installation I got a sdl version from here: http://devpaks.org/category.php?category=SDL.
R4ND0M
Member
 
Posts: 28
Joined: Sun Jun 18, 2006 2:31 am

Previous

Return to Nexuiz - Support / Bugs

Who is online

Users browsing this forum: No registered users and 1 guest

cron