Qt 5.1.1 + 64bit ubuntu 13.10 standalone app

after 2 days of googling and su*king with compile, i decided to ask here.

I have made simple music player as Qt Gui Application, that runs on my PC perfektly. But when i copy it into other PC where Qt libs is not installed, it gives segmentation fault error. So i searched for solution. Static linking..

So i downloaded the qt-everywhere-opensource-src-5.1.0-rc2.zip, extracted it and configured with:
@./configure -static -release
make -j 4
@

Qt is not standalone, it has multiple dependencies. Either install Qt5 prepared for your distro (it's likely to be outdated), or bundle Qt libs with your app (your current approach, but please mind the LGPL licensing issues with static linking), but then you still need to install the dependencies on the user's machine, too.

I have installed all dependencies from the url you provided, before asking here.

I am trying to bundle it, but i am extremly noob to license types. I builded the opensource editon not comercial.
There is a player in software center named: qmmp, its qt4 based, when installed it have 6MB, not requires qt installed on system. and it does not install qt to system.

i want to make my app like this. I am looking here for some guide how to do it. If its not possible i will throw Qt away and i will trying with c++ / python + gtk

I am more java & php developer, everything what i know about linking libs and compiling c++ code is in my first post.

OK well this is such a broad topic that it's hard for me to give you a good, elaborate answer - I would have to write, and write, and write... ;)

First: licensing. If your app is OpenSource/ Free software, you can safely use static compilation, so no worries there.

In general, on Linux, shared libraries are preferred way of doing things, among with using package managers: so that all the user needs to do is to double click a .deb or .rpm package. Seems nice and easy, but is not so seamless on the development side: distros vary a lot.

You can bundle everything together (it's MUCH easier with Qt4 than 5, though), there are several thread about it on this forum. I'll try to find some links and get back to you soon.