Recently I’ve been trying to optimize a bit of python code for swerve using Cython. Ive ran into issues with compiling my files, likely as a result of pulling the python C header files from my installation of python on my desktop. (The compiler seemed to take issue with references to 64 bit integers in pythons header files, which makes sense given that the rio is 32bit) Does anyone know how I could reference the header files for python on the roborio, ideally without compiling on the rio?
If this task would be easier in linux, I have no problem with that (though a windows solution would be preferable as I don’t currently have a machine with a dev environment setup in linux).
This is the exact command I ran:
FRC-gcc -I "D:\Miniconda3\envs\FRC_2022\include" -I "C:\Users\Public\wpilib\2022\roborio\arm-frc2022-linux-gnueabi\usr\include" -I "C:\Users\Public\wpilib\2022\roborio\arm-frc2022-linux-gnueabi\usr\include\sys" -o math.so math.c 2> "log.txt"
Ive attached a log file containing the specific error my compilation attempt threw below.
log.txt (135.7 KB)