What distribution of Linux are you using?
I ran into this same problem with Qt5 and LibVLC, and the primary cause (Ubuntu 12.04 LTS and 14.04 LTS), was that LibVLC was loading the qt4 interface plugin, which conflicted with Qt5. If you check your call stack, you'll most likely see that at a Qt4 library was being loaded, causing the crash.
If this is the problem, there are only 3 options (tested with LibVLC 2.2 and Qt5 on Ubuntu 12.04 and 14.04 LTS 64 bit).
The first (worst) is to delete the qt4 user interface plugin. You can test this is the problem by moving and running and then setting it back. Deleting will break your regular VLC player most likely.
Second option is to create a copy of the plugins directory and set that in your runtime path using VLC_PLUGIN_PATH, environment variable. but I've had trouble getting that to work without changing the original plugin path folder also (which will break your VLC player unless you modify your shortcuts, etc. to also set VLC_PLUGIN_PATH.
The third option, and what I ended up doing, was to custom build my own static LibVLC binary with a few edits to the source code so that it will not load the qt4 interface plugin installed with VLC. You can follow these steps to do this.
1) Download VLC Source Code for your platforms distribution. http://download.videolan.org/pub/videolan/vlc/ Make sure you download the version matching your distribution. For example, match the VLC version to what is installed with Ubuntu.2) Extract source code to folder3) Install dependencies for the OS distribution sudo apt-get build-dep vlc4) Modify src/modules/bank.c Edit the module_InitDynamic function Add the following code at the top of the function: // HACK TO DISABLE QT4 PLUGIN if(strstr(path, "qt4") != NULL) return NULL; // END HACK3) From terminal ./bootstrap ./configure --disable-qt --disable-skins2 --enable-xcb --prefix=/home/$USER/vlc-custom_build_output_folder_name ./make ./make install4) Copy/Save the resulting files in the install folder.
Then just link against this library instead.
sudo ldconfig -v
helps. If you reinstalled some libs it will make correct linkk to them – Temak Mar 5 at 12:57