Grafana-server: problem with compilation and execution on Windows

Hello,

I’ve been developing Grafana on Linux and now wanted to do it on Windows.
I can get it to compile and run on Linux using the instructions of the README.md on the Grafana repository.

On Windows, I can get it to compile using the information provided here, but when I launch and access via browser (locally), it produces a series of 404 errors in the server log.

These are the specs:

Win 7 x64 Professional
Python 3.7 x64 (configured for the system)
Python 2.7 (passed on to npm)
nodejs 10.12.0
npm 6.4.1
go version go1.11.1 windows/amd64

To build, I do the following:

# backend
cd %GOPATH%
cd src\github.com\grafana\grafana
go run build.go setup
go run build.go build              # (or 'go build ./pkg/cmd/grafana-server')

# frontend
npm install -g yarn
yarn install --pure-lockfile
yarn watch

To launch grafana-server I do:

cd "%HOMEPATH%\go\src\github.com\grafana\grafana"
cmd /k ""%HOMEPATH%\go\src\github.com\grafana\grafana\bin\windows-amd64\grafana-server.exe" -config "C:\bin\grafana\grafana.ini" -homepath "%HOMEPATH%\go\src\github.com\grafana\grafana""

I have the lib, plugins and log directories in C:\bin\grafana.

After this, I can launch the server and access Grafana on the port I chose (localhost:8080) on the browser, but instead of getting to the login screen, I get four orange/red text messages saying there was a problem loading Grafana.
The messages are as shown in this image:

Furthermore, on the server log, there are messages stating code 404 (not found) when trying to serve documents from /public/.
The log messages are shown below.
The most relevant ones are in bold in the beginning and end.

t=2018-10-23T17:49:46+0100 lvl=eror msg=“Failed to detect generated javascript files in public/build” logger=settings
t=2018-10-23T17:49:46+0100 lvl=info msg=“Starting Grafana” logger=server version=5.4.0-pre1 commit=2a83cfd91 compiled=2018-10-23T14:29:38+0100
t=2018-10-23T17:49:46+0100 lvl=info msg=“Config loaded from” logger=settings file=“\Users\MyUser\go\src\github.com\grafana\grafana/conf/defaults.ini”
t=2018-10-23T17:49:46+0100 lvl=info msg=“Config loaded from” logger=settings file=C:\bin\grafana\dre_grafana.ini
t=2018-10-23T17:49:46+0100 lvl=info msg=“Path Home” logger=settings path=“\Users\MyUser\go\src\github.com\grafana\grafana”
t=2018-10-23T17:49:46+0100 lvl=info msg=“Path Data” logger=settings path=C:\bin\grafana\lib
t=2018-10-23T17:49:46+0100 lvl=info msg=“Path Logs” logger=settings path=C:\bin\grafana\log
t=2018-10-23T17:49:46+0100 lvl=info msg=“Path Plugins” logger=settings path=C:\bin\grafana\plugins
t=2018-10-23T17:49:46+0100 lvl=info msg=“Path Provisioning” logger=settings path=“\Users\MyUser\go\src\github.com\grafana\grafana\conf\provisioning”
t=2018-10-23T17:49:46+0100 lvl=info msg=“App mode development” logger=settings
t=2018-10-23T17:49:46+0100 lvl=info msg=“Initializing HTTPServer” logger=server
t=2018-10-23T17:49:46+0100 lvl=info msg=“Initializing SqlStore” logger=server
t=2018-10-23T17:49:46+0100 lvl=info msg=“Connecting to DB” logger=sqlstore dbtype=sqlite3
t=2018-10-23T17:49:46+0100 lvl=info msg=“Starting DB migration” logger=migrator
t=2018-10-23T17:49:46+0100 lvl=info msg=“Initializing PluginManager” logger=server
t=2018-10-23T17:49:46+0100 lvl=info msg=“Starting plugin search” logger=plugins
t=2018-10-23T17:49:46+0100 lvl=info msg=“Initializing InternalMetricsService” logger=server
t=2018-10-23T17:49:46+0100 lvl=info msg=“Initializing RenderingService” logger=server
t=2018-10-23T17:49:46+0100 lvl=info msg=“Initializing HooksService” logger=server
t=2018-10-23T17:49:46+0100 lvl=info msg=“Initializing SearchService” logger=server
t=2018-10-23T17:49:46+0100 lvl=info msg=“Initializing CleanUpService” logger=server
t=2018-10-23T17:49:46+0100 lvl=info msg=“Initializing NotificationService” logger=server
t=2018-10-23T17:49:46+0100 lvl=info msg=“Initializing ProvisioningService” logger=server
t=2018-10-23T17:49:46+0100 lvl=info msg=“Initializing AlertingService” logger=server
t=2018-10-23T17:49:46+0100 lvl=info msg=“Initializing TracingService” logger=server
t=2018-10-23T17:49:46+0100 lvl=info msg=“Initializing Stream Manager”
t=2018-10-23T17:49:46+0100 lvl=info msg=“HTTP Server Listen” logger=http.server address=127.0.0.1:8080 protocol=http subUrl= socket=
t=2018-10-23T17:49:53+0100 lvl=info msg=“Request Completed” logger=context userId=0 orgId=0 uname= method=GET path=/login status=200 remote_addr=127.0.0.1 time_ms=54 size=22852 referer=
t=2018-10-23T17:49:53+0100 lvl=info msg=“Request Completed” logger=context userId=0 orgId=0 uname= method=GET path=/public/build/app.e82c28188ca9525246e9.js status=404 remote_addr=127.0.0.1 time_ms=15 size=22784 referer=http://127.0.0.1:8080/login
t=2018-10-23T17:49:53+0100 lvl=info msg=“Request Completed” logger=context userId=0 orgId=0 uname= method=GET path=/public/build/grafana.dark.css status=404 remote_addr=127.0.0.1 time_ms=33 size=22784 referer=http://127.0.0.1:8080/login

I’m not running any web server (neither Apache nor nginx), only grafana-server.

I am, however, running a database from an earlier version of Grafana (also version 5).
On Linux it migrated well and everything is accessible, but on Windows this problem happens.
I believe it is not related to the database because I also tried using a new database (hence no migration procedure would be needed) and the same thing happens.

Any help would be appreciated.

Thank you very much.