gecko0307 / dagon

3D game engine for D
https://gecko0307.github.io/dagon
Other
339 stars 32 forks source link

Nuklear library not found #57

Closed DeenOConnor closed 5 years ago

DeenOConnor commented 5 years ago

I tried to compile dagon-demo, tutorial 1 and dagon-shooter and there always was the same problem: [deen@parrot] : [~/Programs/dagon-demo-master] [$]> ./dagondemo Error: Nuklear library is not found. Please, install Nuklear.

Even with sudo: [deen@parrot] : [~/Programs/dagon-demo-master] [$]> sudo !! sudo ./dagondemo [sudo] пароль для deen: Error: Nuklear library is not found. Please, install Nuklear.

Even though dub downloads nuklear and builds it, all the projects i tried tell me that i need to install nuklear.

I cloned nuklear, went into c folder and ran cmake . : image

After that i tried make && make install: image

And tried running the demo again: [deen@parrot] : [~/Programs/bindbc-nuklear/c] [$]> cd ../../dagon-demo-master/ [deen@parrot] : [~/Programs/dagon-demo-master] [$]> ./dagondemo Error: Nuklear library is not found. Please, install Nuklear.

What should i do to install nuklear? Linux parrot 5.2.0-2parrot1-amd64 #1 SMP Parrot 5.2.7-2parrot1 (2019-08-12) x86_64 GNU/Linux

Timu5 commented 5 years ago

That's bindbc-nuklear problem, "make install" will only copy nuklear to "./bindbc-nuklear/lib/" directory, but in order to work property libnuklear.so and libnuklear.so.4.1.0 should be placed in "/usr/local/lib/". You can try to copy both this files manually.

DeenOConnor commented 5 years ago

Copied libnuklear.so.4.1.0 to /usr/local/lib/nuklear and created a symlink libnuklear.so next to it, that didn't work. Copied those directly into /usr/local/lib, didn't work too.

Timu5 commented 5 years ago

Sorry, my bad, symbolic link should be named "nuklear.so" without "lib" prefix so full path is "/usr/local/lib/nuklear.so".

DeenOConnor commented 5 years ago

It worked, thanks a lot.