VCPKG BUILD_FAILED - vcpkg

I have been trying to install vcpkg on my device, but there always seems to be some errors, after I thought I had fixed everything when trying to install something I get this error message "error: building (anything):x86-windows failed with: BUILD_FAILED"
How do I fix this?

Related

Can't install libraries on Visual Studio code

I downloaded vcpkg, i managed to run the commands but whenever i try to install a library, the following error comes up :Error: while loading iostream:
The port directory (D:\New folder (2)\DEV\vcpkg\ports\iostream) does not exist
Error: failed to load port from D:\New folder (2)\DEV\vcpkg\ports\iostream
Note: Updating vcpkg by rerunning bootstrap-vcpkg may resolve this failure.
i tried updating vcpkg but it didnt work. I just started programming in c++ and i cant find a way to install libraries or whatever they are called . Is there any other way to install iostream and stuff like that?
sorry if this is a stupid question but im new and i didnt find anything that could have helped me.

curl.lib missing (Visual Studio 2019, C++)

I have a project that require curl.lib but i tried every single tutorial that i have found online but noone helped me.
The first method that i have tried is just downloading curl, going to winbuild and to run some stuff with nmake but i'm getting some errors and after downloading nmake and cl i'm still getting an error (return: 0xC0000135) and i don't know how to fix this.
I have also tried some other methods like using vcpkg but i can't run vcpkg install curl because something goes wrong and i get this error: Building package zlib:x86-windows failed with: BUILD_FAILED
other tutorials are just not working and i spent 6 hours trying to solve this issue.
Any idea?
Finally i solved the issue using vcpkg, i discovered that this issue enter-vsdevshell error was the problem and if someone had my same problem that's the fix.

FLAC.framework error

I am trying to learn how to use SFML however when i try to compile my c++ code i get Xcode telling meCommand /bin/sh failed with exit code 2. this is the error i get when i click more info
ditto: can't get real path for source
'/Library/Frameworks/FLAC.framework' couldn't copy
/Library/Frameworks/FLAC.framework to
/Users/tris/Library/Developer/Xcode/DerivedData/idk-ckysmijtsswdysecxtelmnggzhun/Build/Products/Debug/idk.app/Contents/Frameworks//FLAC.framework
Command /bin/sh failed with exit code 2
how would i go about fixing this? i have tried reinstalling the Command line tools packaged with xcode.
thanks.
There was an error with the way i had installed SFML. If anyone comes across this error then please go back and install the dylib option of sfml. that is how my issue was resolved.

utop - command not found

Suddenly when trying to use utop on my macbook, I get the error in the title. I've tried reinstalling with opam and reinstalling with homebrew but I've had no success. I haven't changed anything, this just randomly started happening. Has anyone had this problem?
Edit: I used brew install opam to install opam but I get an error: Warning: git 2.15.1 is already installed
Error: Git must be installed and in your PATH!
This could be a different issue all together but I'm not sure

Issue installing SDL on Mac

I have successfully installed libsdl in the past on my Mac OS X Leopard with macports, but now when I try to do it again (after it was uninstalled a while ago), macports produces this error when attempting to install the dependency "xorg-libXdmcp":
Error: org.macports.configure for port xorg-libXdmcp returned: configure failure: command execution failed
Please see the log file for port xorg-libXdmcp for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_xorg-libXdmcp/xorg-libXdmcp/main.log
Error: Unable to upgrade port: 1
Error: Unable to execute port: upgrade xorg-libXext failed
main.log
EDIT: Okay, this has become a problem with installing xorg-libXdmcp: no matter what I do, it always produces this error. The log says that it couldn't find the xproto package.
After attempts to install it via Fink didn't actually seem to install it, I just built it from source.