Giter VIP home page Giter VIP logo

Comments (8)

rizsotto avatar rizsotto commented on September 4, 2024

hi João, i am new in the Mac world, but for me it looks like a problem of different architectures. similar error messages pops up on the net when people try to run a i386 code against X86_64 code. (might be a case if the libear.dylib is a X86_64 only, and one of the build tool is a i386 executable.) could you dig some more to validate this theory?

from bear.

alexanderkyte avatar alexanderkyte commented on September 4, 2024

@tritao You want to use

cmake "-DCMAKE_OSX_ARCHITECTURES=x86_64;i386" /path/to/build/dir

to make a binary that can use both 32 and 64 bit osx libraries.

from bear.

rizsotto avatar rizsotto commented on September 4, 2024

@alexanderkyte Thanks for this! Have you had the same issue and was this line solved for you?
@tritao Can you confirm what @alexanderkyte wrote is solve the issue you have?

from bear.

tritao avatar tritao commented on September 4, 2024

I'll give this a try and report.

from bear.

alexanderkyte avatar alexanderkyte commented on September 4, 2024

@rizsotto I had the same issue, and setting both architectures fixed it for me. It's a frequent mistake with cmake on osx to only build for one architecture, since many things link to libs from both architectures.

from bear.

rizsotto avatar rizsotto commented on September 4, 2024

Closing this, because nobody reported anything related to this since. Thanks @alexanderkyte !

from bear.

ManSoSec avatar ManSoSec commented on September 4, 2024

I have the same problem when use "bear make" for Qemu. I tried different target archs, but I still get the error. Please find the error here:

dyld: could not load inserted library '/usr/local/lib/bear/libear.dylib' because no suitable image found.  Did find:
	/usr/local/lib/bear/libear.dylib: mach-o, but wrong architecture
	/usr/local/lib/bear/libear.dylib: stat() failed with errno=1

/bin/sh: line 1: 71301 Abort trap: 6           Rez -append /.../qemu/pc-bios/qemu.rsrc -o qemu-system-x86_64
make[1]: *** [qemu-system-x86_64] Error 134
make[1]: *** Deleting file `qemu-system-x86_64'
make: *** [subdir-x86_64-softmmu] Error 2

[NOTE] I can use "bear make" for compiling other projects without any problem.

Thanks!

from bear.

rizsotto avatar rizsotto commented on September 4, 2024

The reports does not give me enough information to fix it. Closing now. Would re-open it if somebody who has this issue can help to pair with me to debug. :)

from bear.

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.