Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Building Qt 4.8.5 with VS2012
Forum Updated to NodeBB v4.3 + New Features

Building Qt 4.8.5 with VS2012

Scheduled Pinned Locked Moved Installation and Deployment
6 Posts 5 Posters 3.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lsddao
    wrote on 2 Jul 2013, 14:43 last edited by
    #1

    Hi, I'm trying to build new Qt 4.8.5 from sources using VS2012 and got following strange errors:

    tools\qsimd.cpp(205) : error C2400: inline assembler syntax error in 'opcode'; found 'XOR'
    tools\qsimd.cpp(211) : error C2400: inline assembler syntax error in 'opcode'; found 'XOR'
    tools\qsimd.cpp(233) : error C2400: inline assembler syntax error in 'opcode'; found 'XOR'
    tools\qsimd.cpp(239) : error C2400: inline assembler syntax error in 'opcode'; found 'XOR'

    I searched the web but didn't find any reasonable solution for this. Looks like VS doesn't like xor for some reason. Can someone help me? I was trying to build using nmake and then IDE - same errors.

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lsddao
      wrote on 3 Jul 2013, 07:16 last edited by
      #2

      Looks like we have #define xor ^ in VS2012/VC/include/iso646.h. It's strange that compiler message was not like "found '^'", but "found 'XOR'"

      1 Reply Last reply
      0
      • K Offline
        K Offline
        koahnig
        wrote on 3 Jul 2013, 07:39 last edited by
        #3

        welcome to devnet

        Thanks for sharing the issue seen.
        You should file "a bug report on JIRA":https://bugreports.qt-project.org/secure/Dashboard.jspa to make sure that someone is paying attention. This forum here is not scanned for bug reports.

        Vote the answer(s) that helped you to solve your issue(s)

        1 Reply Last reply
        0
        • K Offline
          K Offline
          kambala
          wrote on 3 Jul 2013, 10:59 last edited by
          #4

          yesterday I compiled 4.8.5 with MSVS2012 Update 3 from x86 Native Tools Command Prompt without any issues.

          in VS2012/VC/include/ I have only iso646.h, but it defines XOR the same way though.

          1 Reply Last reply
          0
          • B Offline
            B Offline
            brent
            wrote on 4 Jul 2013, 00:33 last edited by
            #5

            I get this error also when building with VC 2010. Changing "xor" in the inline assembly in qsimd.cpp to "XOR" fixes the error (the assembler isn't case-sensitive).

            Maybe it depends on the order of include directories in your INCLUDE environment variable, or some other state that is not part of the build.

            1 Reply Last reply
            0
            • R Offline
              R Offline
              redscorp
              wrote on 30 Sept 2013, 19:19 last edited by
              #6

              Same issue here!

              I've added line '#undef xor' just before _asm statement to fix the issue.

              It looks like some define makes problems here. And it happens not with each and every set of options of configure.exe...

              http://linkedin.com/in/andriygolovnya
              http://sf.net/users/andrew_golovnia
              http://sf.net/u/userid-150775/profile/

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved