Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Building Qt 4.8.5 with VS2012

    Installation and Deployment
    5
    6
    2932
    Loading More Posts
    • 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
      lsddao last edited by

      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 Reply Quote 0
      • L
        lsddao last edited by

        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 Reply Quote 0
        • K
          koahnig last edited by

          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 Reply Quote 0
          • K
            kambala last edited by

            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 Reply Quote 0
            • B
              brent last edited by

              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 Reply Quote 0
              • R
                redscorp last edited by

                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 Reply Quote 0
                • First post
                  Last post