[yoshimi] Re: Compile errors on RPi2.

  • From: "Tom" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "madtom1999" for DMARC)
  • To: yoshimi@xxxxxxxxxxxxx
  • Date: Mon, 7 Mar 2016 20:48:37 +0000

On 07/03/16 16:06, Jeppe Rasmussen wrote:

Hi all.
I am a relatively new Yoshimi user. I jumped on board at 1.3.8-2, and
I'm currently running 1.3.9. What a great piece of software!! It's
really cool to see all the activity going on.
I've switched back and forth between Yoshimi and ZynAddSubFx a couple of
times in the last month, but I've settled on Yoshimi because of it's
nice implementation of CC#2, which I use with my home-grown biphonic
MIDI wind controller, the "OHMs" (Open Horn MIDI system). Sure, I can
translate the MIDI externally easily enough. In fact, my very first
synth was a home-made concoction in PureData, which also works fine as a
bare bones MIDI translator, outputting CCs through Jack. But Yoshimi
understands my horn straight out of the box, so now I can close down
Pure Data, simplify startup and free up resources by running nothing but
Yoshimi.
I'm on a Raspberry Pi 2, with Raspbian Jessie. To be more specific,
here's my "uname -a" output with kernel and such: /Linux raspberrypi
4.1.13-v7+ #826 SMP PREEMPT Fri Nov 13 20:19:03 GMT 2015 armv7l GNU/Linux/
My /proc/version file says "/gcc version 4.8.3 20140303/"
but the output of "gcc -v" looks like this: "/gcc version 4.6.3 (Debian
4.6.3-14+rpi1)/"

Anyway - I'm having some problems with "ccmake ." which I'm sort of able
fix to complete the install, but now I have problems with the UI.
My install process is as follows:
1. cd into the /src folder and run "ccmake ." Inside ccmake, hit "c" to
configure and "g" to generate and quit. This appears to go smoothly. No
error messages.
2. Run" cmake ." Also appears to work fine. Finds Jack and Alsa and all
that and generates and writes build files. No error messages.
3. Run "make" This runs up until the "12%"-mark, after "Generating
ParametersUI.cpp". Then it breaks and gives me the following error message:
/cc1plus: error: unrecognized command line option ‘-msse’/
/cc1plus: error: unrecognized command line option ‘-msse2’/
/cc1plus: error: unrecognized command line option ‘-mfpmath=sse’/
/CMakeFiles/yoshimi.dir/build.make:157: recipe for target
'CMakeFiles/yoshimi.dir/Misc/Config.cpp.o' failed/
/make[2]: *** [CMakeFiles/yoshimi.dir/Misc/Config.cpp.o] Error 1/
/CMakeFiles/Makefile2:125: recipe for target
'CMakeFiles/yoshimi.dir/all' failed/
/make[1]: *** [CMakeFiles/yoshimi.dir/all] Error 2/
/Makefile:116: recipe for target 'all' failed/
/make: *** [all] Error 2/

While I did try to find out about these missing command line options, I
wasn't really able to make much headway, until a hacky fix ocurred to
me. I simply erased /"//-msse -msse2 -mfpmath=sse"/ from the
configuration list inside ccmake.. I'm not at all sure what these do,
but they're under "BuildOptionsBasic:" so I honestly didn't think it
would work. Well it DID :D . . . . . Kind off :/
The whole install process now completes without errors, and Yoshimi is
fully functional - except with a really buggy UI. Blue lines shoot out
from the dials as I turn them, and sometimes "eat up" the whole window
or part of it, covering it in gray. If you manage to find a dial under
all the grayness and move it, it then reappears, leaving the rest of the
window still covered. This occurs in all windows that have dials (so
basically everything except the instrument bank windows and file
dialogs) When I'm playing it honestly doesn't affect me at all, but
setting up instruments really takes a healthy dose of patience as I
close and reopen windows, and blindly stab around gray windows looking
for dials.

As I mentioned, I've installed both 1.3.8-2, and now 1.3.9 and they both
show exactly the same problem on my system.
Also, I use the RPi 2 both with the official 7' touch screen, and from
my mac via ssh -X, with the same result as far as Yoshimis interface.

So, is anyone else running the latest yoshimi on an Rpi2? Care to share
your working setup?
Any suggestions are welcome.

Thanks!!
Jeppe


Well done! I'm just seeing if I can get it working on a pi zero myself (I have a 2 and a 3 too but I'm trying to see what I can squeeze out of the zero!)
Re the -msse -msse2 -mfpmath=sse" options these are processor optimisations that wont be found on the pi as they are (IIRC) intel/amd specific - you can find out your compile switches by:
less /proc/cpuinfo
I'll try building it tomorrow if I can get a few other problems out of the way.
However - at a guess you may find if you install the raspbian version of Yosh and then reinstall yours it may solve the flashing problems - on my Pi3 the raspbian version displays fine.
Tom

Yoshimi source code is available from either: 
http://sourceforge.net/projects/yoshimi
Or: https://github.com/Yoshimi/yoshimi
Our list archive is at: https://www.freelists.org/archive/yoshimi
To post, email to yoshimi@xxxxxxxxxxxxx

Other related posts: