Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Appname.exe is not a valid Win32 application
Forum Updated to NodeBB v4.3 + New Features

Appname.exe is not a valid Win32 application

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 3.4k Views
  • 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Hello, I created a test application and it works fine on Windows 8... But when I run it on Windows XP, I get error -> appname.exe is not a valid Win32 application... I am using latest Qt x86 and VS2012 Compiler (32bit)...

    I read on google that problem might be in VS2012... Any idea how to solve it???

    1 Reply Last reply
    0
    • Y Offline
      Y Offline
      yhu420
      wrote on last edited by
      #2

      Did you try to rebuild it under XP? It may work..

      1 Reply Last reply
      0
      • raven-worxR Offline
        raven-worxR Offline
        raven-worx
        Moderators
        wrote on last edited by
        #3

        since VS2012 support for windows XP has moved to a separate toolchain. So you would need to create a seperate build target for win xp and set the toolchain settings for it.
        Read this "MSDN article":http://blogs.msdn.com/b/vcblog/archive/2012/10/08/10357555.aspx.

        --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
        If you have a question please use the forum so others can benefit from the solution in the future

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          But that is for Visual Studio... I have my project done in Qt and compiled with VS2012... How can I change that in Qt?

          1 Reply Last reply
          0
          • raven-worxR Offline
            raven-worxR Offline
            raven-worx
            Moderators
            wrote on last edited by
            #5

            you mean you are using QtCreator for development and compile with msvc2012 compilers right?

            In the link i've posted see the section "Targeting from the Command Line". You would need to add a custom compiler to your QtCreator settings.

            Please also note, that also the Qt libraries themselves must be compiled with these compiler options when you want to deploy to XP.

            --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
            If you have a question please use the forum so others can benefit from the solution in the future

            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