Category : cmake

I have downloaded OpenGL source package for Ubuntu from this website www.glfw.org/download.html I followed the recommendations from this website here https://www.glfw.org/docs/latest/compile.html when I was compiling the OpenGL libraries (I used command "cmake -S path/to/glfw -B path/to/build" and then I entered into the build directory and typed the command "make" into terminal). Now I have the ..

Read more

I’ve been struggling with this for longer than I care to admit and would really appreciate some help. I’m trying to do a project which involves building a linker and scheduler, and thought if I could use some of the functionality that’s already been build into LLVM that would be great. I’m using LLVM 10. ..

Read more

I’m getting a warning ([-Wmaybe-uninitialized]) on some code that I don’t think should be throwing a warning. Compiling with cmake using GCC. Basically it’s saying that a variable may not be initialized, but I think it’s guaranteed to be initialized. Here’s an example: #include<iostream> enum class ByteOrder { little_endian, big_endian }; class someClass { someClass(ByteOrder ..

Read more

I intend to ship a directory containing a CMake project building some C++ code that depends on a prebuilt static library shipped along with the CMake project. I would like CMake to build the project by first installing the prebuilt library to the default location (e.g. /usr/local/lib), and only then building the other targets, making ..

Read more

In my AndroidStudio project I created native library using JNI with CMake and CPP code. Everything builds and runs OK, but when I try to commit and push my code to git, the CodeAnalysis appears in the "Messages" bottom tab, showing me an error: Error:(1, 1) Unable to execute Clang-Tidy: clazy-standalone is not found or ..

Read more