Skip to content

Fix ONNX path conversion for non-Windows builds#26

Merged
tctco merged 1 commit into
devfrom
codex/fix-compilation-errors-on-mac/linux
May 20, 2026
Merged

Fix ONNX path conversion for non-Windows builds#26
tctco merged 1 commit into
devfrom
codex/fix-compilation-errors-on-mac/linux

Conversation

@tctco
Copy link
Copy Markdown
Owner

@tctco tctco commented May 20, 2026

Motivation

  • A recent change added wide-char conversion in makeOrtPath which on macOS/Linux produced a basic_string<wchar_t> -> basic_string<char> return-type mismatch and broke compilation.

Description

  • Update localizer/src/core/common/OnnxPath.h so makeOrtPath does Common::path::utf8ToWide(preparedPath) only inside the Windows (_WIN32) branch when ORTCHAR_T is wchar_t, and return preparedPath directly on non-Windows platforms to preserve correct return types.

Testing

  • Attempted to run CMake configure and build in localizer/src to validate the change, but the run stopped because the environment is missing ITK (ITKConfig.cmake) and a LFS pointer file (localizer/Testing/ED01_PET.nii), so a full build could not be completed. No automated unit tests were executed.

Codex Task

@tctco tctco merged commit 8dc51cf into dev May 20, 2026
5 checks passed
@tctco tctco deleted the codex/fix-compilation-errors-on-mac/linux branch May 20, 2026 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant