binary not linked properly when doing "make install"

Bug #118513 reported by Jonas P
2
Affects Status Importance Assigned to Milestone
eberos
Confirmed
High
Jonas P

Bug Description

binary in src folder differs from the binary which is installed into the bin folder.

bin/eberos gives:
error while loading shared libraries: libhal_base.so.0: cannot open shared object file: No such file or directory

while src/eberos works fine.

ldd diff:
libreadline.so.5 => /lib/libreadline.so.5 (0xb7096000)
libncurses.so.5 => /lib/libncurses.so.5 (0xb7053000)
libgsl.so.0 => /usr/lib/libgsl.so.0 (0xb6eab000)
libgslcblas.so.0 => /usr/lib/libgslcblas.so.0 (0xb6e7a000)

cmake code for the binary and the installation:

add_executable(eberos ${eberos_SRCS})

target_link_libraries(eberos ${QT_LIBRARIES})
target_link_libraries(eberos ${HAL_LIBRARIES})

install(TARGETS eberos
        RUNTIME DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/../bin
        LIBRARY DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/../lib
        ARCHIVE DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/../lib/static)

Related branches

Jonas P (jonas.p)
Changed in eberos:
assignee: nobody → jonas.p
importance: Undecided → High
status: Unconfirmed → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.