qhttp icon indicating copy to clipboard operation
qhttp copied to clipboard

Installation on unix systems

Open Ri0n opened this issue 9 years ago • 2 comments

It was surprising generated makefiles does not install library/headers into system. Instead it creates some xbin and install there.

Please make proper installation

  1. Executables into /usr/bin by default
  2. Libraries into /usr/lib by default
  3. 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.

Ri0n avatar Aug 27 '16 14:08 Ri0n

yes it would be nice to have a more generalized *.pro/*.pri combination. (qhttp is mostly used as an static lib by myself)

azadkuh avatar Aug 27 '16 15:08 azadkuh

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.

giraldeau avatar Jan 06 '17 18:01 giraldeau