Ticket #47640

macOS build fails to load

Date d'ouverture: 2023-03-22 05:19 Dernière mise à jour: 2023-04-25 18:53

Rapporteur:
Propriétaire:
Type:
État:
Atteints
Composant:
Priorité:
5 - moyen
Sévérité:
5 - moyen
Résolution:
Fixed
Fichier:
4

Détails

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 History (3/15 Histories)

2023-03-22 05:19 Updated by: dmitrii
  • New Ticket "macOS build fails to load" created
2023-03-22 05:23 Updated by: cazfi
  • Propriétaire Update from (Aucun) to ddeanbrown
  • Jalon Update from (Aucun) to 3.1.0-beta2 (atteints)
  • Composant Update from (Aucun) to Bootstrap
2023-03-22 05:36 Updated by: cazfi
Commentaire

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

2023-03-22 08:15 Updated by: cazfi
  • Priorité Update from 5 - moyen to 6
2023-03-22 11:02 Updated by: ddeanbrown
Commentaire

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 Updated by: cazfi
Commentaire

Reply To ddeanbrown

It's meant to be run thru the app bundle

Do we have a documentation issue?

2023-03-22 12:35 Updated by: ddeanbrown
Commentaire

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 Updated by: cazfi
  • Priorité Update from 6 to 5 - moyen
2023-03-30 00:47 Updated by: None
Commentaire

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

2023-04-22 11:13 Updated by: cazfi
  • Propriétaire Update from ddeanbrown to cazfi
  • Résolution Update from Aucun to Accepted
Commentaire

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 Updated by: cazfi
  • État Update from Ouvert to Atteints
  • Résolution Update from Accepted to Fixed

Modifier

Please login to add comment to this ticket » Connexion