Closed zetashift closed 3 years ago
Hi! Could you try installing raylib according to instructions in the readme using already built dll?
If you really need to build it from source, I think you missed -lm
flag judging by your log.
The readme says download raylib-3.5.0_linux_amd64.tar.gz
from https://github.com/greenfork/nimraylib_now/releases, but there is none on that page if I'm seeing it correctly?
EDIT: do you mean https://github.com/raysan5/raylib/releases by any chance?
Yep, my bad. Just fixed the link, it is indeed raylib releases page
Thanks! I didnt need to build from source at all, but since I didn't see an easier way, I was like meh lemme build from source. Anyhow I copied over the .so's from the releases to /usr/local/lib and currently running into this error:
Hint: used config file '/home/rishi2/.choosenim/toolchains/nim-1.4.2/config/nim.cfg' [Conf]
Hint: used config file '/home/rishi2/.choosenim/toolchains/nim-1.4.2/config/config.nims' [Conf]
....................
Hint: [Link]
Hint: 46661 lines; 0.813s; 60.938MiB peakmem; Debug build; proj: /home/rishi2/dev/gamedev/nimraylib_now/examples/shapes/shapes_bouncing_ball.nim; out: /home/rishi2/dev/gamedev/nimraylib_now/examples/shapes/shapes_bouncing_ball [SuccessX]
Hint: /home/rishi2/dev/gamedev/nimraylib_now/examples/shapes/shapes_bouncing_ball [Exec]
/home/rishi2/dev/gamedev/nimraylib_now/examples/shapes/shapes_bouncing_ball: error while loading shared libraries: libraylib.so.350: cannot open shared object file: No such file or directory
Error: execution of an external program failed: '/home/rishi2/dev/gamedev/nimraylib_now/examples/shapes/shapes_bouncing_ball '
And libraylib.so.350
is in my /usr/local/lib, I can see it using ls.
That is strange. You can explicitly declare that directory as a source for you library files passing this flag to nim:
nim c -r --passL:"-L/usr/local/lib" shapes_bouncing_ball.nim
or like this if it doesn't help
LD_LIBRARY_PATH=/usr/local/lib nim c -r shapes_bouncing_ball.nim
Let me know if any of these options help
LD_LIBRARY_PATH=/usr/local/lib nim c -r shapes_bouncing_ball.nim
this works! it runs perfectly
However nim c -r --passL:"-L/usr/local/lib" shapes_bouncing_ball.nim
does not, and I have no idea why.
I don't know why too. You can try to put .so files in /usr/lib
(which is usually used for package manager installed libraries) and see if it changes everything. So far I don't understand what's the problem
Yea putting it in /usr/lib
makes it work without passing anything. Strange, I don't have much knowledge about how Linux and shared libraries work, and I don't think it's easy reproducible, so I'm just happy it's working! Thank you.
You are welcome! Including /usr/local/lib
as a library path is a common linux convention, maybe it's just pop_os which has some differences.
I might have set things up wrong. OS: Pop_Os! 20.10 (basically ubuntu)
I build and installed raylib according to these instructions: https://github.com/raysan5/raylib/wiki/Working-on-GNU-Linux#build-raylib-using-cmake (using
cmake -DSHARED=ON
)Running an example like
nim c -r shapes_bouncing_ball.nim
gives me the following big error:Warning huge log
``` nim c -r shapes_bouncing_ball.nim Hint: used config file '/home/rishi2/.choosenim/toolchains/nim-1.4.2/config/nim.cfg' [Conf] Hint: used config file '/home/rishi2/.choosenim/toolchains/nim-1.4.2/config/config.nims' [Conf] ....................CC: ../../src/nimraylib_now/raylib.nim Hint: [Link] /usr/bin/ld: /usr/local/lib/libraylib.a(core.c.o): in function `Vector2Length': /home/rishi2/dev/raylib/src/raymath.h:221: undefined reference to `sqrtf' /usr/bin/ld: /usr/local/lib/libraylib.a(core.c.o): in function `Vector2Distance': /home/rishi2/dev/raylib/src/raymath.h:242: undefined reference to `sqrtf' /usr/bin/ld: /usr/local/lib/libraylib.a(core.c.o): in function `Vector2Angle': /home/rishi2/dev/raylib/src/raymath.h:249: undefined reference to `atan2f' /usr/bin/ld: /usr/local/lib/libraylib.a(core.c.o): in function `Vector2Rotate': /home/rishi2/dev/raylib/src/raymath.h:317: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/raymath.h:317: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/raymath.h:317: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/raymath.h:317: undefined reference to `cosf' /usr/bin/ld: /usr/local/lib/libraylib.a(core.c.o): in function `Vector2MoveTowards': /home/rishi2/dev/raylib/src/raymath.h:331: undefined reference to `sqrtf' /usr/bin/ld: /usr/local/lib/libraylib.a(core.c.o): in function `Vector3Length': /home/rishi2/dev/raylib/src/raymath.h:435: undefined reference to `sqrtf' /usr/bin/ld: /usr/local/lib/libraylib.a(core.c.o): in function `Vector3Distance': /home/rishi2/dev/raylib/src/raymath.h:459: undefined reference to `sqrtf' /usr/bin/ld: /usr/local/lib/libraylib.a(core.c.o): in function `Vector3Min': /home/rishi2/dev/raylib/src/raymath.h:567: undefined reference to `fminf' /usr/bin/ld: /home/rishi2/dev/raylib/src/raymath.h:568: undefined reference to `fminf' /usr/bin/ld: /home/rishi2/dev/raylib/src/raymath.h:569: undefined reference to `fminf' /usr/bin/ld: /usr/local/lib/libraylib.a(core.c.o): in function `Vector3Max': /home/rishi2/dev/raylib/src/raymath.h:579: undefined reference to `fmaxf' /usr/bin/ld: /home/rishi2/dev/raylib/src/raymath.h:580: undefined reference to `fmaxf' /usr/bin/ld: /home/rishi2/dev/raylib/src/raymath.h:581: undefined reference to `fmaxf' /usr/bin/ld: /usr/local/lib/libraylib.a(core.c.o): in function `MatrixRotate': /home/rishi2/dev/raylib/src/raymath.h:859: undefined reference to `sqrtf' /usr/bin/ld: /home/rishi2/dev/raylib/src/raymath.h:869: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/raymath.h:870: undefined reference to `cosf' /usr/bin/ld: /usr/local/lib/libraylib.a(core.c.o): in function `MatrixRotateX': /home/rishi2/dev/raylib/src/raymath.h:901: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/raymath.h:902: undefined reference to `sinf' /usr/bin/ld: /usr/local/lib/libraylib.a(core.c.o): in function `MatrixRotateY': /home/rishi2/dev/raylib/src/raymath.h:917: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/raymath.h:918: undefined reference to `sinf' /usr/bin/ld: /usr/local/lib/libraylib.a(core.c.o): in function `MatrixRotateZ': /home/rishi2/dev/raylib/src/raymath.h:933: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/raymath.h:934: undefined reference to `sinf' /usr/bin/ld: /usr/local/lib/libraylib.a(core.c.o): in function `MatrixRotateXYZ': /home/rishi2/dev/raylib/src/raymath.h:950: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/raymath.h:951: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/raymath.h:952: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/raymath.h:953: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/raymath.h:954: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/raymath.h:955: undefined reference to `sinf' /usr/bin/ld: /usr/local/lib/libraylib.a(core.c.o): in function `MatrixPerspective': /home/rishi2/dev/raylib/src/raymath.h:1031: undefined reference to `tan' /usr/bin/ld: /usr/local/lib/libraylib.a(core.c.o): in function `QuaternionLength': /home/rishi2/dev/raylib/src/raymath.h:1165: undefined reference to `sqrt' /usr/bin/ld: /usr/local/lib/libraylib.a(core.c.o): in function `QuaternionSlerp': /home/rishi2/dev/raylib/src/raymath.h:1278: undefined reference to `acosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/raymath.h:1279: undefined reference to `sqrtf' /usr/bin/ld: /home/rishi2/dev/raylib/src/raymath.h:1290: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/raymath.h:1291: undefined reference to `sinf' /usr/bin/ld: /usr/local/lib/libraylib.a(core.c.o): in function `QuaternionFromMatrix': /home/rishi2/dev/raylib/src/raymath.h:1332: undefined reference to `sqrtf' /usr/bin/ld: /home/rishi2/dev/raylib/src/raymath.h:1341: undefined reference to `sqrtf' /usr/bin/ld: /home/rishi2/dev/raylib/src/raymath.h:1349: undefined reference to `sqrtf' /usr/bin/ld: /usr/local/lib/libraylib.a(core.c.o): in function `QuaternionFromAxisAngle': /home/rishi2/dev/raylib/src/raymath.h:1396: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/raymath.h:1397: undefined reference to `cosf' /usr/bin/ld: /usr/local/lib/libraylib.a(core.c.o): in function `QuaternionToAxisAngle': /home/rishi2/dev/raylib/src/raymath.h:1415: undefined reference to `acosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/raymath.h:1416: undefined reference to `sqrtf' /usr/bin/ld: /usr/local/lib/libraylib.a(core.c.o): in function `QuaternionFromEuler': /home/rishi2/dev/raylib/src/raymath.h:1440: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/raymath.h:1441: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/raymath.h:1442: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/raymath.h:1443: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/raymath.h:1444: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/raymath.h:1445: undefined reference to `sinf' /usr/bin/ld: /usr/local/lib/libraylib.a(core.c.o): in function `QuaternionToEuler': /home/rishi2/dev/raylib/src/raymath.h:1464: undefined reference to `atan2f' /usr/bin/ld: /home/rishi2/dev/raylib/src/raymath.h:1470: undefined reference to `asinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/raymath.h:1475: undefined reference to `atan2f' /usr/bin/ld: /usr/local/lib/libraylib.a(core.c.o): in function `rlGenerateMipmaps': /home/rishi2/dev/raylib/src/rlgl.h:2466: undefined reference to `log' /usr/bin/ld: /home/rishi2/dev/raylib/src/rlgl.h:2466: undefined reference to `floor' /usr/bin/ld: /usr/local/lib/libraylib.a(core.c.o): in function `GenTexturePrefilter': /home/rishi2/dev/raylib/src/rlgl.h:3676: undefined reference to `powf' /usr/bin/ld: /home/rishi2/dev/raylib/src/rlgl.h:3677: undefined reference to `powf' /usr/bin/ld: /usr/local/lib/libraylib.a(core.c.o): in function `SetVrConfiguration': /home/rishi2/dev/raylib/src/rlgl.h:3887: undefined reference to `atan2f' /usr/bin/ld: /usr/local/lib/libraylib.a(core.c.o): in function `SetCameraMode': /home/rishi2/dev/raylib/src/camera.h:257: undefined reference to `sqrtf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:260: undefined reference to `atan2f' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:261: undefined reference to `sqrtf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:261: undefined reference to `atan2f' /usr/bin/ld: /usr/local/lib/libraylib.a(core.c.o): in function `UpdateCamera': /home/rishi2/dev/raylib/src/camera.h:388: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:388: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:388: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:389: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:390: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:390: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:390: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:395: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:395: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:396: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:397: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:397: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:409: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:409: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:410: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:410: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:411: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:411: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:416: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:417: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:418: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:419: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:421: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:422: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:425: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:426: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:427: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:428: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:452: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:454: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:455: undefined reference to `sinf' /usr/bin/ld: /usr/local/lib/libraylib.a(core.c.o):/home/rishi2/dev/raylib/src/camera.h:460: more undefined references to `sinf' follow /usr/bin/ld: /usr/local/lib/libraylib.a(core.c.o): in function `UpdateCamera': /home/rishi2/dev/raylib/src/camera.h:462: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:463: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:465: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:466: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:469: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:470: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:471: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:472: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:489: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:489: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:491: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:491: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:492: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:492: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:494: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/camera.h:494: undefined reference to `cosf' /usr/bin/ld: /usr/local/lib/libraylib.a(core.c.o): in function `BeginMode3D': /home/rishi2/dev/raylib/src/core.c:1888: undefined reference to `tan' /usr/bin/ld: /usr/local/lib/libraylib.a(core.c.o): in function `GetFPS': /home/rishi2/dev/raylib/src/core.c:2180: undefined reference to `roundf' /usr/bin/ld: /usr/local/lib/libraylib.a(core.c.o): in function `SetupFramebuffer': /home/rishi2/dev/raylib/src/core.c:4098: undefined reference to `round' /usr/bin/ld: /home/rishi2/dev/raylib/src/core.c:4104: undefined reference to `round' /usr/bin/ld: /home/rishi2/dev/raylib/src/core.c:4139: undefined reference to `round' /usr/bin/ld: /home/rishi2/dev/raylib/src/core.c:4145: undefined reference to `round' /usr/bin/ld: /usr/local/lib/libraylib.a(shapes.c.o): in function `DrawLineEx': /home/rishi2/dev/raylib/src/shapes.c:129: undefined reference to `sqrtf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:130: undefined reference to `asinf' /usr/bin/ld: /usr/local/lib/libraylib.a(shapes.c.o): in function `DrawLineBezierQuad': /home/rishi2/dev/raylib/src/shapes.c:195: undefined reference to `powf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:197: undefined reference to `powf' /usr/bin/ld: /usr/local/lib/libraylib.a(shapes.c.o): in function `DrawCircleSector': /home/rishi2/dev/raylib/src/shapes.c:251: undefined reference to `powf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:251: undefined reference to `acosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:252: undefined reference to `ceilf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:275: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:275: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:278: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:278: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:281: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:281: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:295: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:295: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:298: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:298: undefined reference to `sinf' /usr/bin/ld: /usr/local/lib/libraylib.a(shapes.c.o): in function `DrawCircleSectorLines': /home/rishi2/dev/raylib/src/shapes.c:340: undefined reference to `powf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:340: undefined reference to `acosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:341: undefined reference to `ceilf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:361: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:361: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:368: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:368: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:369: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:369: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:378: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:378: undefined reference to `sinf' /usr/bin/ld: /usr/local/lib/libraylib.a(shapes.c.o): in function `DrawCircleGradient': /home/rishi2/dev/raylib/src/shapes.c:395: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:395: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:397: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:397: undefined reference to `sinf' /usr/bin/ld: /usr/local/lib/libraylib.a(shapes.c.o): in function `DrawCircleLines': /home/rishi2/dev/raylib/src/shapes.c:420: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:420: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:421: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:421: undefined reference to `sinf' /usr/bin/ld: /usr/local/lib/libraylib.a(shapes.c.o): in function `DrawEllipse': /home/rishi2/dev/raylib/src/shapes.c:436: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:436: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:437: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:437: undefined reference to `sinf' /usr/bin/ld: /usr/local/lib/libraylib.a(shapes.c.o): in function `DrawEllipseLines': /home/rishi2/dev/raylib/src/shapes.c:451: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:451: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:452: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:452: undefined reference to `sinf' /usr/bin/ld: /usr/local/lib/libraylib.a(shapes.c.o): in function `DrawRing': /home/rishi2/dev/raylib/src/shapes.c:483: undefined reference to `powf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:483: undefined reference to `acosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:484: undefined reference to `ceilf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:510: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:510: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:513: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:513: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:516: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:516: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:519: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:519: undefined reference to `sinf' /usr/bin/ld: /usr/local/lib/libraylib.a(shapes.c.o): in function `DrawRingLines': /home/rishi2/dev/raylib/src/shapes.c:574: undefined reference to `powf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:574: undefined reference to `acosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:575: undefined reference to `ceilf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:599: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:599: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:600: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:600: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:607: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:607: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:608: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:608: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:610: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:610: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:611: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:611: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:619: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:619: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:620: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:620: undefined reference to `sinf' /usr/bin/ld: /usr/local/lib/libraylib.a(shapes.c.o): in function `DrawRectangleRounded': /home/rishi2/dev/raylib/src/shapes.c:785: undefined reference to `powf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:785: undefined reference to `acosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:786: undefined reference to `ceilf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:837: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:837: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:839: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:839: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:841: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:841: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:851: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:851: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:853: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:853: undefined reference to `sinf' /usr/bin/ld: /usr/local/lib/libraylib.a(shapes.c.o): in function `DrawRectangleRoundedLines': /home/rishi2/dev/raylib/src/shapes.c:1005: undefined reference to `powf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:1005: undefined reference to `acosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:1006: undefined reference to `ceilf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:1063: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:1063: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:1065: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:1065: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:1067: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:1067: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:1069: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:1069: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:1202: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:1202: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:1203: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:1203: undefined reference to `sinf' /usr/bin/ld: /usr/local/lib/libraylib.a(shapes.c.o): in function `DrawPoly': /home/rishi2/dev/raylib/src/shapes.c:1361: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:1361: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:1364: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:1364: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:1368: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:1368: undefined reference to `sinf' /usr/bin/ld: /usr/local/lib/libraylib.a(shapes.c.o): in function `DrawPolyLines': /home/rishi2/dev/raylib/src/shapes.c:1406: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:1406: undefined reference to `sinf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:1408: undefined reference to `cosf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:1408: undefined reference to `sinf' /usr/bin/ld: /usr/local/lib/libraylib.a(shapes.c.o): in function `CheckCollisionCircles': /home/rishi2/dev/raylib/src/shapes.c:1471: undefined reference to `sqrtf' /usr/bin/ld: /usr/local/lib/libraylib.a(shapes.c.o): in function `CheckCollisionLines': /home/rishi2/dev/raylib/src/shapes.c:1510: undefined reference to `fminf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:1510: undefined reference to `fmaxf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:1511: undefined reference to `fminf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:1511: undefined reference to `fmaxf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:1512: undefined reference to `fminf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:1512: undefined reference to `fmaxf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:1513: undefined reference to `fminf' /usr/bin/ld: /home/rishi2/dev/raylib/src/shapes.c:1513: undefined reference to `fmaxf' /usr/bin/ld: /usr/local/lib/libraylib.a(text.c.o): in function `stbtt__GetGlyphShapeTT': /home/rishi2/dev/raylib/src/external/stb_truetype.h:1850: undefined reference to `sqrt' /usr/bin/ld: /home/rishi2/dev/raylib/src/external/stb_truetype.h:1851: undefined reference to `sqrt' /usr/bin/ld: /usr/local/lib/libraylib.a(text.c.o): in function `stbtt_GetGlyphBitmapBoxSubpixel': /home/rishi2/dev/raylib/src/external/stb_truetype.h:2745: undefined reference to `floor' /usr/bin/ld: /home/rishi2/dev/raylib/src/external/stb_truetype.h:2746: undefined reference to `floor' /usr/bin/ld: /home/rishi2/dev/raylib/src/external/stb_truetype.h:2747: undefined reference to `ceil' /usr/bin/ld: /home/rishi2/dev/raylib/src/external/stb_truetype.h:2748: undefined reference to `ceil' /usr/bin/ld: /usr/local/lib/libraylib.a(text.c.o): in function `stbtt__tesselate_cubic': /home/rishi2/dev/raylib/src/external/stb_truetype.h:3529: undefined reference to `sqrt' /usr/bin/ld: /home/rishi2/dev/raylib/src/external/stb_truetype.h:3529: undefined reference to `sqrt' /usr/bin/ld: /home/rishi2/dev/raylib/src/external/stb_truetype.h:3529: undefined reference to `sqrt' /usr/bin/ld: /home/rishi2/dev/raylib/src/external/stb_truetype.h:3530: undefined reference to `sqrt' /usr/bin/ld: /usr/local/lib/libraylib.a(text.c.o): in function `stbtt_GetBakedQuad': /home/rishi2/dev/raylib/src/external/stb_truetype.h:3807: undefined reference to `floor' /usr/bin/ld: /home/rishi2/dev/raylib/src/external/stb_truetype.h:3808: undefined reference to `floor' /usr/bin/ld: /usr/local/lib/libraylib.a(text.c.o): in function `stbtt_GetPackedQuad': /home/rishi2/dev/raylib/src/external/stb_truetype.h:4312: undefined reference to `floor' /usr/bin/ld: /home/rishi2/dev/raylib/src/external/stb_truetype.h:4313: undefined reference to `floor' /usr/bin/ld: /usr/local/lib/libraylib.a(text.c.o): in function `stbtt__ray_intersect_bezier': /home/rishi2/dev/raylib/src/external/stb_truetype.h:4359: undefined reference to `sqrt' /usr/bin/ld: /usr/local/lib/libraylib.a(text.c.o): in function `stbtt__compute_crossings_x': /home/rishi2/dev/raylib/src/external/stb_truetype.h:4421: undefined reference to `fmod' /usr/bin/ld: /usr/local/lib/libraylib.a(text.c.o): in function `stbtt__cuberoot': /home/rishi2/dev/raylib/src/external/stb_truetype.h:4482: undefined reference to `pow' /usr/bin/ld: /home/rishi2/dev/raylib/src/external/stb_truetype.h:4484: undefined reference to `pow' /usr/bin/ld: /usr/local/lib/libraylib.a(text.c.o): in function `stbtt__solve_cubic': /home/rishi2/dev/raylib/src/external/stb_truetype.h:4496: undefined reference to `sqrt' /usr/bin/ld: /home/rishi2/dev/raylib/src/external/stb_truetype.h:4504: undefined reference to `sqrt' /usr/bin/ld: /home/rishi2/dev/raylib/src/external/stb_truetype.h:4505: undefined reference to `sqrt' /usr/bin/ld: /home/rishi2/dev/raylib/src/external/stb_truetype.h:4505: undefined reference to `acos' /usr/bin/ld: /home/rishi2/dev/raylib/src/external/stb_truetype.h:4506: undefined reference to `cos' /usr/bin/ld: /home/rishi2/dev/raylib/src/external/stb_truetype.h:4507: undefined reference to `cos' /usr/bin/ld: /usr/local/lib/libraylib.a(text.c.o): in function `stbtt_GetGlyphSDF': /home/rishi2/dev/raylib/src/external/stb_truetype.h:4562: undefined reference to `sqrt' /usr/bin/ld: /home/rishi2/dev/raylib/src/external/stb_truetype.h:4595: undefined reference to `sqrt' /usr/bin/ld: /home/rishi2/dev/raylib/src/external/stb_truetype.h:4645: undefined reference to `sqrt' /usr/bin/ld: /home/rishi2/dev/raylib/src/external/stb_truetype.h:4663: undefined reference to `sqrt' /usr/bin/ld: /home/rishi2/dev/raylib/src/external/stb_truetype.h:4671: undefined reference to `sqrt' /usr/bin/ld: /usr/local/lib/libraylib.a(text.c.o):/home/rishi2/dev/raylib/src/external/stb_truetype.h:4679: more undefined references to `sqrt' follow /usr/bin/ld: /usr/local/lib/libraylib.a(text.c.o): in function `GenImageFontAtlas': /home/rishi2/dev/raylib/src/text.c:676: undefined reference to `sqrtf' /usr/bin/ld: /home/rishi2/dev/raylib/src/text.c:677: undefined reference to `logf' /usr/bin/ld: /home/rishi2/dev/raylib/src/text.c:677: undefined reference to `ceilf' /usr/bin/ld: /home/rishi2/dev/raylib/src/text.c:677: undefined reference to `powf' /usr/bin/ld: /usr/local/lib/libraylib.a(textures.c.o): in function `stbi__ldr_to_hdr': /home/rishi2/dev/raylib/src/external/stb_image.h:1808: undefined reference to `pow' /usr/bin/ld: /usr/local/lib/libraylib.a(textures.c.o): in function `stbi__hdr_to_ldr': /home/rishi2/dev/raylib/src/external/stb_image.h:1834: undefined reference to `pow' /usr/bin/ld: /usr/local/lib/libraylib.a(textures.c.o): in function `stbir__srgb_to_linear': /home/rishi2/dev/raylib/src/external/stb_image_resize.h:639: undefined reference to `pow' /usr/bin/ld: /usr/local/lib/libraylib.a(textures.c.o): in function `stbir__linear_to_srgb': /home/rishi2/dev/raylib/src/external/stb_image_resize.h:647: undefined reference to `pow' /usr/bin/ld: /usr/local/lib/libraylib.a(textures.c.o): in function `stbir__get_filter_pixel_width': /home/rishi2/dev/raylib/src/external/stb_image_resize.h:889: undefined reference to `ceil' /usr/bin/ld: /home/rishi2/dev/raylib/src/external/stb_image_resize.h:891: undefined reference to `ceil' /usr/bin/ld: /usr/local/lib/libraylib.a(textures.c.o): in function `stbir__get_coefficient_width': /home/rishi2/dev/raylib/src/external/stb_image_resize.h:904: undefined reference to `ceil' /usr/bin/ld: /home/rishi2/dev/raylib/src/external/stb_image_resize.h:906: undefined reference to `ceil' /usr/bin/ld: /usr/local/lib/libraylib.a(textures.c.o): in function `stbir__calculate_sample_range_upsample': /home/rishi2/dev/raylib/src/external/stb_image_resize.h:1019: undefined reference to `floor' /usr/bin/ld: /home/rishi2/dev/raylib/src/external/stb_image_resize.h:1020: undefined reference to `floor' /usr/bin/ld: /usr/local/lib/libraylib.a(textures.c.o): in function `stbir__calculate_sample_range_downsample': /home/rishi2/dev/raylib/src/external/stb_image_resize.h:1034: undefined reference to `floor' /usr/bin/ld: /home/rishi2/dev/raylib/src/external/stb_image_resize.h:1035: undefined reference to `floor' /usr/bin/ld: /usr/local/lib/libraylib.a(textures.c.o): in function `stbir__calculate_coefficients_upsample': /home/rishi2/dev/raylib/src/external/stb_image_resize.h:1044: undefined reference to `ceil' /usr/bin/ld: /usr/local/lib/libraylib.a(textures.c.o): in function `stbir__calculate_coefficients_downsample': /home/rishi2/dev/raylib/src/external/stb_image_resize.h:1092: undefined reference to `ceil' /usr/bin/ld: /usr/local/lib/libraylib.a(textures.c.o): in function `GenImageGradientRadial': /home/rishi2/dev/raylib/src/textures.c:593: undefined reference to `hypotf' /usr/bin/ld: /home/rishi2/dev/raylib/src/textures.c:596: undefined reference to `fmax' /usr/bin/ld: /home/rishi2/dev/raylib/src/textures.c:597: undefined reference to `fmin' /usr/bin/ld: /usr/local/lib/libraylib.a(textures.c.o): in function `GenImageCellular': /home/rishi2/dev/raylib/src/textures.c:739: undefined reference to `hypot' /usr/bin/ld: /home/rishi2/dev/raylib/src/textures.c:740: undefined reference to `fmin' /usr/bin/ld: /usr/local/lib/libraylib.a(textures.c.o): in function `ImageFormat': /home/rishi2/dev/raylib/src/textures.c:932: undefined reference to `round' /usr/bin/ld: /home/rishi2/dev/raylib/src/textures.c:933: undefined reference to `round' /usr/bin/ld: /home/rishi2/dev/raylib/src/textures.c:934: undefined reference to `round' /usr/bin/ld: /home/rishi2/dev/raylib/src/textures.c:962: undefined reference to `round' /usr/bin/ld: /home/rishi2/dev/raylib/src/textures.c:963: undefined reference to `round' /usr/bin/ld: /usr/local/lib/libraylib.a(textures.c.o):/home/rishi2/dev/raylib/src/textures.c:964: more undefined references to `round' follow /usr/bin/ld: /usr/local/lib/libraylib.a(textures.c.o): in function `ImageToPOT': /home/rishi2/dev/raylib/src/textures.c:1066: undefined reference to `logf' /usr/bin/ld: /home/rishi2/dev/raylib/src/textures.c:1066: undefined reference to `ceilf' /usr/bin/ld: /home/rishi2/dev/raylib/src/textures.c:1066: undefined reference to `powf' /usr/bin/ld: /home/rishi2/dev/raylib/src/textures.c:1067: undefined reference to `logf' /usr/bin/ld: /home/rishi2/dev/raylib/src/textures.c:1067: undefined reference to `ceilf' /usr/bin/ld: /home/rishi2/dev/raylib/src/textures.c:1067: undefined reference to `powf' /usr/bin/ld: /usr/local/lib/libraylib.a(textures.c.o): in function `ImageDrawPixel': /home/rishi2/dev/raylib/src/textures.c:2387: undefined reference to `round' /usr/bin/ld: /home/rishi2/dev/raylib/src/textures.c:2388: undefined reference to `round' /usr/bin/ld: /home/rishi2/dev/raylib/src/textures.c:2389: undefined reference to `round' /usr/bin/ld: /home/rishi2/dev/raylib/src/textures.c:2399: undefined reference to `round' /usr/bin/ld: /home/rishi2/dev/raylib/src/textures.c:2400: undefined reference to `round' /usr/bin/ld: /usr/local/lib/libraylib.a(textures.c.o):/home/rishi2/dev/raylib/src/textures.c:2401: more undefined references to `round' follow /usr/bin/ld: /usr/local/lib/libraylib.a(textures.c.o): in function `ColorFromHSV': /home/rishi2/dev/raylib/src/textures.c:3540: undefined reference to `fmodf' /usr/bin/ld: /home/rishi2/dev/raylib/src/textures.c:3548: undefined reference to `fmodf' /usr/bin/ld: /home/rishi2/dev/raylib/src/textures.c:3556: undefined reference to `fmodf' /usr/bin/ld: /usr/local/lib/libraylib.a(textures.c.o): in function `SetPixelColor': /home/rishi2/dev/raylib/src/textures.c:3716: undefined reference to `round' /usr/bin/ld: /home/rishi2/dev/raylib/src/textures.c:3717: undefined reference to `round' /usr/bin/ld: /home/rishi2/dev/raylib/src/textures.c:3718: undefined reference to `round' /usr/bin/ld: /home/rishi2/dev/raylib/src/textures.c:3728: undefined reference to `round' /usr/bin/ld: /home/rishi2/dev/raylib/src/textures.c:3729: undefined reference to `round' /usr/bin/ld: /usr/local/lib/libraylib.a(textures.c.o):/home/rishi2/dev/raylib/src/textures.c:3730: more undefined references to `round' follow /usr/bin/ld: /usr/local/lib/libraylib.a(monitor.c.o): in function `glfwSetGamma': /home/rishi2/dev/raylib/src/external/glfw/src/monitor.c:486: undefined reference to `powf' /usr/bin/ld: /usr/local/lib/libraylib.a(x11_monitor.c.o): in function `calculateRefreshRate': /home/rishi2/dev/raylib/src/external/glfw/src/x11_monitor.c:50: undefined reference to `round' /usr/bin/ld: /usr/local/lib/libraylib.a(posix_thread.c.o): in function `_glfwPlatformCreateTls': /home/rishi2/dev/raylib/src/external/glfw/src/posix_thread.c:44: undefined reference to `pthread_key_create' /usr/bin/ld: /usr/local/lib/libraylib.a(posix_thread.c.o): in function `_glfwPlatformDestroyTls': /home/rishi2/dev/raylib/src/external/glfw/src/posix_thread.c:58: undefined reference to `pthread_key_delete' /usr/bin/ld: /usr/local/lib/libraylib.a(posix_thread.c.o): in function `_glfwPlatformGetTls': /home/rishi2/dev/raylib/src/external/glfw/src/posix_thread.c:65: undefined reference to `pthread_getspecific' /usr/bin/ld: /usr/local/lib/libraylib.a(posix_thread.c.o): in function `_glfwPlatformSetTls': /home/rishi2/dev/raylib/src/external/glfw/src/posix_thread.c:71: undefined reference to `pthread_setspecific' collect2: error: ld returned 1 exit status Error: execution of an external program failed: 'gcc -o /home/rishi2/dev/gamedev/nimraylib_now/examples/shapes/shapes_bouncing_ball /home/rishi2/.cache/nim/shapes_bouncing_ball_d/stdlib_system.nim.c.o /home/rishi2/.cache/nim/shapes_bouncing_ball_d/stdlib_times.nim.c.o /home/rishi2/.cache/nim/shapes_bouncing_ball_d/stdlib_os.nim.c.o /home/rishi2/.cache/nim/shapes_bouncing_ball_d/@m..@s..@ssrc@snimraylib_now@sraylib.nim.c.o /home/rishi2/.cache/nim/shapes_bouncing_ball_d/@mshapes_bouncing_ball.nim.c.o -lm -lrt -lraylib -ldl' ```