The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
SDL_Mixer build into a SDL-UWP WinRT project: Linker errors.
MattRobinson


Joined: 07 Jun 2014
Posts: 24
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.

2) On the UWP project, in the project tree > references > Add reference, ticked SDL2_mixer-UWP.

3) 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_Mixer build into a SDL-UWP WinRT project: Linker errors.
DLudwig


Joined: 09 Feb 2012
Posts: 179
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.

2) On the UWP project, in the project tree > references > Add reference, ticked SDL2_mixer-UWP.

3) 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.
Re: SDL_Mixer build into a SDL-UWP WinRT project: Linker err
MattRobinson


Joined: 07 Jun 2014
Posts: 24
All added and referenced. But more errors Sad

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.

2) On the UWP project, in the project tree > references > Add reference, ticked SDL2_mixer-UWP.

3) 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_Mixer build into a SDL-UWP WinRT project: Linker errors.
DLudwig


Joined: 09 Feb 2012
Posts: 179
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.

2) On the UWP project, in the project tree > references > Add reference, ticked SDL2_mixer-UWP.

3) 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

Re: SDL_Mixer build into a SDL-UWP WinRT project: Linker err
MattRobinson


Joined: 07 Jun 2014
Posts: 24
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.

2) On the UWP project, in the project tree > references > Add reference, ticked SDL2_mixer-UWP.

3) 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_Mixer build into a SDL-UWP WinRT project: Linker errors.
DLudwig


Joined: 09 Feb 2012
Posts: 179
I just pushed out a possible build fix for SDL_mixer, to https://hg.libsdl.org/SDL_mixer .

Can pull + update the latest SDL_mixer sources from there, and try rebuilding?


-- David L.




On Sun, Apr 17, 2016 at 5:43 PM, MattRobinson wrote:
Quote:
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.

2) On the UWP project, in the project tree > references > Add reference, ticked SDL2_mixer-UWP.

3) 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

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Re: SDL_Mixer build into a SDL-UWP WinRT project: Linker err
MattRobinson


Joined: 07 Jun 2014
Posts: 24
Hi David,
Using the latest SDL_Mixer source (SDL_mixer-efa81a285f22) from https://hg.libsdl.org/SDL_mixer, and the stable SDL2.0.4 source from https://www.libsdl.org/download-2.0.php, more errors I'm afraid.

