-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathREADME_build
70 lines (46 loc) · 2.47 KB
/
README_build
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
BUILD INSTRUCTIONS
Compilation from the git repository
===================================
The package scripts must be initially generated in order to compile the
library. For this, the autoconf, automake, libtool and gnulib package must
be available.
Then the autogen.sh script can used. It will import the gnulib modules used
by the eegdev library and generate the configure scripts. If you want to use
the gnulib from a non standard path, you can specify the -g option:
autogen.sh [-g PATH_TO_GNULIB-TOOL]
Once the package scripts are generated, you have to follow the instructions
of the compilation from a tarball.
Compilation from a tarball
==========================
This library is organized as a GNU package and can be compiled and
installed in the same way (see INSTALL file for further information).
In addition to the standard options, the configure script recognize flags
to enable or disable the support for the different backends. By default,
most of the backend are built in if the required libraries are found:
--with-BACKEND[=yes|no|check] : enable the compilation of the plugin
providing the support for BACKEND. See the output of the
command 'configure --help' to know which BACKEND string
can be supplied.
Finally, if only the compilation of one or several plugin is wanted, the
compilation of the core library can be controlled by the configure option:
--enable-corelib-build[=yes|no] : enable the compilation of the
eegdev core library. (yes by default)
USB devices on Linux
====================
On linux (maybe on other platforms as well), usual users cannot access
directly to usb devices. A rules for udev is shipped in the package to make
any connected USB device accessible to users belonging to the plugdev
group. If it is not always necessary: on some systems, the configuration
already makes the device accessible.
To install this rule file, just type (after configure) with root permission:
make install-usb-plugdev
To uninstall this files, again with root permission:
make uninstall-usb-plugdev
Generate the library .def file
==============================
In Windows, using Visual Studio, can be useful to generate the .def file for
the library. It is a straighforward thing to achieve through gendef.exe.
To install it on MSYS2, just type:
pacman -Sy mingw-w64-x86_64-tools-git
It is now possible to generate the import library (.def) using:
gendef - libeegdev-0.dll