FLAC.framework error - c++

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.

Related

How do i install correctly g++ and clang++ complilers on windows 11 for visual studio code

Well, it's more like a two-part question. I was following step by step this youtube tutorial about setting up visual studio code and trying different compilers(I went to winlibs and downloaded Win64: Zip archive version) and everything was great until 35:30 where the terminal output was fatal error: cannot execute 'cc1plus': CreateProcess: No such file or directory compilation terminated. I uninstalled and repeated the process several times but the problem remained. I followed some other tutorials about fixing the problem but it didn't work and soon after something else came up. I uninstalled and installed again the compilers and when I tried to find them in the command prompt clang++ --version worked and gcc --version but when I tried the g++ --version this appeared on the screen.Screenshot Saying this can't run on your pc or whatever. I really need some help did I do something wrong? How do I fix both these issues (terminal error and this app cant run on your PC) I ran a virus scan,SFC scan, I run command prompt as administrator, and this does work but at the beginning I didn't have to do that and if I don't choose that option still says that and it's really frustrating. I would really appreciate some help. Thanks in advance!

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.

How to run the SFML template?

I have installed the SFML templates (SFML App and SFML CLT) for Xcode to learn more about the library and improve my c++ skills. But I get an Error when I'm trying to run the template.
I have already installed the SFML framework and some external libraries, which SFML depends on.
But when I choose the template "SFML App" to create a new project and I try to run it, I get this error:
ditto: can't get real path for source '/Users/SFML/Desktop/packaging/tmp/install/Library/Frameworks/sfml-system.framework'
couldn't copy /Users/SFML/Desktop/packaging/tmp/install/Library/Frameworks/sfml-system.framework to /Users/seadkurtovic/Library/Developer/Xcode/DerivedData/My_First_SFML_App-bcabgonrxpifggalnkqaxhpyqygs/Build/Products/Debug/My First SFML App.app/Contents/Frameworks//sfml-system.framework
Command PhaseScriptExecution failed with a nonzero exit code
Does anyone know what I did wrong? Because I have actually followed everything carefully according to this tutorial: SFML and Xcode (macOS)
I had the same problem! And I found the answer here:
https://en.sfml-dev.org/forums/index.php?topic=24677.0
Build phases -> Run script -> check "Run script only when installing"
Here is the image:
https://imgur.com/LGZjxN7
Hmm, did you try installing the command line tools for XCode?
Try run this code inside the terminal:
xcode-select --install

Ubuntu - Debugging in CLion exits with code 127

I am running CLion 2017.1.3 on Ubuntu 16.04 LTS. When I click the "Debug"
button, the C++ project builds and then the debugger stops and exits with the error:
"During startup program exited with code 127.
Process finished with exit code 0"
I searched for this issue in StackOverflow and other forums but could not find any answer to resolve my issue. Please help me resolve this error.
The issue was because my SHELL variable was pointing to the wrong path. I found that out when I faced another issue of not being able to install any python packages using pip. When I googled that error, I happened to find out this SHELL variable issue.
Execute echo $SHELL in a terminal and check if it is a valid shell that you are using. I use the bash shell and hence changed it to /bin/bash using the command chsh -s /bin/bash root
Also, some debug libraries went missing, which I was able to restore using Ubuntu's Software Updater. Now, I am able to debug :)

mingw makefile compile error windows

hey guys i'm trying to run the following command:
mingw32-make -f makefile.mingw
everything seems to go fine until after about 3 minutes when i get the following error:
https://images.weserv.nl/?url=i.imgur.com/J7ojYju.png&fnr
The Error is on the left and on the right is the makefile.mingw, what exactly is the problem been trying to get this to work for a while. Thanks
link to make file: https://mega.co.nz/#!GI8kAAgC!I0YPQwroHHJokjoYIZfQADcEYxlG_x0MLTi1pi9CCFI
The OpenSSL development package is not installed.