Skip to content

Error building OSM Renderer: Missing CMakeLists.txt in lunasvg-source/plutovg #8658

@MikaYeghi

Description

@MikaYeghi

I am following the digital twin tutorial. It says the following: "You first need to build the OSM renderer before proceeding to build CARLA." That is what I do. First, I follow "Part One: Prerequisites" on this page. Second, I clone the CARLA repository and switch to the dev branch without building CARLA (in the link shared above it clearly states that this is a feature of the dev branch only):

(carla-dev) acrl-uiuc@ACRL:~/Mikael/CARLA_latest$ git clone https://github.com/carla-simulator/carla && cd carla && git switch dev
Cloning into 'carla'...
remote: Enumerating objects: 94229, done.
remote: Counting objects: 100% (194/194), done.
remote: Compressing objects: 100% (154/154), done.
remote: Total 94229 (delta 74), reused 51 (delta 37), pack-reused 94035 (from 4)
Receiving objects: 100% (94229/94229), 1.87 GiB | 13.89 MiB/s, done.
Resolving deltas: 100% (60723/60723), done.
Updating files: 100% (2039/2039), done.
Branch 'dev' set up to track remote branch 'dev' from 'origin'.
Switched to a new branch 'dev'

Then, I try to build the OSM Renderer before building CARLA, and this is where I encounter a problem:

(carla-dev) acrl-uiuc@ACRL:~/Mikael/CARLA_latest/carla$ make osmrenderer 
Cloning libosmscout.
/home/acrl-uiuc/Mikael/CARLA_latest/carla/Build
Cloning into '/home/acrl-uiuc/Mikael/CARLA_latest/carla/Build/libosmscout-source'...
remote: Enumerating objects: 80412, done.
remote: Counting objects: 100% (45/45), done.
remote: Compressing objects: 100% (40/40), done.
remote: Total 80412 (delta 9), reused 7 (delta 5), pack-reused 80367 (from 2)
Receiving objects: 100% (80412/80412), 80.76 MiB | 25.82 MiB/s, done.
Resolving deltas: 100% (55442/55442), done.
Note: switching to 'e83e4881a4adc69c5a4bcc05de5e1f23ebf06238'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at e83e4881a Issue #1045 - Update projection
=================
(A LOT OF OKAY-ISH LOOKING LINES)
(A LOT OF OKAY-ISH LOOKING LINES)
(A LOT OF OKAY-ISH LOOKING LINES)
(A LOT OF OKAY-ISH LOOKING LINES)
(A LOT OF OKAY-ISH LOOKING LINES)
=================
make[1]: Leaving directory '/home/acrl-uiuc/Mikael/CARLA_latest/carla/Build/libosmscout-build'
Cloning luna-svg
Cloning into '/home/acrl-uiuc/Mikael/CARLA_latest/carla/Build/lunasvg-source'...
remote: Enumerating objects: 3238, done.
remote: Counting objects: 100% (1004/1004), done.
remote: Compressing objects: 100% (216/216), done.
remote: Total 3238 (delta 853), reused 793 (delta 786), pack-reused 2234 (from 2)
Receiving objects: 100% (3238/3238), 1.81 MiB | 2.75 MiB/s, done.
Resolving deltas: 100% (2099/2099), done.
-- The CXX compiler identification is GNU 9.4.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/lib/ccache/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:11 (add_subdirectory):
  The source directory

    /home/acrl-uiuc/Mikael/CARLA_latest/carla/Build/lunasvg-source/plutovg

  does not contain a CMakeLists.txt file.


-- Configuring incomplete, errors occurred!
make: *** [Util/BuildTools/Linux.mk:160: osmrenderer] Error 1

The build does not finish properly because of the error above --- does not contain a CMakeLists.txt file. Has anyone else encountered this error before? How can I fix it?

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