Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add support for Plutovg in BuildOSMRenderer and CMakeLists
  • Loading branch information
johanz9 committed Jul 27, 2025
commit 176ae0dac0a346e407e79f5129932ac750e7b891
19 changes: 19 additions & 0 deletions Util/BuildTools/BuildOSMRenderer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ LIBOSMSCOUT_COMMIT=e83e4881a4adc69c5a4bcc05de5e1f23ebf06238
LUNASVG_SOURCE_FOLDER=${CARLA_BUILD_FOLDER}/lunasvg-source
LUNASVG_BUILD_FOLDER=${CARLA_BUILD_FOLDER}/lunasvg-build

PLUTOVG_SOURCE_FOLDER=${CARLA_BUILD_FOLDER}/plutovg-source
PLUTOVG_BUILD_FOLDER=${CARLA_BUILD_FOLDER}/plutovg-build

OSM_RENDERER_SOURCE=${CARLA_ROOT_FOLDER}/osm-world-renderer
OSM_RENDERER_BUILD=${CARLA_BUILD_FOLDER}/osm-world-renderer-build

Expand Down Expand Up @@ -59,6 +62,22 @@ cmake ${LUNASVG_SOURCE_FOLDER} \
make
make install

# ==============================================================================
# -- Download and build plutovg ------------------------------------------------
# ==============================================================================
echo "Cloning plutovg"
if [ ! -d ${PLUTOVG_SOURCE_FOLDER} ] ; then
git clone ${PLUTOVG_REPO} ${PLUTOVG_SOURCE_FOLDER}
fi

mkdir -p ${PLUTOVG_BUILD_FOLDER}
cd ${PLUTOVG_BUILD_FOLDER}

cmake ${PLUTOVG_SOURCE_FOLDER} \
-DCMAKE_INSTALL_PREFIX=${INSTALLATION_PATH}

make
make install

# ==============================================================================
# -- Build osm-map-renderer tool -----------------------------------------------
Expand Down
5 changes: 4 additions & 1 deletion osm-world-renderer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ project(OsmMapRenderer)
# Libosmscout and Luna SVG Library
include_directories(ThirdParties/include)
include_directories(ThirdParties/include/lunasvg)
include_directories(ThirdParties/include/plutovg)

link_directories(ThirdParties/lib)

add_definitions(-D_USE_MATH_DEFINES)
Expand All @@ -19,4 +21,5 @@ target_link_libraries(osm-world-renderer OsmRenderer)
target_link_libraries(osm-world-renderer osmscout)
target_link_libraries(osm-world-renderer osmscout_map)
target_link_libraries(osm-world-renderer osmscout_map_svg)
target_link_libraries(osm-world-renderer lunasvg)
target_link_libraries(osm-world-renderer lunasvg)
target_link_libraries(osm-world-renderer plutovg)