GithubHelp home page GithubHelp logo

Comments (25)

younif avatar younif commented on May 15, 2024 5

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

from piccolo.

BoomingTech-YuqiaoZhang avatar BoomingTech-YuqiaoZhang commented on May 15, 2024 4

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.

from piccolo.

BoomingTech-YuqiaoZhang avatar BoomingTech-YuqiaoZhang commented on May 15, 2024 2

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'

from piccolo.

begoss avatar begoss commented on May 15, 2024 1

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.

from piccolo.

BoomingTech-YuqiaoZhang avatar BoomingTech-YuqiaoZhang commented on May 15, 2024 1

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

from piccolo.

BoomingTech-YuqiaoZhang avatar BoomingTech-YuqiaoZhang commented on May 15, 2024 1

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

from piccolo.

BoomingTech-YuqiaoZhang avatar BoomingTech-YuqiaoZhang commented on May 15, 2024 1

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.

from piccolo.

iaomw avatar iaomw commented on May 15, 2024

image

image

from piccolo.

Yestercafe avatar Yestercafe commented on May 15, 2024

Change the missing dylib path, this can help you:
https://stackoverflow.com/questions/17703510/dyld-library-not-loaded-reason-image-not-found

from piccolo.

BoomingTech-YuqiaoZhang avatar BoomingTech-YuqiaoZhang commented on May 15, 2024

You can use the following commands to fix the build error on Linux temporarily. A merge request will be provided later.
chmod +x build_linux.sh
chmod +x "./engine/bin/Linux/meta_parse"
chrpath -r '$ORIGIN' "./engine/bin/Linux/meta_parser"
chmod +x "engine/3rdparty/VulkanSDK/bin/Linux/glslangValidator"

from piccolo.

BoomingTech-YuqiaoZhang avatar BoomingTech-YuqiaoZhang commented on May 15, 2024

If you are hasty, you may use this repository instead

from piccolo.

BoomingTech-YuqiaoZhang avatar BoomingTech-YuqiaoZhang commented on May 15, 2024

You can use the following commands to fix the build error on MacOS temporarily
chmod +x "./engine/bin/MacOS/meta_parse"
install_name_tool -rpath "/Users/hywei/Workspace/metaparser-master/Parser/../3rd_party/LLVM/lib/macOS" '@executable_path' './engine/bin/macOS/meta_parser'

from piccolo.

iaomw avatar iaomw commented on May 15, 2024

You can use the following commands to fix the build error on MacOS temporarily chmod +x "./engine/bin/MacOS/meta_parse" export LD_LIBRARY_PATH=./engine/bin/macOS${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}

Thanks, but it's the same result. I may try another solution using otool for libclang.dylib
But ultimately the project script should take care itself.

https://stackoverflow.com/questions/24045633/dyld-library-not-loaded-error

from piccolo.

deepkolos avatar deepkolos commented on May 15, 2024

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

image

from piccolo.

iaomw avatar iaomw commented on May 15, 2024

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

Tested with cp command and manual copy, not working. What is your software version?

from piccolo.

BoomingTech-YuqiaoZhang avatar BoomingTech-YuqiaoZhang commented on May 15, 2024

You can use the following commands to fix the build error on MacOS temporarily chmod +x "./engine/bin/MacOS/meta_parse" export LD_LIBRARY_PATH=./engine/bin/macOS${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}

Thanks, but it's the same result. I may try another solution using otool for libclang.dylib But ultimately the project script should take care itself.

https://stackoverflow.com/questions/24045633/dyld-library-not-loaded-error

LB_LIBRARY_PATH may not work, you may use the following install_name_tool instead.
install_name_tool -rpath "/Users/hywei/Workspace/metaparser-master/Parser/../3rd_party/LLVM/lib/macOS" '@executable_path' './engine/bin/macOS/meta_parser'

from piccolo.

Kingfish404 avatar Kingfish404 commented on May 15, 2024

macOS 12.3.1 Intel i5 working with fellowing shell command

chmod +x "./engine/bin/MacOS/meta_parser"
cmake -S engine -B build -G "Xcode"
cp engine/bin/macOS/libclang.dylib /usr/local/lib
cmake --build build --config "${CMAKE_ARG_BUILD_TYPE_CONFIG}"
rm /usr/local/lib/libclang.dylib

then

./bin/PilotEditor

running.

Pic demo with still some problem image

from piccolo.

BoomingTech-YuqiaoZhang avatar BoomingTech-YuqiaoZhang commented on May 15, 2024

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

image

using the following commands to fix the libclang.dylib:
install_name_tool -change '/usr/lib/libc++.1.dylib' '@rpath/libc++.1.dylib' './engine/bin/macOS/libclang.dylib'
install_name_tool -rpath '@loader_path/../lib' '@executable_path' './engine/bin/macOS/libclang.dylib'

Then, download the missed libc++.1.dylib from the LLVM official web page

from piccolo.

BoomingTech-YuqiaoZhang avatar BoomingTech-YuqiaoZhang commented on May 15, 2024

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

image

I am using the "objdump -p" to check the dependency of the libclang.dylib, and I find that the libz and libcursor are missing as well.

from piccolo.

BoomingTech-YuqiaoZhang avatar BoomingTech-YuqiaoZhang commented on May 15, 2024

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

image

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

from piccolo.

BoomingTech-YuqiaoZhang avatar BoomingTech-YuqiaoZhang commented on May 15, 2024

A pull request is provided.

from piccolo.

forkercat avatar forkercat commented on May 15, 2024

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

from piccolo.

BoomingTech-YuqiaoZhang avatar BoomingTech-YuqiaoZhang commented on May 15, 2024

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

This is NOT recommended. The path "/usr/local/lib" may not exist if the user doesn't use homebrew or macport.
And the version of the libclang.dylib provided by us may be different from the libclang.dylib provided by homebrew or macport. Some other software may not work properly due to the confliction of the libs.

from piccolo.

BoomingTech-YuqiaoZhang avatar BoomingTech-YuqiaoZhang commented on May 15, 2024

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

This is NOT recommended. The path "/usr/local/lib" may not exist if the user doesn't use homebrew or macport.
And the version of the libclang.dylib provided by us may be different from the libclang.dylib provided by homebrew or macport. Some other software may not work properly due to the confliction of the libs.

from piccolo.

hyv1001 avatar hyv1001 commented on May 15, 2024

This issue should have been fixed by #53, you can reopen or create a new ticket if it still exists on your machine

from piccolo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.