I’ve created a new project in VS2015 named ‘SDL-WinRT-DX-test’ based on
the C++ DX11 template, (same as previous), and gone through the WinRT docs
to step 6A and used the example main.cpp code in that so I’m getting the
app to build and show a green screen.
Then I added into the solution from C:\SDL2.0.4\SDL_mixer-6dd19d5ca940 -
HG - source\SDL_mixer-6dd19d5ca940\VisualC-WinRT\UWP_VS2015…
libogg_dynamic-UWP.vcxproj
libvorbis_dynamic-UWP.vcxproj
libvorbis_dynamic-UWP.vxcproj
SDL_mixer-UWP.vxc proj
Then all four above were added as references to SDL-WinRT-DX-test, along
with SDL2-UWP (Already selected).
Same 3 linker errors;
Error LNK1104 cannot open file 'c:\users\user\documents\visual studio
2015\Projects\SDL-WinRT-DX-test\Debug\libvorbisfile_dynamic-UWP\libvorbisfile.lib’
SDL-WinRT-DX-test c:\Users\User\documents\visual studio
2015\Projects\SDL-WinRT-DX-test\SDL-WinRT-DX-test\LINK 1
Error LNK1104 cannot open file 'c:\users\user\documents\visual studio
2015\Projects\SDL-WinRT-DX-test\Debug\libvorbis_dynamic-UWP\libvorbis.lib’
libvorbisfile_dynamic-UWP C:\SDL2.0.4\SDL_mixer-6dd19d5ca940 - HG -
source\SDL_mixer-6dd19d5ca940\VisualC-WinRT\UWP_VS2015\LINK 1
Error LNK1104 cannot open file 'c:\users\user\documents\visual studio
2015\Projects\SDL-WinRT-DX-test\Debug\libvorbis_dynamic-UWP\libvorbis.lib’
SDL2_mixer-UWP C:\SDL2.0.4\SDL_mixer-6dd19d5ca940 - HG -
source\SDL_mixer-6dd19d5ca940\VisualC-WinRT\UWP_VS2015\LINK 1
The build output text is below;
======================================================================================================
1>------ Rebuild All started: Project: libogg_dynamic-UWP, Configuration:
Debug Win32 ------
2>------ Rebuild All started: Project: SDL2-UWP, Configuration: Debug
Win32 ------
3>------ Rebuild All started: Project: SDL2_mixer-UWP, Configuration:
Debug Win32 ------
1> bitwise.c
1> framing.c
3> dynamic_flac.c
3> dynamic_fluidsynth.c
3> dynamic_mod.c
3> dynamic_mp3.c
3> dynamic_ogg.c
2> SDL_atomic.c
2> SDL_spinlock.c
2> SDL_diskaudio.c
2> SDL_dummyaudio.c
3> effects_internal.c
3> effect_position.c
3> effect_stereoreverse.c
1> Creating library c:\users\user\documents\visual studio
2015\Projects\SDL-WinRT-DX-test\Debug\libogg_dynamic-UWP\libogg.lib and
object c:\users\user\documents\visual studio
2015\Projects\SDL-WinRT-DX-test\Debug\libogg_dynamic-UWP\libogg.exp
3> fluidsynth.c
3> load_aiff.c
3> load_flac.c
2> SDL_audio.c
2> SDL_audiocvt.c
3> load_ogg.c
2> SDL_audiodev.c
3> load_voc.c
2> SDL_audiotypecvt.c
3> mixer.c
3> music.c
1> libogg_dynamic-UWP.vcxproj -> c:\users\user\documents\visual studio
2015\Projects\SDL-WinRT-DX-test\Debug\libogg_dynamic-UWP\libogg.dll
1> libogg_dynamic-UWP.vcxproj -> c:\users\user\documents\visual studio
2015\Projects\SDL-WinRT-DX-test\Debug\libogg_dynamic-UWP\libogg.pdb
(Partial PDB)
2> SDL_mixer.c
2> SDL_wave.c
4>------ Rebuild All started: Project: libvorbis_dynamic-UWP,
Configuration: Debug Win32 ------
5>------ Rebuild All started: Project: libvorbisfile_dynamic-UWP,
Configuration: Debug Win32 ------
3> music_cmd.c
3> music_flac.c
5> vorbisfile.c
2> SDL_xaudio2.c
2> SDL_windows.c
2> SDL_xinput.c
2> SDL_cpuinfo.c
2> SDL_dynapi.c
2> SDL_clipboardevents.c
2> SDL_dropevents.c
2> SDL_events.c
2> SDL_gesture.c
2> SDL_keyboard.c
2> SDL_mouse.c
3> music_mad.c
4> analysis.c
3> music_mod.c
4> bitrate.c
3> music_ogg.c
4> block.c
3> common.c
4> codebook.c
3> ctrlmode.c
4> envelope.c
3> filter.c
4> floor0.c
4> floor1.c
4> info.c
4> lookup.c
3> instrum.c
4> lpc.c
3> mix.c
4> lsp.c
3> output.c
4> mapping0.c
3> playmidi.c
4> mdct.c
3> readmidi.c
4> psy.c
3> resample.c
4> registry.c
3> sdl_a.c
4> res0.c
3> sdl_c.c
4> sharedbook.c
3> tables.c
4> smallft.c
3> timidity.c
4> synthesis.c
3> wavestream.c
4> vorbisenc.c
3>c:\sdl2.0.4\sdl_mixer-6dd19d5ca940 - hg -
source\sdl_mixer-6dd19d5ca940\wavestream.c(426): warning C4018: ‘<’:
signed/unsigned mismatch
4> window.c
3>c:\sdl2.0.4\sdl_mixer-6dd19d5ca940 - hg -
source\sdl_mixer-6dd19d5ca940\wavestream.c(436): warning C4102: ‘done’:
unreferenced label
5>LINK : fatal error LNK1104: cannot open file
’c:\users\user\documents\visual studio
2015\Projects\SDL-WinRT-DX-test\Debug\libvorbis_dynamic-UWP\libvorbis.lib’
2> SDL_quit.c
2> SDL_touch.c
2> SDL_windowevents.c
2> SDL_rwops.c
2> SDL_syshaptic.c
2> SDL_haptic.c
2> SDL_dinputhaptic.c
2> SDL_windowshaptic.c
2> SDL_xinputhaptic.c
2> SDL_sysjoystick.c
2> SDL_gamecontroller.c
2> SDL_joystick.c
3>LINK : fatal error LNK1104: cannot open file
’c:\users\user\documents\visual studio
2015\Projects\SDL-WinRT-DX-test\Debug\libvorbis_dynamic-UWP\libvorbis.lib’
2> SDL_dinputjoystick.c
4> Creating library c:\users\user\documents\visual studio
2015\Projects\SDL-WinRT-DX-test\Debug\libvorbis_dynamic-UWP\libvorbis.lib
and object c:\users\user\documents\visual studio
2015\Projects\SDL-WinRT-DX-test\Debug\libvorbis_dynamic-UWP\libvorbis.exp
2> SDL_windowsjoystick.c
2> SDL_xinputjoystick.c
2> SDL_sysloadso.c
2> SDL_power.c
2> SDL_render_d3d11.c
4> libvorbis_dynamic-UWP.vcxproj -> c:\users\user\documents\visual studio
2015\Projects\SDL-WinRT-DX-test\Debug\libvorbis_dynamic-UWP\libvorbis.dll
4> libvorbis_dynamic-UWP.vcxproj -> c:\users\user\documents\visual studio
2015\Projects\SDL-WinRT-DX-test\Debug\libvorbis_dynamic-UWP\libvorbis.pdb
(Partial PDB)
2> SDL_render_gles2.c
2> SDL_shaders_gles2.c
2> SDL_d3dmath.c
2> SDL_render.c
2> SDL_yuv_mmx.c
2> SDL_yuv_sw.c
2> SDL_blendfillrect.c
2> SDL_blendline.c
2> SDL_blendpoint.c
2> SDL_drawline.c
2> SDL_drawpoint.c
2> SDL_render_sw.c
2> SDL_rotate.c
2> SDL.c
2> SDL_assert.c
2> SDL_error.c
2> SDL_hints.c
2> SDL_log.c
2> SDL_getenv.c
2> SDL_iconv.c
2> SDL_malloc.c
2> SDL_qsort.c
2> SDL_stdlib.c
2> SDL_string.c
2> SDL_syssem.c
2> SDL_thread.c
2> SDL_timer.c
2> SDL_systimer.c
2> SDL_nullevents.c
2> SDL_nullframebuffer.c
2> SDL_nullvideo.c
2> SDL_blit.c
2> SDL_blit_0.c
2> SDL_blit_1.c
2> SDL_blit_A.c
2> SDL_blit_auto.c
2> SDL_blit_copy.c
2> SDL_blit_N.c
2> SDL_blit_slow.c
2> SDL_bmp.c
2> SDL_clipboard.c
2> SDL_egl.c
2> SDL_fillrect.c
2> SDL_pixels.c
2> SDL_rect.c
2> SDL_RLEaccel.c
2> SDL_shape.c
2> SDL_stretch.c
2> SDL_surface.c
2> SDL_video.c
2> SDL_xaudio2_winrthelpers.cpp
2> SDL_winrtapp_common.cpp
2> SDL_winrtapp_direct3d.cpp
2> SDL_winrtapp_xaml.cpp
2> SDL_sysfilesystem.cpp
2> SDL_render_winrt.cpp
2> SDL_winrtevents.cpp
2> SDL_winrtkeyboard.cpp
2> SDL_winrtmessagebox.cpp
2> SDL_winrtmouse.cpp
2> SDL_winrtopengles.cpp
2> SDL_winrtpointerinput.cpp
2> SDL_winrtvideo.cpp
2> SDL_syspower.cpp
2> SDL_syscond.cpp
2> SDL_sysmutex.cpp
2> SDL_systhread.cpp
2> Creating library c:\users\user\documents\visual studio
2015\Projects\SDL-WinRT-DX-test\Debug\SDL-UWP\SDL2.lib and object
c:\users\user\documents\visual studio
2015\Projects\SDL-WinRT-DX-test\Debug\SDL-UWP\SDL2.exp
2> SDL-UWP.vcxproj -> c:\users\user\documents\visual studio
2015\Projects\SDL-WinRT-DX-test\Debug\SDL-UWP\SDL2.dll
2> SDL-UWP.vcxproj -> c:\users\user\documents\visual studio
2015\Projects\SDL-WinRT-DX-test\Debug\SDL-UWP\SDL2.pdb (Partial PDB)
6>------ Rebuild All started: Project: SDL-WinRT-DX-test, Configuration:
Debug Win32 ------
6> SDL_winrt_main_NonXAML.cpp
6> main.cpp
6>LINK : fatal error LNK1104: cannot open file
’c:\users\user\documents\visual studio
2015\Projects\SDL-WinRT-DX-test\Debug\libvorbisfile_dynamic-UWP\libvorbisfile.lib’
========== Rebuild All: 3 succeeded, 3 failed, 0 skipped ==========
======================================================================================================
DLudwig wrote:
Can you perform a full rebuild, then send me the entire build log?
– David L.
On Apr 17, 2016, at 4:00 PM, MattRobinson <> wrote:
Quote:
All added and referenced. But more errors
6>LINK : fatal error LNK1104: cannot open file
’C:\Users\User\Documents\Visual Studio
2015\Projects\SDL-WinRT-DX11-UWP_v1\Debug\libvorbisfile_dynamic-UWP\libvorbisfile.lib’
========== Rebuild All: 3 succeeded, 3 failed, 0 skipped ==========
Error LNK1104 cannot open file 'C:\Users\User\Documents\Visual Studio
2015\Projects\SDL-WinRT-DX11-UWP_v1\Debug\libvorbisfile_dynamic-UWP\libvorbisfile.lib’
SDL-WinRT-DX11-UWP_v1 C:\Users\User\Documents\Visual Studio
2015\Projects\SDL-WinRT-DX11-UWP_v1\SDL-WinRT-DX11-UWP_v1\LINK 1
Error LNK1104 cannot open file 'C:\Users\User\Documents\Visual Studio
2015\Projects\SDL-WinRT-DX11-UWP_v1\Debug\libvorbis_dynamic-UWP\libvorbis.lib’
libvorbisfile_dynamic-UWP C:\SDL2.0.4\SDL_mixer-6dd19d5ca940 - HG -
source\SDL_mixer-6dd19d5ca940\VisualC-WinRT\UWP_VS2015\LINK 1
Error LNK1104 cannot open file 'C:\Users\User\Documents\Visual Studio
2015\Projects\SDL-WinRT-DX11-UWP_v1\Debug\libvorbis_dynamic-UWP\libvorbis.lib’
SDL2_mixer-UWP C:\SDL2.0.4\SDL_mixer-6dd19d5ca940 - HG -
source\SDL_mixer-6dd19d5ca940\VisualC-WinRT\UWP_VS2015\LINK 1
========
DLudwig wrote: There are MSVC project files for libogg, libvorbis, etc.
that are in the same directory as the SDL_mixer/UWP project file. Can you
try including those in your VS solution, make your UWP app’s project
reference them, then try rebuilding?
– David L.
From: MattRobinson
Sent: ???4/???17/???2016 1:26 PM
To:
Subject: [SDL] SDL_Mixer build into a SDL-UWP WinRT project: Linker errors.
Hi All,
I’m trying to get SDL_Mixer to build into a fully working SDL-UWP (WIP)
game project following the instructions as per the SDL UWP WinRT
documentation here >
https://hg.libsdl.org/SDL/file/tip/docs/README-winrt.md but I’m getting
linker errors.
The lowdown:
1: Right clicked the solution, added existing project, selected
SDL_mixer-UWP.vxcproj from SDL_mixer-6dd19d5ca940/VisualC-WinRT/UWP_VS2015.
-
On the UWP project, in the project tree > references > Add reference,
ticked SDL2_mixer-UWP.
-
On the UWP project Properties > C/C++ > General > Additional Include
Directories > C:\SDL2.0.4\SDL2_mixer-2.0.1\include added. Also ‘Not Using
Precompiled Headers’ set.
Build output:
Linker error 1:
Error LNK1104 cannot open file 'C:\Users\User\documents\visual studio
2015\Projects\SDL-WinRT-DX11-UWP_v1\Debug\libogg_dynamic-UWP\libogg.lib’
SDL2_mixer-UWP
I could not find libogg.lib anywhere in the SDL_mixer source, mercurial or
VC_dev directories.
Linker error 2:
Error LNK1104 cannot open file ‘C:\Users\User\documents\visual studio
2015\Projects\SDL-WinRT-DX11-UWP_v1\Debug\SDL_mixer-UWP\SDL2_mixer.lib’
Dropping a copy of SDL2_mixer.lib into 'C:\Users\User\documents\visual
studio
2015\Projects\SDL-WinRT-DX11-UWP_v1\Debug\SDL_mixer-UWP\SDL2_mixer.lib’
caused two more linker errors:
New linker error 1:
Error 0xdef00071 File C:\Users\User\documents\visual studio
2015\Projects\SDL-WinRT-DX11-UWP_v1\Debug\SDL_mixer-UWP\SDL2_mixer_UWP.pri
not found.
New linker error 2:
Error 0x80070002 Processing Resources failed with error: The system cannot
find the file specified.
Hopefully it’s something minor. Ultimately, all I need is the ability to
load compressed audio files (mp3 / ogg) for music and effects.
Thanks in advance.
SDL mailing list
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org