How to build Gitea with sqlite and bindata for Windows

After following the Gitea documentation to install from source, I ran into trouble during the final build command, which only runs only Linux

TAGS=“bindata” make generate build

If I set the TAGS environment variable on Windows and run ‘make generate’ these errors are produced:

If I run ‘make build’ these errors are produced:

How can I produce the binary image on Windows with all assets compiled in and SQLite enabled?

I’m not sure how others are doing it on Windows, but have you tried to build inside a container or run the make command using http://cmder.net as your shell replacement?

1 Like

Hey balibebas, thanks for your reply : )

I installed the full cmder package you suggested. After building bindata manually and adding my workspace’s bin folder to PATH, I can now run mingw32-make generate build succesfully.

During execution I still get a few errors:
FIND: Parameter format not correct
FIND: Parameter format not correct
FIND: Parameter format not correct
FIND: Parameter format not correct
FIND: Parameter format not correct

But these didn’t prevent me from creating an executable that seems to work.

It would be great if the documentation was more elaborate for building on Windows. Currently it only shows Linux commands and I had to do quite some extra steps to get this working : o

Thanks for your help balibebas!

Glad I could help. Loves me some GNU on Windoze.