Confused about building in Windows

28 views
Skip to first unread message

Sebastien Diot

unread,
Oct 23, 2022, 11:06:45 AM10/23/22
to Jsonnet
Hello.

I haven't really done anything with C or C++ for a decade or two, so I have no experience with modern building tools, but I do have Visual Studio installed, as something else I use depends on it.

I'm using Windows. I've installed vcpkg and ran "vcpkg install jsonnet"

This seems to have, among other things, built the jsonnet.lib file.

But then, to get an "executable", which is what I'm interested in atm, I need to install gcc or clang?

That is the part I don't get ; if vcpkg can find the Visual Studio C++ compiler, to be able to build the library, why can't the executable be built with the same compiler too? Why the need to install an additional C++ compiler?

Regards,
Sebastien Diot

Dave Cunningham

unread,
Oct 24, 2022, 6:45:05 AM10/24/22
to Sebastien Diot, Jsonnet
You should be able to build an executable using visual studio as well.  It is probably something missing in the build files that is preventing you.  This line here looks suspicious:

https://github.com/microsoft/vcpkg/blob/master/ports/jsonnet/portfile.cmake#L43

It may be worth opening a bug on vcpkg to ask them if it's supported.



--
You received this message because you are subscribed to the Google Groups "Jsonnet" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jsonnet+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jsonnet/c6230a5f-9906-4940-8b9b-cca26ad21348n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages