[Csnd] Building Csound - libsndfile problems
Date | 2020-04-26 19:06 |
From | Rhys Mayes |
Subject | [Csnd] Building Csound - libsndfile problems |
Hi everyone, I'm running Void Linux on a PowerMac G4, and have been having problems trying to build Csound. I've done this successfully once or twice on this machine before, so I don't know why I'm having problems now. When running cmake, I get told I require the sndfile library, but I already have libsndfile installed and can see it in /lib. Also, I'm having to build it again as for some reason when I csound -z I don't have any of the serial opcodes or OSC opcodes, so any help regarding that would also be really appreciated! This happens when installing from the void linux ports repo, and also from the ubuntu ports repo on my iMac G3 running Ubuntu, so I'm surely doing something wrong here. Cheers, Rhys. Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2020-04-26 20:27 |
From | john |
Subject | Re: [Csnd] Building Csound - libsndfile problems |
OSC requires liblo library, at least for listening. I woud expect libsndfle to be in /usr/li or /usr/lib64. can you ompilea simple program that ses libsndfile? It wod elp to see error messages etc. On Sun, 26 Apr 2020, Rhys Mayes wrote: > Hi everyone, > > I'm running Void Linux on a PowerMac G4, and have been having problems trying to build Csound. I've done this successfully once or twice on this machine before, so I don't know why I'm having problems now. > > When running cmake, I get told I require the sndfile library, but I already have libsndfile installed and can see it in /lib. > > Also, I'm having to build it again as for some reason when I csound -z I don't have any of the serial opcodes or OSC opcodes, so any help regarding that would also be really appreciated! This happens when installing from the void linux ports repo, and also from the ubuntu ports repo on my iMac G3 running Ubuntu, so I'm surely doing something wrong here. > > Cheers, > Rhys. > > Csound mailing list > Csound@listserv.heanet.ie > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND > Send bugs reports to > https://github.com/csound/csound/issues > Discussions of bugs and features can be posted here > Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2020-04-26 20:31 |
From | john |
Subject | Re: [Csnd] Building Csound - libsndfile problems |
And what is in the two log fies? Thet should say why you cannot find libsndile On Sun, 26 Apr 2020, Rhys Mayes wrote: > Hi everyone, > > I'm running Void Linux on a PowerMac G4, and have been having problems trying to build Csound. I've done this successfully once or twice on this machine before, so I don't know why I'm having problems now. > > When running cmake, I get told I require the sndfile library, but I already have libsndfile installed and can see it in /lib. > > Also, I'm having to build it again as for some reason when I csound -z I don't have any of the serial opcodes or OSC opcodes, so any help regarding that would also be really appreciated! This happens when installing from the void linux ports repo, and also from the ubuntu ports repo on my iMac G3 running Ubuntu, so I'm surely doing something wrong here. > > Cheers, > Rhys. > > Csound mailing list > Csound@listserv.heanet.ie > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND > Send bugs reports to > https://github.com/csound/csound/issues > Discussions of bugs and features can be posted here > Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2020-04-26 20:54 |
From | Michael Gogins |
Subject | Re: [Csnd] Building Csound - libsndfile problems |
You can discover if, where, and when libsndfile was installed with the find command: mkg@xenakis:~/michael.gogins.studio/docs$ find /usr -name "libsndfile*so*" -ls 527390 0 lrwxrwxrwx 1 root root 20 Jun 7 2019 /usr/lib/x86_64-linux-gnu/libsndfile.so -> libsndfile.so.1.0.28 527392 0 lrwxrwxrwx 1 root root 20 Jun 7 2019 /usr/lib/x86_64-linux-gnu/libsndfile.so.1 -> libsndfile.so.1.0.28 527391 480 -rw-r--r-- 1 root root 487504 Jun 7 2019 /usr/lib/x86_64-linux-gnu/libsndfile.so.1.0.28 534720 0 lrwxrwxrwx 1 root root 20 Jun 7 2019 /usr/lib/i386-linux-gnu/libsndfile.so.1 -> libsndfile.so.1.0.28 534718 560 -rw-r--r-- 1 root root 572004 Jun 7 2019 /usr/lib/i386-linux-gnu/libsndfile.so.1.0.28 If as I presume you are building Csound for x86_64 CPU architecture, /usr/lib/x86_64/linux_gnu or whatever it actually is on your system needs to be in your LDFLAGS or in scope of your CMake script for finding libsndfile. If you have csound installed on your system already, find out about how it was built with the file command: mkg@xenakis:~/michael.gogins.studio/docs$ file `which csound` /usr/local/bin/csound: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/l, for GNU/Linux 3.2.0, BuildID[sha1]=c655c13ca8f3e2bfca73a366e934c79f92b17b8e, with debug_info, not stripped Then find out what shared libraries your existing Csound links to with the ldd command: linux-vdso.so.1 (0x00007ffda8f5f000) libgtk3-nocsd.so.0 => /usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0 (0x00007f08e113f000) libcsound64.so.6.0 => /usr/local/lib/libcsound64.so.6.0 (0x00007f08e0c8d000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f08e0a6e000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f08e067d000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f08e0479000) libsndfile.so.1 => /usr/lib/x86_64-linux-gnu/libsndfile.so.1 (0x00007f08e0200000) libcurl-gnutls.so.4 => /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4 (0x00007f08dff83000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f08dfbe5000) /lib64/ld-linux-x86-64.so.2 (0x00007f08e154a000) libFLAC.so.8 => /usr/lib/x86_64-linux-gnu/libFLAC.so.8 (0x00007f08df96e000) libogg.so.0 => /usr/lib/x86_64-linux-gnu/libogg.so.0 (0x00007f08df765000) libvorbis.so.0 => /usr/lib/x86_64-linux-gnu/libvorbis.so.0 (0x00007f08df53a000) libvorbisenc.so.2 => /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2 (0x00007f08df291000) libnghttp2.so.14 => /usr/lib/x86_64-linux-gnu/libnghttp2.so.14 (0x00007f08df06c000) libidn2.so.0 => /usr/lib/x86_64-linux-gnu/libidn2.so.0 (0x00007f08dee4f000) librtmp.so.1 => /usr/lib/x86_64-linux-gnu/librtmp.so.1 (0x00007f08dec33000) libpsl.so.5 => /usr/lib/x86_64-linux-gnu/libpsl.so.5 (0x00007f08dea25000) libnettle.so.6 => /usr/lib/x86_64-linux-gnu/libnettle.so.6 (0x00007f08de7ef000) libgnutls.so.30 => /usr/lib/x86_64-linux-gnu/libgnutls.so.30 (0x00007f08de489000) libgssapi_krb5.so.2 => /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2 (0x00007f08de23e000) libldap_r-2.4.so.2 => /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2 (0x00007f08ddfec000) liblber-2.4.so.2 => /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2 (0x00007f08dddde000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f08ddbc1000) libunistring.so.2 => /usr/lib/x86_64-linux-gnu/libunistring.so.2 (0x00007f08dd843000) libhogweed.so.4 => /usr/lib/x86_64-linux-gnu/libhogweed.so.4 (0x00007f08dd60f000) libgmp.so.10 => /usr/lib/x86_64-linux-gnu/libgmp.so.10 (0x00007f08dd38e000) libp11-kit.so.0 => /usr/lib/x86_64-linux-gnu/libp11-kit.so.0 (0x00007f08dd05f000) libtasn1.so.6 => /usr/lib/x86_64-linux-gnu/libtasn1.so.6 (0x00007f08dce4c000) libkrb5.so.3 => /usr/lib/x86_64-linux-gnu/libkrb5.so.3 (0x00007f08dcb76000) libk5crypto.so.3 => /usr/lib/x86_64-linux-gnu/libk5crypto.so.3 (0x00007f08dc944000) libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_err.so.2 (0x00007f08dc740000) libkrb5support.so.0 => /usr/lib/x86_64-linux-gnu/libkrb5support.so.0 (0x00007f08dc535000) libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f08dc31a000) libsasl2.so.2 => /usr/lib/x86_64-linux-gnu/libsasl2.so.2 (0x00007f08dc0ff000) libgssapi.so.3 => /usr/lib/x86_64-linux-gnu/libgssapi.so.3 (0x00007f08dbebe000) libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007f08dbcb6000) libkeyutils.so.1 => /lib/x86_64-linux-gnu/libkeyutils.so.1 (0x00007f08dbab2000) libheimntlm.so.0 => /usr/lib/x86_64-linux-gnu/libheimntlm.so.0 (0x00007f08db8a9000) libkrb5.so.26 => /usr/lib/x86_64-linux-gnu/libkrb5.so.26 (0x00007f08db61c000) libasn1.so.8 => /usr/lib/x86_64-linux-gnu/libasn1.so.8 (0x00007f08db37a000) libhcrypto.so.4 => /usr/lib/x86_64-linux-gnu/libhcrypto.so.4 (0x00007f08db144000) libroken.so.18 => /usr/lib/x86_64-linux-gnu/libroken.so.18 (0x00007f08daf2e000) libwind.so.0 => /usr/lib/x86_64-linux-gnu/libwind.so.0 (0x00007f08dad05000) libheimbase.so.1 => /usr/lib/x86_64-linux-gnu/libheimbase.so.1 (0x00007f08daaf6000) libhx509.so.5 => /usr/lib/x86_64-linux-gnu/libhx509.so.5 (0x00007f08da8ac000) libsqlite3.so.0 => /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007f08da5a3000) libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007f08da36b000) Also make sure your CMake is recent enough for Csound (currently requires CMake 2.18.12 or later): mkg@xenakis:~/michael.gogins.studio/docs$ cmake --version cmake version 3.16.3 Regards, Mike ----------------------------------------------------- Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Sun, Apr 26, 2020 at 3:31 PM john <jpff@codemist.co.uk> wrote: And what is in the two log fies? Thet should say why you cannot find |
Date | 2020-04-26 21:26 |
From | Rhys Mayes |
Subject | Re: [Csnd] Building Csound - libsndfile problems |
Attachments | cmakelogs.zip |
Hi John, I’ve included these log files as an attachment. I don’t know a lot about cmake so reading these doesn’t reeky answer any questions for me. With the help of Syl Morrison, cmake can now find libsndfile in /lib, however it’s now unable to find sndfile.h, which i know is in /root/include. If there’s any more info I should supply you with let me know. Cheers, Rhys. Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here > On 26 Apr 2020, at 20:31, john |
Date | 2020-04-26 21:28 |
From | john |
Subject | Re: [Csnd] Building Csound - libsndfile problems |
ssndfile. should not be in/root/include in a sane system. It ught to be in eitr /usr/include or /usr/local/inclde. On Sun, 26 Apr 2020, Rhys Mayes wrote: > Hi John, > > I’ve included these log files as an attachment. I don’t know a lot about cmake so reading these doesn’t reeky answer any questions for me. > > With the help of Syl Morrison, cmake can now find libsndfile in /lib, however it’s now unable to find sndfile.h, which i know is in /root/include. > > If there’s any more info I should supply you with let me know. > > Cheers, > Rhys. > > > Csound mailing list > Csound@listserv.heanet.ie > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND > Send bugs reports to > https://github.com/csound/csound/issues > Discussions of bugs and features can be posted here > Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2020-04-26 21:36 |
From | Rhys Mayes |
Subject | Re: [Csnd] Building Csound - libsndfile problems |
Hi Michael, I’m actually building for PowerPC, and I can’t find anything that sounds like a PPC equivalent to /usr/lib/x86_64/linux_gnu. I’m using cmake 3.17.1 so up to date there
|
Date | 2020-04-26 21:41 |
From | Rhys Mayes |
Subject | Re: [Csnd] Building Csound - libsndfile problems |
Well I copied the sndfile.h from /root/include to /usr/include and cmake found the file, no problems after that! Thanks guys, appreciate the help a whole lot!!! Cheers, Rhys. > On 26 Apr 2020, at 21:28, john |
Date | 2020-04-26 21:43 |
From | john |
Subject | Re: [Csnd] Building Csound - libsndfile problems |
>From the error log i se cc: error: unrecognized command line option '-mfpmath=sse' So your compiler is not recognising this option. Not sure were this is from. Worth checking out. Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |