intel/ad-rss-lib

FATALDependency proj not found

ar4development opened this issue · 3 comments

I'm trying to build the lib using the following steps:

git clone https://github.com/intel/ad-rss-lib.git
cd ad-rss-lib
git submodule update --init
colcon build

However I'm getting

root@264371cba0f0:/home/ad-rss-lib# colcon build                           
Starting >>> spdlog  
Starting >>> ad_map_opendrive_reader
Starting >>> PROJ4
--- stderr: ad_map_opendrive_reader
FATALDependency proj not found!
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
/home/ad-rss-lib/dependencies/map/ad_map_opendrive_reader/PROJ_INCLUDE_DIR
   used as include directory in directory /home/ad-rss-lib/dependencies/map/ad_map_opendrive_reader
PROJ_LIBRARIES
    linked by target "ad_map_opendrive_reader" in directory /home/ad-rss-lib/dependencies/map/ad_map_opendrive_reader

---
Failed   <<< ad_map_opendrive_reader [0.06s, exited with code 1]
Aborted  <<< spdlog [0.09s]
Aborted  <<< PROJ4 [0.14s]   

Could you advice if I am missing some preconditions.

Thank you!

I managed to build everything only after I have manually built dependencies/PROJ with ./autogen.sh && ./configure && make && make install and then running colcon build..

Thanks for raising the issue. I'm adding an explicit dependency to the colcon.meta's to ensure the correct build order.

colcon build --packages-up-to=PROJ4
followed by
colcon build
should also be a workaround for the issue, but I didn't read the issue before you actually had solved it on your own...