#need help including library from github with cmake and fetchcontent, but it isn't working

82 messages · Page 1 of 1 (latest)

glacial ore
honest terraceBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

glacial ore
#

here is my file structure

merry moon
#

seems well documented

glacial ore
#

here is all like whats in my project:

#

this is my fs:

#

it gives me this whenever it ry to run a simple hello world

#

idk what im doing wrong

#

i got the verison number right, the link right, and i think everything else right

glacial ore
#

it got the whole git repo into the build/_deps/ folder

merry moon
#

cmake and cpp look fine. you must have something configured wrong in vscode

glacial ore
grand cliff
glacial ore
#

I did that multiple times

grand cliff
glacial ore
#

no

#

it didnt

grand cliff
#

Probably it’s trying to use the Ninja generator and failing since it already has a makefile generator, the easiest path forward is to delete the build folder and reconfigure using the plugin

glacial ore
#

i have a compile-comands.js

#

json

glacial ore
grand cliff
grand cliff
glacial ore
#

that didn't relly do anythiung tho

grand cliff
#

Can you try building it, it also caches build errors from when you build using the plugin (seems that way since the source is gcc)

glacial ore
#

so like build with ctrl chift p build or cmake ..

#

?

grand cliff
#

There’s a tab on the left with the cmake logo, that’s the most sure way

glacial ore
#

i got this with the command pallet build option

glacial ore
grand cliff
#

In that case, try enabling CMAKE_VERBOSE_MAKEFILE in your CMakeLists.txt using set(CMAKE_VERBOSE_MAKEFILE ON)

#

Since it seems like keyboard-auto-type isn’t ending up in your include paths

glacial ore
#

its still giving me the same error, can we manually include it?

glacial ore
#

could you try to make a simple main.cpp and makefilelists, and try to reproduce the problem on ur end?

#

i think we might be able to figure out the issue if its js my IDE or me js being stupid

grand cliff
#

Not right now, but I can in around 15 minutes

glacial ore
glacial ore
#

k

#

lmk if ur able to reproduce the error

grand cliff
#

It works for me out of the box, the only challenge I had was intalling the required packages for linux (I run everything in a docker container)

#

Though looking through the logs that you sent (which I couldn't open before on mobile), there seems to be a compatibility issue with your cmake generated script and your gcc

grand cliff
glacial ore
#

I had that on the whole time

grand cliff
# glacial ore

Could you post the whole output, I just need to see the command it's running to get that error, since it seems like a config issue for Windows

glacial ore
#

okay

#

here

glacial ore
grand cliff
# glacial ore sry abt that, I thought that was the whole output

There don't seem to be any issues with the build commands, the best advice I can give is to try and either clean-reconfigure, or try reinstalling/repairing mingw; or as a last resort trying to use the Visual Studio generator in place of the Makefile generator and using Visual Studio Community

glacial ore
grand cliff
#

For beginners, absolutely, for myself, I usually use a custom VSCode + DevContainers setup since I often use other languages, and I'm mac based running linux stuff

glacial ore
honest terraceBOT
#

@glacial ore Has your question been resolved? If so, type !solved :)

glacial ore
#

I've got vscode running, and it completes with no errors!

#

I mean visual studio

merry moon
#

can't beat the VS debugger

glacial ore
#

yea i did that when I tried using raylib for cpp[

glacial ore
#

like nvim debuggers kinda suck if your config sucks as a whole

#

so it was kinda messy code

merry moon
#

VS debugger is out of the box and the best available C++ debugger imo

#

uhhh yeah

#

is that some sort of conditional breakpoint?

#

I guess you mean watchpoints?

#

I can't find a term called "watchdogs"