Results 1 to 8 of 8

Thread: machine type 'X86' conflicts with target machine type 'THUMB'

  1. #1
    Join Date
    Feb 2010
    Posts
    4
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows Symbian S60

    Exclamation machine type 'X86' conflicts with target machine type 'THUMB'

    I created a sample Qt Win CE app in Visual Studio 2008 and got the error:

    Qt Code:
    1. QtCore4.lib(QtCore4.dll) : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'THUMB'
    To copy to clipboard, switch view to plain text mode 

    Here is the complete log:

    Qt Code:
    1. Build Log Build started: Project: test11, Configuration: Release|STANDARDSDK_500 (ARMV4I)
    2. Command Lines Creating temporary file "c:\Qt\4.6.2\MY_EXAMPLES\test11\test11\STANDARDSDK_500 (ARMV4I)\Release\BAT0000338203436.bat" with contents
    3. [
    4. @echo off
    5.  
    6. "C:\Qt\4.6.2\bin\uic.exe" -o ".\GeneratedFiles\ui_test11.h" "c:\Qt\4.6.2\MY_EXAMPLES\test11\test11\test11.ui"
    7.  
    8.  
    9.  
    10. if errorlevel 1 goto VCReportError
    11.  
    12. goto VCEnd
    13.  
    14. :VCReportError
    15.  
    16. echo Project : error PRJ0019: A tool returned an error code from "Uic'ing test11.ui..."
    17.  
    18. exit 1
    19.  
    20. :VCEnd
    21. ]
    22. Creating command line """c:\Qt\4.6.2\MY_EXAMPLES\test11\test11\STANDARDSDK_500 (ARMV4I)\Release\BAT0000338203436.bat"""
    23. Creating temporary file "c:\Qt\4.6.2\MY_EXAMPLES\test11\test11\STANDARDSDK_500 (ARMV4I)\Release\BAT0000348203436.bat" with contents
    24. [
    25. @echo off
    26.  
    27. "C:\Qt\4.6.2\bin\rcc.exe" -name "test11" -no-compress "c:\Qt\4.6.2\MY_EXAMPLES\test11\test11\test11.qrc" -o .\GeneratedFiles\qrc_test11.cpp
    28.  
    29.  
    30.  
    31. if errorlevel 1 goto VCReportError
    32.  
    33. goto VCEnd
    34.  
    35. :VCReportError
    36.  
    37. echo Project : error PRJ0019: A tool returned an error code from "Rcc'ing test11.qrc..."
    38.  
    39. exit 1
    40.  
    41. :VCEnd
    42. ]
    43. Creating command line """c:\Qt\4.6.2\MY_EXAMPLES\test11\test11\STANDARDSDK_500 (ARMV4I)\Release\BAT0000348203436.bat"""
    44. Creating temporary file "c:\Qt\4.6.2\MY_EXAMPLES\test11\test11\STANDARDSDK_500 (ARMV4I)\Release\BAT0000358203436.bat" with contents
    45. [
    46. @echo off
    47.  
    48. "C:\Qt\4.6.2\bin\moc.exe" -DUNDER_CE -DWINCE -D_WINDOWS -D_UNICODE -DUNICODE -D_WIN32 -DQT_NO_PRINTER -DQT_NO_PRINTDIALOG -DSTANDARDSHELL_UI_MODEL -D_WIN32_WCE=0x500 -DARMV4I -D_ARMV4I_ -Darmv4i -D_ARM_ -DARM -D_M_ARM -DARM -D__arm__ -DQ_OS_WINCE_STD -DQT_NO_PRINTER -DQT_NO_PRINTDIALOG -DQT_THREAD_SUPPORT -DQT_NO_DEBUG -DNDEBUG -DQT_CORE_LIB -DQT_GUI_LIB -I".\GeneratedFiles\." -I"C:\Qt\4.6.2\include\." -I".\GeneratedFiles\Release\." -I"C:\Qt\4.6.2\include\qtmain\." -I"C:\Qt\4.6.2\include\QtCore\." -I"C:\Qt\4.6.2\include\QtGui\." -I".\." ".\test11.h" -o ".\GeneratedFiles\Release\moc_test11.cpp"
    49.  
    50.  
    51.  
    52. if errorlevel 1 goto VCReportError
    53.  
    54. goto VCEnd
    55.  
    56. :VCReportError
    57.  
    58. echo Project : error PRJ0019: A tool returned an error code from "Moc'ing test11.h..."
    59.  
    60. exit 1
    61.  
    62. :VCEnd
    63. ]
    64. Creating command line """c:\Qt\4.6.2\MY_EXAMPLES\test11\test11\STANDARDSDK_500 (ARMV4I)\Release\BAT0000358203436.bat"""
    65. Creating temporary file "c:\Qt\4.6.2\MY_EXAMPLES\test11\test11\STANDARDSDK_500 (ARMV4I)\Release\RSP0000368203436.rsp" with contents
    66. [
    67. /I ".\GeneratedFiles" /I "C:\Qt\4.6.2\include" /I ".\GeneratedFiles\Release" /I "C:\Qt\4.6.2\include\qtmain" /I "C:\Qt\4.6.2\include\QtCore" /I "C:\Qt\4.6.2\include\QtGui" /I ".\\" /D "UNDER_CE" /D "WINCE" /D "_WINDOWS" /D "_UNICODE" /D "UNICODE" /D "_WIN32" /D "QT_NO_PRINTER" /D "QT_NO_PRINTDIALOG" /D "STANDARDSHELL_UI_MODEL" /D "_WIN32_WCE=0x500" /D "ARMV4I" /D "_ARMV4I_" /D "armv4i" /D "_ARM_" /D "ARM" /D "_M_ARM" /D "__arm__" /D "Q_OS_WINCE_STD" /D "QT_THREAD_SUPPORT" /D "QT_NO_DEBUG" /D "NDEBUG" /D "QT_CORE_LIB" /D "QT_GUI_LIB" /FD /EHsc /MD /GS- /fp:fast /Zc:wchar_t- /GR- /Fo"STANDARDSDK_500 (ARMV4I)\Release/" /Fd"STANDARDSDK_500 (ARMV4I)\Release/vc80.pdb" /W3 /c /TP
    68.  
    69. .\main.cpp
    70.  
    71. .\GeneratedFiles\qrc_test11.cpp
    72.  
    73. .\GeneratedFiles\Release\moc_test11.cpp
    74.  
    75. .\test11.cpp
    76. ]
    77. Creating command line "cl.exe @"c:\Qt\4.6.2\MY_EXAMPLES\test11\test11\STANDARDSDK_500 (ARMV4I)\Release\RSP0000368203436.rsp" /nologo"
    78. Creating temporary file "c:\Qt\4.6.2\MY_EXAMPLES\test11\test11\STANDARDSDK_500 (ARMV4I)\Release\RSP0000378203436.rsp" with contents
    79. [
    80. /OUT:"C:\Qt\4.6.2\MY_EXAMPLES\test11\Release\test11.exe" /LIBPATH:"C:\Qt\4.6.2\lib" /LIBPATH:"C:\Program Files\Windows CE Tools\wce500\STANDARDSDK_500\Lib\ARMV4I" /MANIFEST:NO /NODEFAULTLIB:"oldnames.lib" /SUBSYSTEM:WINDOWSCE /DYNAMICBASE /NXCOMPAT /MACHINE:THUMB /SUBSYSTEM:WINDOWSCE,5.00/machine:THUMB qtmain.lib QtCore4.lib QtGui4.lib coredll.lib corelibc.lib ole32.lib oleaut32.lib uuid.lib commctrl.lib
    81.  
    82. ".\STANDARDSDK_500 (ARMV4I)\Release\main.obj"
    83.  
    84. ".\STANDARDSDK_500 (ARMV4I)\Release\test11.obj"
    85.  
    86. ".\STANDARDSDK_500 (ARMV4I)\Release\moc_test11.obj"
    87.  
    88. ".\STANDARDSDK_500 (ARMV4I)\Release\qrc_test11.obj"
    89. ]
    90. Creating command line "link.exe @"c:\Qt\4.6.2\MY_EXAMPLES\test11\test11\STANDARDSDK_500 (ARMV4I)\Release\RSP0000378203436.rsp" /NOLOGO /ERRORREPORT:PROMPT"
    91. Output Window Uic'ing test11.ui...
    92. Rcc'ing test11.qrc...
    93. RCC: Warning: No resources in 'c:\Qt\4.6.2\MY_EXAMPLES\test11\test11\test11.qrc'.
    94. Moc'ing test11.h...
    95. Compiling...
    96. main.cpp
    97. qrc_test11.cpp
    98. moc_test11.cpp
    99. test11.cpp
    100. Generating Code...
    101. Linking...
    102. QtCore4.lib(QtCore4.dll) : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'THUMB'
    103. Results Build log was saved at "file://c:\Qt\4.6.2\MY_EXAMPLES\test11\test11\STANDARDSDK_500 (ARMV4I)\Release\BuildLog.htm"
    104. test11 - 1 error(s), 0 warning(s)
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: machine type 'X86' conflicts with target machine type 'THUMB'

    Yes, you are mixing Windows (X86) with WinCE (ARM/THUMB) object code. Probably your QtCore library is for Windows X86 rather than WinCE.

  3. The following user says thank you to squidge for this useful post:

    say2paul (1st March 2010)

  4. #3
    Join Date
    Feb 2010
    Posts
    4
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows Symbian S60

    Exclamation Re: machine type 'X86' conflicts with target machine type 'THUMB'

    Quote Originally Posted by fatjuicymole View Post
    Yes, you are mixing Windows (X86) with WinCE (ARM/THUMB) object code. Probably your QtCore library is for Windows X86 rather than WinCE.
    Thanks buddy, now what should I do to fix it?

  5. #4
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: machine type 'X86' conflicts with target machine type 'THUMB'

    Rebuild the library using a WinCE compiler, so it spits out WinCE code in ARM/THUMB format. Ensure the endinaness is correct.

  6. The following user says thank you to squidge for this useful post:

    say2paul (1st March 2010)

  7. #5
    Join Date
    Feb 2010
    Posts
    4
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows Symbian S60

    Default Re: machine type 'X86' conflicts with target machine type 'THUMB'

    Quote Originally Posted by fatjuicymole View Post
    Rebuild the library using a WinCE compiler, so it spits out WinCE code in ARM/THUMB format. Ensure the endinaness is correct.
    Thanks once again. I understand that I need to compile the QtCore4 library using WinCE compiler. I have never compiled any library using WinCE compiler earlier, I would appreciate if someone can highlight what all tools are required to compile QtCore4 using WinCE and steps to be performed..

  8. #6
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: machine type 'X86' conflicts with target machine type 'THUMB'

    Please refer to the documentation: http://doc.trolltech.com/4.6/install-wince.html

  9. #7
    Join Date
    Feb 2010
    Posts
    4
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows Symbian S60

    Exclamation Re: machine type 'X86' conflicts with target machine type 'THUMB'

    I am struggling for last 2 months to build qt lib for WinCE but no luck

    Can anyone PLEASE share the qt libs for WinCE 5 (standard ARM) with me...

  10. #8
    Join Date
    Dec 2010
    Posts
    71
    Thanks
    26
    Platforms
    Windows

    Default Re: machine type 'X86' conflicts with target machine type 'THUMB'

    me too... I keep getting error 1077.... each and every diferent way I try...

    I have qt 4.7.1 vs2008 and vs add-in installed with Visual studio 2008.

    I do: configure -platform win32-msvc2008 -xplatform wincewm60professional-msvc2008

    set the paths accordingly to my correct folders, run: setcepaths wincewm60professional-msvc2008
    averything goes well untill nmake.

    Can some one explain or provide a zip with this configuration please?

Similar Threads

  1. how to run Qt programs on non qt machine ?
    By aamer4yu in forum Installation and Deployment
    Replies: 15
    Last Post: 11th July 2012, 08:38
  2. Replies: 2
    Last Post: 22nd December 2009, 21:52
  3. qtdemo 4.4 looks like this on my machine!
    By magland in forum General Discussion
    Replies: 1
    Last Post: 25th May 2008, 08:55
  4. Suggession to install both qt3.3.4 and qt4.2.2 in the same machine
    By joseph in forum Installation and Deployment
    Replies: 1
    Last Post: 20th June 2007, 08:05
  5. Type and User Type
    By campana in forum Qt Programming
    Replies: 1
    Last Post: 28th February 2006, 00:22

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.