Discussion:
How to compile sc3-plugins on Debian
Hanns Holger Rutz
2014-10-08 13:24:35 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I need some helping building the sc3-plugins from source (apparently
there is no Debian Jessie package).

I am trying

::::: begin :::::

$ export CXX=/usr/bin/cpp
$ $CXX --version
cpp (Debian 4.9.1-16) 4.9.1
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
$ cmake --version
cmake version 3.0.2

CMake suite maintained and supported by Kitware (kitware.com/cmake).
$ cmake ..
- -- The CXX compiler identification is unknown
- -- Check for working CXX compiler: /usr/bin/gcc
- -- Check for working CXX compiler: /usr/bin/gcc -- broken
CMake Error at
/usr/share/cmake-3.0/Modules/CMakeTestCXXCompiler.cmake:54 (message):
The C++ compiler "/usr/bin/gcc" is not able to compile a simple test
program.

It fails with the following output:

Change Dir:
/home/hhrutz/Documents/devel/sc3-plugins/build/CMakeFiles/CMakeTmp



Run Build Command:"/usr/bin/make" "cmTryCompileExec2184250963/fast"

/usr/bin/make -f CMakeFiles/cmTryCompileExec2184250963.dir/build.make
CMakeFiles/cmTryCompileExec2184250963.dir/build

make[1]: Entering directory
'/home/hhrutz/Documents/devel/sc3-plugins/build/CMakeFiles/CMakeTmp'

/usr/bin/cmake -E cmake_progress_report

/home/hhrutz/Documents/devel/sc3-plugins/build/CMakeFiles/CMakeTmp/CMakeFiles
1

Building CXX object
CMakeFiles/cmTryCompileExec2184250963.dir/testCXXCompiler.cxx.o

/usr/bin/gcc -o
CMakeFiles/cmTryCompileExec2184250963.dir/testCXXCompiler.cxx.o -c

/home/hhrutz/Documents/devel/sc3-plugins/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx


gcc: error trying to exec 'cc1plus': execvp: No such file or directory

CMakeFiles/cmTryCompileExec2184250963.dir/build.make:57: recipe for
target
'CMakeFiles/cmTryCompileExec2184250963.dir/testCXXCompiler.cxx.o' failed

make[1]: ***
[CMakeFiles/cmTryCompileExec2184250963.dir/testCXXCompiler.cxx.o]
Error 1

make[1]: Leaving directory
'/home/hhrutz/Documents/devel/sc3-plugins/build/CMakeFiles/CMakeTmp'

Makefile:118: recipe for target 'cmTryCompileExec2184250963/fast' failed

make: *** [cmTryCompileExec2184250963/fast] Error 2





CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:2 (project)


- -- Configuring incomplete, errors occurred!
See also
"/home/hhrutz/Documents/devel/sc3-plugins/build/CMakeFiles/CMakeOutput.log".
See also
"/home/hhrutz/Documents/devel/sc3-plugins/build/CMakeFiles/CMakeError.log".

::::: end :::::

Any ideas?

Thanks, .h.h.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJUNTsTAAoJEKZFmaPaYk6QzLwP/0YrQmJZoC+GlRfaI585PQj2
B0dlWBkTqZ7q7mlk+1v79BUfFcz6KjnuyiR+3QSMbcURHa9mjlMpCBu9tneRP0Q5
NexQ8edD4fuNuJziZg6kdbWa6GEvFwwwTfouRSC/WlDH+K5HIwzo4EDMLr1oharb
3xDw4LWvNE4M1xtAB9vsjMcAzaOoCeq3FKFLoBsBBUz+pbG7MVeuTLNxHneQQ6wC
xNosBEH2J/9jKDT7CrDdVeviJ6p/JYzvdsMP0Gm22GpT3x4qdf09UMdTo0NmGtsz
jGHNTQU6PGYO7RqMmWulxt5Xog/HpUWjpgm3fukeUdKPt/pxmW9f580zwrM/g9V3
BrGP7PygR0HBDLc7eWxsQaIu2sdTM0ZnU1z0dCkoQRRPxlljnLvyrApf+c2m0rSI
FVSRyEduOLuWsisy/DXuL4OnBc/L2ngh1Bqgtebj6nxoLhPiGSN+8AtUMQRuW/ja
Ze5OBhThF1WSDXQeeeOajLntxA+6i1yRUxLh03R6Zuk3TQX9d9PHutzfGIbgVdkR
4Jx9V5kyQLz+OMnw9jWkYUHl02CChp4F22pq65QVOULLeWOmqWet0YGbPxcmffCo
+HdMyq82i/rGCN3W2bnyNYA+BBGIT1CLkVzcD+IflsiQ7X59MhYXvkdl+mvMgzWY
TdyVU9HMY7TiPAji+Mlq
=Bcg9
-----END PGP SIGNATURE-----

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
Hanns Holger Rutz
2014-10-08 13:33:52 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

