Issue after install: error while loading shared libraries

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue after install: error while loading shared libraries

Daniel-3
I am attempting to install the latest fluidsynth from source. (Went to Github main page, clicked "Clone or download.") My machine is running debian 9.1 x86-64, with Cinnamon v3.2.7.

Per the instructions, I made a "build" folder, and ran "cmake ..", "make install", and "sudo make check" (which all passed), and all seems well:



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 10%] Built target gentables
[ 65%] Built target libfluidsynth-OBJ
[ 68%] Built target test_snprintf
[ 70%] Built target test_seq_event_queue_sort
[ 73%] Built target test_sample_validate
[ 76%] Built target test_sfont_loading
[ 78%] Built target test_ct2hz
[ 81%] Built target test_seq_scale
[ 84%] Built target test_sample_rate_change
[ 86%] Built target test_jack_obtaining_synth
[ 89%] Built target test_sample_cache
[ 92%] Built target test_pointer_alignment
[ 94%] Built target test_synth_process
[ 97%] Built target test_seqbind_unregister
[100%] Built target test_synth_chorus_reverb
Test project /home/daniel/fluidsynth/build/test
      Start  1: test_sample_cache
 1/13 Test  #1: test_sample_cache ................   Passed    0.01 sec
      Start  2: test_sfont_loading
 2/13 Test  #2: test_sfont_loading ...............   Passed    0.01 sec
      Start  3: test_sample_rate_change
 3/13 Test  #3: test_sample_rate_change ..........   Passed    0.01 sec
      Start  4: test_pointer_alignment
 4/13 Test  #4: test_pointer_alignment ...........   Passed    0.06 sec
      Start  5: test_seqbind_unregister
 5/13 Test  #5: test_seqbind_unregister ..........   Passed    0.00 sec
      Start  6: test_synth_chorus_reverb
 6/13 Test  #6: test_synth_chorus_reverb .........   Passed    0.00 sec
      Start  7: test_snprintf
 7/13 Test  #7: test_snprintf ....................   Passed    0.00 sec
      Start  8: test_synth_process
 8/13 Test  #8: test_synth_process ...............   Passed    0.00 sec
      Start  9: test_ct2hz
 9/13 Test  #9: test_ct2hz .......................   Passed    0.00 sec
      Start 10: test_sample_validate
10/13 Test #10: test_sample_validate .............   Passed    0.00 sec
      Start 11: test_seq_event_queue_sort
11/13 Test #11: test_seq_event_queue_sort ........   Passed   63.11 sec
      Start 12: test_seq_scale
12/13 Test #12: test_seq_scale ...................   Passed    0.01 sec
      Start 13: test_jack_obtaining_synth
13/13 Test #13: test_jack_obtaining_synth ........   Passed    0.00 sec

100% tests passed, 0 tests failed out of 13

Total Test time (real) =  63.24 sec
[100%] Built target check
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



When I run "fluidsynth -v", I get the following output:



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fluidsynth: error while loading shared libraries: libfluidsynth.so.2: cannot open shared object file: No such file or directory
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



