This section shows how to handle MeVisLab on Linux:
Installation is quite easy. Get MeVisLab from
Only a 64-bit version is
available, so you must have a 64bit version of Linux installed.
After the download you must make the installer
executable. Run the command 'chmod u+x' and execute it. Select an
installation directory. We will refer to it as
InstallDirectory from now.
Users who want to run MeVisLab must have read and write permissions to all files in the MeVisLab installation directory. Keep this in mind when installing MeVisLab as the root user.
You can start MeVisLab from the applications menu entry.
Alternatively, you can run
InstallDirectory/bin/MeVisLab_d will start the
debug version of MeVisLab.
MeVisLab offers "Module Wizards", which are accessible via the file menu. They create the skeleton of ML and Inventor modules. The sources are created in a folder named by your module in the "Source" subdirectory of a MeVisLab package.
Some environment variables are required to build C++ modules,
MLAB_ROOT must point to
LD_LIBRARY_PATH must contain the
lib-paths of packages that are not located in
InstallDirectory/bin/mlshell. Run it in a terminal to set up development environment.
The next step is to create the makefiles. Therefore simply
execute the bash script inside your modules source directory (it is
named just like your module).Now you can type
Makefile."modulename" (or use mlmake) to compile and link
your module. If everything works fine, the library will be copied to
lib directory of the package. If MeVisLab is
running, then it will be copied to
instead. It will be moved to
lib during the next
To avoid problems you should use the same compiler version
that MeVisLab was built with. The required version is mentioned in
the Linux readme file:
If you have multiple CPUs, then you can pass
MeVisLab supports the Code::Blocks IDE
A Code::Blocks project is created next
to the makefiles. It is called
You can use
Use the gdb from the bash context created with
InstallDirectory/bin/mlshell. The MeVisLab
executable for debugging is
InstallDirectory/Packages/MeVisLab/IDE/bin. You can
also use the script
outside the bash context. If it is started without arguments, then it
uses MeVisLab as debug target, otherwise all arguments are passed to
© 2021 MeVis Medical Solutions AG