Dreamtowards / Ethertia

A Sandbox Survival Game with Vulkan, PhysX, C++20. aims to be "Minecraft + GTAV + VRChat"
https://docs.ethertia.com
Other
157 stars 15 forks source link

[Bug] OSX run failed #7

Closed KarryCharon closed 1 year ago

KarryCharon commented 1 year ago

I just tried the pre-released version. And I got some errors, see below, with my macbook pro.

Reason: tried: '/Users/dreamtowards/Documents/YouRepository/Ethertia/run/bin/darwin-x64/libBulletDynamics.3.25.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/dreamtowards/Documents/YouRepository/Ethertia/run/bin/darwin-x64/libBulletDynamics.3.25.dylib' (no such file), '/Users/dreamtowards/Documents/YouRepository/Ethertia/run/bin/darwin-x64/libBulletDynamics.3.25.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/dreamtowards/Documents/YouRepository/Ethertia/run/bin/darwin-x64/libBulletDynamics.3.25.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS@rpath/libBulletDynamics.3.25.dylib' (no such file), '/Users/dreamtowards/Documents/YouRepository/Ethertia/run/bin/darwin-x64/libBulletDynamics.3.25.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/dreamtowards/Documents/YouRepository/Ethertia/run/bin/darwin-x64/libBulletDynamics.3.25.dylib' (no such file), '/Users/dreamtowards/Documents/YouRepository/Ethertia/run/bin/darwin-x64/libBulletDynamics.3.25.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/dreamtowards/Documents/YouRepository/Ethertia/run/bin/darwin-x64/libBulletDynamics.3.25.dylib' (no such file), '/usr/local/lib/libBulletDynamics.3.25.dylib' (no such file), '/usr/lib/libBulletDynamics.3.25.dylib' (no such file, not in dyld cache)

CPU: Apple M2Max RAM: 64g OS: Ventura 13.2.1

Dreamtowards commented 1 year ago

Sorry this happened.

Try replace content of run_darwin.command with code below:

cd "$(dirname "$0")"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:./bin/darwin-x64/"
./bin/darwin-x64/Ethertia

(I assume you are run the program via the run_darwin.command.)

if still doesn't work, tell the program version you running and the way you run it if you want further solve.

KarryCharon commented 1 year ago

Thx for your reply, But it still doesn't work unfortunately. See that:

$ ./run_darwin.command                                                                           
: No such file or directory1: cd: .
dyld[6692]: Library not loaded: @rpath/libBulletDynamics.3.25.dylib
  Referenced from: <BF204ADC-1EED-3E45-AB4E-051223E1B805> /Users/karrycharon/Desktop/ethertia-23w08/bin/darwin-x64/Ethertia
  Reason: tried: '/Users/dreamtowards/Documents/YouRepository/Ethertia/run/bin/darwin-x64/libBulletDynamics.3.25.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/dreamtowards/Documents/YouRepository/Ethertia/run/bin/darwin-x64/libBulletDynamics.3.25.dylib' (no such file), '/Users/dreamtowards/Documents/YouRepository/Ethertia/run/bin/darwin-x64/libBulletDynamics.3.25.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/dreamtowards/Documents/YouRepository/Ethertia/run/bin/darwin-x64/libBulletDynamics.3.25.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS@rpath/libBulletDynamics.3.25.dylib' (no such file), '/Users/dreamtowards/Documents/YouRepository/Ethertia/run/bin/darwin-x64/libBulletDynamics.3.25.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/dreamtowards/Documents/YouRepository/Ethertia/run/bin/darwin-x64/libBulletDynamics.3.25.dylib' (no such file), '/Users/dreamtowards/Documents/YouRepository/Ethertia/run/bin/darwin-x64/libBulletDynamics.3.25.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/dreamtowards/Documents/YouRepository/Ethertia/run/bin/darwin-x64/libBulletDynamics.3.25.dylib' (no such file), '/usr/local/lib/libBulletDynamics.3.25.dylib' (no such file), '/usr/lib/libBulletDynamics.3.25.dylib' (no such file, not in dyld cache)
./run_darwin.command: line 3:  6692 Abort trap: 6           ./bin/darwin-x64/Ethertia

A question, this libBulletDynamics.dylib file is just a text? So that I can open it with text editor... Maybe that why I guess.

Dreamtowards commented 1 year ago

oh, maybe it's cause by "arch" problem, the release binaries only have x64 arch (x86-64 aka amd64 arch/target), not have arm64 (Apple Silicon, M2)

but I still 'want' compile a M2 arch binary for you/people who use arm64 cpu. But, I have not an arm64 CPU, so I cannot run/test it well.. so I decide postone this task. if you interest, we can talk in QQ and 'solve' problem at realtime (voice talk & remote control, compile & test on your arm64 PC, assume 15 minutes, qq group number in official site - about - qq).

p.s. ".dylib" is "shared-library" program file in MacOS, just like .dll in Windows. it's always binary machine code, not text file.

KarryCharon commented 1 year ago

Of course! I'd be happy to do that.