Despite following directions, I'm enountering build errors.

Having trouble with LMMS? Ask about it here.
https://github.com/LMMS/lmms/wiki/Compi ... Windows%29

I followed every step on this page. I got the following error at build, but "resolved" it by removing conditionals in the source file that should've been met but for some weird reason are not.

Code: Select all



make -f plugins/LadspaEffect/swh/CMakeFiles/sifter_1210.dir/build.make plugins/LadspaEffect/swh/CMakeFiles/sifter_1210.dir/depend
make[2]: Entering directory '/home/NAMEHIDDEN/lmms/build'
cd /home/NAMEHIDDEN/lmms/build && /usr/bin/cmake.exe -E cmake_depends "Unix Makefiles" /home/NAMEHIDDEN/lmms /home/NAMEHIDDEN/lmms/plugins/LadspaEffect/swh /home/NAMEHIDDEN/lmms/build /home/NAMEHIDDEN/lmms/build/plugins/LadspaEffect/swh /home/NAMEHIDDEN/lmms/build/plugins/LadspaEffect/swh/CMakeFiles/sifter_1210.dir/DependInfo.cmake --color=
Dependee "/home/NAMEHIDDEN/lmms/build/plugins/LadspaEffect/swh/CMakeFiles/sifter_1210.dir/DependInfo.cmake" is newer than depender "/home/NAMEHIDDEN/lmms/build/plugins/LadspaEffect/swh/CMakeFiles/sifter_1210.dir/depend.internal".
Dependee "/home/NAMEHIDDEN/lmms/build/plugins/LadspaEffect/swh/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/home/NAMEHIDDEN/lmms/build/plugins/LadspaEffect/swh/CMakeFiles/sifter_1210.dir/depend.internal".
Scanning dependencies of target sifter_1210
make[2]: Leaving directory '/home/NAMEHIDDEN/lmms/build'
make -f plugins/LadspaEffect/swh/CMakeFiles/sifter_1210.dir/build.make plugins/LadspaEffect/swh/CMakeFiles/sifter_1210.dir/build
make[2]: Entering directory '/home/NAMEHIDDEN/lmms/build'
/usr/bin/cmake.exe -E cmake_progress_report /home/NAMEHIDDEN/lmms/build/CMakeFiles
[ 57%] Building C object plugins/LadspaEffect/swh/CMakeFiles/sifter_1210.dir/sifter_1210.c.obj
cd /home/NAMEHIDDEN/lmms/build/plugins/LadspaEffect/swh && /mingw64/bin/gcc  -DFFTW3 -DPLUGIN_NAME=ladspaeffect -DQT_CORE_LIB -DQT_DLL -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_XML_LIB -Dsifter_1210_EXPORTS -Wall -Werror=unused-function -Wno-sign-compare -Wno-strict-overflow -Wno-array-bounds  -O3 -DNDEBUG @CMakeFiles/sifter_1210.dir/includes_C.rsp   -D'QT_TRANSLATIONS_DIR="/mingw64/share/qt4/translations/"' -O3 -Wall -fomit-frame-pointer -fstrength-reduce -funroll-loops -ffast-math -c -fno-strict-aliasing -o CMakeFiles/sifter_1210.dir/sifter_1210.c.obj   -c /home/NAMEHIDDEN/lmms/plugins/LadspaEffect/swh/sifter_1210.c
Linking C shared module ../../ladspa/sifter_1210.dll
cd /home/NAMEHIDDEN/lmms/build/plugins/LadspaEffect/swh && /usr/bin/cmake.exe -E cmake_link_script CMakeFiles/sifter_1210.dir/link.txt --verbose=1
/usr/bin/cmake.exe -E remove -f CMakeFiles/sifter_1210.dir/objects.a
/mingw64/bin/ar.exe cr CMakeFiles/sifter_1210.dir/objects.a @CMakeFiles/sifter_1210.dir/objects1.rsp
/mingw64/bin/gcc   -Wall -Werror=unused-function -Wno-sign-compare -Wno-strict-overflow -Wno-array-bounds  -O3 -DNDEBUG  -shared -Wl,-no-undefined -Wl,-Bsymbolic -lm -shared -o ../../ladspa/sifter_1210.dll -Wl,--major-image-version,0,--minor-image-version,0 -Wl,--whole-archive CMakeFiles/sifter_1210.dir/objects.a -Wl,--no-whole-archive @CMakeFiles/sifter_1210.dir/linklibs.rsp
CMakeFiles/sifter_1210.dir/objects.a(sifter_1210.c.obj):sifter_1210.c:(.text+0xcf1): undefined reference to `q_sort'
CMakeFiles/sifter_1210.dir/objects.a(sifter_1210.c.obj):sifter_1210.c:(.text+0x1581): undefined reference to `q_sort'
CMakeFiles/sifter_1210.dir/objects.a(sifter_1210.c.obj):sifter_1210.c:(.text+0x26d2): undefined reference to `q_sort'
CMakeFiles/sifter_1210.dir/objects.a(sifter_1210.c.obj):sifter_1210.c:(.text+0x2f62): undefined reference to `q_sort'
collect2.exe: error: ld returned 1 exit status
plugins/LadspaEffect/swh/CMakeFiles/sifter_1210.dir/build.make:91: recipe for target 'plugins/ladspa/sifter_1210.dll' failed
make[2]: *** [plugins/ladspa/sifter_1210.dll] Error 1
make[2]: Leaving directory '/home/NAMEHIDDEN/lmms/build'
CMakeFiles/Makefile2:6596: recipe for target 'plugins/LadspaEffect/swh/CMakeFiles/sifter_1210.dir/all' failed
make[1]: *** [plugins/LadspaEffect/swh/CMakeFiles/sifter_1210.dir/all] Error 2
make[1]: Leaving directory '/home/NAMEHIDDEN/lmms/build'
Makefile:136: recipe for target 'all' failed
make: *** [all] Error 2
edit: ugh hang on, sorry that it's not readable. one sec.

