Difficulties in compiling some libraries

52 views
Skip to first unread message

Fabien

unread,
Nov 22, 2017, 6:19:00 PM11/22/17
to Extempore
Hi,

I tried to use compile-stdlib.sh (modified to remove the graphics stuff, which I don't need), but I am stuck with these:

sndfile.xtm gave me the couldnt find libsndfile, which I corrected to /usr/lib64/libsndfile.so. It worked, and seemed to also have solved for audio_dsp_ext.xtm.

However,

For instruments_ext.xtm, i get the error:

Bad: /home/fabien/src/extempore/libs/aot-cache/xtminstruments.so: undefined symbol: gs107
Error: could not open  dynamic library

Note that when I previously had library errors, the message was "Error: could not open <nameOfLibrary> dynamic library", however in this case there is only a blank space.

For rtmidi.xtm, I made a similar correction (precised the path /usr/lib64/librtmidi.so.2) and it seemd to work, it successfully compiled everything up to midi_callback, but then I get the error :

Compiler Error  could not bind newMidiInDevice
Error AOT-compiling libs/contrib/rtmidi.xtm

How can I correct these? (By the way, I am on a Fedora laptop)

Thanks!

Fabien

Ben Swift

unread,
Nov 23, 2017, 12:41:42 AM11/23/17
to extemp...@googlegroups.com
Hi Fabien

Firstly, that compile-stdlib.sh script is really old, and probably
doesn't work anymore (perhaps I should delete it - is anyone still using
it?).

The answer to your question is that the compile & build the deps (e.g.
libsndfile) stuff happens in CMakeLists.txt. It's currently not easy to
pick-and-choose, but I'm working on a patch (hopefully by tomorrow) to
at least allow you to build just the audio libs, just the graphics libs,
or both.

I'll let you know asap.

Cheers,
Ben

Fabien

unread,
Nov 23, 2017, 5:52:30 PM11/23/17
to Extempore
Thanks! I look forward to use the sampler again!

Ben Swift

unread,
Nov 26, 2017, 9:52:31 PM11/26/17
to extemp...@googlegroups.com
I've just pushed up a change to the CMake build file - there are now two
"external" options:

```
option(EXTERNAL_SHLIBS_AUDIO "download & build audio-related external library dependencies" ON)
option(EXTERNAL_SHLIBS_GRAPHICS "download & build graphics-related external library dependencies" ON)
```

Both are on by default, so the default hasn't changed. However, if you
e.g want to build without the graphics stuff, use:

cmake <extempore-dir> -DEXTERNAL_SHLIBS_GRAPHICS=NO && make install

Hope that helps. I'll update the docs shortly.

Cheers
Ben

Fabien

unread,
Nov 26, 2017, 11:13:16 PM11/26/17
to Extempore
Hi Ben,

There now seems to be a problem during the installation:

[ 48%] Linking CXX executable extempore
/usr/bin/ld: cannot open output file extempore: Is a directory
collect2: error: ld returned 1 exit status
CMakeFiles/extempore.dir/build.make:403: recipe for target 'extempore' failed
make[2]: *** [extempore] Error 1
CMakeFiles/Makefile2:1458: recipe for target 'CMakeFiles/extempore.dir/all' failed
make[1]: *** [CMakeFiles/extempore.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2

Could it be because I didn't uninstall extempore correctly before trying that?

Ben Swift

unread,
Nov 26, 2017, 11:35:42 PM11/26/17
to extemp...@googlegroups.com
Hmm, did you blow away your extempore/cmake-build (or whatever) directory? Cmake
doesn't handle changes too gracefully sometimes.

Cheers
Ben

Fabien <contest...@gmail.com> writes:

Ben Swift

unread,
Nov 27, 2017, 12:04:04 AM11/27/17
to extemp...@googlegroups.com
Yep, I just tried it again (from a clean build directory) with
-DEXTERNAL_SHLIBS_GRAPHICS:OFF and it worked fine.

So it passes the extremely rigorous "Works On My Machine^TM"
certification process.

But let me know how you go - happy to debug further.

Cheers
Ben

Fabien

unread,
Nov 27, 2017, 1:39:31 AM11/27/17
to Extempore
I'm happy to announce that it also passed the test on my side! However, I also built the graphic libraries, since I don't mind having them, I'm just too lazy to hunt the dependencies. It worked for everything except libgl, which still prompts a "missing dynamic library" message, but as far as I'm concerned, I don't need it.

I was a little scared at first, since every time I tried to define dsp with (dsp:set! dsp),  an infinite spawn of "Audio underflow (...)" started to fall, and the audio was slow and glitchy, but a good old reboot solved that. The sampler works! I am very, very happy.

Thanks a lot!

Fabien
Reply all
Reply to author
Forward
0 new messages