Error when building C++ project - c++

I tried to build a C++ project using Cygwin. I got the following error:
make all
Cannot run program "make": Launching failed
Error: Program "make" not found in PATH
I have C:\cygwin64\bin in the PATH, which contains the file makeg. Is there meant to be some other make file, and where can I find it?

You need to install make.
If you want to know how to do that see the answers to install python and make in cygwin.

Related

why I'm getting error in executing my C++ code

I have installed MinGW 3 times and I've also added path in env. variable but whenever I try to run a code in CodeLight it just gives me the following error:
mingw-32-make.exe: *** [ALL] Error 2
In MinGW installation tutorials there are .exe files in the bin folder but I don't have any .exe file in the bin folder inside MinGW. I've tried installing it 3 and very carefully.
Can someone help me out?
Make sure the compiler and build tools are properly configured in the IDE (CodeLight).
Installing MinGW by itself doesn't tell CodeLight were to find it.
There is a standalone MinGW-w64 personal build available at http://winlibs.com/ that doesn't need installation, just unzip it. On the site there is an explanation on he wot configure Code::Blocks IDE to use this compiler. The steps should be pretty similar in CodeLight.

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

"nasm" is not recognized as an internal or external command

I am trying to compile libjpeg-turbo library using windows cmake. I am trying to follow the instrcutions found in that lib in order to compile the lib. I am operning a Visual studio terminal and I give in the first step the path of the library. My commands are the following:
cd ..path
cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Debug
nmake
The first command worked fine I am getting the message build files have been writer to path. However when I am trying to run nmake command I am getting errors:
"nasm" is not recognized as an internal or external command.
Any idea about what is nasm and how can I import it to my path.
From the problem you reported, it looks to me that the issue could be because of the PATH variable or configuration settings. The problem you reported have similar posts please refer to following links:
http://sourceforge.net/p/libjpeg-turbo/bugs/24/
https://github.com/Zeex/sampgdk/issues/42
Also it would be great if you could post the crash log or build process output from the console to further investigate the exact problem.

Error: Program "make" not found in PATH

I have the following error in Eclipse CDT (using Windows 7). How to correct it?
Error: Program "make" not found in PATH
PATH=[C:\cygwin\bin;C:/Program Files/Java/jre1.6.0/bin/client;C:/Program Files/Java/jre1.6.0/bin;C:/Program Files/Java/jre1.6.0/lib/i386;C:\Program Files\WinRAR;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\cygwin\bin\;C:\Users\user\AppData\Local\Temp\Rar$EX00.502\eclipse]
Path Environment variable has the following
C:\cygwin\bin\
BASH
You should install make package in cygwin. To do this execute cygwin setup.exe and when the window of packages opened, search make and install it. This is gonna solve your problem i think
You're missing make which is used for processing Makefiles to build programs.
Also to me it seems that this is more related to superuser.com, here is a similar question.

Running a Hello World application in Eclipse C++ in Windows

I've just downloaded and put to run Eclipse C++, in Windows, as well as MinGW (I've set its bin/ directory in the PATH variable).
When trying to compile a Hello World program, I get the following error:
**** Build of configuration Default for project tests ****
(Cannot run program "make" (in directory "D:\lixo\eclipse_cpp\workspace\tests"): CreateProcess error=2, The system cannot find the file specified)
Trying to run the make command from the command line yielded nothing, so I figured out that MinGW's make was called MinGW32_make.exe. I've renamed the file to make.exe, but the problem persists.
What am I missing?
Run the 32bit Eclipse instead, and make sure you're running a MinGW toolchain.
Not a solution, but a generally good enough workaround.