edit 2: Apparently my machine doesn't like the whole #ifdef __CLANG__ thing. It seems that it's what I need but the make process doesn't see it and it doesn't work out, here? Idk. Removing the conditionals around the code and re-running make does the job.

New problem:

Code: Select all

[ 74%] Building CXX object plugins/GigPlayer/CMakeFiles/gigplayer.dir/moc_PatchesDialog.cxx.obj
cd /home/NAMEHIDDEN/lmms/build/plugins/GigPlayer && /mingw64/bin/g++   -DPLUGIN_NAME=gigplayer -DQT_CORE_LIB -DQT_DLL -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_XML_LIB -Dgigplayer_EXPORTS -fno-exceptions -Wall -Werror=unused-function -Wno-sign-compare -Wno-strict-overflow -Wno-array-bounds  -Wno-attributes -O3 -DNDEBUG @CMakeFiles/gigplayer.dir/includes_CXX.rsp   -D'QT_TRANSLATIONS_DIR="/mingw64/share/qt4/translations/"' -fexceptions -Wno-deprecated -o CMakeFiles/gigplayer.dir/moc_PatchesDialog.cxx.obj -c /home/NAMEHIDDEN/lmms/build/plugins/GigPlayer/moc_PatchesDialog.cxx
Linking CXX shared module ../gigplayer.dll
cd /home/NAMEHIDDEN/lmms/build/plugins/GigPlayer && /usr/bin/cmake.exe -E cmake_link_script CMakeFiles/gigplayer.dir/link.txt --verbose=1
/usr/bin/cmake.exe -E remove -f CMakeFiles/gigplayer.dir/objects.a
/mingw64/bin/ar.exe cr CMakeFiles/gigplayer.dir/objects.a @CMakeFiles/gigplayer.dir/objects1.rsp
/mingw64/bin/g++   -fno-exceptions -Wall -Werror=unused-function -Wno-sign-compare -Wno-strict-overflow -Wno-array-bounds  -Wno-attributes -O3 -DNDEBUG  -shared -o ../gigplayer.dll -Wl,--major-image-version,0,--minor-image-version,0 -Wl,--whole-archive CMakeFiles/gigplayer.dir/objects.a -Wl,--no-whole-archive @CMakeFiles/gigplayer.dir/linklibs.rsp
CMakeFiles/gigplayer.dir/objects.a(GigPlayer.cpp.obj):GigPlayer.cpp:(.text+0x9163): undefined reference to `RIFF::File::File(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2.exe: error: ld returned 1 exit status
plugins/GigPlayer/CMakeFiles/gigplayer.dir/build.make:196: recipe for target 'plugins/gigplayer.dll' failed
make[2]: *** [plugins/gigplayer.dll] Error 1
make[2]: Leaving directory '/home/NAMEHIDDEN/lmms/build'
CMakeFiles/Makefile2:7987: recipe for target 'plugins/GigPlayer/CMakeFiles/gigplayer.dir/all' failed
make[1]: *** [plugins/GigPlayer/CMakeFiles/gigplayer.dir/all] Error 2
make[1]: Leaving directory '/home/NAMEHIDDEN/lmms/build'
Makefile:136: recipe for target 'all' failed
make: *** [all] Error 2
Edit: Commented out the sub-directories of the offending Gig and also Mallets plugins and running make finally achieved 100%, except that it didn't create ANY of the .dll files that LMMS needs to run. I tried copying over some of the ones from a previous install just because I wanted to see what the new version looks like (I have no idea what I am doing) but it's still missing what seems to be new DLL files that apparently aren't generated in the source.

I'm going to guess that the Wiki entry for compiling for Windows isn't up-to-date, which means I might have to untangle my installation and try again.
circuitfry wrote:compiling for Windows isn't up-to-date
afaik no one has build lmms with all components on window, with success
But circuitfry, i can see that this is your first post, so Welcome!
And these are for you:
http://lmms.io/forum/viewtopic.php?f=1&p=15232#p15232
Turns out the DLL files I needed could be found in both my earlier version install of LMMS and the mingw64 folder, but it's not linked properly, so it gives me an error about a procedure entry point not being found in the dynamic link library. I mean it doesn't matter what plugins I turn off, the major problem is that it won't connect the application with the libraries it depends on, and without those DLLs, it won't start. I didn't skip any steps...

After deleting the source folder and going through the entire step-by-step process again, the build is now mysteriously failing at 1% completion status, this time simply reporting a failure and nothing more. Go on without me, my brethren, I doth find silent solitude in the desolate dark of time.