Ticket #47640

macOS build fails to load

오픈 날짜: 2023-03-22 05:19 마지막 업데이트: 2023-04-25 18:53

Reporter:
소유자:
Type:
Status:
Closed
Component:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
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 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
  • 소유자 Update from (None) to ddeanbrown
  • Milestone Update from (None) to 3.1.0-beta2 (closed)
  • Component Update from (None) to Bootstrap
2023-03-22 05:36 Updated by: cazfi
댓글 올리기

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

2023-03-22 08:15 Updated by: cazfi
  • Priority Update from 5 - Medium to 6
2023-03-22 11:02 Updated by: ddeanbrown
댓글 올리기

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
댓글 올리기

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
댓글 올리기

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
  • Priority Update from 6 to 5 - Medium
2023-03-30 00:47 Updated by: None
댓글 올리기

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

2023-04-22 11:13 Updated by: cazfi
  • 소유자 Update from ddeanbrown to cazfi
  • Resolution Update from None to Accepted
댓글 올리기

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
  • Status Update from Open to Closed
  • Resolution Update from Accepted to Fixed

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login