compile issue using macports on mac m1

Questions about Wine on macOS.
Locked
patcher2k
Level 1
Level 1
Posts: 7
Joined: Tue Jun 25, 2024 2:15 pm

compile issue using macports on mac m1

Post by patcher2k »

Hi,

last week I have build wine 9.11 using macports. If I remember correctly, it was necessary to add the MoltenVK lib manually.
Today I have seen that the MoltenVK port was modified. After updating my macports installation I get the following error prints.
What can cause this issue and how can I fix it?
Many thanks in advance.

---> Computing dependencies for wine-devel
Error: Cannot install wine-devel for the arch 'x86_64' because
Error: its dependency MoltenVK-latest does not build for the required arch by default
Error: and does not have a universal variant.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
patcher2k
Level 1
Level 1
Posts: 7
Joined: Tue Jun 25, 2024 2:15 pm

Re: compile issue using macports on mac m1

Post by patcher2k »

I got it working..
Afer uninstalling MoltenVK-latest I have reinstall it with the "+universal" flag.

sudo port install MoltenVK-latest +universal
Gcenx
Level 6
Level 6
Posts: 719
Joined: Mon Dec 25, 2017 12:11 pm

Re: compile issue using macports on mac m1

Post by Gcenx »

wine-stable, wine-devel & wine-staging ports were changed last week to directly call MoltenVK-latest so this shouldn’t be an issue going forward.
patcher2k
Level 1
Level 1
Posts: 7
Joined: Tue Jun 25, 2024 2:15 pm

Re: compile issue using macports on mac m1

Post by patcher2k »

Hi,
today I tried to update wine-devel to 9.12 but I run into the same issue as before. Then I have taken my 2. MacBook (also apple silicon M3) and install macports freshly.
I made the following steps...
1. xcode-select --install
2. install "MacPorts-2.9.3-14-Sonoma.pkg"
3. sudo port -v sync
4. cd /opt
5. sudo git clone https://github.com/Gcenx/macports-wine.git
6. sudo nano /opt/local/macports/etc/sources.conf
7. add file:///opt/macports-wine
8. sudo port -v sync
9. sudo port install wine-devel

After this I got the error as in the initial post. What I have made wrong?
Many thanks in advance.

p.s. If I install the MoltenVK-latest manually I get a new error.

Error: Cannot install gstreamer1-gst-plugins-base for the archs 'arm64 x86_64' because
Error: its dependency graphene only supports the arch 'arm64'.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port wine-devel failed
Last edited by patcher2k on Mon Jul 01, 2024 2:20 pm, edited 2 times in total.
Gcenx
Level 6
Level 6
Posts: 719
Joined: Mon Dec 25, 2017 12:11 pm

Re: compile issue using macports on mac m1

Post by Gcenx »

There shouldn’t be any issues installing MoltenVK-latest for +universal

gstreamer ports are another matter as I was overriding them with custom versions but as nobody interacts with the project o GitHub I’d dropped the custom gstreamer ports.

For the moment run this command instead.

Code: Select all

sudo port clean wine-devel
sudo port install wine-devel -gstreamer
I’ll be pushing prebuilt 9.12 packages tomorrow
patcher2k
Level 1
Level 1
Posts: 7
Joined: Tue Jun 25, 2024 2:15 pm

Re: compile issue using macports on mac m1

Post by patcher2k »

Hi,

many thanks @Gcenx with your modification I was able to compile wine-devel 9.12.
Before you provide the 9.12 packages can you please try to call winecfg? If I do this, I get a segmentation fault.

Maybe this has something todo with the removed gstreamer support.
patcher2k
Level 1
Level 1
Posts: 7
Joined: Tue Jun 25, 2024 2:15 pm

Re: compile issue using macports on mac m1

Post by patcher2k »

Today I've found the reason for the segfault. If the "WINEDEBUG" variable is set, wine will crash.
Sunbat2
Newbie
Newbie
Posts: 2
Joined: Fri Oct 13, 2023 2:58 am

Re: compile issue using macports on mac m1

Post by Sunbat2 »

Hi,
What steps are recommended for installing the latest version of MoltenVK and managing GStreamer dependencies when building the wine-devel port on macOS?
Gcenx
Level 6
Level 6
Posts: 719
Joined: Mon Dec 25, 2017 12:11 pm

Re: compile issue using macports on mac m1

Post by Gcenx »

Sunbat2 wrote: Tue Aug 06, 2024 2:42 am Hi,
What steps are recommended for installing the latest version of MoltenVK and managing GStreamer dependencies when building the wine-devel port on macOS?
That depends how you’ve installed those dependencies, if it’s via a package manager then just have that upgrade the dependencies.
Locked