Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble building these on Linux - Manjaro #1

Closed
kroaton opened this issue Mar 8, 2018 · 4 comments
Closed

Trouble building these on Linux - Manjaro #1

kroaton opened this issue Mar 8, 2018 · 4 comments

Comments

@kroaton
Copy link

kroaton commented Mar 8, 2018

Hi, bit of a Linux newbie here trying his best to compile these cool externals that you've so kindly shared.

I'm running into an error that I do not know how to approach (googled a bit but thought I'd ask here before doing something stupid).

This is what I've tried after cloning the git project:

cd Mi4Pd
mkdir build
cd build
cmake ..
make

This is the terminal output


68%] Building CXX object mi/CMakeFiles/MILib.dir/elements/dsp/voice.cc.o
[ 70%] Linking CXX static library libMILib.a
[ 70%] Built target MILib
Scanning dependencies of target clds
[ 72%] Building CXX object clds/CMakeFiles/clds.dir/clds~.cpp.o
[ 73%] Linking CXX shared library "../release/lib/clds~.pd_linux"
/usr/bin/ld: ../mi/libMILib.a(granular_processor.cc.o): relocation R_X86_64_PC32 against symbol `ZN6stmlib15unsafe_bit_castIjfEET_T0' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
make[2]: *** [clds/CMakeFiles/clds.dir/build.make:96: release/lib/clds~.pd_linux] Error 1
make[1]: *** [CMakeFiles/Makefile2:141: clds/CMakeFiles/clds.dir/all] Error 2
make: *** [Makefile:84: all] Error 2


Any thoughts?

Thanks.

@TheTechnobear
Copy link
Owner

try a git pull now, should be fixed

@kroaton
Copy link
Author

kroaton commented Mar 9, 2018

Works like a charm.

Thanks! Played around with Elements and it sounds just like my module (though it might be interesting to mod the external to run at a higher sampling rate than what the actual hardware is running at, like in Rings for example)
Also, do you think that these could be compiled to work on a Raspberry Pi?

Cheers.

@TheTechnobear
Copy link
Owner

yes, they work/compile on a rPI.

running at higher sampling rate, unfortunately there are various bits of the MI code that are fixed SR, which already can cause some pitch issues when not running at 48k. I'm considering making this a compilation option, but its not a priority.
(Things like VCV rack have got around this by doing sample rate conversion, but this is too expensive to do a something like a rPI which is my primary target)

@kroaton
Copy link
Author

kroaton commented Mar 9, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants