Setting up and Compiling code from git


#1

Hiya,
I am following the instructions here https://sebiik.github.io/community.axoloti.com.backup/t/installing-on-windows/36 for the Developer Installation.

After running build.bat i got some error that might be related to a c compiler or java settings - not really sure!

##### Compiling libusb ######
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports nested variables... (cached) yes
checking for gcc... gcc -static-libgcc
checking whether the C compiler works... no
configure: error: in `/c/Users/alex/DOCUME~1/CLONED~1/axoloti/PLATFO~3/src/libus
b-1.0.19':
configure: error: C compiler cannot create executables
See `config.log' for more details
ERROR: The system was unable to find the specified registry key or value.
JAVA_HOME: C:\Program Files\Java\jdk1.8.0_66
ANT: C:\Users\alex\DOCUME~1\CLONED~1\axoloti\PLATFO~3\\apache-ant-1.9.4\bin\ant.
bat
ANT not found, please run build.bat first
Press any key to continue . . .

#2

Alex,
Please report the first error that pops up!
As far as I can see gcc is not working. This is a native compiler, normally provided by mingw, and automatically downloaded with mingw-get if missing. Also Ant is not found, but this is downloaded and unzipped by build.sh (which is called from build.bat). So downloading or unzipping Ant failed, or wget is missing, but wget is automatically downloaded with mingw-get in build.bat.


#3

lets see
*edit looks like some funky console graphics errors too..like progressbar is in the middle of the text content maybe due to scrolling.

more of the console while getting is active


#4

gonna do some manual installations with mingw now.


#5

I'd recommend just a fresh "default" install of mingw,
http://www.mingw.org/download/installer

build.bat should fetch missing mingw packages automatically.


#6

so weird that gcc is installed yet doesnt work with this batch file.


#7

phew - nuking the mingw folder worked. Build successfully did everything it needed...

NOW the patcher needs new firmware it seems. I thought it compiled stuff itself :smile:

Firmware version: 1.0.0.1, crc=0xFB45859B, entrypoint=0x20011000
Firmware CRC mismatch! Please flash the firmware first! Hardware firmware CRC = FB45859B <> Software CRC = Please compile the firmware first
finished loading objects
Link to firmware CRC Please compile the firmware first
can't read flasher, please compile firmware! (file: C:\Users\alex\Documents\ClonedAxoloti\axoloti\firmware/flasher/flasher_build/flasher.bin )

#8

If I run the compile_firmware.bat files it seems my path's are not correctly set. What is the best way to configure an install from git? The batch file seems to be looking for make.exe to build the firmware but not sure that it is correctly setting it up.


#9

pfffffffffffffffffffffffffft. Theres a menu item that appears under Board.


#10

wow i think it works