From cacde65db64d120bdab6ac88104e2931e76c0753 Mon Sep 17 00:00:00 2001 From: Miaofei Date: Mon, 28 Aug 2023 23:46:55 -0700 Subject: [PATCH] fix build issues Signed-off-by: Miaofei --- CMakeLists.txt | 14 ++++++++++++-- README.md | 9 +++++---- external_libs/install_openframeworks.cmake | 4 ++++ 3 files changed, 21 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 009ccdf..4bbcc9a 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,8 +40,12 @@ set(${APP_NAME}_SOURCE_FILES find_package(PkgConfig) pkg_check_modules(GLIB REQUIRED glib-2.0) pkg_check_modules(GSTREAMER REQUIRED gstreamer-1.0) +pkg_check_modules(GSTREAMER_APP REQUIRED gstreamer-app-1.0) +pkg_check_modules(GSTREAMER_VIDEO REQUIRED gstreamer-video-1.0) pkg_check_modules(CAIRO REQUIRED cairo) +add_definitions(-DBOOST_ERROR_CODE_HEADER_ONLY) + ExternalProject_Add(armadillo SOURCE_DIR "${CMAKE_SOURCE_DIR}/external_libs/armadillo-9.200.5" CONFIGURE_COMMAND "" @@ -98,16 +102,22 @@ target_link_libraries(${APP_NAME} glut glfw openal - libPocoUtil.a - libPocoFoundation.a + sndfile + kiss + tess2 + PocoUtil + PocoFoundation fontconfig freetype freeimage X11 ${GSTREAMER_LIBRARIES} + ${GSTREAMER_APP_LIBRARIES} + ${GSTREAMER_VIDEO_LIBRARIES} ${CAIRO_LIBRARIES} ${GLIB_LIBRARIES} uriparser + curl boost_filesystem boost_system pthread diff --git a/README.md b/README.md index fbaf04f..a26e08a 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Visualization (implemented using openFrameworks) is also addded. ```bash git clone https://github.com/mm318/mrg-cpp.git -cd mrg-cpp +cd mrg-cpp/ ``` - Setup openFrameworks 0.11.2 and its CMake build: @@ -29,7 +29,7 @@ sudo external_libs/of_v0.11.2_linux64gcc6_release/scripts/linux/ubuntu/install_d ```bash mkdir build -cd build +cd build/ cmake .. make -j4 ``` @@ -38,7 +38,7 @@ make -j4 ## Usage ``` -mrg_axon_model [--record-video=