Results 1 to 1 of 1

Thread: How to add Assebly files to Qt project?

  1. #1
    Join Date
    Mar 2011
    Posts
    29
    Thanked 3 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default How to add Assebly files to Qt project?

    I would like to use x86 and ARM assembly in my Qt projects.
    What would be the recommened way to add external files in assembly to Qt Creator?

    I tried to add a file to the project:

    Qt Code:
    1. QT += core gui
    2.  
    3. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
    4.  
    5. TARGET = ImageManipulator
    6. TEMPLATE = app
    7.  
    8. QMAKE_CXXFLAGS +=-masm=intel
    9.  
    10. SOURCES += main.cpp\
    11. mainwindow.cpp\
    12. functions.s
    13.  
    14. HEADERS += mainwindow.h
    15.  
    16. FORMS += mainwindow.ui
    To copy to clipboard, switch view to plain text mode 

    function.s gets compiled to .o but the linker cannot find the functions.

    Also if I use QMAKE_CXXFLAGS += -masm=intel
    This causes:
    {standard input}: Assembler messages:
    {standard input}:1697: Error: no such instruction: `subl $1,DWORD PTR [eax]'
    Even if there is no assebly at all.

  2. The following 3 users say thank you to Zingam for this useful post:

    ebirdseystew (18th December 2013)

Similar Threads

  1. Using 2 ui files in a project
    By ben1996123 in forum Qt Programming
    Replies: 19
    Last Post: 7th January 2013, 05:13
  2. Replies: 1
    Last Post: 15th August 2011, 23:26
  3. Replies: 1
    Last Post: 3rd December 2009, 23:34
  4. example project with multiple .ui files
    By navid in forum Newbie
    Replies: 1
    Last Post: 31st October 2009, 18:25
  5. visual studio project files - adding extra files
    By luf in forum Qt Programming
    Replies: 3
    Last Post: 13th June 2008, 21:05

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.