ok, cpp is aliased to gcc, and gcc != g++.

after `apt-get install build-essential` I'm one step further.
Post by Hanns Holger Rutz
Hi,
I need some helping building the sc3-plugins from source
(apparently there is no Debian Jessie package).
I am trying
...
Post by Hanns Holger Rutz
Any ideas?
Thanks, .h.h.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJUNT0/AAoJEKZFmaPaYk6Qfz0P/3EJRb1k23nwmhdh1SQjgt1C
DN1yl4nchDwhzKRXByGqvu6bqY7wlBe7cAQADf2gjMUcW4xSpOl95U3kpK5+xh4z
3kVnlSNnjTP57/6vDEMKU9nNe/LUyrCEizHpvrNKY+y1ObK4MTzt7FuOKQcpcdyH
1DntNqyIDl2jHCKkirb1itEaHJtyIZ+7jegow0kV5xwWAmNaZiWyyQHr9ewFOXNY
5RrkBI435WvzdGMUioz+JLER3TS8385HEvAmpNYlpiGHK+9UARkj9b8Fa6oxbD1L
0vfkL7qq1GvgFNwsYok/BgSZJJfQy425sXT5eLRtrpWLSUapOxfs2Npve8ODfgzS
QDkgTPB5Fu1AlhQVEcrqDekKlnv61nPAQjuzfGeQwl/QauqYTMMDbq6u00v/IpNJ
/hsNaqHhPAsWD6Onguo4YwWfO3wtzK9dXYrO+Zp+NJdtINDhzEjQ0Ch07o4k4Ce3
2O+IIbmXR6Vv5//OxWOr1sg4slx/jyaYl3aXEGxHbS9oZM2Ftc8jYmNPXfACnRnE
+Y52wa/NFkAJ169MhVmxAkdMc1FPLbnFtMq8hKCBuVe59HDkq5OY34+vbN86h3uy
7GAKzgH3P483ExV2fPt1B3iPLJ8NlagO9lW+0vNlxuC1B0uGolsI6e9e7iRRRhUh
HTGom66dmIsDxL+vrWcB
=o3Jo
-----END PGP SIGNATURE-----

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
Hanns Holger Rutz
2014-10-08 13:46:30 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

next problem is JoshGrainUGens:

