[r183] Can't Compile

Bugs that have been resolved.

Moderator: Graf Zahl

Locked
User avatar
Agent ME
Posts: 229
Joined: Mon Jan 02, 2006 12:39
Contact:

[r183] Can't Compile

Post by Agent ME »

When I try to build on my 64-bit ubuntu system, this is what I get:

[spoiler]

Code: Select all

[  0%] Built target lemon
[  2%] Built target re2c
[  2%] Built target updaterevision
[  3%] Built target zipdir
[  4%] Built target snes_spc
[ 21%] Built target dumb
[ 21%] Built target arithchk
[ 21%] Built target qnan
[ 31%] Built target gdtoa
[ 31%] Built target pk3
[ 31%] Generating ../../brightmaps.pk3
[ 32%] Built target brightmaps_pk3
[ 32%] Generating ../../lights.pk3
[ 32%] Built target lights_pk3
Scanning dependencies of target revision_check
src/svnrevision_gz.h is up to date at revision 183.
[ 32%] Built target revision_check
[ 32%] Building CXX object src/CMakeFiles/zdoom.dir/sdl/sdlglvideo.o
In file included from /home/chris/Desktop/gzdoom_svn/src/trunk/src/./doomtype.h:115,
                 from /home/chris/Desktop/gzdoom_svn/src/trunk/src/sdl/sdlglvideo.cpp:6:
/home/chris/Desktop/gzdoom_svn/src/trunk/src/./basictypes.h:98:7: warning: no newline at end of file
In file included from /home/chris/Desktop/gzdoom_svn/src/trunk/src/sdl/i_video.h:26,
                 from /home/chris/Desktop/gzdoom_svn/src/trunk/src/sdl/sdlglvideo.cpp:10:
/home/chris/Desktop/gzdoom_svn/src/trunk/src/./basictypes.h:98:7: warning: no newline at end of file
In file included from /home/chris/Desktop/gzdoom_svn/src/trunk/src/./textures/textures.h:4,
                 from /home/chris/Desktop/gzdoom_svn/src/trunk/src/./gl/gl_struct.h:8,
                 from /home/chris/Desktop/gzdoom_svn/src/trunk/src/sdl/sdlglvideo.cpp:20:
/home/chris/Desktop/gzdoom_svn/src/trunk/src/./basictypes.h:98:7: warning: no newline at end of file
In file included from /home/chris/Desktop/gzdoom_svn/src/trunk/src/sound/i_soundinternal.h:4,
                 from /home/chris/Desktop/gzdoom_svn/src/trunk/src/./s_sound.h:25,
                 from /home/chris/Desktop/gzdoom_svn/src/trunk/src/./actor.h:41,
                 from /home/chris/Desktop/gzdoom_svn/src/trunk/src/./r_defs.h:35,
                 from /home/chris/Desktop/gzdoom_svn/src/trunk/src/./gl/gl_intern.h:6,
                 from /home/chris/Desktop/gzdoom_svn/src/trunk/src/sdl/sdlglvideo.cpp:21:
/home/chris/Desktop/gzdoom_svn/src/trunk/src/./basictypes.h:98:7: warning: no newline at end of file
In file included from /home/chris/Desktop/gzdoom_svn/src/trunk/src/./s_sound.h:25,
                 from /home/chris/Desktop/gzdoom_svn/src/trunk/src/./actor.h:41,
                 from /home/chris/Desktop/gzdoom_svn/src/trunk/src/./r_defs.h:35,
                 from /home/chris/Desktop/gzdoom_svn/src/trunk/src/./gl/gl_intern.h:6,
                 from /home/chris/Desktop/gzdoom_svn/src/trunk/src/sdl/sdlglvideo.cpp:21:
/home/chris/Desktop/gzdoom_svn/src/trunk/src/sound/i_soundinternal.h:104:7: warning: no newline at end of file
In file included from /home/chris/Desktop/gzdoom_svn/src/trunk/src/sdl/sdlglvideo.cpp:19:
/home/chris/Desktop/gzdoom_svn/src/trunk/src/./gl/gl_functions.h:63: error: ‘subsector_t’ has not been declared
/home/chris/Desktop/gzdoom_svn/src/trunk/src/./gl/gl_functions.h:97: error: ‘FTextureID’ does not name a type
/home/chris/Desktop/gzdoom_svn/src/trunk/src/./gl/gl_functions.h:125: error: ‘angle_t’ has not been declared
/home/chris/Desktop/gzdoom_svn/src/trunk/src/./gl/gl_functions.h:133: error: ‘angle_t’ does not name a type
/home/chris/Desktop/gzdoom_svn/src/trunk/src/./gl/gl_functions.h:151: error: variable or field ‘gl_RecalcVertexHeights’ declared void
/home/chris/Desktop/gzdoom_svn/src/trunk/src/./gl/gl_functions.h:151: error: ‘vertex_t’ was not declared in this scope
/home/chris/Desktop/gzdoom_svn/src/trunk/src/./gl/gl_functions.h:151: error: ‘v’ was not declared in this scope
make[2]: *** [src/CMakeFiles/zdoom.dir/sdl/sdlglvideo.o] Error 1
make[1]: *** [src/CMakeFiles/zdoom.dir/all] Error 2
make: *** [all] Error 2
[/spoiler]
User avatar
Rachael
Developer
Developer
Posts: 3651
Joined: Sat May 13, 2006 10:30

Post by Rachael »

Hmm, looks like a missing #include to me. But since I'm not on a 64-bit Ubuntu system, I have no idea where.
Garron
Posts: 8
Joined: Sat Oct 04, 2008 14:55

