61 |
|
|
62 |
Requirements |
Requirements |
63 |
============ |
============ |
64 |
|
|
65 |
|
All systems |
66 |
|
----------- |
67 |
|
|
68 |
|
Since libgig 4.3.0 you need at least a C++11 compliant compiler. |
69 |
|
|
70 |
POSIX systems (e.g. Linux, macOS): |
POSIX systems (e.g. Linux, macOS): |
71 |
--------------------------------- |
--------------------------------- |
72 |
|
|
100 |
------------------------ |
------------------------ |
101 |
|
|
102 |
libgig was written to compile for any operating system, using standard C |
libgig was written to compile for any operating system, using standard C |
103 |
library functions. However the latest versions of libgig lack a portable |
library functions. However there are some OS dependent requirements: |
104 |
implementation of one tiny method called RIFF::File::ResizeFile(). So you |
|
105 |
would either have to add native OS API calls for that particular method, |
* Since libgig 3.0.0 an OS dependent implementation for a tiny method called |
106 |
that is dependant to your OS, or you have to add a portable |
RIFF::File::ResizeFile() is required. So you would either have to add |
107 |
implementation. No matter which way you choose, please let us know! :) |
native OS API calls for that particular method, that is dependant to your |
108 |
|
OS, or you have to add a portable implementation. No matter which way you |
109 |
|
choose, please let us know! :) |
110 |
|
|
111 |
|
* Since libgig 4.3.0 presence of some UUID generating function is required to |
112 |
|
be provided by the underlying system. This was an optional feature in |
113 |
|
previous versions of libgig for many years, its absence only meant that you |
114 |
|
were unable to load gig files created/modified by libgig to be accepted by |
115 |
|
Tascam's original GigaStudio studio software, did not mean any restriction |
116 |
|
for being used with LinuxSampler though. This has changed in the meantime, |
117 |
|
so this is now a hard build requirement, as you would potentially encounter |
118 |
|
misbehaviours now even if you stay entirely in the Linux eco system if UUIDs |
119 |
|
were missing in gig files. |
120 |
|
|
121 |
Compiling for Linux |
Compiling for Linux |
122 |
=================== |
=================== |
167 |
On success, the resulting rpm(s) can usually be found under the proper |
On success, the resulting rpm(s) can usually be found under the proper |
168 |
"/usr/src/<rpmdir>/RPMS/<arch>" directory. |
"/usr/src/<rpmdir>/RPMS/<arch>" directory. |
169 |
|
|
170 |
Compiling for Windows |
Compiling for Windows using CMake |
171 |
===================== |
================================= |
172 |
|
The easiest way is to compile is to use vcpkg (https://github.com/Microsoft/vcpkg) |
173 |
|
to install libsndfile (required) and cppunit (optional). In the vcpkg install dir |
174 |
|
type: |
175 |
|
.\vcpkg.exe install libsndfile cppunit [--triplet x64-windows] |
176 |
|
|
177 |
|
This should install the libraries in vcpkg, add the triplet option if you wish to |
178 |
|
get the 64bit libraries. |
179 |
|
|
180 |
|
In an empty directory type: |
181 |
|
cmake <libgig source dir> -DCMAKE_TOOLCHAIN_FILE=<vcpkg dir>\scripts\buildsystems\vcpkg.cmake |
182 |
|
[-G"Visual Studio 15 2017 Win64"] |
183 |
|
|
184 |
|
Use the -G option to select the visual studio version and whether to compile for |
185 |
|
64bits. |
186 |
|
|
187 |
|
This will create libgig.sln file which you can open in visual studio or you can use |
188 |
|
the following command line to compile: |
189 |
|
|
190 |
|
cmake --build . --config <Release|Debug|MinRelSize|RelWithDebInfo> |
191 |
|
|
192 |
|
Compiling for Windows using Dev-C++ |
193 |
|
=================================== |
194 |
|
|
195 |
libgig and its tools can be compiled for Windows using Bloodshed Dev-C++, |
libgig and its tools can also be compiled on Windows using Bloodshed Dev-C++, |
196 |
which is a free (GPL) C++ integrated development environment for Windows. |
which is a free (GPL) C++ integrated development environment for Windows. |
197 |
It is also possible to use MSYS from MinGW, which allows you to use |
It is also possible to use MSYS from MinGW, which allows you to use |
198 |
'./configure && make' like the linux builds. |
'./configure && make' like the linux builds. |