Slicer Extension Manager build error: Missing Photogrammetry.json on CDash

Hello everyone,

I’m having trouble with my SlicerPhotogrammetry extension on the Slicer Preview dashboard. This is not a personal/local build; it’s built on the official dashboard (CDash). Despite the build itself completing successfully, packaging fails with this error:

CMake Error at /work/Preview/Slicer-0/Extensions/CMake/SlicerFunctionExtractExtensionDescription.cmake:135 (message):
  error: EXTENSION_FILE CMake variable points to a nonexistent file or directory:
  /.../SlicerPhotogrammetry-build/./Photogrammetry.json

Call Stack (most recent call first):
  /work/Preview/Slicer-0/Extensions/CMake/SlicerExtensionPackageAndUploadTarget.cmake:206 (slicerFunctionExtractExtensionDescriptionFromJson)

Is Photogrammetry.json being references because of the module name or the extension index .json file having the wrong name?

The extension includes two scripted modules (Photogrammetry and ClusterPhotos) and a standard CMakeLists.txt that sets EXTENSION_NAME, EXTENSION_DESCRIPTION, etc. I do see a .s4ext file generated, but I don’t see a corresponding .json file in the build directory. For some reason, the build system references Photogrammetry.json yet never seems to generate it.

Has anyone encountered a similar issue or know how to ensure the .json file is properly created and recognized? Any guidance on what might be missing in my extension’s configuration to keep CDash from throwing this error would be greatly appreciated.

Thanks so much!

@oothomas Check the extensions manager tomorrow following the change I pushed at:

@jamesobutler thanks for the fixes. Looks like it is built for preview but is not listed for Stable? Any idea why that might be the case?

The Photogrammetry was only submitted to the main branch of the extensions index making it available for Slicer Preview builds.

A PR has to be submitted to the 5.8 branch to make it available for the Slicer 5.8.x stable releases.

Got it thanks for the pointer.