Cant't compile patches


#1

Hi there!

Since today I am a proud owner of the Axoloti! Unfortunately, I can not get it running. When I try to compile I get the following error message:

Generate code complete
Start compiling patch
BDIR = C:\Users\Mo\DOCUME~1\axoloti/build
FIRMWARE = .
"Build precompiled header"
arm-none-eabi-g++ -nostdlib -fno-exceptions -fno-rtti -mcpu=cortex-m4 -O3 -fomit-frame-pointer -falign-functions=16 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -Wunused-parameter -DCORTEX_USE_FPU=TRUE -DTHUMB_PRESENT -mno-thumb-interwork -DTHUMB_NO_INTERWORKING -mthumb -DTHUMB -std=c++11 -DARM_MATH_CM4 -D__FPU_PRESENT -fno-math-errno -fno-threadsafe-statics -fno-use-cxa-atexit -Wno-unused-parameter -IC:\PROGRA~2\Axoloti\app/CMSIS/Include -IC:\PROGRA~2\Axoloti\app/CMSIS/DSP_Lib/Include -IC:\PROGRA~2\Axoloti\app/chibios/os/ports/common/ARMCMx/CMSIS/include -IC:\PROGRA~2\Axoloti\app/chibios/os/ports/common/ARMCMx -IC:\PROGRA~2\Axoloti\app/chibios/os/ports/GCC/ARMCMx -IC:\PROGRA~2\Axoloti\app/chibios/os/ports/GCC/ARMCMx/STM32F4xx -IC:\PROGRA~2\Axoloti\app/chibios/os/kernel/include -IC:\PROGRA~2\Axoloti\app/chibios/os/hal/include -IC:\PROGRA~2\Axoloti\app/chibios/os/hal/platforms/STM32F4xx -IC:\PROGRA~2\Axoloti\app/chibios/os/hal/platforms/STM32 -IC:\PROGRA~2\Axoloti\app/chibios/os/hal/platforms/STM32/GPIOv2 -IC:\PROGRA~2\Axoloti\app/chibios/os/hal/platforms/STM32/I2Cv1 -IC:\PROGRA~2\Axoloti\app/chibios/os/hal/platforms/STM32/OTGv1 -IC:\PROGRA~2\Axoloti\app/chibios/os/hal/platforms/STM32/RTCv2 -IC:\PROGRA~2\Axoloti\app/chibios/os/hal/platforms/STM32/SPIv1 -IC:\PROGRA~2\Axoloti\app/chibios/os/hal/platforms/STM32/TIMv1 -IC:\PROGRA~2\Axoloti\app/chibios/os/hal/platforms/STM32/USARTv1 -IC:\PROGRA~2\Axoloti\app/chibios/boards/ST_STM32F4_DISCOVERY -IC:\PROGRA~2\Axoloti\app/chibios/ext/fatfs/src -I. -IC:\PROGRA~2\Axoloti\app/chibios -I./mutable_instruments -Winvalid-pch -MD -MP -c ./xpatch.h -o C:\Users\Mo\DOCUME~1\axoloti/build/xpatch.h.gch
./xpatch.h:1:0: fatal error: can't create precompiled header C:\Users\Mo\DOCUME~1\axoloti/build/xpatch.h.gch: Permission denied
extern "C" {
^
compilation terminated.
make: *** [C:\Users\Mo\DOCUME~1\axoloti/build/xpatch.h.gch] Error 1
shell task failed, exit value: 1
Compiling patch failed ( C:\Users\Mo\Documents\axoloti\axoloti-factory\patches\demos\synth\dreamy.axp )

I use windows 10 and I think it might have something to do with the fact that I moved the documents folder to another drive, axoloti installer generated another one on c: though. If that's the cause, can I set up the software to use another directory? just setting the paths under preferences to somewhere else didn't do the trick...

Thx in advance!


#2

you can setup an environment called axoloti_home in your windows settings, which points to the new directory
e.g. d:\users\myuser\Documents\axoloti
this is the only config you need, all other directories (in prefs) are generated relative to this.

(you can delete anything it put on your C drive, dont move it)

these environment variables are covered here:


#3

Thank you, this was exactly what I was looking for! Solved my issue! :smiley: