Installation on unix systems
It was surprising generated makefiles does not install library/headers into system. Instead it creates some xbin and install there.
Please make proper installation
- Executables into /usr/bin by default
- Libraries into /usr/lib by default
- Headers into /usr/include
Where /usr prefix may be redefined and full path to lib directory may be redefined as well.
So project file should use PREFIX and LIBDIR variables passed to qmake and use some default values is not passed.
yes it would be nice to have a more generalized *.pro/*.pri combination.
(qhttp is mostly used as an static lib by myself)
I faced the same issue and I finally used the solution suggested by @azadkuh. I added CONFIG += staticlib in src/src.pro and then xbin/libqhttp.a is generated in addition to the shared library. To link, use -l:libqhttp.a instead of -lqhttp.