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

documentation for compilation and install #173

Open
tsequitur opened this issue Dec 8, 2017 · 5 comments
Open

documentation for compilation and install #173

tsequitur opened this issue Dec 8, 2017 · 5 comments
Labels

Comments

@tsequitur
Copy link

@tsequitur tsequitur commented Dec 8, 2017

hi, i am trying to install rpclib, but got a bit lost.

the version i am trying to install is the git cloned version from the master branch.
i follow the guide and execute the build commands. the documentation says

And that's it. If all goes well, your build output will be in the output directory.

i can find no directory named output.
the documentation also describes no procedure for installation or which files would need to be installed.
looking in the build directory, i guess i need to copy the .a file (i've only dealt with .so files in the past) and move the quite big (7.3MB) ../include/rpc directory to for example /usr/include, is that correct?

another thing is that the getting started page says

There are various release packages available for the most popular systems and ideally you should install one of those.

i use arch linux and there does not seem to be a package available. but out of curiosity i also searched the internet for "rpclib package" "ubuntu rpclib" "fedora rpclib" "debian rpclib" and find no reference to any package. just now i find some lonely .deb files under releases, but only for v1.0.0 preview. which makes me wonder if there actually are packages for the most popular systems.

@sztomi sztomi added the Documentation label Dec 8, 2017
@sztomi
Copy link
Collaborator

@sztomi sztomi commented Dec 8, 2017

Thanks for bringing that to my attention. That was changed recently and the documentation was not updated. I think the easiest way is to specify cmake -DCMAKE_INSTALL_PREFIX=<whatever directory you want the output in> then run make install (or the equivalent thereof for the particular generator you used).

@sztomi
Copy link
Collaborator

@sztomi sztomi commented Dec 8, 2017

Also,

i guess i need to copy the .a file (i've only dealt with .so files in the past) and move the quite big (7.3MB) ../include/rpc directory to for example /usr/include, is that correct?

It's best not to do that, and instead add the installation directory/include to your include path, as well as the lib directory to your library search paths.

@tsequitur
Copy link
Author

@tsequitur tsequitur commented Dec 9, 2017

thanks for the response, i think it works now.

cmake -DCMAKE_INSTALL_PREFIX=

this works except that it writes the full installation path into lib/pkgconfig/rpclib.pc, which is undesirable when installing to a temporary location for example when the result is to be included in a package archive. but it seems i can fix that with sed. i am also creating an arch linux package while i figure out the setup process which i submit to the arch user repository so users can install rpclib as a package with simple commands (aur page, package source).

i see it installs .cmake files like /usr/lib/cmake/rpclib/rpclibTargets-noconfig.cmake, not sure if that is intended.

It's best not to do that, and instead add the installation directory/include to your include path, as well as the lib directory to your library search paths.

that's good advise, much easier to uninstall.

@MayaPosch
Copy link

@MayaPosch MayaPosch commented Feb 4, 2018

Is it correct to assume that there is no Ubuntu package for rpclib?

@sztomi
Copy link
Collaborator

@sztomi sztomi commented Feb 5, 2018

@MayaPosch yes. Although it is not hard to make one with CPack. But, in my opinion it is not very useful, unless it is included in Debian (but that wouldn't happen as it is due to the bundled deps).

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

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.