-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathINSTALL.txt
More file actions
43 lines (27 loc) · 1.71 KB
/
INSTALL.txt
File metadata and controls
43 lines (27 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Clone the library:
$ git clone https://github.com/fdch/fd_lib.git
You will be able to load abstractions, but to use the external objects you'll need to compile them:
$ bash config.sh [/path/to/pd-lib-builder] (*)
$ make
$ make install
The last step will allow Pure Data to load the library with the Help Browser.
You can pass your default paths, for example:
PDLIBDIR=path/to/Pd/externals
In Pure Data, you probably need to declare the library with [declare -lib fd_lib -path fd_lib]
-------------------------------------------------------------------------------
Windows
-------------------------------------------------------------------------------
Check Pd's INSTALL.txt file for more information, because the build environment is the same.
Use the Mintty terminal (MYSYS2) and run a "Mingw-w64 64 bit" Shell (bash) emulator.
Before running make, you must indicate the path to Pure Data's "bin" and "src" directories:
pdbinpath=/c/Users/.../pd-0.50-0/bin PDINCLUDEDIR=/c/Users/.../src
You might also need to determine which architecture, for example:
CFLAGS= -march=x86-64 -Iinclude
The complete make command in Windows might looks like this:
$ make pdbinpath=/c/Users/.../pd-0.50-0/bin PDINCLUDEDIR=/c/Users/.../src CFLAGS=-march=x86-64 -Iinclude
I recommend the usual library installation in %AppData%, which is the default.
If you locate the library someplace else, please also place a [declare -path /path/to/fd_lib]
in your patches or just ADD the PATH to "fd_lib" in File > Preferences > Path
(*) fd_lib is shipped with pd-lib-builder, so you can clone it with --recurse-submodules or
do "git submodule init" and "git submodule update". If you do this, you dont need to pass the
pd-lib-builder path to the config.sh command.