-
Notifications
You must be signed in to change notification settings - Fork 122
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
Use Seasocks with makefile #183
Comments
Hi there! Seasocks is built using CMake, but you don't have to use it that way. You can build it using CMake and then just include the headers in your project. Or use a version of Seasocks from How are you currently using third party libraries in your makefile? And what platform are you on? Maybe we can build a few versions of seasocks as part of the release we do. |
Hi, thanks for answering! I'm developing on Linux, and this is how I'm currently linking seasocks and others:
The problem is that I'm hardcoding seasocks library path, I wanted something easier to compile, so the user does not need to build first seasocks and then my project. |
There's no easy solution for this more generally I'm afraid. The ecosystem for C++ is not well set up for this. You can try one of these things, though none are that appealing:
|
I see D: But this makes me curious, how other libraries do it? e.g I'm using |
You can parameterize the location of seasocks: SEASOCKS_ROOT=/usr
SEASOCKS_LIBRARIES=-L$(SEASOCKS_ROOT)/lib -lseasocks -lconfig++
SEASOCKS_INCLUDEFLAGS=-I$(SEASOCKS_ROOT)/include You can then call your makefile with arguments: $ make SEASOCKS_ROOT=/path/to/your/seasocks/installation |
If you don't mind forcing your users to globally install seasocks as a library as root (which is not something I particularly like) you can ask them to download seasocks, and then install it in It's not something we've done, as it takes time and effort to craft package installations/packages for every OS going. I'm not against this, but it's not something I like doing myself (either the effort of packaging, or as a consumer, relying on OS-installed development libraries and headers; nothing annoys me more than having to |
I see, I guess people have different tastes :) |
We'd be happy for someone to take this on :) I'll happily merge in! |
Create an issue and mark it with an |
Hello.
Any help on how I can integrate this into my project that uses Makefiles?
Ive tried searching but I can only find CMake stuff..
The text was updated successfully, but these errors were encountered: