Hello Chalet community! #249
-
Hello, I'm Paul. I've recently discovered this amazing project, and I'm loving it already!
And I will also need to add FreeType2 and OpenAL at a later time I run ▼ My app number 1 [1/2] cpp/app1/main.cpp ✘ Failed! Also, I cannot find any binaries for utf8cpp, nlohmann json and zlib
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 8 replies
-
Thanks for trying it out! So there's a couple things to unpack here that I can help you with.
See where that gets you. Btw, you can paste a multi-line block of code with three backticks ("```") before and after the snippet. |
Beta Was this translation helpful? Give feedback.
-
Hello Andrew, thank for your answer, and sorry for the messy code! I did everything you suggested, also changed the zlib link library to just
I have this exact folder in my file system My app code:
I did run |
Beta Was this translation helpful? Give feedback.
-
Thanks for the detailed explanation, and if my post helped you, I'm glad to help
No, I'll try another one, thanks |
Beta Was this translation helpful? Give feedback.
-
Is there something wrong in my chalet.json file? |
Beta Was this translation helpful? Give feedback.
Thanks for trying it out! So there's a couple things to unpack here that I can help you with.
nlohmann_json
out of links and${externalBuild:nlohmann-json}
out of libDirs. In includeDirs, change${external:nlohmann-json}/include
to${external:nlohmann-json}/single_include
. It's a header-only library, so you don't need to build/link anything"location": "${external:utf8-cpp}"
instead of"location": "${external:zlib}"
utf8cpp
also looks to be header-only. The CmakeLists.txt it has is just for integrating into another cmake project - it just describes where its includes are. You can safely removeutf8cpp
from links, and${externalBuild:utf8-cpp}
from l…