I saw some suggestions, such as this one (https://github.com/FluidSynth/fluidsynth/issues/388), to run "sudo ldconfig -v", but the behavior is unchanged. Still get the shared library error.

Any other suggestions?

_______________________________________________
fluid-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/fluid-dev
Reply | Threaded
Open this post in threaded view
|

Re: Issue after install: error while loading shared libraries

fluid-dev mailing list
Since you are on Debian, can you pls. enter the the build folder again and try:

sudo make uninstall
cmake -DLIB_SUFFIX="" ..
sudo make install


Tom



_______________________________________________
fluid-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/fluid-dev
Reply | Threaded
Open this post in threaded view
|

Re: Issue after install: error while loading shared libraries

Daniel-3
Thanks for the quick response. Unfortunately, still the same output:



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build $ sudo make uninstall
[sudo] password for daniel:
Scanning dependencies of target uninstall
-- Uninstalling "/usr/local/lib64/pkgconfig/fluidsynth.pc"
-- Uninstalling "/usr/local/bin/fluidsynth"
-- Uninstalling "/usr/local/lib64/libfluidsynth.so.2.3.2"
-- Uninstalling "/usr/local/lib64/libfluidsynth.so.2"
-- File "/usr/local/lib64/libfluidsynth.so.2" does not exist.
-- Uninstalling "/usr/local/lib64/libfluidsynth.so"
-- File "/usr/local/lib64/libfluidsynth.so" does not exist.
-- Uninstalling "/usr/local/include/fluidsynth/audio.h"
-- Uninstalling "/usr/local/include/fluidsynth/event.h"
-- Uninstalling "/usr/local/include/fluidsynth/gen.h"
-- Uninstalling "/usr/local/include/fluidsynth/ladspa.h"
-- Uninstalling "/usr/local/include/fluidsynth/log.h"
-- Uninstalling "/usr/local/include/fluidsynth/midi.h"
-- Uninstalling "/usr/local/include/fluidsynth/misc.h"
-- Uninstalling "/usr/local/include/fluidsynth/mod.h"
-- Uninstalling "/usr/local/include/fluidsynth/seq.h"
-- Uninstalling "/usr/local/include/fluidsynth/seqbind.h"
-- Uninstalling "/usr/local/include/fluidsynth/settings.h"
-- Uninstalling "/usr/local/include/fluidsynth/sfont.h"
-- Uninstalling "/usr/local/include/fluidsynth/shell.h"
-- Uninstalling "/usr/local/include/fluidsynth/synth.h"
-- Uninstalling "/usr/local/include/fluidsynth/types.h"
-- Uninstalling "/usr/local/include/fluidsynth/voice.h"
-- Uninstalling "/usr/local/include/fluidsynth/version.h"
-- Uninstalling "/usr/local/include/fluidsynth.h"
-- Uninstalling "/usr/local/share/man/man1/fluidsynth.1"
Built target uninstall

build $ cmake -DLIB_SUFFIX="" ..
-- Checking whether system has ANSI C header files
-- ANSI C header files - found
-- Looking for inet_ntop
-- Looking for inet_ntop - found
-- Checking for module 'sndfile>=1.0.0'
--   Found sndfile, version 1.0.27
-- Checking for module 'sndfile>=1.0.18'
--   Found sndfile, version 1.0.27
-- Checking for module 'jack'
--   Found jack, version 0.125.0rc1
-- Checking for module 'lash-1.0>=0.3'
--   No package 'lash-1.0' found
-- Checking for module 'libsystemd'
--   No package 'libsystemd' found
-- Looking for ladspa.h
-- Looking for ladspa.h - found
-- Checking for module 'libinstpatch-1.0>=1.1.0'
--   No package 'libinstpatch-1.0' found
-- Checking for module 'sdl2'
--   No package 'sdl2' found
-- Checking for module 'readline'
--   No package 'readline' found
-- Could NOT find READLINE (missing: READLINE_INCLUDE_DIR READLINE_LIBRARIES)
-- Found OpenMP 201511
-- Looking for sinf
-- Looking for sinf - not found
-- Looking for cosf
-- Looking for cosf - not found
-- Looking for fabsf
-- Looking for fabsf - not found
-- Looking for powf
-- Looking for powf - not found
-- Looking for sqrtf
-- Looking for sqrtf - not found
-- Looking for logf
-- Looking for logf - not found
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
--
**************************************************************
Build Summary:
Build type:            RelWithDebInfo
Install Prefix:        /usr/local

Audio / MIDI driver support:
  ALSA:                  yes
  CoreAudio:             no
  CoreMIDI:              no
  DSound:                no
  JACK:                  yes
  MidiShare:             no
  Oboe:                  no
  OpenSLES:              no
  OS/2 DART:             no
  OSS:                   yes
  PortAudio:             no
  PulseAudio:            yes
  SDL2:                  no
  WaveOut:               no
  WinMidi:               no

Support for SF3 files:   yes
Support for DLS files:   no (libinstpatch not found)

Audio to file rendering: yes
  libsndfile:            yes

Miscellaneous support:
  D-Bus:                 yes
  LADSPA support:        yes
  LASH support:          no
  NETWORK Support:       yes
    IPV6 Support:        yes
  Readline:              no
  systemd:               no

Developer nerds info:
  Samples type:          double
  Multithread rendering: yes
  OpenMP 4.0:            yes
  Profiling:             no
  Debug Build:           no
  Trap on FPE (debug):   no
  Check FPE (debug):     no
  UBSan (debug):         no

**************************************************************


-- Configuring done
-- Generating done
-- Build files have been written to: /home/daniel/fluidsynth/build
build $ sudo make install
[ 15%] Built target gentables
Scanning dependencies of target libfluidsynth-OBJ
[ 16%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/drivers/fluid_alsa.c.o
[ 18%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/drivers/fluid_aufile.c.o
[ 20%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/bindings/fluid_rtkit.c.o
[ 22%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/drivers/fluid_jack.c.o
/home/daniel/fluidsynth/src/drivers/fluid_jack.c: In function ‘fluid_jack_client_register_ports’:
/home/daniel/fluidsynth/src/drivers/fluid_jack.c:504:13: warning: ‘fluid_synth_set_sample_rate’ is deprecated [-Wdeprecated-declarations]
             fluid_synth_set_sample_rate(synth, jack_srate);
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/daniel/fluidsynth/build/include/fluidsynth.h:97:0,
                 from /home/daniel/fluidsynth/src/utils/fluidsynth_priv.h:49,
                 from /home/daniel/fluidsynth/src/utils/fluid_sys.h:42,
                 from /home/daniel/fluidsynth/src/synth/fluid_synth.h:31,
                 from /home/daniel/fluidsynth/src/drivers/fluid_jack.c:31:
/home/daniel/fluidsynth/include/fluidsynth/synth.h:179:38: note: declared here
 FLUID_DEPRECATED FLUIDSYNTH_API void fluid_synth_set_sample_rate(fluid_synth_t *synth, float sample_rate);
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 24%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/drivers/fluid_oss.c.o
[ 26%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/drivers/fluid_pulse.c.o
[ 28%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/utils/fluid_conv.c.o
[ 30%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/utils/fluid_hash.c.o
[ 32%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/utils/fluid_list.c.o
[ 33%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/utils/fluid_ringbuffer.c.o
[ 35%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/utils/fluid_settings.c.o
[ 37%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/utils/fluid_sys.c.o
[ 39%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/sfloader/fluid_defsfont.c.o
[ 41%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/sfloader/fluid_sfont.c.o
[ 43%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/sfloader/fluid_sffile.c.o
[ 45%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/sfloader/fluid_samplecache.c.o
[ 47%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/rvoice/fluid_adsr_env.c.o
[ 49%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/rvoice/fluid_chorus.c.o
[ 50%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/rvoice/fluid_iir_filter.c.o
[ 52%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/rvoice/fluid_lfo.c.o
[ 54%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/rvoice/fluid_rvoice.c.o
[ 56%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/rvoice/fluid_rvoice_dsp.c.o
[ 58%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/rvoice/fluid_rvoice_event.c.o
[ 60%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/rvoice/fluid_rvoice_mixer.c.o
[ 62%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/rvoice/fluid_rev.c.o
[ 64%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/synth/fluid_chan.c.o
[ 66%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/synth/fluid_event.c.o
[ 67%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/synth/fluid_gen.c.o
[ 69%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/synth/fluid_mod.c.o
[ 71%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/synth/fluid_synth.c.o
[ 73%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/synth/fluid_synth_monopoly.c.o
[ 75%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/synth/fluid_tuning.c.o
[ 77%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/synth/fluid_voice.c.o
[ 79%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/midi/fluid_midi.c.o
[ 81%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/midi/fluid_midi_router.c.o
[ 83%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/midi/fluid_seqbind.c.o
[ 84%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/midi/fluid_seq.c.o
[ 86%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/drivers/fluid_adriver.c.o
[ 88%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/drivers/fluid_mdriver.c.o
[ 90%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/bindings/fluid_cmd.c.o
[ 92%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/bindings/fluid_filerenderer.c.o
[ 94%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/bindings/fluid_ladspa.c.o
[ 94%] Built target libfluidsynth-OBJ
[ 96%] Linking C shared library libfluidsynth.so
[ 96%] Built target libfluidsynth
Scanning dependencies of target fluidsynth
[ 98%] Building C object src/CMakeFiles/fluidsynth.dir/fluidsynth.c.o
[100%] Linking C executable fluidsynth
[100%] Built target fluidsynth
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing: /usr/local/lib64/pkgconfig/fluidsynth.pc
-- Installing: /usr/local/bin/fluidsynth
-- Set runtime path of "/usr/local/bin/fluidsynth" to ""
-- Installing: /usr/local/lib64/libfluidsynth.so.2.3.2
-- Up-to-date: /usr/local/lib64/libfluidsynth.so.2
-- Up-to-date: /usr/local/lib64/libfluidsynth.so
-- Installing: /usr/local/include/fluidsynth/audio.h
-- Installing: /usr/local/include/fluidsynth/event.h
-- Installing: /usr/local/include/fluidsynth/gen.h
-- Installing: /usr/local/include/fluidsynth/ladspa.h
-- Installing: /usr/local/include/fluidsynth/log.h
-- Installing: /usr/local/include/fluidsynth/midi.h
-- Installing: /usr/local/include/fluidsynth/misc.h
-- Installing: /usr/local/include/fluidsynth/mod.h
-- Installing: /usr/local/include/fluidsynth/seq.h
-- Installing: /usr/local/include/fluidsynth/seqbind.h
-- Installing: /usr/local/include/fluidsynth/settings.h
-- Installing: /usr/local/include/fluidsynth/sfont.h
-- Installing: /usr/local/include/fluidsynth/shell.h
-- Installing: /usr/local/include/fluidsynth/synth.h
-- Installing: /usr/local/include/fluidsynth/types.h
-- Installing: /usr/local/include/fluidsynth/voice.h
-- Installing: /usr/local/include/fluidsynth/version.h
-- Installing: /usr/local/include/fluidsynth.h
-- Installing: /usr/local/share/man/man1/fluidsynth.1

~ $ fluidsynth --version
fluidsynth: error while loading shared libraries: libfluidsynth.so.2: cannot open shared object file: No such file or directory
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


On Sun, Apr 19, 2020 at 4:42 AM Tom M. via fluid-dev <[hidden email]> wrote:
Since you are on Debian, can you pls. enter the the build folder again and try:

sudo make uninstall
cmake -DLIB_SUFFIX="" ..
sudo make install


Tom



_______________________________________________
fluid-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/fluid-dev

_______________________________________________
fluid-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/fluid-dev
Reply | Threaded
Open this post in threaded view
|

Re: Issue after install: error while loading shared libraries

fluid-dev mailing list
Seems like you need to empty the build folder before calling cmake again for the change becoming effective.

Tom



_______________________________________________
fluid-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/fluid-dev
Reply | Threaded
Open this post in threaded view
|

Re: Issue after install: error while loading shared libraries

Daniel-3
Just tried that. Left the "build" folder as-is, ran "uninstall," then emptied "build" (well, renamed it for backup and created a new "build") and ran cmake again. Same result.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build $ sudo make uninstall
[sudo] password for daniel:
-- Uninstalling "/usr/local/lib64/pkgconfig/fluidsynth.pc"
-- Uninstalling "/usr/local/bin/fluidsynth"
-- Uninstalling "/usr/local/lib64/libfluidsynth.so.2.3.2"
-- Uninstalling "/usr/local/lib64/libfluidsynth.so.2"
-- File "/usr/local/lib64/libfluidsynth.so.2" does not exist.
-- Uninstalling "/usr/local/lib64/libfluidsynth.so"
-- File "/usr/local/lib64/libfluidsynth.so" does not exist.
-- Uninstalling "/usr/local/include/fluidsynth/audio.h"
-- Uninstalling "/usr/local/include/fluidsynth/event.h"
-- Uninstalling "/usr/local/include/fluidsynth/gen.h"
-- Uninstalling "/usr/local/include/fluidsynth/ladspa.h"
-- Uninstalling "/usr/local/include/fluidsynth/log.h"
-- Uninstalling "/usr/local/include/fluidsynth/midi.h"
-- Uninstalling "/usr/local/include/fluidsynth/misc.h"
-- Uninstalling "/usr/local/include/fluidsynth/mod.h"
-- Uninstalling "/usr/local/include/fluidsynth/seq.h"
-- Uninstalling "/usr/local/include/fluidsynth/seqbind.h"
-- Uninstalling "/usr/local/include/fluidsynth/settings.h"
-- Uninstalling "/usr/local/include/fluidsynth/sfont.h"
-- Uninstalling "/usr/local/include/fluidsynth/shell.h"
-- Uninstalling "/usr/local/include/fluidsynth/synth.h"
-- Uninstalling "/usr/local/include/fluidsynth/types.h"
-- Uninstalling "/usr/local/include/fluidsynth/voice.h"
-- Uninstalling "/usr/local/include/fluidsynth/version.h"
-- Uninstalling "/usr/local/include/fluidsynth.h"
-- Uninstalling "/usr/local/share/man/man1/fluidsynth.1"
Built target uninstall
build $
build $
build $
build $ cd ..
fluidsynth $ mv build build_20200419-BACKUP
fluidsynth $ mkdir build
fluidsynth $ cd build
build $ cmake -DLIB_SUFFIX="" ..
-- The C compiler identification is GNU 6.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Checking whether system has ANSI C header files
-- Looking for 8 include files dlfcn.h, ..., float.h
-- Looking for 8 include files dlfcn.h, ..., float.h - found
-- Performing Test memchrExists
-- Performing Test memchrExists - Success
-- Performing Test freeExists
-- Performing Test freeExists - Success
-- ANSI C header files - found
-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- Looking for DIR in sys/stat.h;sys/types.h;dirent.h
-- Looking for DIR in sys/stat.h;sys/types.h;dirent.h - found
-- Looking for stdio.h
-- Looking for stdio.h - found
-- Looking for math.h
-- Looking for math.h - found
-- Looking for errno.h
-- Looking for errno.h - found
-- Looking for stdarg.h
-- Looking for stdarg.h - found
-- Looking for sys/mman.h
-- Looking for sys/mman.h - found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for fcntl.h
-- Looking for fcntl.h - found
-- Looking for sys/socket.h
-- Looking for sys/socket.h - found
-- Looking for netinet/in.h
-- Looking for netinet/in.h - found
-- Looking for netinet/tcp.h
-- Looking for netinet/tcp.h - found
-- Looking for arpa/inet.h
-- Looking for arpa/inet.h - found
-- Looking for limits.h
-- Looking for limits.h - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for signal.h
-- Looking for signal.h - found
-- Looking for getopt.h
-- Looking for getopt.h - found
-- Performing Test _have_inline
-- Performing Test _have_inline - Success
-- Performing Test _have_vla
-- Performing Test _have_vla - Success
-- Check if the system is big endian
-- Searching 16 bit integer
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Searching 16 bit integer - Using unsigned short
-- Check if the system is big endian - little endian
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Looking for inet_ntop
-- Looking for inet_ntop - found
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29")
-- Checking for modules 'glib-2.0>=2.6.5;gthread-2.0>=2.6.5'
--   Found glib-2.0, version 2.50.3
--   Found gthread-2.0, version 2.50.3
-- Checking for module 'sndfile>=1.0.0'
--   Found sndfile, version 1.0.27
-- Checking for module 'sndfile>=1.0.18'
--   Found sndfile, version 1.0.27
-- Checking for module 'libpulse-simple>=0.9.8'
--   Found libpulse-simple, version 10.0
-- Checking for module 'alsa>=0.9.1'
--   Found alsa, version 1.1.3
-- Checking for module 'jack'
--   Found jack, version 0.125.0rc1
-- Checking for module 'lash-1.0>=0.3'
--   No package 'lash-1.0' found
-- Checking for module 'libsystemd'
--   No package 'libsystemd' found
-- Checking for module 'dbus-1>=1.0.0'
--   Found dbus-1, version 1.10.28
-- Looking for ladspa.h
-- Looking for ladspa.h - found
-- Checking for module 'gmodule-2.0>=2.6.5'
--   Found gmodule-2.0, version 2.50.3
-- Checking for module 'libinstpatch-1.0>=1.1.0'
--   No package 'libinstpatch-1.0' found
-- Checking for module 'sdl2'
--   No package 'sdl2' found
-- Checking for module 'readline'
--   No package 'readline' found
-- Could NOT find READLINE (missing: READLINE_INCLUDE_DIR READLINE_LIBRARIES)
-- Found OpenMP 201511
-- Looking for sinf
-- Looking for sinf - not found
-- Looking for cosf
-- Looking for cosf - not found
-- Looking for fabsf
-- Looking for fabsf - not found
-- Looking for powf
-- Looking for powf - not found
-- Looking for sqrtf
-- Looking for sqrtf - not found
-- Looking for logf
-- Looking for logf - not found
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
--
**************************************************************
Build Summary:
Build type:            RelWithDebInfo
Install Prefix:        /usr/local

Audio / MIDI driver support:
  ALSA:                  yes
  CoreAudio:             no
  CoreMIDI:              no
  DSound:                no
  JACK:                  yes
  MidiShare:             no
  Oboe:                  no
  OpenSLES:              no
  OS/2 DART:             no
  OSS:                   yes
  PortAudio:             no
  PulseAudio:            yes
  SDL2:                  no
  WaveOut:               no
  WinMidi:               no

Support for SF3 files:   yes
Support for DLS files:   no (libinstpatch not found)

Audio to file rendering: yes
  libsndfile:            yes

Miscellaneous support:
  D-Bus:                 yes
  LADSPA support:        yes
  LASH support:          no
  NETWORK Support:       yes
    IPV6 Support:        yes
  Readline:              no
  systemd:               no

Developer nerds info:
  Samples type:          double
  Multithread rendering: yes
  OpenMP 4.0:            yes
  Profiling:             no
  Debug Build:           no
  Trap on FPE (debug):   no
  Check FPE (debug):     no
  UBSan (debug):         no

**************************************************************


-- Configuring done
-- Generating done
-- Build files have been written to: /home/daniel/fluidsynth/build
build $ sudo make install
Scanning dependencies of target gentables
[  1%] Creating directories for 'gentables'
[  3%] No download step for 'gentables'
[  5%] No patch step for 'gentables'
[  7%] No update step for 'gentables'
[  9%] Performing configure step for 'gentables'
-- The C compiler identification is GNU 6.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/daniel/fluidsynth/build/src/gentables
[ 11%] Performing build step for 'gentables'
Scanning dependencies of target make_tables
[ 25%] Building C object CMakeFiles/make_tables.dir/make_tables.c.o
[ 50%] Building C object CMakeFiles/make_tables.dir/gen_conv.c.o
[ 75%] Building C object CMakeFiles/make_tables.dir/gen_rvoice_dsp.c.o
[100%] Linking C executable make_tables.exe
[100%] Built target make_tables
[ 13%] Performing install step for 'gentables'
[ 15%] Completed 'gentables'
[ 15%] Built target gentables
Scanning dependencies of target libfluidsynth-OBJ
[ 16%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/drivers/fluid_alsa.c.o
[ 18%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/drivers/fluid_aufile.c.o
[ 20%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/bindings/fluid_rtkit.c.o
[ 22%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/drivers/fluid_jack.c.o
/home/daniel/fluidsynth/src/drivers/fluid_jack.c: In function ‘fluid_jack_client_register_ports’:
/home/daniel/fluidsynth/src/drivers/fluid_jack.c:504:13: warning: ‘fluid_synth_set_sample_rate’ is deprecated [-Wdeprecated-declarations]
             fluid_synth_set_sample_rate(synth, jack_srate);
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/daniel/fluidsynth/build/include/fluidsynth.h:97:0,
                 from /home/daniel/fluidsynth/src/utils/fluidsynth_priv.h:49,
                 from /home/daniel/fluidsynth/src/utils/fluid_sys.h:42,
                 from /home/daniel/fluidsynth/src/synth/fluid_synth.h:31,
                 from /home/daniel/fluidsynth/src/drivers/fluid_jack.c:31:
/home/daniel/fluidsynth/include/fluidsynth/synth.h:179:38: note: declared here
 FLUID_DEPRECATED FLUIDSYNTH_API void fluid_synth_set_sample_rate(fluid_synth_t *synth, float sample_rate);
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 24%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/drivers/fluid_oss.c.o
[ 26%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/drivers/fluid_pulse.c.o
[ 28%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/utils/fluid_conv.c.o
[ 30%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/utils/fluid_hash.c.o
[ 32%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/utils/fluid_list.c.o
[ 33%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/utils/fluid_ringbuffer.c.o
[ 35%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/utils/fluid_settings.c.o
[ 37%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/utils/fluid_sys.c.o
[ 39%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/sfloader/fluid_defsfont.c.o
[ 41%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/sfloader/fluid_sfont.c.o
[ 43%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/sfloader/fluid_sffile.c.o
[ 45%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/sfloader/fluid_samplecache.c.o
[ 47%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/rvoice/fluid_adsr_env.c.o
[ 49%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/rvoice/fluid_chorus.c.o
[ 50%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/rvoice/fluid_iir_filter.c.o
[ 52%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/rvoice/fluid_lfo.c.o
[ 54%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/rvoice/fluid_rvoice.c.o
[ 56%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/rvoice/fluid_rvoice_dsp.c.o
[ 58%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/rvoice/fluid_rvoice_event.c.o
[ 60%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/rvoice/fluid_rvoice_mixer.c.o
[ 62%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/rvoice/fluid_rev.c.o
[ 64%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/synth/fluid_chan.c.o
[ 66%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/synth/fluid_event.c.o
[ 67%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/synth/fluid_gen.c.o
[ 69%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/synth/fluid_mod.c.o
[ 71%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/synth/fluid_synth.c.o
[ 73%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/synth/fluid_synth_monopoly.c.o
[ 75%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/synth/fluid_tuning.c.o
[ 77%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/synth/fluid_voice.c.o
[ 79%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/midi/fluid_midi.c.o
[ 81%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/midi/fluid_midi_router.c.o
[ 83%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/midi/fluid_seqbind.c.o
[ 84%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/midi/fluid_seq.c.o
[ 86%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/drivers/fluid_adriver.c.o
[ 88%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/drivers/fluid_mdriver.c.o
[ 90%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/bindings/fluid_cmd.c.o
[ 92%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/bindings/fluid_filerenderer.c.o
[ 94%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/bindings/fluid_ladspa.c.o
[ 94%] Built target libfluidsynth-OBJ
Scanning dependencies of target libfluidsynth
[ 96%] Linking C shared library libfluidsynth.so
[ 96%] Built target libfluidsynth
Scanning dependencies of target fluidsynth
[ 98%] Building C object src/CMakeFiles/fluidsynth.dir/fluidsynth.c.o
[100%] Linking C executable fluidsynth
[100%] Built target fluidsynth
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing: /usr/local/lib/pkgconfig/fluidsynth.pc
-- Installing: /usr/local/bin/fluidsynth
-- Set runtime path of "/usr/local/bin/fluidsynth" to ""
-- Installing: /usr/local/lib/libfluidsynth.so.2.3.2
-- Installing: /usr/local/lib/libfluidsynth.so.2
-- Installing: /usr/local/lib/libfluidsynth.so
-- Installing: /usr/local/include/fluidsynth/audio.h
-- Installing: /usr/local/include/fluidsynth/event.h
-- Installing: /usr/local/include/fluidsynth/gen.h
-- Installing: /usr/local/include/fluidsynth/ladspa.h
-- Installing: /usr/local/include/fluidsynth/log.h
-- Installing: /usr/local/include/fluidsynth/midi.h
-- Installing: /usr/local/include/fluidsynth/misc.h
-- Installing: /usr/local/include/fluidsynth/mod.h
-- Installing: /usr/local/include/fluidsynth/seq.h
-- Installing: /usr/local/include/fluidsynth/seqbind.h
-- Installing: /usr/local/include/fluidsynth/settings.h
-- Installing: /usr/local/include/fluidsynth/sfont.h
-- Installing: /usr/local/include/fluidsynth/shell.h
-- Installing: /usr/local/include/fluidsynth/synth.h
-- Installing: /usr/local/include/fluidsynth/types.h
-- Installing: /usr/local/include/fluidsynth/voice.h
-- Installing: /usr/local/include/fluidsynth/version.h
-- Installing: /usr/local/include/fluidsynth.h
-- Installing: /usr/local/share/man/man1/fluidsynth.1
build $

~ $ fluidsynth --version
fluidsynth: error while loading shared libraries: libfluidsynth.so.2: cannot open shared object file: No such file or directory
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


On Sun, Apr 19, 2020 at 11:12 AM Tom M. via fluid-dev <[hidden email]> wrote:
Seems like you need to empty the build folder before calling cmake again for the change becoming effective.

Tom



_______________________________________________
fluid-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/fluid-dev

_______________________________________________
fluid-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/fluid-dev
Reply | Threaded
Open this post in threaded view
|

Re: Issue after install: error while loading shared libraries

fluid-dev mailing list
It seems that neither /usr/local/lib nor /usr/local/lib64 are part of your linker search path. This is very unusual. You can either adjust LD_LIBRARY_PATH as described here:

https://github.com/FluidSynth/fluidsynth/wiki/BuildingWithCMake#note

Or install fluidsynth's libraries to a different location, e.g.:

cmake -DLIB_INSTALL_DIR=/usr/lib64 ..


Tom



_______________________________________________
fluid-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/fluid-dev
Reply | Threaded
Open this post in threaded view
|

Re: Issue after install: error while loading shared libraries

Daniel-3
Looks like that did it! I've read that sometimes the LD_LIBRARY_PATH values aren't retained:


...so I added it to the end of my .bashrc file. After uninstalling and reinstalling fluidsynth (same instructions as before), I can now get the version:


~ $ fluidsynth --version
FluidSynth runtime version 2.1.2
Copyright (C) 2000-2020 Peter Hanappe and others.
Distributed under the LGPL license.
SoundFont(R) is a registered trademark of E-mu Systems, Inc.

FluidSynth executable version 2.1.2
Sample type=double

On Mon, Apr 20, 2020 at 8:20 AM Tom M. <[hidden email]> wrote:
It seems that neither /usr/local/lib nor /usr/local/lib64 are part of your linker search path. This is very unusual. You can either adjust LD_LIBRARY_PATH as described here:

https://github.com/FluidSynth/fluidsynth/wiki/BuildingWithCMake#note

Or install fluidsynth's libraries to a different location, e.g.:

cmake -DLIB_INSTALL_DIR=/usr/lib64 ..


Tom



_______________________________________________
fluid-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/fluid-dev