Package Details: mesen 2.1.1-4

Git Clone URL: https://aur.archlinux.org/mesen.git (read-only, click to copy)
Package Base: mesen
Description: Multi-system emulator (NES, SNES, GB, GBA, PCE, SMS/GG, WS) for Windows, Linux and macOS
Upstream URL: https://github.com/SourMesen/Mesen2
Licenses: GPL-3.0-or-later
Conflicts: mesen2
Provides: mesen2
Submitter: HurricanePootis
Maintainer: HurricanePootis
Last Packager: HurricanePootis
Votes: 2
Popularity: 0.133995
First Submitted: 2025-10-27 06:57 (UTC)
Last Updated: 2026-04-15 02:56 (UTC)

Latest Comments

LiquidSevens commented on 2026-01-27 15:02 (UTC)

Yes, I previously built it successfully with a clean chroot. I recently installed multiple versions of .NET SDK, so that must be causing issues. Thanks for the reminder, I forgot that would cause problems.

HurricanePootis commented on 2026-01-27 14:39 (UTC)

@LiquidSevens My package is able to compile in a clean chroot.

Make sure that the package is using Dotnet SDK 8.0. If you have any other dotnet versions installed on the machine, remove them or use a clean chroot. Managing multiple versions of dotnet on a system is kind of hard.

LiquidSevens commented on 2026-01-27 13:21 (UTC) (edited on 2026-01-27 13:22 (UTC) by LiquidSevens)

Upon reaching line 211 of the makefile, compilation failed due to a syntax error (UI.csproj couldn't be found in ./src/Mesen2-2.1.1/UI, despite the file existing). The cause is seemingly a faulty flag invoked from line 137: --no-self-contained true. A quick web search reveals that using this flag together with the parameter true isn't common practice, rather it's unique to Mesen's source code. Removing true from 137 allowed the file to compile.

A patch like this might correct the problem?

@@ -134,7 +134,7 @@
ifeq ($(USE_AOT),true)
    PUBLISHFLAGS ?=  -r $(MESENPLATFORM) -p:PublishSingleFile=false -p:PublishAot=true -p:SelfContained=true
else
-   PUBLISHFLAGS ?=  -r $(MESENPLATFORM) --no-self-contained -p:PublishSingleFile=true
+   PUBLISHFLAGS ?=  -r $(MESENPLATFORM) --no-self-contained true -p:PublishSingleFile=true
endif

It's strange though, since last week this software compiled on my machine without issues. No major changes in this PKGBUILD or the GitHub since that time.