diff options
Diffstat (limited to 'portmidi/pm_linux/README_LINUX.txt')
| -rwxr-xr-x | portmidi/pm_linux/README_LINUX.txt | 99 |
1 files changed, 0 insertions, 99 deletions
diff --git a/portmidi/pm_linux/README_LINUX.txt b/portmidi/pm_linux/README_LINUX.txt deleted file mode 100755 index cfbc43f..0000000 --- a/portmidi/pm_linux/README_LINUX.txt +++ /dev/null | |||
| @@ -1,99 +0,0 @@ | |||
| 1 | README_LINUX.txt for PortMidi | ||
| 2 | Roger Dannenberg | ||
| 3 | 6 Dec 2012, revised May 2022 | ||
| 4 | |||
| 5 | Contents: | ||
| 6 | To make PortMidi | ||
| 7 | The pmdefaults program | ||
| 8 | Setting LD_LIBRARY_PATH | ||
| 9 | A note about amd64 | ||
| 10 | Using autoconf | ||
| 11 | Using configure | ||
| 12 | Changelog | ||
| 13 | |||
| 14 | |||
| 15 | See ../README.md for general instructions. | ||
| 16 | |||
| 17 | THE pmdefaults PROGRAM | ||
| 18 | |||
| 19 | (This may be obsolete. It is older than `../README.md` which | ||
| 20 | also discusses pmdefaults, and Java support may be removed | ||
| 21 | unless someone claims they use it... -RBD) | ||
| 22 | |||
| 23 | You should install pmdefaults. It provides a graphical interface | ||
| 24 | for selecting default MIDI IN and OUT devices so that you don't | ||
| 25 | have to build device selection interfaces into all your programs | ||
| 26 | and so users have a single place to set a preference. | ||
| 27 | |||
| 28 | Follow the instructions above to run ccmake, making sure that | ||
| 29 | CMAKE_BUILD_TYPE is Release. Run make as described above. Then: | ||
| 30 | |||
| 31 | sudo make install | ||
| 32 | |||
| 33 | This will install PortMidi libraries and the pmdefault program. | ||
| 34 | You must alos have the environment variable LD_LIBRARY_PATH set | ||
| 35 | to include /usr/local/lib (where libpmjni.so is installed). | ||
| 36 | |||
| 37 | Now, you can run pmdefault. | ||
| 38 | |||
| 39 | |||
| 40 | SETTING LD_LIBRARY_PATH | ||
| 41 | |||
| 42 | pmdefaults will not work unless LD_LIBRARY_PATH includes a | ||
| 43 | directory (normally /usr/local/lib) containing libpmjni.so, | ||
| 44 | installed as described above. | ||
| 45 | |||
| 46 | To set LD_LIBRARY_PATH, you might want to add this to your | ||
| 47 | ~/.profile (if you use the bash shell): | ||
| 48 | |||
| 49 | LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib | ||
| 50 | export LD_LIBRARY_PATH | ||
| 51 | |||
| 52 | |||
| 53 | A NOTE ABOUT AMD64: | ||
| 54 | |||
| 55 | When compiling portmidi under linux on an AMD64, I had to add the -fPIC | ||
| 56 | flag to the gcc flags. | ||
| 57 | |||
| 58 | Reason: when trying to build John Harrison's pyPortMidi gcc bailed out | ||
| 59 | with this error: | ||
| 60 | |||
| 61 | ./linux/libportmidi.a(pmlinux.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC | ||
| 62 | ./linux/libportmidi.a: could not read symbols: Bad value | ||
| 63 | collect2: ld returned 1 exit status | ||
| 64 | error: command 'gcc' failed with exit status 1 | ||
| 65 | |||
| 66 | What they said: | ||
| 67 | http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1&chap=3 | ||
| 68 | On certain architectures (AMD64 amongst them), shared libraries *must* | ||
| 69 | be "PIC-enabled". | ||
| 70 | |||
| 71 | CHANGELOG | ||
| 72 | |||
| 73 | 27-may-2022 Roger B. Dannenberg | ||
| 74 | Some updates to this file. | ||
| 75 | |||
| 76 | 6-dec-2012 Roger B. Dannenberg | ||
| 77 | Copied notes on Autoconf from Audacity sources | ||
| 78 | |||
| 79 | 22-jan-2010 Roger B. Dannenberg | ||
| 80 | Updated instructions about Java paths | ||
| 81 | |||
| 82 | 14-oct-2009 Roger B. Dannenberg | ||
| 83 | Using CMake now for building and configuration | ||
| 84 | |||
| 85 | 29-aug-2006 Roger B. Dannenberg | ||
| 86 | Fixed PortTime to join with time thread for clean exit. | ||
| 87 | |||
| 88 | 28-aug-2006 Roger B. Dannenberg | ||
| 89 | Updated this documentation. | ||
| 90 | |||
| 91 | 08-Jun-2004 Roger B. Dannenberg | ||
| 92 | Updated code to use new system abstraction. | ||
| 93 | |||
| 94 | 12-Apr-2003 Roger B. Dannenberg | ||
| 95 | Fixed pm_test/test.c to filter clocks and active messages. | ||
| 96 | Integrated changes from Clemens Ladisch: | ||
| 97 | cleaned up pmlinuxalsa.c | ||
| 98 | record timestamp on sysex input | ||
| 99 | deallocate some resources previously left open | ||
