Wiki source code of EPICS
Version 1.2 by Sebastian Marsching on 2022/04/03 13:57
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | {{toc/}} | ||
| 2 | |||
| 3 | # EDM | ||
| 4 | |||
| 5 | In addition to the dependencies for MEDM I had to install the following packages: | ||
| 6 | |||
| 7 | * libgif-dev | ||
| 8 | * libpng-dev | ||
| 9 | * libxtst-dev | ||
| 10 | |||
| 11 | Under Ubuntu 14.04 LTS I had to modify the file `extensions/configure/os/CONFIG_SITE.linux-x86_64.linux-x86_64` in order to make `X11_LIB` and `MOTIF_LIB` to point to `/usr/lib/x86_64-linux-gnu`. In addition to that I had to modify the file `edmMain/Makefile` and add the line `USR_LDFLAGS_Linux += -Wl,--no-as-needed` as described on the [EPICS mailing-list](http://www.aps.anl.gov/epics/tech-talk/2012/msg01723.php). | ||
| 12 | |||
| 13 | # MEDM | ||
| 14 | |||
| 15 | ## Compiling MEDM on Ubuntu 10.04 LTS (lucid lynx) | ||
| 16 | |||
| 17 | If EPICS base is installed in `/my/epics/path/base`, you should extract the [EPICS extensions top directory bundle](http://www.aps.anl.gov/epics/download/extensions/extensionsTop_20070703.tar.gz) to `/my/epics/path`, so that a new directory `/my/epics/path/extensions` is created. The [MEDM source archive](http://www.aps.anl.gov/epics/download/extensions/medm3_1_5.tar.gz) should be extracted to `/my/epics/path/extensions/src`. You should then switch to `/my/epics/path/extensions/src/medm3_1_5` and run `make`. | ||
| 18 | |||
| 19 | In addition to a lot of development packages I had already installed, I had to install the following packages: | ||
| 20 | |||
| 21 | * libmotif-dev | ||
| 22 | * libxmu-dev | ||
| 23 | * libxp-dev | ||
| 24 | * libxt-dev | ||
| 25 | * x11proto-print-dev | ||
| 26 | |||
| 27 | # synApps | ||
| 28 | |||
| 29 | ## Compiling synApps on Ubuntu 10.04 LTS (lucid lynx) | ||
| 30 | |||
| 31 | In order to compile synApps 5.5 on Ubuntu 10.04 LTS, I had to install the following packages (other packages might be needed as well): | ||
| 32 | |||
| 33 | * flex | ||
| 34 | * libusb-dev | ||
| 35 | |||
| 36 | In order to compile synApps 5.6 on Ubuntu 10.04 LTS, I had to install the following packages (other packages might be needed as well): | ||
| 37 | |||
| 38 | * re2c | ||
| 39 | * libbz2-dev | ||
| 40 | * libfreetype6-dev | ||
| 41 | * libpng-dev | ||
| 42 | * libusb-dev | ||
| 43 | * libxext-dev | ||
| 44 | * libxml2-dev | ||
| 45 | |||
| 46 | # StripTool | ||
| 47 | |||
| 48 | In addition to the dependencies listed for EDM and MEDM I had to install the following packages: | ||
| 49 | |||
| 50 | * libxpm-dev | ||
| 51 | |||
| 52 | # Asyn | ||
| 53 | |||
| 54 | ## Codes for Tracing I/O Operations | ||
| 55 | |||
| 56 | ```c | ||
| 57 | /* traceMask definitions*/ | ||
| 58 | #define ASYN_TRACE_ERROR 0x0001 | ||
| 59 | #define ASYN_TRACEIO_DEVICE 0x0002 | ||
| 60 | #define ASYN_TRACEIO_FILTER 0x0004 | ||
| 61 | #define ASYN_TRACEIO_DRIVER 0x0008 | ||
| 62 | #define ASYN_TRACE_FLOW 0x0010 | ||
| 63 | |||
| 64 | /* traceIO mask definitions*/ | ||
| 65 | #define ASYN_TRACEIO_NODATA 0x0000 | ||
| 66 | #define ASYN_TRACEIO_ASCII 0x0001 | ||
| 67 | #define ASYN_TRACEIO_ESCAPE 0x0002 | ||
| 68 | #define ASYN_TRACEIO_HEX 0x0004 | ||
| 69 | |||
| 70 | |||
| 71 | ``` |