Any 3D Game or Engine with examples/demos which just work (compile&run) out of the box on linux ?
Aldo
aldocd4 at outlook.com
Fri Oct 18 20:09:47 UTC 2019
On Friday, 18 October 2019 at 19:20:04 UTC, Prokop Hapala wrote:
> On Friday, 18 October 2019 at 06:24:38 UTC, Ferhat Kurtulmuş
> wrote:
>> On Friday, 18 October 2019 at 06:11:37 UTC, Ferhat Kurtulmuş
>> wrote:
>>> On Friday, 18 October 2019 at 05:52:19 UTC, Prokop Hapala
>>> wrote:
>>>> Already >1 year I consider to move from C++ to Dlang or to
>>>> Rust in my hobby game development (mostly based on physical
>>>> simulations
>>>> https://github.com/ProkopHapala/SimpleSimulationEngine). I
>>>> probably prefer Dlang because it compiles much faster, and I
>>>> can copy&paste C/C++ code to it without much changes.
>>>>
>>>> [...]
>>>
>>> I cannot make any comment for others. But Dagon should work.
>>> I wrote a very little demo game some time ago
>>> https://github.com/aferust/dagon-shooter. I didn't try to
>>> compile and run it on Linux.I think you need to have a
>>> nuklear.so in your path, since Bindbc loaders try to load
>>> dynamic libraries by default.
>>
>> https://github.com/Timu5/bindbc-nuklear/blob/master/README.md
>>
>> "This library contains prebuild windows dll for Nuklear, on
>> different platforms you can easily build C source code from
>> cmake configuration in c directory."
>
> I did what you say (I guess), but Nuclear still cannot be found:
>
> prokop at prokop-Lenovo-ideapad-Y700-15ISK:~/git_SW/_Dlang/dagon-demo$ echo $LD_LIBRARY_PATH
> /home/prokop/git_SW/bindbc-nuklear/build:/home/prokop/torch/install/lib:
>
> prokop at prokop-Lenovo-ideapad-Y700-15ISK:~/git_SW/_Dlang/dagon-demo$ ls
> COPYING data dub.selections.json icon.ico input.conf
> rcedit-x64.exe README.md src
> dagondemo dub.json gamecontrollerdb.txt icon.txt
> libnuklear.so rcedit-x86.exe settings.conf
>
> prokop at prokop-Lenovo-ideapad-Y700-15ISK:~/git_SW/_Dlang/dagon-demo$ ./dagondemo
> Error: Nuklear library is not found. Please, install Nuklear.
Try to move that libnuklear.so or rename it to nuklear.so. I
checked bindbc code and saw :
version(Windows) {
const(char)[][1] libNames = ["nuklear.dll"];
}
else version(OSX) {
const(char)[][1] libNames = ["nuklear.dylib"];
}
else version(Posix) {
const(char)[][2] libNames = [
"nuklear.so",
"/usr/local/lib/nuklear.so",
];
}
More information about the Digitalmars-d-learn
mailing list