Post by Garron »

I'm getting that error too (r185), but on 32-bit Linux. GCC 4.2.3

Adding #include "r_defs.h" to src/sdl/sdlglvideo.h makes it go away, but things break at the end of compiling.

Code: Select all

[100%] Building CXX object src/CMakeFiles/zdoom.dir/autozend.o
Linking CXX executable gzdoom
CMakeFiles/zdoom.dir/tempfiles.o: In function `FTempFileName::FTempFileName(char const*)':
tempfiles.cpp:(.text+0x73): warning: the use of `tempnam' is dangerous, better use `mkstemp'
CMakeFiles/zdoom.dir/sdl/sdlglvideo.o: In function `SDLGLFB::SDLGLFB(int, int, int, int, bool)':
sdlglvideo.cpp:(.text+0x973): undefined reference to `vid_renderer'
CMakeFiles/zdoom.dir/sdl/sdlglvideo.o: In function `SDLGLFB::SDLGLFB(int, int, int, int, bool)':
sdlglvideo.cpp:(.text+0xb33): undefined reference to `vid_renderer'
CMakeFiles/zdoom.dir/m_options.o: In function `M_OptInit()':
m_options.cpp:(.text+0x29): undefined reference to `gl_disabled'
CMakeFiles/zdoom.dir/m_options.o:(.data+0x15c4): undefined reference to `vid_renderer'
CMakeFiles/zdoom.dir/p_setup.o: In function `P_SpawnThings(int)':
p_setup.cpp:(.text+0x49e1): undefined reference to `T_AddSpawnedThing(AActor*)'
CMakeFiles/zdoom.dir/p_setup.o: In function `P_SetupLevel(char*, int)':
p_setup.cpp:(.text+0x7f2b): undefined reference to `T_LoadScripts(MapData*)'
p_setup.cpp:(.text+0x91fe): undefined reference to `T_AddSpawnedThing(AActor*)'
p_setup.cpp:(.text+0x9533): undefined reference to `T_PreprocessScripts()'
p_setup.cpp:(.text+0x979c): undefined reference to `T_AddSpawnedThing(AActor*)'
CMakeFiles/zdoom.dir/p_setup.o: In function `SpawnMapThing(int, FMapThing*, int)':
p_setup.cpp:(.text+0x16e8): undefined reference to `T_AddSpawnedThing(AActor*)'
CMakeFiles/zdoom.dir/p_user.o: In function `P_PlayerThink(player_t*)':
p_user.cpp:(.text+0x5a1f): undefined reference to `currentrenderer'
p_user.cpp:(.text+0x6272): undefined reference to `currentrenderer'
p_user.cpp:(.text+0x63aa): undefined reference to `currentrenderer'
p_user.cpp:(.text+0x63d2): undefined reference to `currentrenderer'
CMakeFiles/zdoom.dir/r_main.o: In function `FCanvasTextureInfo::UpdateAll()':
r_main.cpp:(.text+0xee7): undefined reference to `currentrenderer'
CMakeFiles/zdoom.dir/r_main.o:r_main.cpp:(.text+0x1385): more undefined references to `currentrenderer' follow
CMakeFiles/zdoom.dir/gl/gl_data.o: In function `gl_PreprocessLevel()':
gl_data.cpp:(.text+0xc86): undefined reference to `gl_disabled'
gl_data.cpp:(.text+0x1516): undefined reference to `currentrenderer'
CMakeFiles/zdoom.dir/gl/gl_dynlight.o: In function `gl_SetActorLights(AActor*)':
gl_dynlight.cpp:(.text+0x1227): undefined reference to `currentrenderer'
CMakeFiles/zdoom.dir/gl/gl_menu.o: In function `StartGLMenu()':
gl_menu.cpp:(.text+0x1f5): undefined reference to `gl_disabled'
CMakeFiles/zdoom.dir/gl/gl_nodes.o: In function `gl_CheckNodes(MapData*)':
gl_nodes.cpp:(.text+0x1957): undefined reference to `gl_disabled'
collect2: ld returned 1 exit status
make[2]: *** [src/gzdoom] Error 1
make[1]: *** [src/CMakeFiles/zdoom.dir/all] Error 2
make: *** [all] Error 2
User avatar
GuntherDW
Posts: 117
Joined: Sat Nov 12, 2005 1:53
Location: Belgium, Antwerp
Contact:

Post by GuntherDW »

EDIT: check http://forum.drdteam.org/viewtopic.php?p=32081#32081

i'm working on a patch, i've got it to compile at first,
but it only wanted to start in software mode, and it crashed when you tried to enter the game
now, i seem to have patched it in a more "correct" way, but when i do a "new SDLGLVideo(0)" it just bugs out with

Code: Select all

/GuntherDW/src/svn/gzdoom/src/sdl/hardware.cpp: In function ‘void I_InitGraphics()’:
/GuntherDW/src/svn/gzdoom/src/sdl/hardware.cpp:114: error: expected type-specifier before ‘SDLGLVideo’
/GuntherDW/src/svn/gzdoom/src/sdl/hardware.cpp:114: error: cannot convert ‘int*’ to ‘IVideo*’ in assignment
/GuntherDW/src/svn/gzdoom/src/sdl/hardware.cpp:114: error: expected `;' before ‘SDLGLVideo’
make[2]: *** [src/CMakeFiles/zdoom.dir/sdl/hardware.o] Error 1
i'm still busy with this it seems :p
Locked

Return to “Closed Bugs”