Ticket #47640

macOS build fails to load

Eröffnet am: 2023-03-22 05:19 Letztes Update: 2023-04-25 18:53

Auswertung:
Verantwortlicher:
Typ:
Status:
Geschlossen
Komponente:
Meilenstein:
Priorität:
5 - Mittel
Schweregrad:
5 - Mittel
Lösung:
Gefixt
Datei:
4

Details

Launching the new mac build results in an exception. Copying 'libfreeciv.dylib' file to '/usr/local/lib/' resolves the issue.

An excerpt from the generated report:

Process:               freeciv-qt [42414]
Path:                  /Applications/Freeciv.app/Contents/bin/freeciv-qt
Identifier:            freeciv-qt
Version:               ???
Code Type:             X86-64 (Native)
Parent Process:        launchd [1]
OS Version:            macOS 13.2.1 (22D68)
Bridge OS Version:     7.2 (20P3045)
Reason: tried: '/System/Volumes/Preboot/Cryptexes/OS@rpath/libfreeciv.dylib' (no such file), '/usr/local/lib/libfreeciv.dylib' (no such file), '/usr/lib/libfreeciv.dylib' (no such file, not in dyld cache)
(terminated at launch; ignore backtrace)

Ticket-Verlauf (3/15 Historien)

2023-03-22 05:19 Aktualisiert von: dmitrii
  • New Ticket "macOS build fails to load" created
2023-03-22 05:23 Aktualisiert von: cazfi
  • Verantwortlicher Update from (Keine) to ddeanbrown
  • Meilenstein Update from (Keine) to 3.1.0-beta2 (closed)
  • Komponente Update from (Keine) to Bootstrap
2023-03-22 05:36 Aktualisiert von: cazfi
Kommentar

Would attached patch work as emergency fix for this in beta2?

2023-03-22 08:15 Aktualisiert von: cazfi
  • Priorität Update from 5 - Mittel to 6
2023-03-22 11:02 Aktualisiert von: ddeanbrown
Kommentar

Ah yes, the dylib path issue strikes again. Was this generated by running "/Applications/Freeciv.app/Contents/bin/freeciv-qt" directly? It's meant to be run thru the app bundle, which uses the info.plist file to set the environment var LD_LIBRARY_PATH to "Applications/Freeciv.app/Contents/lib", which tells the OS to look for dylibs there instead of '/usr/local/lib/'. If it was run thru the app bundle and got this error, then maybe things have changed for macOS 13.x and then we've got a bigger problem.

I didn't know they were past 12.x already.

That patch should work, would take more disk space. I haven't tested it yet.

2023-03-22 11:18 Aktualisiert von: cazfi
Kommentar

Reply To ddeanbrown

It's meant to be run thru the app bundle

Do we have a documentation issue?

2023-03-22 12:35 Aktualisiert von: ddeanbrown
Kommentar

There's the MacAppREADME.txt file that gets put in the release zip file along with the freeciv.app. Double clicking on an "app" in the /Applications folder is the standard way of running apps on the Mac. Normal non-technical Mac users would not know to look inside the app bundle (which is why that's explained in the MacAppREADME.txt file) nor use the terminal app to get to a command line.

2023-03-22 20:37 Aktualisiert von: cazfi
  • Priorität Update from 6 to 5 - Mittel
2023-03-30 00:47 Aktualisiert von: None
Kommentar

This not solve the issue. After copy to applications this error message still exist.

2023-04-22 11:13 Aktualisiert von: cazfi
  • Verantwortlicher Update from ddeanbrown to cazfi
  • Lösung Update from Keine to Accepted
Kommentar

Patches to build static libfreeciv instead attached. At least this didn't break building when I run build on github runner.

2023-04-25 18:53 Aktualisiert von: cazfi
  • Status Update from Offen to Geschlossen
  • Lösung Update from Accepted to Gefixt

Bearbeiten

Please login to add comment to this ticket » Anmelden