Results 1 to 3 of 3

Thread: Trying to link to my own static library, "not of required architecture" error

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2008
    Posts
    196
    Thanked 8 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    1

    Default Re: Trying to link to my own static library, "not of required architecture" error

    Try to add the following to the GUI app project file:
    Qt Code:
    1. DEPENDPATH += $$INCLUDEPATH
    2. TARGETDEPS += $$LIBS
    To copy to clipboard, switch view to plain text mode 

    Best Regards
    NoRulez

  2. The following user says thank you to NoRulez for this useful post:

    Warren Marshall (7th September 2009)

  3. #2
    Join Date
    Sep 2009
    Posts
    2
    Thanks
    1

    Default Re: Trying to link to my own static library, "not of required architecture" error

    Thanks for the reply! What's weird here is that I tried putting my project back together again to try your suggestion (I had switched over to trying some other ideas) and when I did - it worked. The only difference is that the static library and the app are now sitting in the same directory which I guess is what is making it work. Dumb, but there you.

    Thanks again!

Similar Threads

  1. nmake error during .pro compiling
    By mattia in forum Installation and Deployment
    Replies: 5
    Last Post: 18th June 2008, 10:15
  2. Compile 4.4.0
    By LordQt in forum Installation and Deployment
    Replies: 18
    Last Post: 29th May 2008, 13:43
  3. Replies: 16
    Last Post: 23rd May 2008, 10:12
  4. Error compiling psql plugin
    By vieraci in forum Installation and Deployment
    Replies: 4
    Last Post: 7th October 2007, 02:49
  5. 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

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.