Finding dependencies for a compiled C++ program

Minimus Heximus

I wrote and compiled a C++ program using Qt Creator in Ubuntu 13.10 (32 bit). I tried to run the compiled program in a newly installed Ubuntu 13.10 (64 bit). But it is not run.

I think the problem is with dependencies. How can I find (=know the name and version of) necessary dependencies?

etherfish

This is a bit crude, but I think the ldd command is intended for your situation.

ldd is used to list the dynamicly loaded library dependencies for an executable. If ldd is unable to find a needed library, it indicates the library "not found."

As an example, if I run ldd with an old gqrx binary I found, I get the following output:

linux-gate.so.1 (0xb7fff000)
libgnuradio-audio.so.3.6.1 => not found
libgnuradio-osmosdr.so.0 => not found
libgnuradio-core.so.3.6.1 => not found
libgruel.so.3.6.1 => not found
libfftw3f.so.3 => /usr/lib/i386-linux-gnu/libfftw3f.so.3 (0x41b5d000)
libusb-1.0.so.0 => /lib/i386-linux-gnu/libusb-1.0.so.0 (0x422ee000)
libQtGui.so.4 => /usr/lib/i386-linux-gnu/libQtGui.so.4 (0x42e47000)
libQtCore.so.4 => /usr/lib/i386-linux-gnu/libQtCore.so.4 (0xb7cde000)
libpthread.so.0 => /lib/i386-linux-gnu/i686/cmov/libpthread.so.0 (0x411dc000)

As you can see, I've since upgraded the libgnuradio libraries and removed the older versions. ldd lists those missing libraries as "not found."

Good Luck!

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

if 0 is compiled in c program

From Dev

C++ program can not be compiled

From Dev

c program finding call function

From Dev

Taylor Series Calculating Program in C compiled with GCC

From Dev

Re-write segment of a compiled C program

From Dev

Why is the program not running the main function of a flex and bison compiled C program

From Dev

Maven dependencies not being compiled

From Dev

Linking C compiled static library to C++ Program

From Dev

Is there a difference in source code for release and debug compiled program? [C/C++]

From Dev

rename() not working in a C program compiled using Dev C++

From Dev

Intel Compilers: linking a fortran compiled library to main program of C

From Dev

Why GCC compiled C program needs .eh_frame section?

From Dev

Can C macros be expanded in gdb when the program was compiled using clang?

From Dev

How can a single compiled C program run on multiple architectures?

From Dev

Cannot get stderr of the execution of a compiled C program with the system command in perl

From Dev

Play a music file in C++ program being compiled by MinGW

From Dev

Can C macros be expanded in gdb when the program was compiled using clang?

From Dev

exiting a shell script from a c program compiled from the same script

From Dev

Intel Compilers: linking a fortran compiled library to main program of C

From Dev

Compiled c++ output file displays random character at end of program?

From Dev

Running a C++ compiled program in the background and sending input whenever needed

From Dev

C program compiled in cygwin with make: "cannot execute binary file"

From Dev

Error running C program compiled with Geany IDE Error Code: 127

From Dev

How do I change the final location of a compiled c program in the terminal

From Dev

Run a compiled C program on a computer where the headers don't exist

From Dev

How to add the ncurses.h to a C++ program compiled on gcc?

From Dev

Finding locally compiled Raku modules

From Dev

Command for finding dependencies of an executable

From Dev

Decompiling a compiled program with Go

Related Related

  1. 1

    if 0 is compiled in c program

  2. 2

    C++ program can not be compiled

  3. 3

    c program finding call function

  4. 4

    Taylor Series Calculating Program in C compiled with GCC

  5. 5

    Re-write segment of a compiled C program

  6. 6

    Why is the program not running the main function of a flex and bison compiled C program

  7. 7

    Maven dependencies not being compiled

  8. 8

    Linking C compiled static library to C++ Program

  9. 9

    Is there a difference in source code for release and debug compiled program? [C/C++]

  10. 10

    rename() not working in a C program compiled using Dev C++

  11. 11

    Intel Compilers: linking a fortran compiled library to main program of C

  12. 12

    Why GCC compiled C program needs .eh_frame section?

  13. 13

    Can C macros be expanded in gdb when the program was compiled using clang?

  14. 14

    How can a single compiled C program run on multiple architectures?

  15. 15

    Cannot get stderr of the execution of a compiled C program with the system command in perl

  16. 16

    Play a music file in C++ program being compiled by MinGW

  17. 17

    Can C macros be expanded in gdb when the program was compiled using clang?

  18. 18

    exiting a shell script from a c program compiled from the same script

  19. 19

    Intel Compilers: linking a fortran compiled library to main program of C

  20. 20

    Compiled c++ output file displays random character at end of program?

  21. 21

    Running a C++ compiled program in the background and sending input whenever needed

  22. 22

    C program compiled in cygwin with make: "cannot execute binary file"

  23. 23

    Error running C program compiled with Geany IDE Error Code: 127

  24. 24

    How do I change the final location of a compiled c program in the terminal

  25. 25

    Run a compiled C program on a computer where the headers don't exist

  26. 26

    How to add the ncurses.h to a C++ program compiled on gcc?

  27. 27

    Finding locally compiled Raku modules

  28. 28

    Command for finding dependencies of an executable

  29. 29

    Decompiling a compiled program with Go

HotTag

Archive