Polytonic / Glitter

Dead Simple OpenGL
http://polytonic.github.io/Glitter/
2.46k stars 416 forks source link

ld: library not found for -lminizip #80

Open m-bob opened 1 year ago

m-bob commented 1 year ago

Attempting to build on Mac 12.6.2 (Monterey). I can create a Makefile, which is what I want as I prefer to avoid Xcode.

But the make command fails.

There are lots of easily-correctable problems when building assimp. One has to replace calls to vsprintf with vnsprintf and sprint with snprintf.

But the Glitter executable still won't link. The linker fails with the message above (ld: library not found for -lminizip).

I'm at a loss ...

Polytonic commented 1 year ago

I pushed up some updated submodules. Looks like a newer version of assimp was needed for whatever compiler Apple is shipping with Xcode these days. Try grabbing the latest and giving it a go?

Polytonic commented 1 year ago
make                                                                   master
[  3%] Built target LinearMath
[  7%] Built target glfw
[ 54%] Built target assimp
[ 74%] Built target BulletCollision
[ 83%] Built target BulletDynamics
[ 83%] Built target Glitter
[ 89%] Built target Bullet3OpenCL_clew
[ 90%] Built target Bullet2FileLoader
[ 91%] Built target Bullet3Dynamics
[ 92%] Built target Bullet3Collision
[ 93%] Built target Bullet3Geometry
[ 94%] Built target BulletInverseDynamics
[ 98%] Built target BulletSoftBody
[100%] Built target Bullet3Common

I was able to build under macOS 13.2 (M1 Max).

Apple clang version 14.0.0 (clang-1400.0.29.202)
Target: arm64-apple-darwin22.3.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
m-bob commented 1 year ago

Great! I'll try it. I'll let you know how it goes. Can you try a Makefile build instead of an Xcode build? I'm not a fan of Xcode.

On Sun, Jan 29, 2023 at 1:54 PM Polytonic @.***> wrote:

make   master

[ 3%] Built target LinearMath

[ 7%] Built target glfw

[ 54%] Built target assimp

[ 74%] Built target BulletCollision

[ 83%] Built target BulletDynamics

[ 83%] Built target Glitter

[ 89%] Built target Bullet3OpenCL_clew

[ 90%] Built target Bullet2FileLoader

[ 91%] Built target Bullet3Dynamics

[ 92%] Built target Bullet3Collision

[ 93%] Built target Bullet3Geometry

[ 94%] Built target BulletInverseDynamics

[ 98%] Built target BulletSoftBody

[100%] Built target Bullet3Common

I was able to build under macOS 13.2 (M1 Max).

Apple clang version 14.0.0 (clang-1400.0.29.202)

Target: arm64-apple-darwin22.3.0

Thread model: posix

InstalledDir: /Library/Developer/CommandLineTools/usr/bin

— Reply to this email directly, view it on GitHub https://github.com/Polytonic/Glitter/issues/80#issuecomment-1407766985, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHJLAMSVIF4Q53A3G5PJVC3WU3KGZANCNFSM6AAAAAAUJJZCGQ . You are receiving this because you authored the thread.Message ID: @.***>

Polytonic commented 1 year ago

To clarify, I built using make (as demonstrated in my log output above).

My compiler is installed by way of Xcode developer tools. I’m sure it’d build fine under gcc or similar.