c++ - Library dependencies when distributing software on Linux? -


i'm trying linux release piece of qt software, i'm clueless linux newbie. i've built application qt libraries statically linked, , made .deb , .rpm packages, when test them warnings missing libraries on distributions. example, .deb version runs fine on debian , ubuntu, doesn't start on linux mint kde due missing libraries. running ldd find there 4 missing libraries:

libpng16.so.16 => not found libicui18n.so.57 => not found libicuuc.so.57 => not found libicudata.so.57 => not found 

clearly need somehow ensure necessary library present, list of libraries required seems vary. example linux mint cinnamon lists 33 libraries, while ubuntu unity lists 34 (libpng12.so.0 one). assume of libraries standard linux libraries come distributions wouldn't need include them.

i don't know i'm doing, few questions:

what best way determine list of libraries need include .deb , .rpm packages? if ldd best option, need include listed libraries or there bundled standard debian/rpm distributions?

what best way to include libraries? include them in package or specify them in dependency list?

any other general advice appreciated because i'm not sure i'm going right way.

thanks.

don't think library dependencies; think package dependencies.

when create (deb, rpm) package, can list other packages depends on. figure out package has desired library in it, , add package dependency.

then, when user installs package, package manager also, if needs to, install packages depends on. presto: have libraries need.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -