ollama - 💡(How to fix) Fix App: Issues with Dev Setup for Win64 (MinGW64 / TDM 10.3)

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

go run ./cmd/app -dev

github.com/ollama/ollama/app/webview

In file included from webview.h:2133, from webview.cc:1: WebView2.h:1616:10: fatal error: eventtoken.h: No such file or directory 1616 | #include "eventtoken.h" | ^~~~~~~~~~~~~~ compilation terminated.

Code Example

go generate ./... &&
set OLLAMA_DEBUG=1 &&
go run ./cmd/app -dev

---

>go run ./cmd/app -dev
# github.com/ollama/ollama/app/webview
In file included from webview.h:2133,
                 from webview.cc:1:
WebView2.h:1616:10: fatal error: eventtoken.h: No such file or directory
 1616 | #include "eventtoken.h"
      |          ^~~~~~~~~~~~~~
compilation terminated.
RAW_BUFFERClick to expand / collapse

What is the issue?

Greetings!

We are trying to work on some GUI features, but when following the setup procedure in /app/ and there seem to be some issues with it. We are on Windows 64-bit, and are using gcc (tdm64-1) 10.3.0

So firstly we believe the bash for windows might have to be:

go generate ./... &&
set OLLAMA_DEBUG=1 &&
go run ./cmd/app -dev

And there seems to be an issue with "EventToken.h". I think this must be related to this issue raised on webview_go here: https://github.com/webview/webview_go/issues/45#issuecomment-2126236249

(Also I think README.md of the app folder could use a small note on how even the ui development setup requires GCC)

https://stackoverflow.com/questions/79645894/golang-fatal-error-eventtoken-h-no-such-file-or-directory - looks like there is an answer on stackexchange suggesting that we shift to msys2 instead of tdm.

Opinions on this?

We haven't tried it for ourselves yet (think we will try it within this week), but if it works and this sounds good to the rest here, I can raise this commit along with the rest of our work~

Relevant log output

>go run ./cmd/app -dev
# github.com/ollama/ollama/app/webview
In file included from webview.h:2133,
                 from webview.cc:1:
WebView2.h:1616:10: fatal error: eventtoken.h: No such file or directory
 1616 | #include "eventtoken.h"
      |          ^~~~~~~~~~~~~~
compilation terminated.

OS

Windows

GPU

Nvidia

CPU

Intel

Ollama version

Main Branch

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

ollama - 💡(How to fix) Fix App: Issues with Dev Setup for Win64 (MinGW64 / TDM 10.3)