Results 1 to 4 of 4

Thread: I can't build a .xcode file generated by qmake on Mac X?

  1. #1
    Join Date
    Jan 2006
    Posts
    29
    Qt products
    Qt4
    Platforms
    Windows

    Default I can't build a .xcode file generated by qmake on Mac X?

    I use qmake to generate .xcode file for my project and when I use XCode to build it, I get an error message: "/usr/lib/gcc/darwin/3.3/libstdc++.a(new_op.o) illegal reference to symbol: ___cxa_allocate_exception defined in indirectly referenced dynamic library /usr/lib/libstdc++.6.dylib".
    I don't know why because I tried on another Mac OS X computer then it works fine.
    Thankyou for helping.

  2. #2
    Join Date
    Jan 2006
    Location
    Frankfurt
    Posts
    500
    Thanks
    1
    Thanked 52 Times in 52 Posts
    Platforms
    MacOS X Unix/X11

    Default Re: I can't build a .xcode file generated by qmake on Mac X?

    Does it work when you use a Makefile? If you pass -spec macx-g++ qmake will generate a Makefile. Which version of Mac OS are you using? Which version of xcode? I think you use xcode < 2 because of the extension .xcode and not .xcodeproj
    It's nice to be important but it's more important to be nice.

  3. #3
    Join Date
    Jan 2006
    Posts
    29
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: I can't build a .xcode file generated by qmake on Mac X?

    Thanks for replying,
    I generated a Makefile by qmake (as your advice) and used it to build my project, but I get same error:

    ld: warning -L: directory name (/usr/local/pgsql/lib) does not exist
    ld: warning -L: directory name (/usr/local/mysql/lib) does not exist
    ld: warning -L: directory name (/private/tmp/qt-stuff/source/qt-mac-commercial-desktop-4.0.0/lib) does not exist
    ld: warning -F: directory name (/private/tmp/qt-stuff/source/qt-mac-commercial-desktop-4.0.0/lib) does not exist
    ld: /usr/lib/gcc/darwin/3.3/libstdc++.a(new_op.o) illegal reference to symbol: ___cxa_allocate_exception defined in indirectly referenced dynamic library /usr/lib/libstdc++.6.dylib

    I'm using Mac OS X 10.3.9 and XCode 1.5. Is my process of installing softwares (MacX, XCode, Qt4,...) wrong?

  4. #4
    Join Date
    Jan 2006
    Location
    Frankfurt
    Posts
    500
    Thanks
    1
    Thanked 52 Times in 52 Posts
    Platforms
    MacOS X Unix/X11

    Default Re: I can't build a .xcode file generated by qmake on Mac X?

    What about these warnings? They say that a few directories are missing.
    It's nice to be important but it's more important to be nice.

Similar Threads

  1. Set up the Qt4.3.2 with Visual Studio 2005
    By lamoda in forum Installation and Deployment
    Replies: 6
    Last Post: 30th January 2008, 07:51
  2. Replies: 2
    Last Post: 8th November 2007, 21:15
  3. Mac: Copy Files Build Phase and qmake...
    By kuwan in forum Qt Programming
    Replies: 4
    Last Post: 25th September 2007, 21:59
  4. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 16:21
  5. Replies: 1
    Last Post: 11th January 2006, 15:15

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.