diff --git a/src/core/sdk/IEncoder.h b/src/core/sdk/IEncoder.h index 49cc2cfa0..5b1a51a44 100644 --- a/src/core/sdk/IEncoder.h +++ b/src/core/sdk/IEncoder.h @@ -35,6 +35,7 @@ #pragma once #include "IBuffer.h" +#include namespace musik { namespace core { namespace sdk { diff --git a/src/plugins/stockencoders/CMakeLists.txt b/src/plugins/stockencoders/CMakeLists.txt index 53b0bc83c..b8eaca531 100644 --- a/src/plugins/stockencoders/CMakeLists.txt +++ b/src/plugins/stockencoders/CMakeLists.txt @@ -11,8 +11,9 @@ if (${LINK_STATICALLY} MATCHES "true") find_library(MP3LAMELIB NAMES libmp3lame.a mp3lame) find_library(OGGLIB NAMES libogg.a ogg) find_library(VORBISLIB NAMES libvorbis.a vorbis) + find_library(VORBISENCLIB NAMES libvorbisenc.a vorbisenc) find_library(VORBISFILELIB NAMES libvorbisfile.a vorbisfile) - target_link_libraries(stockencoders ${musikcube_LINK_LIBS} ${MP3LAMELIB} ${OGGLIB} ${VORBISLIB} ${VORBISFILELIB}) + target_link_libraries(stockencoders ${musikcube_LINK_LIBS} ${MP3LAMELIB} ${OGGLIB} ${VORBISLIB} ${VORBISENCLIB} ${VORBISFILELIB}) else() - target_link_libraries(stockencoders ${musikcube_LINK_LIBS} ogg vorbis vorbisfile mp3lame) + target_link_libraries(stockencoders ${musikcube_LINK_LIBS} ogg vorbis vorbisenc vorbisfile mp3lame) endif() diff --git a/src/plugins/stockencoders/LameEncoder.cpp b/src/plugins/stockencoders/LameEncoder.cpp index 26b229f79..efb9d3877 100644 --- a/src/plugins/stockencoders/LameEncoder.cpp +++ b/src/plugins/stockencoders/LameEncoder.cpp @@ -155,7 +155,7 @@ void LameEncoder::Finalize(const char* uri) { #ifdef WIN32 FILE* fp = _wfopen(utf8to16(uri).c_str(), L"r+b"); #else - FILE* fp = fopen(uri, L"a+b"); + FILE* fp = fopen(uri, "a+b"); #endif if (fp) { if (!fseek(fp, 0, SEEK_SET)) {