Hello,
I'm having a build failure in 1.3.0 related to YoshimiLV2Plugin.cpp.o.
This is the error during make:
diego@ruidosa:~/Downloads/yoshimi/yoshimi-1.3.0/src$
diego@ruidosa:~/Downloads/yoshimi/yoshimi-1.3.0/src$ make
[ 51%] Built target yoshimi
[ 51%] Built target yoshimi_lv2_ttl
[ 52%] Building CXX object LV2_Plugin/CMakeFiles/yoshimi_lv2.dir/YoshimiLV2Plugin.cpp.o
/home/diego/Downloads/yoshimi/yoshimi-1.3.0/src/LV2_Plugin/YoshimiLV2Plugin.cpp: In member function ‘void YoshimiLV2Plugin::scanBankPrg()’:
/home/diego/Downloads/yoshimi/yoshimi-1.3.0/src/LV2_Plugin/YoshimiLV2Plugin.cpp:368:21: error: aggregate ‘YoshimiLV2Plugin::scanBankPrg()::stat st’ has incomplete type and cannot be defined
/home/diego/Downloads/yoshimi/yoshimi-1.3.0/src/LV2_Plugin/YoshimiLV2Plugin.cpp:379:38: error: ‘lstat’ was not declared in this scope
/home/diego/Downloads/yoshimi/yoshimi-1.3.0/src/LV2_Plugin/YoshimiLV2Plugin.cpp:380:36: error: ‘S_ISDIR’ was not declared in this scope
/home/diego/Downloads/yoshimi/yoshimi-1.3.0/src/LV2_Plugin/YoshimiLV2Plugin.cpp:416:39: error: ‘S_IFREG’ was not declared in this scope
/home/diego/Downloads/yoshimi/yoshimi-1.3.0/src/LV2_Plugin/YoshimiLV2Plugin.cpp:416:49: error: ‘S_IRGRP’ was not declared in this scope
/home/diego/Downloads/yoshimi/yoshimi-1.3.0/src/LV2_Plugin/YoshimiLV2Plugin.cpp:447:21: error: aggregate ‘YoshimiLV2Plugin::scanBankPrg()::stat st’ has incomplete type and cannot be defined
/home/diego/Downloads/yoshimi/yoshimi-1.3.0/src/LV2_Plugin/YoshimiLV2Plugin.cpp:466:39: error: ‘lstat’ was not declared in this scope
/home/diego/Downloads/yoshimi/yoshimi-1.3.0/src/LV2_Plugin/YoshimiLV2Plugin.cpp:467:35: error: ‘S_ISREG’ was not declared in this scope
make[2]: [LV2_Plugin/CMakeFiles/yoshimi_lv2.dir/YoshimiLV2Plugin.cpp.o] Error 1
make[1]: [LV2_Plugin/CMakeFiles/yoshimi_lv2.dir/all] Error 2
make: *** [all] Error 2
I have lv2 package 1.6.0 as cmake shows here:
diego@ruidosa:~/Downloads/yoshimi/yoshimi-1.3.0/src$ cmake .
-- Building Yoshimi version 1.3.0 for Linux
-- Found pkg-config /usr/bin/pkg-config
-- Found libz
-- Found fftw3f 3.3
-- Found mxml 2.6
-- Found Alsa 1.0.25
-- Found jack 1.9.9.5
-- Found boost headers version 104601
-- Found fontconfig 2.8.0
-- Found libcairo 1.10.2
-- Found FLTK
-- Building for Release, flags: -O3 -msse -msse2 -mfpmath=sse -ffast-math -fomit-frame-pointer
-- Default audio driver is Jack
-- Default midi driver is Alsa
-- With jack session support
-- Errors shown in console window
-- Found lv2 package 1.6.0
-- Configuring done
-- Generating done
-- Build files have been written to: /home/diego/Downloads/yoshimi/yoshimi-1.3.0/src
I've upgraded LV2 to 1.10.0 but the problem is still present.
Thank you very much for your help.
Diego
Setting
BuildLV2Plugin OFF
No problems are observed.
I've not seen this here (also using lv2 1.10.0).
I'm wondering if you've got stale files in src/LV2_Plugin/
You should only have:
CMakeLists.txt
lv2extprog.h
lv2extui.h
manifest.ttl
YoshimiLV2Plugin.cpp
YoshimiLV2Plugin.h
yoshimi.ttl
Please clear out any others and try again.
Hi there!
It seams, that your compiler don't include unistd.h and sys/stat.h when compiling lv2 plugin. Please try to apply attached patch and recompile.
How to apply:
cd yoshimi-1.3.0
patch -p1 < 0001-added-stat.h-include-to-lv2-plugin.patch
Waiting for results :)
/Andrew
Hello will & Andrew,
Now build finish OK.
I kept the files suggested by Will (deleting other files) but the problem was still present.
I applied the provided patch, and the build finish perfectly.
Thank you both for your rapid response and your help!
Great! Thanks for fast reply, Diego.
JFTR, I'm using Ubuntu 12.04 LTS with gcc 4.6.3:
diego@ruidosa:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.5 LTS
Release: 12.04
Codename: precise
diego@ruidosa:~$
diego@ruidosa:~$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.3-1ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
diego@ruidosa:~$