Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation on unix systems #19

Open
Ri0n opened this issue Aug 27, 2016 · 2 comments
Open

Installation on unix systems #19

Ri0n opened this issue Aug 27, 2016 · 2 comments

Comments

@Ri0n
Copy link

Ri0n commented Aug 27, 2016

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.

@azadkuh
Copy link
Owner

azadkuh commented Aug 27, 2016

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

@giraldeau
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants