Piccolo: Intel Mac build error caused by meta_parser

I got build errors for both Xcode and CMake builds. The problem is triggered from meta_parser. However, it’s still malfunction after adding permission with chmod +x meta_parser.

The meta_parser crashed because dyld: Library not loaded: @rpath/libclang.dylib

macOS Bigsur 11.6.5 Xcode 13.2.1 CMake 3.23

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 25 (18 by maintainers)

Most upvoted comments

just cp engine/bin/macOS/libclang.dylib to /usr/local/lib it works for me

If you are hasty, you may use this repository. Github Workflow shows “build macos” is passing.

If you are hasty, you may use this repository. Github Workflow shows “build macos” is passing.

libclang.dylib is on the same path as meta_parser, you can use command:

cd /.../Pilot/engine/bin/macOS
install_name_tool -add_rpath /.../Pilot/engine/bin/macOS ./meta_parser

This works for me.

The following command is much better: install_name_tool -rpath “/Users/hywei/Workspace/metaparser-master/Parser/…/3rd_party/LLVM/lib/macOS” ‘@executable_path’ ./engine/bin/macOS/meta_parser’

For M1 developers, running these commands works for a temporary fix.

chmod +x .engine/bin/macOS/meta_parser
sudo cp engine/bin/macOS/libclang.dylib /usr/local/lib

A pull request has been provided. If you are hasty, you may use this repository first. The github workflow shows “build linux” is passing.

is MacOS 12.2 needed? @BoomingTech-YuqiaoZhang running meta_parser on MacOS 11.6 throw the error

image

A merge request is provided. If you are hasty, you may use this repository

is MacOS 12.2 needed? @BoomingTech-YuqiaoZhang running meta_parser on MacOS 11.6 throw the error

image

libc++.1.dylib is missing, I am fixing now

libclang.dylib is on the same path as meta_parser, you can use command:

cd /.../Pilot/engine/bin/macOS
install_name_tool -add_rpath /.../Pilot/engine/bin/macOS ./meta_parser

This works for me.