Issue
I'm working with https://github.com/shadowsocks/shadowsocks-libev
Found there's *-dev lib under ubnutu apt-get
libshadowsocks-libev-dev - lightweight and secure socks5 proxy (development files)
But with the default make, it didn't generate the so as I expected, Just excuted binaries
Also I've tried with some grep search under the source code still cant figure it out
So Could any told me how to build the libshadowsocks-libev-dev, more specificly the libshadowsocks-libev.so
Beyond that, for all those *-dev package, is there any formal build steps?
Solution
It's not like there is any very specific guidance for -dev
packages in general. The person who created the package created a debian/rules
and its supporting infrastructure which builds two or more packages from the upstream package source, and decided to put some of those files in the -dev
package so that people who only need the binary can install only the binary, and people who want more can install both packages.
Typically, the non-dev
package installs the library file, and the -dev
package contains C header files and/or similar resources for someone who wants to compile code which uses this library.
The Github project for this package contains the definitions in https://github.com/shadowsocks/shadowsocks-libev/tree/master/debian -- in particular, libshadowsocks-libev-dev.install
installs the .so
(probably a symlink) while libshadowsocks-libev2.install
(the non-dev
package) installs usr/lib/*/libshadowsocks-libev.so.*
(i.e. the actual binary).
The README.md contains rather detailed instructions for building from source on Debian-based platforms.
Answered By - tripleee