CMAKE_OBJECT_PATH_MAX

If you have a simple question and just want an answer.
Alexander Nicholson
Junior Member
Posts: 4
Joined: Tue Jan 14, 2025 11:00 am

CMAKE_OBJECT_PATH_MAX

Post by Alexander Nicholson »

Hi, I'm trying to load the XVF3800-Software_v3_2_1 firmware into my XK-VOICE-SQ66 board. I followed the readme in the folder:
# Go to the source folder
cd sources

# Install the required Python3 packages
pip3 install -r requirements_build.txt (Here i 'py -m pip install -r requirements_build.txt' because I use Windows11)

# See available configurations
cmake --list-presets

# Configure chosen configuration
# This step can take several minutes
cmake --preset=rel_app_xvf3800
# Or for windows
cmake --preset=rel_app_xvf3800_windows (I used this option)

# See available build presets
cmake --build --list-presets

# Build chosen preset
cmake --build --preset=ua-io48-lin"

The problem I have is this: The object file directory

C:/Users/user1/Downloads/XVF3800-Software_v3_2_1/xvf3800_source_external_241029_121941/sources/build/app_xvf3800/xvfm/fixed_beam_gating/CMakeFiles/fwk_xvf_fixed_beam_gating.dir/./

has 182 characters. The maximum full path to an object file is 200
characters (see CMAKE_OBJECT_PATH_MAX). Object file



I have enabled Win32 long paths in the File system and in the Registry Editor I set the bit LongPathsEnabled to 1.
However, after restarting the computer, I receive the same error.
Could anyone help me?
Thank you
ACascarino - XMOS
Junior Member
Posts: 5
Joined: Wed May 22, 2024 5:26 pm

Post by ACascarino - XMOS »

Hi Alexander,

Unfortunately, Windows path length issues are irritatingly common!

The quickest and easiest solution would be to rename your directory structure - going from

Code: Select all

C:/Users/user1/Downloads/XVF3800-Software_v3_2_1/xvf3800_source_external_241029_121941/
to

Code: Select all

C:/Users/user1/Downloads/xvf3800-321/ex/
will immediately free up a large number of characters. In our testing suite, the equivalent path (up to immediately before sources) is 43 characters and that generates no warnings - so depending on the real length of the username user1 the above suggestion should work fine.
Alexander Nicholson
Junior Member
Posts: 4
Joined: Tue Jan 14, 2025 11:00 am

Post by Alexander Nicholson »

Thanks a lot it works fine now