Compiling LMMS 0.4.13 in Ubuntu 12.04 x86_64

Having trouble with LMMS? Ask about it here.
Hi
I am having issues compiling LMMS from source, I get stuck at the "make" command, at 87% it gives me this error

Code: Select all

/usr/bin/ld: Relocatable linking with relocations from format elf64-x86-64 (/usr/lib/x86_64-linux-gnu/wine/libwinecrt0.a(exe_entry.o)) to format elf32-i386 (RemoteVstPlugin.c9kiSM.o) is not supported
winebuild: /usr/bin/ld failed with status 1
winegcc: winebuild failed
make[2]: *** [plugins/vst_base/RemoteVstPlugin] Error 2
make[1]: *** [plugins/vst_base/CMakeFiles/vstbase.dir/all] Error 2
make: *** [all] Error 2
Any ideas? :/
It looks like it's trying and failing to compile VeSTige for 32 bit while you're running a 64 bit system. I'm not sure where this problem comes from, as I ran 64 bit for quite awhile and VST's ran fine. You do need a 32 bit version if wine and VeSTige though, because most VST's have a 32 bit version available. 64 bit VST's are more rare, and usually also have 32 bit versions available.
Yea, I found a "fix" on these very forums (https://sourceforge.net/apps/phpbb/lmms ... ?f=7&t=526) but the guy used so many pronouns I had no idea what he was refering to or what to do before/after the fix! XD
Anyway, I got the lmms-vst package for 64bit sytsems and dumped the the files into the right folders as he mentioned, but it still fails to compile (which I figured, because the compiler will compile the VST support whether it is installed already or not). So I tried installing the way I usually do, from the Irie PPA (https://launchpad.net/~irie/+archive/lmms) and then doing the 64bit VST fix as mentioned in the forums post. As a test to see if it was working, I loaded up the 64bit copy of massive and to my astonishment (not really) It failed whereas the 32bit version worked fine.

The whole reason I want to compile from source/get 64bit VST support is because from what I hear 64bit VSTs in wine can be more stable. I have not tried compiling from the GIT, but I will when I get a chance.
Just attempted to compile fromt he GIT, same issue.
I've already been through this, and found a semi-fix.
Thing is, VST support has to be built as a windows lib, so it has to be built with wineg++. Problem is, wineg++ for some reason can't compile as 32-bit if the current platform is 64-bit ( http://bugs.winehq.org/show_bug.cgi?id=24402 ), and that will kill the whole compilation.

If you don't want to change anything in the VST code, uninstall wine-dev/disable compiling of VST (the setting is in one of the CMake files), and get a 32-bit precomplied version of the dll and just stick it in. I used the oneiric package from here, worked. If needed I can also upload it.

If you do want to code stuff with VST, idk. If you ever find a solution, I'd be happy to learn it.