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

Hi there, I am attempting to install Cadabra with the source code, because neither of the Windows 10 installations are currently working (both lead to Cadabra crashing immediately upon opening).

I am following the instructions, and I am stuck on the following step:

cmake -G "Visual Studio 16 2019" -A x64 ..

I cannot figure out what those dots .. are supposed to be. If I skip this part, and just run:

cmake --build . --config RelWithDebInfo --target install

then run


all 46 of the tests fail. Any help with this part would be greatly appreciated!

in Installation trouble by (130 points)

Also, in case this may have caused the problem, I should probably also mention that when running the steps:

cd cadabra2 mkdir build cd build cmake -DCMAKE_TOOLCHAIN_FILE=C:/dev/vcpkg/scripts/buildsystems/vcpkg.cmake

the last step wouldn't run, because the build folder did not contain a CMakeLists.txt file. I had to change the active directory back to C:\dev\vcpkg\cadabra2, then run:

cmake -B C:\dev\vcpkg\cadabra2\build -S . -DCMAKE_TOOLCHAIN_FILE=C:/dev/vcpkg/scripts/buildsystems/vcpkg.cmake

This was all on-the-fly extrapolation from the instructions, with no prior knowledge on how to use these systems. It seemed to work ok, but I am very unsure due to my inexperience.

Ok, I've had another go at installing the program with the source code, and I'm stuck again. Here's what I am running in the "x64 Native Tools Command Prompt for VS 2019" window:

C:\dev\cadabra2\build>cmake -S "C:\dev\cadabra2" -B "C:\dev\cadabra2\build" -DCMAKE_TOOLCHAIN_FILE=C:/dev/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DVCPKG_TARGET_TRIPLET=x64-windows -DCMAKE_INSTALL_PREFIX=C:\Cadabra -G "Visual Studio 16 2019" -A x64 ..

This produces the error:

CMake Error: Error: generator platform: x64 Does not match the platform used previously: Either remove the CMakeCache.txt file and CMakeFiles directory or choose a different binary directory.

Does anyone know a way to resolve this error?

Ok, I started from scratch. Re-installed vcpkg and cadabra, leaving the double-dots .. in this time (silly me).

I didn't run into most of the previous problems I encountered. However running ctest still leads to a 100% failure rate (output posted below). Is this normal behaviour?

I managed to fire up the notebook interface without it crashing, and I was able to process a few calculations without encountering any visible problems. Fortunately, it seems as though I can continue my work using Cadabra for now, despite these errors.

0% tests passed, 46 tests failed out of 46

Total Test time (real) = 5.90 sec

The following tests FAILED: 1 - quickstart (Failed) 2 - beginners (Failed) 3 - tensor_monomials (Failed) 4 - for_previous_users (Failed) 5 - converge (Failed) 6 - fierz (Failed) 7 - gamma_matrix_algebra (Failed) 8 - poincare_algebra (Failed) 9 - string_states (Failed) 10 - bianchi_identities (Failed) 11 - schwarzschild (Failed) 12 - kaluza_klein (Failed) 13 - scalar_manipulations (Failed) 14 - index_positions (Failed) 15 - forms (Failed) 16 - packages (Failed) 17 - manip (Failed) 18 - modules (Failed) 19 - integrals (Failed) 20 - display (Failed) 21 - dummies (Failed) 22 - explicit_implicit (Failed) 23 - trigonometric (Failed) 24 - noncovariant (Failed) 25 - algebra (Failed) 26 - components (Failed) 27 - factor (Failed) 28 - field_theory (Failed) 29 - gamma_paper (Failed) 30 - implicit (Failed) 31 - selecting (Failed) 32 - paper (Failed) 33 - programming (Failed) 34 - basic (Failed) 35 - meld (Failed) 36 - numerical (Failed) 37 - output (Failed) 38 - substitute (Failed) 39 - canonicalise (Failed) 40 - derivative (Failed) 41 - relativity (Failed) 42 - spinors (Failed) 43 - sympy_cdb (Failed) 44 - symmetry (Failed) 45 - vary (Failed) 46 - young (Failed) Errors while running CTest

Please log in or register to answer this question.