Xcode shell script invocation error - c++

I just moved over to a new MacBook Air (10.8) and a 64-bit project that compiled before gives me Shell Script Invocation Error: /bin/sh failed with exit code 2
It looks like XCode 4.6 is failing on one of the intermediate files, saying unexpected EOF while looking for matching '"' in a file ending in .sh:
/Users/billferster/Library/Developer/Xcode/DerivedData/MovingPicture-hcmztqjnatzylkburxulgmdynyqg/Build/Intermediates/MovingPicture.build/Debug/MovingPicture.build/Script-E004D330137B9E5B00FDC604.sh: line 6: unexpected EOF while looking for matching `"'
/Users/billferster/Library/Developer/Xcode/DerivedData/MovingPicture-hcmztqjnatzylkburxulgmdynyqg/Build/Intermediates/MovingPicture.build/Debug/MovingPicture.build/Script-E004D330137B9E5B00FDC604.sh: line 7: syntax error: unexpected end of file
Command /bin/sh failed with exit code 2
Any ideas how to fix this?
Thank
Bill

it was was it said it was. A missing "

Related

cc1plus.exe: fatal error: world.cpp: No such file or directory compilation terminated

i have problem with the code
everytime the code is done, running the code is still normal. when exiting visual code studio and re-entering, the code does not run end show the error as below
cc1plus.exe: fatal error: world.cpp: No such file or directory
compilation terminated.
I also got the same error, and to fix the error is easy. It may because your file name contains spaces. More information about this and how I know this is here:https://www.youtube.com/watch?v=Z5QxAjaiQp8. (Altough he got the different error raised but the way to fix it is still the same).
I resolved the error by removing the spaces between the name of the file I was saving. Earlier I was naming my c++ file as example- "test file.cpp", but when I removed the blank space i.e. "testfile.cpp" or "test_file.cpp", the error resolved.
If you are compiling the code using your terminal, you could check if the file you want to run is in that folder using dir for Windows or ls for Linux. If it is not, change to the folder where the file is and try running the file again.

Error when compiling Qt project. The process "/usr/bin/make" exited with code 2

I'm brand new to Qt and I tried to build a new project. I searched around and people seem to have similar problems but none of the solutions worked for me. I made New Project > Application > Qt widgets Application > created "Tester" file in /Volumes/MATT'S EHD/Qt > Kit: Desktop Qt 5.8.0 clang 64bit
I build it and this is my output:
sh: line 0: cd: /Volumes/MATTS\ EHD/Qt/build-Tester-Desktop_Qt_5_8_0_clang_64bit-Debug && /Volumes/MATT\S EHD/Qt/5.8/clang_64/bin/uic:
No such file or directory
/bin/sh: -c: line 0: unexpected EOF while looking for matching `''
/bin/sh: -c: line 1: syntax error: unexpected end of file
make: *** [main.o] Error 2
11:43:23: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project Tester (kit: Desktop Qt 5.8.0 clang 64bit)
When executing step "Make"
There's some other output but these are what's outputting in red and I'm assuming what's giving me issues. I haven't changed the file at all. I'm just trying to build it to see if it works and it doesn't. I'm running on OSX and everything is stored on my external hard drive. Any help is appreciated.
Since the error message complains about a missing matching (in that case closing) single quote, I strongly suspect your “MATT'S EHD” directory is a problem. That’s not too surprising because build systems in the C and C++ world are notoriously crappy when it comes to handling paths with spaces and/or quote characters.
Try a spaceless and quoteless path, not only for your project but also for your complete toolchain, especially the Qt installation. If you can’t or dont want to move your toolchain you can also try to backslash escape all special characters in Qt Creator’s “Build & Run” options. Should work theoretically, but I’ve never tried it in practice.

Eclipse CDT issue with building project

I'm getting a strange problem with my C/C++ dev environment. I had installed gcc, g++ on my linux box(ubuntu 14.04).
With the hello world program being built on my system I'm getting this error:
make all
/bin/sh: 1: Syntax error: Unterminated quoted string
make: *** [src/Banker's.o] Error 2
has anyone encountered to this problem before could help me with this?
It looks like your problem is in the name of the file you're trying to compile: Banker's.c. Rename the source to Bankers.c without the single quote in it.
mv src/"Banker's.c" src/"Bankers.c"

openssl-1.0.1f msys/mingw64 build fail

I am getting an error building openssl-1.0.1f with msys/mingw64:
installing libcrypto.a
/bin/sh: line 5: mingw64bin/ranlib.exe: No such file or directory
installing libssl.a
/bin/sh: line 5: mingw64bin/ranlib.exe: No such file or directory
make: *** [install_sw] Error 1
when I run .Configure I get:
ENGINES_OBJ =
PROCESSOR =
RANLIB =\mingw64\bin/ranlib.exe
ARFLAGS =
PERL =perl
Soooooo seems pretty easy I just need to change the backslashes to slashes
I open .Configure and search for Ranlib and I get:
my $ranlib = $ENV{'RANLIB'} || $fields[$idx_ranlib];
Farther down:
\$\(CROSS_COMPILE\)$cc/;
s/^AR=\s*/AR= \$\(CROSS_COMPILE\)/;
s/^NM=\s*/NM= \$\(CROSS_COMPILE\)/;
s/^RANLIB=\s*/RANLIB= \$\(CROSS_COMPILE\)/;
Oookkeeee why not change \s*/RANLIB= \$(CROSS_COMPILE)/; to \s*/RANLIB= /$/(CROSS_COMPILE)/;
Scalar found where operator expected at ./Configure line 1619, near "s/^RANLIB=\s*/RANLIB= /$/"
Backslash found where operator expected at ./Configure line 1619, near "CROSS_COMPILE\"
syntax error at ./Configure line 1619, near "s/^RANLIB=\s*/RANLIB= /$/"
Execution of ./Configure aborted due to compilation errors.
How I feel:
http://i0.kym-cdn.com/photos/images/original/000/234/765/b7e.jpg
For those still wondering, yes I am a beginner.
Soooo my questions:
Is ranlib path the real problem here? If so, how can I make msys see slashes instead of backslashes? If you know the answer, do you think you can use concise and clear explanations?
I suspect you are trying to build OpenSSL not from the MSYS console.
You should run these commands from the MSYS console (to start it, use C:\msys64\msys.bat):
perl Configure mingw64 --prefix=/wherever-you-need-to-put-it
make
make test
make install
P.S. MSYS should be configured for using MinGW: you should create a file C:\msys64\etc\fstab with a line like this (adjust the first part if it is different on your machine).
c:/mingw64 /mingw

XCode shell script error

I just moved over to a new MacBook Air (10.8) and a 64-bit project that compiled before gives me Shell Script Invocation Error: /bin/sh failed with exit code 2
It looks like XCode 4.6 is failing on one of the intermediate files, saying unexpected EOF while looking for matching '"' in a file ending in .sh
Any ideas how to fix this?
Thank
Bill