V 3.7.3 Error at cmake-proxies/cmake-modules/dependencies/rapidjson.cmake:6

Hi

I have previously built v 3.4.2 on Tinycore linux 64 bit 15 release with no issues. If interested its visible in a normal web browser for the 15x build here
http://tinycorelinux.net/15.x/x86_64/tcz/src/audacity/build-audacity.sh

I am now attempting to compile on 16 series and cmake borks with errors

CMake Error at cmake-proxies/cmake-modules/dependencies/rapidjson.cmake:6 (add_library):
add_library cannot create ALIAS target “rapidjson::rapidJSON” because
target “rapidjson” is itself an ALIAS.
Call Stack (most recent call first):
cmake-proxies/cmake-modules/AudacityDependencies.cmake:230 (include)
CMakeLists.txt:592 (include)

As I have a bork, I have not progressed as cmake reports

Configuring incomplete, errors occurred!

I am aware that audacity v 4 will need QT6 but I am trying to see if this version will run on gtk3.

any clues on how to get past the rapidjson alias error?

thanks for reading

my incomplete build as a txt file is uploaded as build-audacity.txt
build-audacity.txt (8.3 KB)

Oops will repost in the compiling section
sorry for the noise this forum

Hi

I will not post in compiling section.

I found that the git source for rapidJSON had differences in my cmake file to what I found that Debian used.

I changed that and it no longer borks during compile with

echo 'get_filename_component(RAPIDJSON_CMAKE_DIR “${CMAKE_CURRENT_LIST_FILE}” PATH)
set(RAPIDJSON_INCLUDE_DIRS “/usr/local/include”)
message(STATUS “RapidJSON found. Headers: ${RAPIDJSON_INCLUDE_DIRS}”) ’ > RapidJSONConfig.cmake

Post can be moved to compiling section
Post can be marked as solved