Skip to content

No rule to make target '/usr/lib64/libboost_program_options.a', needed by 'nvbandwidth' #4

@cloud11665

Description

@cloud11665

Build error caused by static linkage of boost-program-options on fedora 37.

cld@kafka:nvbandwidth$ uname -a
Linux kafka 6.3.3-202.rog.fc37.x86_64 #1 SMP PREEMPT_DYNAMIC Wed May 24 06:56:18 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
cld@kafka:nvbandwidth$ ldconfig -p  | grep program_options
        libboost_program_options.so.1.78.0 (libc6,x86-64) => /lib64/libboost_program_options.so.1.78.0
        libboost_program_options.so (libc6,x86-64) => /lib64/libboost_program_options.so

can be fixed by removing Boost_USE_STATIC_LIBS ON from CMakeLists.txt

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 77a7b0d..e15a376 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -12,7 +12,7 @@ if(NOT CMAKE_BUILD_TYPE)
     set(CMAKE_BUILD_TYPE "Release")
 endif()

-set(Boost_USE_STATIC_LIBS ON)
+#set(Boost_USE_STATIC_LIBS ON)
 find_package(Boost COMPONENTS program_options REQUIRED)

 set(src

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions