Welcome to Cadabra Q&A, where you can ask questions and receive answers from other members of the community.
+1 vote

I've been following the instructions in the git release's readme.rst and setting up to build cababra on windows, but I ran into an issue at the step:


    cmake -DCMAKE_TOOLCHAIN_FILE=C:/Users/chris/vcpkg/scripts/buildsystems/vcpkg.cmake
          -DCMAKE_BUILD_TYPE=RelWithDebInfo 
          -DVCPKG_TARGET_TRIPLET=x64-windows 
          -DCMAKE_INSTALL_PREFIX=C:\Cadabra
          -G "Visual Studio 17 2022" -A x64 ..

It runs fine until I get the error:

-------------------------------------------
  Configuring packages
-------------------------------------------
-- Storing algorithm C++ module as core
-- Storing algorithm C++ module as utils
CMake Error at cmake/functions.cmake:11 (install):
  Syntax error in cmake code at

    C:/Users/chris/cadabra2/cmake/functions.cmake:12

  when parsing string

    C:\Users\chris\anaconda3

  Invalid character escape '\U'.
Call Stack (most recent call first):
  core/CMakeLists.txt:428 (install_directory_permissions)


-- Configuring incomplete, errors occurred!

Not sure how to get around this, looking online suggests it is some forward slash and backslash confusion between windows and cmake when specifying directories.

Any help would be great!

in Installation trouble by (150 points)
edited by

A solution to this seems to be:

Replace the offending macro with a function in the \cadabra2\cmake\functions.cmake file.

However I still encounter issues with missing libraries. I used vcpkg to install gtk3 and atkmm, and I am left with only one missing library (gdkmm):

-------------------------------------------
  Configuring packages
-------------------------------------------
-- Storing algorithm C++ module as core
-- Storing algorithm C++ module as utils

-------------------------------------------
  Configuring native notebook frontend
-------------------------------------------
CMake Error at cmake/windows.cmake:197 (message):
  Could NOT find library gdkmm required for GTKMM3_LIBRARIES
Call Stack (most recent call first):
  cmake/modules/FindGTKMM3.cmake:3 (windows_find_library)
  C:/Users/chris/vcpkg/scripts/buildsystems/vcpkg.cmake:853 (_find_package)
  frontend/CMakeLists.txt:24 (find_package)

Not sure what vcpkg's name is for this library. I had an error for a missing gdk library just like this which was resolved by installing vcpkg's gtk3.

Please log in or register to answer this question.

...