[ 21%] Building CXX object
source/CMakeFiles/JoshGrainUGens.dir/JoshUGens/JoshGrainUGens.cpp.o
/home/hhrutz/Documents/devel/sc3-plugins/source/JoshUGens/JoshGrainUGens.cpp:6741:0:
warning: "GRAIN_BUF" redefined
#define GRAIN_BUF \
^
/home/hhrutz/Documents/devel/sc3-plugins/source/JoshUGens/JoshGrainUGens.cpp:733:0:
note: this is the location of the previous definition
#define GRAIN_BUF \
^
/home/hhrutz/Documents/devel/sc3-plugins/source/JoshUGens/JoshGrainUGens.cpp:6817:0:
warning: "GRAIN_LOOP_BODY_4" redefined
#define GRAIN_LOOP_BODY_4 \
^
/home/hhrutz/Documents/devel/sc3-plugins/source/JoshUGens/JoshGrainUGens.cpp:748:0:
note: this is the location of the previous definition
#define GRAIN_LOOP_BODY_4 \
^
/home/hhrutz/Documents/devel/sc3-plugins/source/JoshUGens/JoshGrainUGens.cpp:6846:0:
warning: "GRAIN_LOOP_BODY_2" redefined
#define GRAIN_LOOP_BODY_2 \
^
/home/hhrutz/Documents/devel/sc3-plugins/source/JoshUGens/JoshGrainUGens.cpp:778:0:
note: this is the location of the previous definition
#define GRAIN_LOOP_BODY_2 \
^
/home/hhrutz/Documents/devel/sc3-plugins/source/JoshUGens/JoshGrainUGens.cpp:
In function ‘void GrainBufJ_next_start_new(GrainBufJ*, int, int)’:
/home/hhrutz/Documents/devel/sc3-plugins/source/JoshUGens/JoshGrainUGens.cpp:7750:24:
error: there are no arguments to ‘sc_isfinite’ that depend on a
template parameter, so a declaration of ‘sc_isfinite’ must be
available [-fpermissive]
if (!sc_isfinite(phase)) {
^
/home/hhrutz/Documents/devel/sc3-plugins/source/JoshUGens/JoshGrainUGens.cpp:7750:24:
note: (if you use ‘-fpermissive’, G++ will accept your code, but
allowing the use of an undeclared name is deprecated)
/home/hhrutz/Documents/devel/sc3-plugins/source/JoshUGens/JoshGrainUGens.cpp:
In instantiation of ‘void GrainBufJ_next_start_new(GrainBufJ*, int,
int) [with bool full_rate = false; bool IsMono = true]’:
/home/hhrutz/Documents/devel/sc3-plugins/source/JoshUGens/JoshGrainUGens.cpp:7814:70:
required from ‘void GrainBufJ_next_k(GrainBufJ*, int) [with bool
MultiChannel = true]’
/home/hhrutz/Documents/devel/sc3-plugins/source/JoshUGens/JoshGrainUGens.cpp:7820:43:
required from here
/home/hhrutz/Documents/devel/sc3-plugins/source/JoshUGens/JoshGrainUGens.cpp:7750:24:
error: ‘sc_isfinite’ was not declared in this scope
/home/hhrutz/Documents/devel/sc3-plugins/source/JoshUGens/JoshGrainUGens.cpp:
In instantiation of ‘void GrainBufJ_next_start_new(GrainBufJ*, int,
int) [with bool full_rate = false; bool IsMono = false]’:
/home/hhrutz/Documents/devel/sc3-plugins/source/JoshUGens/JoshGrainUGens.cpp:7814:70:
required from ‘void GrainBufJ_next_k(GrainBufJ*, int) [with bool
MultiChannel = false]’
/home/hhrutz/Documents/devel/sc3-plugins/source/JoshUGens/JoshGrainUGens.cpp:7825:44:
required from here
/home/hhrutz/Documents/devel/sc3-plugins/source/JoshUGens/JoshGrainUGens.cpp:7750:24:
error: ‘sc_isfinite’ was not declared in this scope
/home/hhrutz/Documents/devel/sc3-plugins/source/JoshUGens/JoshGrainUGens.cpp:
In instantiation of ‘void GrainBufJ_next_start_new(GrainBufJ*, int,
int) [with bool full_rate = true; bool IsMono = true]’:
/home/hhrutz/Documents/devel/sc3-plugins/source/JoshUGens/JoshGrainUGens.cpp:7800:70:
required from ‘void GrainBufJ_next_a(GrainBufJ*, int) [with bool
MultiChannel = true]’
/home/hhrutz/Documents/devel/sc3-plugins/source/JoshUGens/JoshGrainUGens.cpp:7830:43:
required from here
/home/hhrutz/Documents/devel/sc3-plugins/source/JoshUGens/JoshGrainUGens.cpp:7750:24:
error: ‘sc_isfinite’ was not declared in this scope
/home/hhrutz/Documents/devel/sc3-plugins/source/JoshUGens/JoshGrainUGens.cpp:
In instantiation of ‘void GrainBufJ_next_start_new(GrainBufJ*, int,
int) [with bool full_rate = true; bool IsMono = false]’:
/home/hhrutz/Documents/devel/sc3-plugins/source/JoshUGens/JoshGrainUGens.cpp:7800:70:
required from ‘void GrainBufJ_next_a(GrainBufJ*, int) [with bool
MultiChannel = false]’
/home/hhrutz/Documents/devel/sc3-plugins/source/JoshUGens/JoshGrainUGens.cpp:7835:44:
required from here
/home/hhrutz/Documents/devel/sc3-plugins/source/JoshUGens/JoshGrainUGens.cpp:7750:24:
error: ‘sc_isfinite’ was not declared in this scope
source/CMakeFiles/JoshGrainUGens.dir/build.make:54: recipe for target
'source/CMakeFiles/JoshGrainUGens.dir/JoshUGens/JoshGrainUGens.cpp.o'
failed
make[2]: ***
[source/CMakeFiles/JoshGrainUGens.dir/JoshUGens/JoshGrainUGens.cpp.o]
Error 1
CMakeFiles/Makefile2:1292: recipe for target
'source/CMakeFiles/JoshGrainUGens.dir/all' failed
make[1]: *** [source/CMakeFiles/JoshGrainUGens.dir/all] Error 2
Makefile:137: recipe for target 'all' failed
make: *** [all] Error 2


:::::::::::::

Since at this point I just want to try out BhopUGens, can I pass some
switch to make or cmake to exlude this plugin?

I noticed that it says headers are SuperCollider 3.6.3, but installed
SuperCollider is actually 3.6.6. Is that a problem in terms of binary
/ API compatiblity?

Thanks, .h.h.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJUNUA2AAoJEKZFmaPaYk6Qeh4P/1sGIe9LAd/FY4fvWLCYaaPN
SV7VbauzPIO6B3chT2tZd9PG4VI3MU0M2jdrm2YZ4jXpUtLIL+uLf1k0eCVE2clt
h1xG7qWUgPORsNrfl2kkxF6n+/6yoKwCYJDUCqNVOv4gREpdogjKP/K9NFIiKdR/
8bsZuFd+ShG6ybrEjUBqGd26feU+arQdkATDdzHrdiLoRWgN/X9jtWoOp8PrIUkA
XnIynWPlhcYJad8I/uuIj/bm0Z3PB9yCTWB5XvBlczs9o6sKKTcFenIonQey9cLd
M4lg52rqPGiEcisKr8jON1dkU9l0/tn5ywfeo7dxZmT5rGcrLEvHCoBhKKvb889T
HzLRSqzNCXqGKKN3MZcnEdAK4PsDrFhHvy26M58dU2JNexX7k7Dc7CTVsZOkyRXE
LyKJl3p9zSAurxbMvATJ4hudQxuPaSmKO8ociNT3QM7/Sf2GHBTr9VojNopvogYf
8yaMd5pRc4Az8X0uirCGLXnItiicnrmBS53E6G64w34fvk/4A1PDxCNcD8PzHgkm
ogFuYb+yJO488wXnP6tiYoxvVzOqCj/wvpeUl0YbvFEjzZUEwjrkd0rjm9SyFREZ
TcWz+vDknbiWe+Gtk8V6ieroGzLK4vvODdapQY0XKcxA+DWNywJcctewz6/P0tbo
xtggzEghgpLyG2vRULSa
=xffa
-----END PGP SIGNATURE-----

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
Hanns Holger Rutz
2014-10-08 13:54:12 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

FYI, these are the steps to get the plugins built:

https://gist.github.com/Sciss/02af79296b35f1e7536f

(I didn't install them in the end because I figured I could use
GrainBuf which is already present)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJUNUIDAAoJEKZFmaPaYk6QTH8P/jkag4RAkHTAsq3WlalXbqdz
9jrBKd+yDZPoNPzTxDNB8VO5ifZXZILktkBEv8doyqn+O0Q4cFVmcRBlIy6Zs1zH
EpD5RPZpdlE+KVvZL3yfB+F7VLNmAlj7eNJHIzum0e6RMrfyZXwvsv1gEStp2iUj
PcW8yCQ0ur6zzK/cv51ep2lDenvb3f+IR7ZRR7p7s22TMTdsBXSEnB1l2hAUA8Tv
LSfmDkcK2ClglGpO88ZItNZ2lLk1qMnSBhVp0PdoGBY1mKQzczixJKBS6OmrgV1I
chYhf2vPbHwOsUR2sZGTAx+dnxSj9wsMzU3KxF7IN1udYeclYgP37OMTUfrA+YIY
ZJ+0RLjpH47aQGan+nnWpAM05uTMVYwoOWSDIeR3A6M8KVHCESAeHTpByX86tpeZ
HWvUYl1Fe8ipubSopL0GFeUIrWSNzBijcxkVOhwgP5xGKBPC2VD0BGeP/1DuF4uk
6J5kylapxt+J3rOLLU0H2JjSiFyPfzQ163sKZlcrrlTHIr3Slnu/Q8+9QkC07ZCC
P3Cq+o8yJdcDIGq6ZZD/k05nGSwrxbULL5bNEMZPEWYBjK9wm39vVKPvJfT6BpYr
TSc0LXXVpr7Ek4Z1FjPyael6ejt2oHNdQjZCorfEO6f2XEHqa83Au3hMjWV+uWUZ
yvpDZcAa8lo8w1HUcMoS
=vTVO
-----END PGP SIGNATURE-----

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
Stefan Nussbaumer
2014-10-08 14:22:58 UTC
Permalink
Post by Hanns Holger Rutz
https://gist.github.com/Sciss/02af79296b35f1e7536f
Just had a look: I have compiled the SC3 plugins on Ubuntu, including
JoshGrainUGens. Here's my configuration returned by CMake .. -L:

-- Using SC source located at /home/stefan/sources/supercollider
-- Building plugins for SuperCollider version: 3.7alpha0
-- local_sources:
-- Configuring done
-- Generating done
-- Build files have been written to: /home/stefan/sources/sc3-plugins/build
-- Cache values
AY:BOOL=ON
CMAKE_BUILD_TYPE:STRING=Release
CMAKE_INSTALL_PREFIX:PATH=/usr/local
CPP11:BOOL=On
DSO_VISIBILITY:BOOL=OFF
FFTW3F_INCLUDE_DIR:PATH=/usr/include
FFTW3F_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libfftw3f.so
IN_PLACE_BUILD:BOOL=Off
NATIVE:BOOL=ON
NOVA_DISK_IO:BOOL=OFF
NOVA_SIMD:BOOL=ON
OSX_PACKAGE:BOOL=OFF
QUARKS:BOOL=OFF
SC_PATH:PATH=/home/stefan/sources/supercollider
SUPERNOVA:BOOL=On

... I vaguely remember I couldn't compile against SC 3.6.x but otherwise
I had to exclude something from being built.

stefan

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/

Loading...