FRC Vision building on windows Error

Hello. I was trying to build our vision program from windows and deploy it using frc vision. I was able to successfully run a very basic hello world program but when I added a couple of files and included them, it doesnt seem to build properly. I have opencv includes in the other files and it seems to recognize those through vscode so im not sure what it could be. Unless the windows includes are different than the pis

arm-raspbian9-linux-gnueabihf-g++ -pthread -O -c -o main.o -Iinclude main.cpp
process_begin: CreateProcess(NULL, arm-raspbian9-linux-gnueabihf-g++ -pthread -O -c -o main.o  -Iinclude main.cpp, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [main.o] Error 2

My file directory looks like:
-include
-lib
-main.cpp
-makefile
-TargetInfo.cpp
-TargetInfo.h
-TigerVision.cpp
-TigerVision.h

And here is the main file

https://pastebin.com/4LYpY6bk

Thanks
Drew

Have you installed the raspbian cross compiler in accordance with the README.txt (download from github here) and make sure it’s on your path? What happens when you just try to run “arm-raspbian9-linux-gnueabihf-g++” on the command line?

arm-raspbian9-linux-gnueabihf-g++: fatal error: no input files
compilation terminated.

is the output from the terminal. I added C:\Users\willi\Downloads\Raspbian9-Windows-Toolchain-6.3.0\raspbian9\bin to my path

Can you PM me the Makefile? What make are you using?

will do

Unfortunately it appears the windows make program linked to in the README file does not work with the cross-compiler. Sorry about that! It’s necessary to use mingw32-make instead; I’ve attached a zip file of it so you don’t need to download and install the entirety of mingw32. I’ll figure out how to best include this in the next release (probably by embedding it in the example .zip file or including it with the compiler package).

mingw32-make.zip (1.4 MB)

That seemed to work! Thank you. As a final question, I am having a linker error when running “make”. I added my other two files as .o files in the make next to main.o.

I have an undefined reference to main

If you added more files to the ${EXE}: main.o line, change the $< in the line starting with ${CXX} to $^. This doesn’t hurt anything if only main.o is listed, so I’ll make this change in the Makefile for future releases.

Thank you so much for the help! I got it compiled and running!! :slight_smile: