N
N
Noortvel2016-01-11 09:02:07
Debian
Noortvel, 2016-01-11 09:02:07

Compiling for only one platform?

Do I need to recompile a c++ project from Ubuntu to Debain? (The hardware is the same)

Answer the question

In order to leave comments, you need to log in

5 answer(s)
N
nirvimel, 2016-01-11
@Noortvel

Generally - yes, it is better to recompile.
But this does not depend on the name of the distribution, but on the versions of specific libraries on which the project depends. Some version differences allow binary compatibility of dependent packages, some do not. Therefore, for each (compiled) binary package, the range of versions of the libraries on which it depends is always clearly stated. This means that the package has been tested on this range, works correctly and can be ported to any debian-based distribution provided that the versions of the libraries match, otherwise it will not install.

U
uvelichitel, 2016-01-11
@uvelichitel

gcc ...-static... set the linker flag when compiling. Get a big binary with no dependencies if you're lucky.

A
Armenian Radio, 2016-01-11
@gbg

Depends on the libraries the project is linked against. If we get lucky.

A
Anatoly Medvedev, 2016-01-11
@balamyt92

No, but there are many nuances. The most important are, of course, the bit depth and the presence of dependencies. The ldd command will help you determine the dependencies.

O
Oleg Tsilyurik, 2016-01-11
@Olej

Not necessary

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question