Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMakeLists.txt and linker minor fixes #200

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Mionsz
Copy link
Collaborator

@Mionsz Mionsz commented Sep 23, 2024

CMakeLists.txt and linker minor fixes focus is on:

  • building all dependencies for mcm as a pre-build phase
  • address linker issues that required passing specific paths for libraries to be found under debian
  • lots of minor changes is between.

@Mionsz Mionsz added the maintainers review request Pull request is ready to be reviewed. label Sep 23, 2024
@Mionsz Mionsz changed the title Build dependencies and linker fixes CMakeLists.txt and linker minor fixes Sep 23, 2024
@ko80
Copy link
Collaborator

ko80 commented Sep 25, 2024

@Mionsz Can you elaborate more why you're changing libmcm_dp to libmcm_dp_s?

@Mionsz
Copy link
Collaborator Author

Mionsz commented Sep 25, 2024

@Mionsz Can you elaborate more why you're changing libmcm_dp to libmcm_dp_s?

Due to minor limitations of check-pkg is had to introduce a distinction between libmcm_dp static and libmcm_dp dynamic library. But now when you pointed this out I could leave the naming as it was but introduce libmcm_dp_dyn for dynamic library linkage.
Why static in the first place? To minimize component dependencies and remove the need of library path exporting before run.

@Mionsz
Copy link
Collaborator Author

Mionsz commented Sep 25, 2024

@ko80 I have changed the above mention.

@ko80
Copy link
Collaborator

ko80 commented Sep 25, 2024

This all needs to be verified if sample apps work AND if FFmpeg MCM plugins work on single node.
@Mionsz If you can check that and confirm, I'll approve the changes.

Build dependencies and linker fixes focus is on:
- building all dependencies for mcm as a pre-build phase
- address linker issues that required passing specific paths for libraries to be found under debian
- lots of minor changes is between.

Signed-off-by: Milosz Linkiewicz <[email protected]>
"${BUILD_DIR}/FFmpeg/configure" \
--disable-doc \
--disable-shared \
--enable-static \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you change it from shared to static lib?

target_link_libraries(media_proxy_lib PUBLIC m ${MTL_LIB} ${_REFLECTION}
${_GRPC_GRPCPP} ${_PROTOBUF_LIBPROTOBUF} ${MEMIF_LIB} ${LIBFABRIC})

add_executable(media_proxy ${proxy_srcs})
target_link_libraries(media_proxy PRIVATE media_proxy_lib)
target_link_libraries(media_proxy PRIVATE media_proxy_lib -static-libgcc -static-libstdc++ -pthread -ldl ${LIBBPF})
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need those libraries in static version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintainers review request Pull request is ready to be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants