sfztools/sfizz

Error building Arch AUR makepkg

derEremit opened this issue · 3 comments

CMake Error at plugins/editor/cmake/Vstgui.cmake:122 (target_sources):
Cannot find source file:

/usr/src/vst3sdk/vstgui4/vstgui/lib/platform/linux/cairocontext.cpp

Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm
.ccm .cxxm .c++m .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90
.f95 .f03 .hip .ispc
Call Stack (most recent call first):
plugins/editor/CMakeLists.txt:9 (include)

vst3sdk is installed but indeed missing the file:

[🔴] × sudo ls -lah /usr/src/vst3sdk/vstgui4/vstgui/lib/platform/linux/
total 216K
drwxr-xr-x 1 root root  784 15. led 21.43 .
drwxr-xr-x 1 root root  876 15. led 21.43 ..
-rw-r--r-- 1 root root 8,2K 20. lis 22.22 cairobitmap.cpp
-rw-r--r-- 1 root root 1,7K 20. lis 22.22 cairobitmap.h
-rw-r--r-- 1 root root 9,0K 20. lis 22.22 cairofont.cpp
-rw-r--r-- 1 root root 1,4K 20. lis 22.22 cairofont.h
-rw-r--r-- 1 root root 2,0K 20. lis 22.22 cairogradient.cpp
-rw-r--r-- 1 root root 1,1K 20. lis 22.22 cairogradient.h
-rw-r--r-- 1 root root  22K 20. lis 22.22 cairographicscontext.cpp
-rw-r--r-- 1 root root 3,9K 20. lis 22.22 cairographicscontext.h
-rw-r--r-- 1 root root 5,8K 20. lis 22.22 cairopath.cpp
-rw-r--r-- 1 root root 2,2K 20. lis 22.22 cairopath.h
-rw-r--r-- 1 root root 2,1K 20. lis 22.22 cairoutils.h
-rw-r--r-- 1 root root  246 20. lis 22.22 irunloop.h
-rw-r--r-- 1 root root 7,5K 20. lis 22.22 linuxfactory.cpp
-rw-r--r-- 1 root root 5,1K 20. lis 22.22 linuxfactory.h
-rw-r--r-- 1 root root  730 20. lis 22.22 linuxstring.cpp
-rw-r--r-- 1 root root  759 20. lis 22.22 linuxstring.h
-rw-r--r-- 1 root root  15K 20. lis 22.22 x11dragging.cpp
-rw-r--r-- 1 root root 2,8K 20. lis 22.22 x11dragging.h
-rw-r--r-- 1 root root 5,9K 20. lis 22.22 x11fileselector.cpp
-rw-r--r-- 1 root root  668 20. lis 22.22 x11fileselector.h
-rw-r--r-- 1 root root  23K 20. lis 22.22 x11frame.cpp
-rw-r--r-- 1 root root 2,7K 20. lis 22.22 x11frame.h
-rw-r--r-- 1 root root  17K 20. lis 22.22 x11platform.cpp
-rw-r--r-- 1 root root 2,5K 20. lis 22.22 x11platform.h
-rw-r--r-- 1 root root 1,5K 20. lis 22.22 x11timer.cpp
-rw-r--r-- 1 root root  843 20. lis 22.22 x11timer.h
-rw-r--r-- 1 root root 6,1K 20. lis 22.22 x11utils.cpp
-rw-r--r-- 1 root root 2,5K 20. lis 22.22 x11utils.h

also cairocontext is missing in vstsdk upstream
vstgui/lib/platform/linux

I could build a manual checkout ( without the makepkg )
and I think it is using a local checkout of vst3sdk

I think the makepkg just needs to set it to also not use the system version

if(SFIZZ_USE_SYSTEM_VST3SDK)
    find_package(PkgConfig REQUIRED)
    pkg_check_modules(VST3SDK "vst3sdk" REQUIRED)
    set(VSTGUI_BASEDIR "${VST3SDK_INCLUDE_DIRS}/vstgui4")
else()
    set(VSTGUI_BASEDIR "${CMAKE_CURRENT_SOURCE_DIR}/external/vstgui4")
endif()

or sfizz needs to be patched to be compatible to the vstsdk

I hope this helps someone and I am not completely wrong

I hope this helps someone and I am not completely wrong

That's correct, thank you for the detailed report, I noticed this few days ago but didn't have time to handle it yet.
Current sfizz code isn't compatible yet with latest VSTGUI, so we need to use the old bundled one as you noticed, will fix the AUR package in a few time.

Should be fixed now, please let me know.

sorry for the late reply,
it is working fine!