phoboslab / Quakespasm-Rift

Quake for Oculus Rift
GNU General Public License v2.0
141 stars 20 forks source link

Can't build from source #17

Open motorsep opened 7 years ago

motorsep commented 7 years ago

Tried building from the source following instructions, but it fails on linking stage :( (although I was doing release build, not debug build and x64 if that makes any difference)

I went over include/lib folders in the project properties but couldn't find any mention of OVR folders :/

motorsep commented 7 years ago

Bump?!!!

Khiu commented 7 years ago

You need to place your OculusSDK folder in the same folder as your repo folder. The repo folder is the one that contains README.md and same text files.

motorsep commented 7 years ago

Yep, did that - same issue.

1>------ Build started: Project: quakespasm, Configuration: Release x64 ------ 2>------ Build started: Project: quakespasm-sdl2, Configuration: Release x64 ------ 2> bgmusic.c 1>cl_parse.obj : error LNK2001: unresolved external symbol VR_SetAngles 1>gl_draw.obj : error LNK2001: unresolved external symbol vr_enabled 1>gl_rmain.obj : error LNK2001: unresolved external symbol VR_SetMatrices 1>gl_rmain.obj : error LNK2001: unresolved external symbol VR_ShowCrosshair 1>gl_rmain.obj : error LNK2001: unresolved external symbol vr_crosshair 1>gl_rmisc.obj : error LNK2001: unresolved external symbol VR_Init 1>gl_screen.obj : error LNK2001: unresolved external symbol VR_UpdateScreenContent 1>gl_screen.obj : error LNK2001: unresolved external symbol VR_Draw2D 1>gl_vidsdl.obj : error LNK2001: unresolved external symbol SDL_SetRelativeMouseMode 1>gl_vidsdl.obj : error LNK2001: unresolved external symbol VR_Disable 1>gl_vidsdl.obj : error LNK2001: unresolved external symbol VR_Enable 1>host.obj : error LNK2001: unresolved external symbol VR_Shutdown 1>view.obj : error LNK2001: unresolved external symbol VR_ResetOrientation 1>view.obj : error LNK2001: unresolved external symbol VR_AddOrientationToViewAngles 1>SDLmain.lib(SDL_win32_main.obj) : error LNK2001: unresolved external symbol __imp___iob_func 1>D:\games\Quakespasm-Rift\Windows\VisualStudio\Build-quakespasm\x64\Release\quakespasm.exe : fatal error LNK1120: 15 unresolved externals 2> gl_rmain.c 2> net_wipx.c 2> vr.c 2>....\Quake\vr.c(11): fatal error C1083: Cannot open include file: 'OVR_CAPI_GL.h': No such file or directory ========== Build: 0 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========

motorsep commented 7 years ago

Hmm.. Renamed repo folder into Quakespasm-Rift-2.1 (was Quakespasm-Rift before, as per readme) and now getting this:

1>bgmusic.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/SAFESEH' specification 1>SDLmain.lib(SDL_win32_main.obj) : warning LNK4217: locally defined symbol _fprintf imported in function _ShowError 1>cl_parse.obj : error LNK2019: unresolved external symbol _VR_SetAngles referenced in function _CL_ParseServerMessage 1>view.obj : error LNK2001: unresolved external symbol _VR_SetAngles 1>host.obj : error LNK2001: unresolved external symbol _vr_enabled 1>host_cmd.obj : error LNK2001: unresolved external symbol _vr_enabled 1>view.obj : error LNK2001: unresolved external symbol _vr_enabled 1>gl_draw.obj : error LNK2001: unresolved external symbol _vr_enabled 1>gl_rmain.obj : error LNK2001: unresolved external symbol _vr_enabled 1>gl_screen.obj : error LNK2001: unresolved external symbol _vr_enabled 1>gl_vidsdl.obj : error LNK2001: unresolved external symbol _vr_enabled 1>gl_rmain.obj : error LNK2019: unresolved external symbol _VR_ShowCrosshair referenced in function _R_DrawViewModel 1>gl_rmain.obj : error LNK2019: unresolved external symbol _VR_SetMatrices referenced in function _R_SetupGL 1>gl_rmain.obj : error LNK2001: unresolved external symbol _vr_crosshair 1>gl_rmisc.obj : error LNK2019: unresolved external symbol _VR_Init referenced in function _R_Init 1>gl_screen.obj : error LNK2019: unresolved external symbol _VR_UpdateScreenContent referenced in function _SCR_UpdateScreen 1>gl_screen.obj : error LNK2019: unresolved external symbol _VR_Draw2D referenced in function _SCR_UpdateScreenContent 1>gl_vidsdl.obj : error LNK2019: unresolved external symbol _VR_Enable referenced in function _VID_Restart 1>gl_vidsdl.obj : error LNK2019: unresolved external symbol _VR_Disable referenced in function _VID_Restart 1>gl_vidsdl.obj : error LNK2019: unresolved external symbol _SDL_SetRelativeMouseMode referenced in function _VID_Refocus 1>host.obj : error LNK2019: unresolved external symbol _VR_Shutdown referenced in function _Host_Shutdown 1>view.obj : error LNK2019: unresolved external symbol _VR_AddOrientationToViewAngles referenced in function _V_CalcIntermissionRefdef 1>view.obj : error LNK2019: unresolved external symbol _VR_ResetOrientation referenced in function _V_StartPitchDrift 1>SDLmain.lib(SDL_win32_main.obj) : error LNK2019: unresolved external symbol imp__iob_func referenced in function _ShowError 1>D:\games\Quakespasm-Rift-2.1\Windows\VisualStudio\Build-quakespasm\x86\Debug\quakespasm.exe : fatal error LNK1120: 15 unresolved externals 2> cl_main.c 2> cl_input.c 2> cl_demo.c 2> chase.c 2> cfgfile.c 2> cd_sdl.c 2>CL : warning : SDL CDAudio support disabled 2> bgmusic.c 2> Generating Code... 2>bgmusic.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/SAFESEH' specification 2> quakespasm-sdl2.vcxproj -> D:\games\Quakespasm-Rift-2.1\Windows\VisualStudio\Build-quakespasm-sdl2\x86\Debug\quakespasm-sdl2.exe 2> quakespasm-sdl2.vcxproj -> D:\games\Quakespasm-Rift-2.1\Windows\VisualStudio\Build-quakespasm-sdl2\x86\Debug\quakespasm-sdl2.pdb (Full PDB) 2> D:\games\Quakespasm-Rift-2.1\Windows\VisualStudio\..\codecs\x86\libFLAC-8.dll 2> D:\games\Quakespasm-Rift-2.1\Windows\VisualStudio\..\codecs\x86\libmad-0.dll 2> D:\games\Quakespasm-Rift-2.1\Windows\VisualStudio\..\codecs\x86\libmikmod-3.dll 2> D:\games\Quakespasm-Rift-2.1\Windows\VisualStudio\..\codecs\x86\libmodplug-1.dll 2> D:\games\Quakespasm-Rift-2.1\Windows\VisualStudio\..\codecs\x86\libmpg123-0.dll 2> D:\games\Quakespasm-Rift-2.1\Windows\VisualStudio\..\codecs\x86\libogg-0.dll 2> D:\games\Quakespasm-Rift-2.1\Windows\VisualStudio\..\codecs\x86\libopus-0.dll 2> D:\games\Quakespasm-Rift-2.1\Windows\VisualStudio\..\codecs\x86\libopusfile-0.dll 2> D:\games\Quakespasm-Rift-2.1\Windows\VisualStudio\..\codecs\x86\libvorbis-0.dll 2> D:\games\Quakespasm-Rift-2.1\Windows\VisualStudio\..\codecs\x86\libvorbisfile-3.dll 2> 10 file(s) copied. 2> D:\games\Quakespasm-Rift-2.1\Windows\VisualStudio\..\SDL2\lib\SDL2.dll 2> 1 file(s) copied. ========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========

Khiu commented 7 years ago

The only difference I can see is that you're building the 64 bit version, maybe the linking for that release hasn't been configured the same way. Try building the 32 bit version.

motorsep commented 7 years ago

Tried building 32bit. It seems that SDL2 builds fine into .exe and non-SDL build fails. I'll give SDL exe a spin and see if it runs.