overtone/shadertone

Linux amd64 linking troubles (wrong ELF class: ELFCLASS32)

rogerallen opened this issue · 2 comments

From the forum: https://groups.google.com/forum/?fromgroups=#!topic/overtone/7bQSJUUviBw

Hi,

I'm trying to get Shadertone working, but can't! I followed the instructions on the github (https://github.com/overtone/shadertone), but was unclear on how to run the project. I read the usage section but couldn't figure it out, so I decided to try lein repl to see if that would work. It didn't because I can't even load the overtone library without it crashing (something which I tested and can safely do in a new lein project). I recorded a terminal session of this and put it here: http://pastebin.com/raw.php?i=aqKebm0p.

Am I running the project incorrectly? Is this something wrong with my computer's configuration? Any help is greatly appreciated!

-Kane


The pastebin has this clue:

*** ERROR: dlsym load err '/home/chris/shadertone/target/native/linux/x86_64/libscsynth.so: undefined symbol: load'
Found 0 LADSPA plugins
*** ERROR: dlsym load err '/home/chris/shadertone/target/native/libopenal64.so: undefined symbol: load'
*** ERROR: dlsym load err '/home/chris/shadertone/target/native/liblwjgl64.so: undefined symbol: load'
*** ERROR: dlopen '/home/chris/shadertone/target/native/liblwjgl.so' err '/home/chris/shadertone/target/native/liblwjgl.so: wrong ELF class: ELFCLASS32'

Something is up with the mixture of elf32 and elf64 libs

A workaround of renaming the 64-bit .so files and removing the 32-bit files seems to get past this issue.

Something like:

cd target/native
# overwrite the 32-bit libs with the 64-bit libs
mv liblwjgl64.so liblwjgl.so
mv libopenal64.so libopenal.so

this should work just fine now with 0.2.0-SNAPSHOT