Results 1 to 3 of 3

Thread: XCode compilation error

  1. #1
    Join Date
    Feb 2007
    Posts
    81
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default XCode compilation error

    I just recently got my Qt project set up with XCode, and I get the following errors when I try to compile any of the code:
    Qt Code:
    1. Building target “dlflcore” of project “dlflcore” with configuration “Release” — (2 errors)
    2. cd /Users/dvmorris/topmod2/topmodx/include/dlflcore
    3. /usr/include/c++ -x c++ -arch i386 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -fmessage-length=0 -I/Users/dvmorris/topmod2/topmodx/include/dlflcore/build/dlflcore.build/Release/dlflcore.build/dlflcore.hmap -F/Users/dvmorris/topmod2/topmodx/include/dlflcore/build/Release -I/Users/dvmorris/topmod2/topmodx/include/dlflcore/build/Release/include -I.. -I../vecmat -I. -I/usr/local/Trolltech/Qt-4.3.2/mkspecs/macx-g++ -I/Users/dvmorris/topmod2/topmodx/include/dlflcore/build/dlflcore.build/Release/dlflcore.build/DerivedSources -pipe -g -arch ppc -arch i386 -w -fPIC -c /Users/dvmorris/topmod2/topmodx/include/dlflcore/DLFLCommon.cc -o /Users/dvmorris/topmod2/topmodx/include/dlflcore/build/dlflcore.build/Release/dlflcore.build/Objects-normal/i386/DLFLCommon.o
    4. error: can't exec '/usr/include/c++' (Permission denied)
    5. error: can't exec '/usr/include/c++' (Permission denied)
    6. cd /Users/dvmorris/topmod2/topmodx/include/dlflcore
    7. /usr/include/c++ -x c++ -arch i386 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -fmessage-length=0 -I/Users/dvmorris/topmod2/topmodx/include/dlflcore/build/dlflcore.build/Release/dlflcore.build/dlflcore.hmap -F/Users/dvmorris/topmod2/topmodx/include/dlflcore/build/Release -I/Users/dvmorris/topmod2/topmodx/include/dlflcore/build/Release/include -I.. -I../vecmat -I. -I/usr/local/Trolltech/Qt-4.3.2/mkspecs/macx-g++ -I/Users/dvmorris/topmod2/topmodx/include/dlflcore/build/dlflcore.build/Release/dlflcore.build/DerivedSources -pipe -g -arch ppc -arch i386 -w -fPIC -c /Users/dvmorris/topmod2/topmodx/include/dlflcore/DLFLCore.cc -o /Users/dvmorris/topmod2/topmodx/include/dlflcore/build/dlflcore.build/Release/dlflcore.build/Objects-normal/i386/DLFLCore.o
    8. error: can't exec '/usr/include/c++' (Permission denied)
    9. error: can't exec '/usr/include/c++' (Permission denied)
    10. Build failed (2 errors)
    To copy to clipboard, switch view to plain text mode 

    the main issue there is this:
    Qt Code:
    1. error: can't exec '/usr/include/c++' (Permission denied)
    To copy to clipboard, switch view to plain text mode 

    I have no idea what this means or how to go about fixing it, and I can't seem to find any documentation about it or support through an xcode forum. Any help would be greatly appreciated, thanks,

    dave

  2. #2
    Join Date
    Jan 2006
    Location
    Alingsås, Sweden
    Posts
    437
    Thanks
    3
    Thanked 39 Times in 39 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: XCode compilation error

    It seems that xcode thinks that the compiler is located in the include directory... which seems very odd. If you simply type "c++" at the prompt, or perhaps "which c++", what does that tell you?

  3. #3
    Join Date
    Feb 2007
    Posts
    81
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: XCode compilation error

    it says /usr/bin/c++ when i type which c++

    I found out through a helpful person on the xcode discussion list that I need to trim down my PATH variable, because it had a lot of extraneous stuff in there, and now that I have done that, I get the following compile error in xcode:

    Qt Code:
    1. CompileC build/vecmat.build/Debug/vecmat.build/Objects-normal/ppc/Matrix3x3.o /Users/dvmorris/topmod2/topmodx/include/vecmat/Matrix3x3.cc normal ppc c++ com.apple.compilers.gcc.4_0
    2. cd /Users/dvmorris/topmod2/topmodx/include/vecmat
    3. /usr/bin/c++ -x c++ -arch ppc -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -fmessage-length=0 -mtune=G4 -gdwarf-2 -I/Users/dvmorris/topmod2/topmodx/include/vecmat/build/vecmat.build/Debug/vecmat.build/vecmat.hmap -F/Users/dvmorris/topmod2/topmodx/include/vecmat/build/Debug -I/Users/dvmorris/topmod2/topmodx/include/vecmat/build/Debug/include -I. -I/usr/local/Trolltech/Qt-4.3.2/mkspecs/macx-g++ -I/Users/dvmorris/topmod2/topmodx/include/vecmat/build/vecmat.build/Debug/vecmat.build/DerivedSources -pipe -g -arch ppc -arch i386 -w -fPIC -c /Users/dvmorris/topmod2/topmodx/include/vecmat/Matrix3x3.cc -o /Users/dvmorris/topmod2/topmodx/include/vecmat/build/vecmat.build/Debug/vecmat.build/Objects-normal/ppc/Matrix3x3.o
    4. /Users/dvmorris/topmod2/topmodx/include/vecmat/Matrix3x3.cc:1: error: bad value (G4) for -mtune= switch
    5. lipo: can't open input file: /var/folders/7y/7yScN9AOEm80KhlLdRTY7++++TI/-Tmp-//ccoprUor.out (No such file or directory)
    To copy to clipboard, switch view to plain text mode 

    any idea what that means? I also don't see much of anything on internet searches

Similar Threads

  1. Error compiling psql plugin
    By vieraci in forum Installation and Deployment
    Replies: 4
    Last Post: 7th October 2007, 02:49
  2. qt 4.2.2 install on aix
    By try to remember in forum Installation and Deployment
    Replies: 2
    Last Post: 28th March 2007, 12:19
  3. Qt-x11-commercial-src-4.2.0-snapshot-20060824 error
    By DevObject in forum Installation and Deployment
    Replies: 4
    Last Post: 24th August 2006, 23:31
  4. use qpsql
    By raphaelf in forum Installation and Deployment
    Replies: 34
    Last Post: 22nd August 2006, 12:52
  5. Am I the only one with "make" error ?
    By probine in forum Installation and Deployment
    Replies: 1
    Last Post: 13th February 2006, 12:54

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.