Closed letorbi closed 1 year ago
Okay, I added some example files now. I hope that clears things up :)
Thanks for the fast fix. I'll take a look at your toolchains and try to compile for Mac. Hope it works somehow ;)
Interestingly I needed the linux-amd64.cmake toolchain even though I am on 64bit Linux. But I am new to CMake and Maven, so it just might be a glitch in my config.
Anyway, thanks again :)
From what I can tell, the toolchain file needs to exist (so CMake can find it), but it can be empty. Ideally you would leave out the toolchain argument for CMake then, but that would mean deciding on one host system to compile with. That's why I decided to run every build with a toolchain and just use an empty one for the host system.
Ah, ok. That makes sense. Never thought of using an empty toolchain file...
Thanks for the clarification.
Hi JnCrMx,
when I try to compile the library, it fails with an number of CMake warnings and errors (see below). The most critical seems to be
Could not find toolchain file: /home/letorbi/Desktop/discord-game-sdk4j/toolchains/linux-amd64.cmake
.I was able to fix this by creating my own toolchain file (see below), but the compilation then failed for the other platforms. Finally, after removing the compilation instructions for the other platform from /pom.xml, I was able to compile the library.
Could you please add your toolchain files to the project? I understand that they might be more or less specific to your system, but they would be a good reference for people like me, who try to compile the binaries on their own.
Cheers, Torben
File /toolchains/linux-amd64.cmake:
Log of the failed compilation: