Results 1 to 4 of 4

Thread: Application build Mac PPC/Intel pro file?

  1. #1
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Application build Mac PPC/Intel pro file?

    I have build qt4.1.3 whit universal to enable intel & ppc processor
    -universal -sdk /Developer/SDKs/MacOSX10.4u.sdk

    I compile my app but run only on my PPC mac processor and not intel from other user...
    waht i must write to pro file ?

  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: Application build Mac PPC/Intel pro file?

    http://doc.trolltech.com/4.1/qmake-v...ce.html#config

    Search for Mac OS X there.

    I think you can pass both flags to get a universal binary.
    It's nice to be important but it's more important to be nice.

  3. #3
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Application build Mac PPC/Intel pro file?

    I found only this page...
    http://doc.trolltech.com/qtopia4.1/d...n-dependencies

    and if i put

    QMAKE_MAC_SDK=/Developer/SDKs/MacOSX10.4u.sdk
    CONFIG+=x86 ppc

    build faild and i find 100 line compilation error .

    remove this line and go ok... i use static libs... on app and have all same .....

  4. #4
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Application build Mac PPC/Intel pro file?

    If i leave CONFIG += x86 running but only ppc... & window...

    Qt Code:
    1. TEMPLATE = app
    2. TARGET +=
    3. DEPENDPATH += . ui
    4. INCLUDEPATH += . ui
    5. win32:debug { CONFIG += console }
    6. unix:OBJECTS_DIR = build/.o/unix
    7. win32:OBJECTS_DIR = build/.o/win32
    8. mac:OBJECTS_DIR = build/.o/mac
    9. UI_DIR = ui
    10. MOC_DIR = build/.moc
    11. RCC_DIR = build/.rcc
    12. LANGUAGE = C++
    13. CONFIG += qt release
    14. CONFIG += warn_on
    15. win32:DESTDIR += bin
    16. TARGET = pics
    17. macx {
    18. CONFIG += ppc
    19. CONFIG += x86
    20. }
    21. CONFIG += qt release
    22. # Input
    23. HEADERS += gui_image.h
    24. FORMS += ui/gui_image.ui
    25. SOURCES += gui_image.cpp main.cpp
    To copy to clipboard, switch view to plain text mode 


    Error from "CONFIG += x86" ...

    Qt Code:
    1. _strncat referenced from QuickTime expected to be defined in /usr/lib/libSystem.B.dylib
    2. _vsprintf referenced from QuickTime expected to be defined in /usr/lib/libSystem.B.dylib
    3. collect2: ld returned 1 exit status
    4. lipo: can't open input file: /var/tmp//ccImPdX3.out (No such file or directory)
    5. make: *** [pics.app/Contents/MacOS/pics] Error 1
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. read file from end to beginning..
    By soul_rebel in forum Qt Programming
    Replies: 11
    Last Post: 4th June 2012, 01:20
  2. Draging a non-existing file to the Windows Desktop
    By klaus1111 in forum Qt Programming
    Replies: 13
    Last Post: 20th September 2007, 11:47
  3. Opening swf file in the default browser
    By munna in forum Qt Programming
    Replies: 16
    Last Post: 5th May 2006, 09:33
  4. Replies: 0
    Last Post: 21st February 2006, 16:30
  5. Replies: 3
    Last Post: 12th January 2006, 17:41

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.