Build output;
===================================================================================================
1>------ Rebuild All started: Project: SDL2-UWP, Configuration: Debug Win32 ------
2>------ Rebuild All started: Project: libogg_dynamic-UWP, Configuration: Debug Win32 ------
3>------ Rebuild All started: Project: libvorbis_dynamic-UWP, Configuration: Debug Win32 ------
4>------ Rebuild All started: Project: libvorbisfile_dynamic-UWP, Configuration: Debug Win32 ------
4> vorbisfile.c
4> Creating library C:\Users\User\documents\visual studio 2015\Projects\SDL-WinRT-DX-test\Debug\libvorbisfile_dynamic-UWP\libvorbisfile.lib and object C:\Users\User\documents\visual studio 2015\Projects\SDL-WinRT-DX-test\Debug\libvorbisfile_dynamic-UWP\libvorbisfile.exp
4>vorbisfile.obj : error LNK2019: unresolved external symbol _ogg_sync_init referenced in function __ov_open1
4>vorbisfile.obj : error LNK2019: unresolved external symbol _ogg_sync_clear referenced in function _ov_clear
4>vorbisfile.obj : error LNK2019: unresolved external symbol _ogg_sync_reset referenced in function __seek_helper
4>vorbisfile.obj : error LNK2019: unresolved external symbol _ogg_sync_buffer referenced in function __get_data
4>vorbisfile.obj : error LNK2019: unresolved external symbol _ogg_sync_wrote referenced in function __get_data
4>vorbisfile.obj : error LNK2019: unresolved external symbol _ogg_sync_pageseek referenced in function __get_next_page
4>vorbisfile.obj : error LNK2019: unresolved external symbol _ogg_stream_pagein referenced in function __fetch_and_process_packet
4>vorbisfile.obj : error LNK2019: unresolved external symbol _ogg_stream_packetout referenced in function __fetch_and_process_packet
4>vorbisfile.obj : error LNK2019: unresolved external symbol _ogg_stream_packetpeek referenced in function _ov_pcm_seek
4>vorbisfile.obj : error LNK2019: unresolved external symbol _ogg_stream_init referenced in function __ov_open1
4>vorbisfile.obj : error LNK2019: unresolved external symbol _ogg_stream_clear referenced in function _ov_clear
4>vorbisfile.obj : error LNK2019: unresolved external symbol _ogg_stream_reset referenced in function _ov_raw_seek
4>vorbisfile.obj : error LNK2019: unresolved external symbol _ogg_stream_reset_serialno referenced in function __fetch_and_process_packet
4>vorbisfile.obj : error LNK2019: unresolved external symbol _ogg_page_continued referenced in function _ov_pcm_seek_page
4>vorbisfile.obj : error LNK2019: unresolved external symbol _ogg_page_bos referenced in function __fetch_and_process_packet
4>vorbisfile.obj : error LNK2019: unresolved external symbol _ogg_page_eos referenced in function _ov_raw_seek
4>vorbisfile.obj : error LNK2019: unresolved external symbol _ogg_page_granulepos referenced in function __get_prev_page_serial
4>vorbisfile.obj : error LNK2019: unresolved external symbol _ogg_page_serialno referenced in function __add_serialno
4>vorbisfile.obj : error LNK2019: unresolved external symbol _vorbis_info_init referenced in function __fetch_headers
4>vorbisfile.obj : error LNK2019: unresolved external symbol _vorbis_info_clear referenced in function __fetch_and_process_packet
4>vorbisfile.obj : error LNK2019: unresolved external symbol _vorbis_info_blocksize referenced in function __ov_64_seek_lap
4>vorbisfile.obj : error LNK2019: unresolved external symbol _vorbis_comment_init referenced in function __fetch_headers
4>vorbisfile.obj : error LNK2019: unresolved external symbol _vorbis_comment_clear referenced in function __fetch_and_process_packet
4>vorbisfile.obj : error LNK2019: unresolved external symbol _vorbis_block_init referenced in function __make_decode_ready
4>vorbisfile.obj : error LNK2019: unresolved external symbol _vorbis_block_clear referenced in function __decode_clear
4>vorbisfile.obj : error LNK2019: unresolved external symbol _vorbis_dsp_clear referenced in function __decode_clear
4>vorbisfile.obj : error LNK2019: unresolved external symbol _vorbis_synthesis_idheader referenced in function __fetch_headers
4>vorbisfile.obj : error LNK2019: unresolved external symbol _vorbis_synthesis_headerin referenced in function __fetch_headers
4>vorbisfile.obj : error LNK2019: unresolved external symbol _vorbis_synthesis_init referenced in function __make_decode_ready
4>vorbisfile.obj : error LNK2019: unresolved external symbol _vorbis_synthesis_restart referenced in function _ov_pcm_seek_page
4>vorbisfile.obj : error LNK2019: unresolved external symbol _vorbis_synthesis referenced in function __fetch_and_process_packet
4>vorbisfile.obj : error LNK2019: unresolved external symbol _vorbis_synthesis_trackonly referenced in function _ov_pcm_seek
4>vorbisfile.obj : error LNK2019: unresolved external symbol _vorbis_synthesis_blockin referenced in function __fetch_and_process_packet
4>vorbisfile.obj : error LNK2019: unresolved external symbol _vorbis_synthesis_pcmout referenced in function __fetch_and_process_packet
4>vorbisfile.obj : error LNK2019: unresolved external symbol _vorbis_synthesis_lapout referenced in function __ov_64_seek_lap
4>vorbisfile.obj : error LNK2019: unresolved external symbol _vorbis_synthesis_read referenced in function __ov_getlap
4>vorbisfile.obj : error LNK2019: unresolved external symbol _vorbis_packet_blocksize referenced in function __initial_pcmoffset
4>vorbisfile.obj : error LNK2019: unresolved external symbol _vorbis_synthesis_halfrate referenced in function _ov_halfrate
4>vorbisfile.obj : error LNK2019: unresolved external symbol _vorbis_synthesis_halfrate_p referenced in function __fetch_and_process_packet
4>vorbisfile.obj : error LNK2019: unresolved external symbol _vorbis_window referenced in function __ov_64_seek_lap
4>C:\Users\User\documents\visual studio 2015\Projects\SDL-WinRT-DX-test\Debug\libvorbisfile_dynamic-UWP\libvorbisfile.dll : fatal error LNK1120: 40 unresolved externals
5>------ Rebuild All started: Project: SDL2_mixer-UWP, Configuration: Debug Win32 ------
1> SDL_atomic.c
2> bitwise.c
3> analysis.c
1> SDL_spinlock.c
2> framing.c
2> 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
2> libogg_dynamic-UWP.vcxproj -> C:\Users\User\documents\visual studio 2015\Projects\SDL-WinRT-DX-test\Debug\libogg_dynamic-UWP\libogg.dll
2> libogg_dynamic-UWP.vcxproj -> C:\Users\User\documents\visual studio 2015\Projects\SDL-WinRT-DX-test\Debug\libogg_dynamic-UWP\libogg.pdb (Partial PDB)
5> dynamic_flac.c
5> dynamic_fluidsynth.c
5> dynamic_mod.c
5> dynamic_mp3.c
5> dynamic_ogg.c
5> effects_internal.c
5> effect_position.c
5> effect_stereoreverse.c
5>c:\sdl2.0.4\sdl_mixer-efa81a285f22\dynamic_ogg.c(24): fatal error C1083: Cannot open include file: 'SDL_loadso.h': No such file or directory
5> fluidsynth.c
5> load_aiff.c
5>c:\sdl2.0.4\sdl_mixer-efa81a285f22\sdl_mixer.h(27): fatal error C1083: Cannot open include file: 'SDL_stdinc.h': No such file or directory (compiling source file ..\..\effects_internal.c)
5>c:\sdl2.0.4\sdl_mixer-efa81a285f22\effect_stereoreverse.c(32): fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory
5> load_flac.c
5> load_ogg.c
5>c:\sdl2.0.4\sdl_mixer-efa81a285f22\load_aiff.c(36): fatal error C1083: Cannot open include file: 'SDL_endian.h': No such file or directory
5> load_voc.c
5>c:\sdl2.0.4\sdl_mixer-efa81a285f22\effect_position.c(33): fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory
5> mixer.c
5> music.c
5>c:\sdl2.0.4\sdl_mixer-efa81a285f22\load_ogg.c(33): fatal error C1083: Cannot open include file: 'SDL_mutex.h': No such file or directory
5>c:\sdl2.0.4\sdl_mixer-efa81a285f22\music.c(2Cool: fatal error C1083: Cannot open include file: 'SDL_endian.h': No such file or directory
5> music_cmd.c
5> music_flac.c
5>c:\sdl2.0.4\sdl_mixer-efa81a285f22\load_voc.c(3Cool: fatal error C1083: Cannot open include file: 'SDL_mutex.h': No such file or directory
5> music_mad.c
5>c:\sdl2.0.4\sdl_mixer-efa81a285f22\mixer.c(2Cool: fatal error C1083: Cannot open include file: 'SDL_mutex.h': No such file or directory
5> music_mod.c
5>c:\sdl2.0.4\sdl_mixer-efa81a285f22\music_cmd.c(21): fatal error C1083: Cannot open include file: 'SDL_config.h': No such file or directory
5> music_ogg.c
5> common.c
5> ctrlmode.c
5> filter.c
5>c:\sdl2.0.4\sdl_mixer-efa81a285f22\timidity\config.h(11): fatal error C1083: Cannot open include file: 'SDL_config.h': No such file or directory (compiling source file ..\..\timidity\ctrlmode.c)
5> instrum.c
5>c:\sdl2.0.4\sdl_mixer-efa81a285f22\sdl_mixer.h(27): fatal error C1083: Cannot open include file: 'SDL_stdinc.h': No such file or directory (compiling source file ..\..\music_ogg.c)
5> mix.c
5>c:\sdl2.0.4\sdl_mixer-efa81a285f22\timidity\config.h(11): fatal error C1083: Cannot open include file: 'SDL_config.h': No such file or directory (compiling source file ..\..\timidity\common.c)
5> output.c
5>c:\sdl2.0.4\sdl_mixer-efa81a285f22\timidity\config.h(11): fatal error C1083: Cannot open include file: 'SDL_config.h': No such file or directory (compiling source file ..\..\timidity\output.c)
5>c:\sdl2.0.4\sdl_mixer-efa81a285f22\timidity\config.h(11): fatal error C1083: Cannot open include file: 'SDL_config.h': No such file or directory (compiling source file ..\..\timidity\filter.c)
5> playmidi.c
5> readmidi.c
5>c:\sdl2.0.4\sdl_mixer-efa81a285f22\timidity\config.h(11): fatal error C1083: Cannot open include file: 'SDL_config.h': No such file or directory (compiling source file ..\..\timidity\instrum.c)
5> resample.c
5>c:\sdl2.0.4\sdl_mixer-efa81a285f22\timidity\config.h(11): fatal error C1083: Cannot open include file: 'SDL_config.h': No such file or directory (compiling source file ..\..\timidity\mix.c)
5> sdl_a.c
5>c:\sdl2.0.4\sdl_mixer-efa81a285f22\timidity\config.h(11): fatal error C1083: Cannot open include file: 'SDL_config.h': No such file or directory (compiling source file ..\..\timidity\sdl_a.c)
5> sdl_c.c
5>c:\sdl2.0.4\sdl_mixer-efa81a285f22\timidity\playmidi.c(13): fatal error C1083: Cannot open include file: 'SDL_rwops.h': No such file or directory
5> tables.c
5>c:\sdl2.0.4\sdl_mixer-efa81a285f22\timidity\readmidi.c(14): fatal error C1083: Cannot open include file: 'SDL_rwops.h': No such file or directory
5> timidity.c
5>c:\sdl2.0.4\sdl_mixer-efa81a285f22\timidity\config.h(11): fatal error C1083: Cannot open include file: 'SDL_config.h': No such file or directory (compiling source file ..\..\timidity\resample.c)
5> wavestream.c
5>c:\sdl2.0.4\sdl_mixer-efa81a285f22\wavestream.c(29): fatal error C1083: Cannot open include file: 'SDL_audio.h': No such file or directory
5>c:\sdl2.0.4\sdl_mixer-efa81a285f22\timidity\config.h(11): fatal error C1083: Cannot open include file: 'SDL_config.h': No such file or directory (compiling source file ..\..\timidity\sdl_c.c)
5>c:\sdl2.0.4\sdl_mixer-efa81a285f22\timidity\config.h(11): fatal error C1083: Cannot open include file: 'SDL_config.h': No such file or directory (compiling source file ..\..\timidity\tables.c)
5>c:\sdl2.0.4\sdl_mixer-efa81a285f22\timidity\timidity.c(13): fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory
3> bitrate.c
1> SDL_diskaudio.c
3> block.c
3> codebook.c
3> envelope.c
3> floor0.c
3> floor1.c
3> info.c
3> lookup.c
3> lpc.c
3> lsp.c
3> mapping0.c
3> mdct.c
3> psy.c
3> registry.c
3> res0.c
3> sharedbook.c
3> smallft.c
3> synthesis.c
3> vorbisenc.c
3> window.c
3> 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
3>analysis.obj : error LNK2019: unresolved external symbol _oggpack_reset referenced in function _vorbis_analysis
3>info.obj : error LNK2001: unresolved external symbol _oggpack_reset
3>analysis.obj : error LNK2019: unresolved external symbol _oggpack_bytes referenced in function _vorbis_analysis
3>bitrate.obj : error LNK2001: unresolved external symbol _oggpack_bytes
3>codebook.obj : error LNK2001: unresolved external symbol _oggpack_bytes
3>info.obj : error LNK2001: unresolved external symbol _oggpack_bytes
3>analysis.obj : error LNK2019: unresolved external symbol _oggpack_get_buffer referenced in function _vorbis_analysis
3>bitrate.obj : error LNK2001: unresolved external symbol _oggpack_get_buffer
3>bitrate.obj : error LNK2019: unresolved external symbol _oggpack_writetrunc referenced in function _vorbis_bitrate_addblock
3>mapping0.obj : error LNK2001: unresolved external symbol _oggpack_write
3>res0.obj : error LNK2001: unresolved external symbol _oggpack_write
3>bitrate.obj : error LNK2001: unresolved external symbol _oggpack_write
3>codebook.obj : error LNK2001: unresolved external symbol _oggpack_write
3>floor1.obj : error LNK2001: unresolved external symbol _oggpack_write
3>info.obj : error LNK2001: unresolved external symbol _oggpack_write
3>block.obj : error LNK2019: unresolved external symbol _oggpack_writeinit referenced in function _vorbis_block_init
3>info.obj : error LNK2001: unresolved external symbol _oggpack_writeinit
3>block.obj : error LNK2019: unresolved external symbol _oggpack_writeclear referenced in function _vorbis_block_clear
3>info.obj : error LNK2001: unresolved external symbol _oggpack_writeclear
3>codebook.obj : error LNK2019: unresolved external symbol _oggpack_look referenced in function _decode_packed_entry_number
3>codebook.obj : error LNK2019: unresolved external symbol _oggpack_adv referenced in function _decode_packed_entry_number
3>mapping0.obj : error LNK2019: unresolved external symbol _oggpack_read referenced in function _mapping0_forward
3>res0.obj : error LNK2001: unresolved external symbol _oggpack_read
3>synthesis.obj : error LNK2001: unresolved external symbol _oggpack_read
3>codebook.obj : error LNK2001: unresolved external symbol _oggpack_read
3>floor0.obj : error LNK2001: unresolved external symbol _oggpack_read
3>floor1.obj : error LNK2001: unresolved external symbol _oggpack_read
3>info.obj : error LNK2001: unresolved external symbol _oggpack_read
3>info.obj : error LNK2019: unresolved external symbol _oggpack_readinit referenced in function _vorbis_synthesis_headerin
3>synthesis.obj : error LNK2001: unresolved external symbol _oggpack_readinit
3>C:\Users\User\documents\visual studio 2015\Projects\SDL-WinRT-DX-test\Debug\libvorbis_dynamic-UWP\libvorbis.dll : fatal error LNK1120: 11 unresolved externals
1> SDL_dummyaudio.c
1> SDL_audio.c
1> SDL_audiocvt.c
1> SDL_audiodev.c
1> SDL_audiotypecvt.c
1> SDL_mixer.c
1> SDL_wave.c
1> SDL_xaudio2.c
1> SDL_windows.c
1> SDL_xinput.c
1> SDL_cpuinfo.c
1> SDL_dynapi.c
1> SDL_clipboardevents.c
1> SDL_dropevents.c
1> SDL_events.c
1> SDL_gesture.c
1> SDL_keyboard.c
1> SDL_mouse.c
1> SDL_quit.c
1> SDL_touch.c
1> SDL_windowevents.c
1> SDL_rwops.c
1> SDL_syshaptic.c
1> SDL_haptic.c
1> SDL_dinputhaptic.c
1> SDL_windowshaptic.c
1> SDL_xinputhaptic.c
1> SDL_sysjoystick.c
1> SDL_gamecontroller.c
1> SDL_joystick.c
1> SDL_dinputjoystick.c
1> SDL_windowsjoystick.c
1> SDL_xinputjoystick.c
1> SDL_sysloadso.c
1> SDL_power.c
1> SDL_render_d3d11.c
1> SDL_render_gles2.c
1> SDL_shaders_gles2.c
1> SDL_d3dmath.c
1> SDL_render.c
1> SDL_yuv_mmx.c
1> SDL_yuv_sw.c
1> SDL_blendfillrect.c
1> SDL_blendline.c
1> SDL_blendpoint.c
1> SDL_drawline.c
1> SDL_drawpoint.c
1> SDL_render_sw.c
1> SDL_rotate.c
1> SDL.c
1> SDL_assert.c
1> SDL_error.c
1> SDL_hints.c
1> SDL_log.c
1> SDL_getenv.c
1> SDL_iconv.c
1> SDL_malloc.c
1> SDL_qsort.c
1> SDL_stdlib.c
1> SDL_string.c
1> SDL_syssem.c
1> SDL_thread.c
1> SDL_timer.c
1> SDL_systimer.c
1> SDL_nullevents.c
1> SDL_nullframebuffer.c
1> SDL_nullvideo.c
1> SDL_blit.c
1> SDL_blit_0.c
1> SDL_blit_1.c
1> SDL_blit_A.c
1> SDL_blit_auto.c
1> SDL_blit_copy.c
1> SDL_blit_N.c
1> SDL_blit_slow.c
1> SDL_bmp.c
1> SDL_clipboard.c
1> SDL_egl.c
1> SDL_fillrect.c
1> SDL_pixels.c
1> SDL_rect.c
1> SDL_RLEaccel.c
1> SDL_shape.c
1> SDL_stretch.c
1> SDL_surface.c
1> SDL_video.c
1> SDL_xaudio2_winrthelpers.cpp
1> SDL_winrtapp_common.cpp
1> SDL_winrtapp_direct3d.cpp
1> SDL_winrtapp_xaml.cpp
1> SDL_sysfilesystem.cpp
1> SDL_render_winrt.cpp
1> SDL_winrtevents.cpp
1> SDL_winrtkeyboard.cpp
1> SDL_winrtmessagebox.cpp
1> SDL_winrtmouse.cpp
1> SDL_winrtopengles.cpp
1> SDL_winrtpointerinput.cpp
1> SDL_winrtvideo.cpp
1> SDL_syspower.cpp
1> SDL_syscond.cpp
1> SDL_sysmutex.cpp
1> SDL_systhread.cpp
1> 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
1> SDL-UWP.vcxproj -> C:\Users\User\documents\visual studio 2015\Projects\SDL-WinRT-DX-test\Debug\SDL-UWP\SDL2.dll
1> 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> SDL-WinRT-DX-test.vcxproj -> C:\Users\User\documents\visual studio 2015\Projects\SDL-WinRT-DX-test\Debug\SDL-WinRT-DX-test\SDL-WinRT-DX-test.exe
6> SDL-WinRT-DX-test.vcxproj -> C:\Users\User\documents\visual studio 2015\Projects\SDL-WinRT-DX-test\Debug\SDL-WinRT-DX-test\SDL-WinRT-DX-test.pdb (Partial PDB)
6>MakePri : error 0x80070002: Processing Resources failed with error: The system cannot find the file specified.
6>MakePRI : error 0xdef00071: File C:\Users\User\documents\visual studio 2015\Projects\SDL-WinRT-DX-test\Debug\SDL_mixer-UWP\SDL2_mixer_UWP.pri not found.
========== Rebuild All: 2 succeeded, 4 failed, 0 skipped ==========

===================================================================================================



DLudwig wrote:
I just pushed out a possible build fix for SDL_mixer, to https://hg.libsdl.org/SDL_mixer .

Can pull + update the latest SDL_mixer sources from there, and try rebuilding?


-- David L.
[/quote]
Re: SDL_Mixer build into a SDL-UWP WinRT project: Linker err
DLudwig


Joined: 09 Feb 2012
Posts: 179
MattRobinson wrote:
Hi David,
Using the latest SDL_Mixer source (SDL_mixer-efa81a285f22) from https://hg.libsdl.org/SDL_mixer, and the stable SDL2.0.4 source from https://www.libsdl.org/download-2.0.php, more errors I'm afraid.


I'm wondering if the fix I applied last night, which changed libvorbisfile's VS ProjectGuid, might've confused the build system on some level(s).

Can you try the following?

1. performing a Clean on the VS Solution
2. closing VS
3. manually deleting the build-output and build-intermediate directories
4. reopening the VS Solution
5. rebuilding

If you like, I can also try building on my end. If you send me a .zip of source code, optionally with game-assets and game-specific-code removed, I can give it a shot.

-- David L.
Re: SDL_Mixer build into a SDL-UWP WinRT project: Linker err
MattRobinson


Joined: 07 Jun 2014
Posts: 24
I tried your suggestions but to no avail. Do you think it matters that I'm developing on Win10 build 10240? (Used Winver to confirm).

Also, this is the Target and Minimum version I choose when I creating these SDL-UWP test projects.

For now I'll try some ideas out and get back to you. :-)

DLudwig wrote:
MattRobinson wrote:
Hi David,
Using the latest SDL_Mixer source (SDL_mixer-efa81a285f22) from https://hg.libsdl.org/SDL_mixer, and the stable SDL2.0.4 source from https://www.libsdl.org/download-2.0.php, more errors I'm afraid.


I'm wondering if the fix I applied last night, which changed libvorbisfile's VS ProjectGuid, might've confused the build system on some level(s).

Can you try the following?

1. performing a Clean on the VS Solution
2. closing VS
3. manually deleting the build-output and build-intermediate directories
4. reopening the VS Solution
5. rebuilding

If you like, I can also try building on my end. If you send me a .zip of source code, optionally with game-assets and game-specific-code removed, I can give it a shot.

-- David L.
Re: SDL_Mixer build into a SDL-UWP WinRT project: Linker err
DLudwig


Joined: 09 Feb 2012
Posts: 179
MattRobinson wrote:
I tried your suggestions but to no avail. Do you think it matters that I'm developing on Win10 build 10240? (Used Winver to confirm).


That should be fine. SDL and SDL_mixer's MSVC project files both set their Target and Minimum versions to Win10 build 10240.

-- David L.