Menu

Is XP no longer a supported platform?

raynebc
2015-09-07
2015-11-25
  • raynebc

    raynebc - 2015-09-07

    I was testing out the new 1.70 release and find that the x86 build will install but not run on a 32 or 64 bit Windows XP installation. When launched, a "(null) is not a valid Win32 application" error is given, which supposedly means an incorrect platform target may have been selected for the build, or a new enough version of Visual Studio was used (ie. VS 2012) that would break XP compatibility for the binaries created. I just wanted to see if this was an intentional change for the cppcheck project.

    Edit: I find that attempting to run the x64 build of the latest cppcheck on 64 bit Windows XP gives the same error.

     

    Last edit: raynebc 2015-09-07
  • Daniel Marjamäki

    I don't know the details but there were some build problems with the installer.

    I am not an expert.. but can we still generate XP compatible binaries? VS2010 can't be easily downloaded anymore as far as I know.

    If somebody volounteer to compile a new installer that is XP compatible let me know.

     
  • raynebc

    raynebc - 2015-09-08

    Cppcheck 1.69 was XP compatible so if the same VS and settings are used for 1.70 it will probably work as well.

     
  • Daniel Marjamäki

    I guess that he (who build the installers) updated VS or something since then. He's not online now so I can't ask.

     
  • Mr. X

    Mr. X - 2015-09-08

    First of all, I strongly recommend to get rid of Win XP for the obvious reasons. However, this release is supposed to be XP-compatible if the x86 installer is used. The x64 one is not supposed to run on XP. 1.69 was built with VS2013, 1.70 was built with VS2015. I will try to investigate the isse.

     
  • raynebc

    raynebc - 2015-09-08

    Thank you. I have computers running other OSs, I just wanted to bring this to the developers' attention in case it wasn't a desired change.

     
  • Mr. X

    Mr. X - 2015-09-09

    So far I was only able to change the error message (It does not say that it is no valid win32 application anymore. The reason for this message was that GUI was not built with XP target), but GUI and CLI both still refuse to work (now with the same message). Any ideas?

     
  • raynebc

    raynebc - 2015-09-09

    Perhaps the build was targetted to a version of .NET too high for XP to support (ie. 4.5)?

     
  • Mr. X

    Mr. X - 2015-09-16

    cppcheck does not depend on .Net

     
  • raynebc

    raynebc - 2015-09-16

    Very well. I am able to use Cppcheck 1.70 on a Windows 7 computer, I'll wait for news about continued support for XP.

     
  • Iaacov Rosenberg

    In VS2015 you must explicitly target Windows XP for the program to run on that platform.
    https://msdn.microsoft.com/en-us/library/jj851139.aspx

     
  • Mr. X

    Mr. X - 2015-09-21

    Well, that is what we do (we had to do so with VS2013, too) - and that is why I am quite surprised that it stopped working on XP.

     

    Last edit: Mr. X 2015-09-21
  • Rene

    Rene - 2015-11-10

    Same problem here on XP Pro SP3.
    The command line version works, the gui doesn't: "(null) is not a valid Win32 application."

    Installing the Visual C++ Redistributable for Visual Studio 2015 didn't help.
    The dependency walker finds it. It just complains about missing IESHIMS.DLL and WER.DLL (but as I've read on the following forum they shouldn't be used?).
    http://stackoverflow.com/questions/2465111/dependency-walker-reports-ieshims-dll-and-wer-dll-missing

    For the moment I'm going back to version 1.68.
    BTW: the repository of the latest versions is not accessible.
    https://sourceforge.net/projects/cppcheck/files/cppcheck/

    Any help most appreciated, thanks.
    (changing OS is curently not an option)

     
  • Mr. X

    Mr. X - 2015-11-12

    I will have a look on that, thanks for the information about this two DLLs.

     
  • Mr. X

    Mr. X - 2015-11-15

    I am curious to hear whether 1.71 works on XP. For 1.70, Qt was not compiled for XP target, and that might have been the reason for the problems. I fixed that for 1.71, so it might work now (only the 32-bit version).

     
  • Sebastian Reschke

    Installation of cppcheck 1.71 on Windows 7 x64 work fine.
    But cppcheckgui.exe fails to start with "application was unable to start correctly 0xc00007b".
    When using Dependency Walker there are some libraries missing:
    API-MS-WIN-CORE-WINRT-ROBUFFER-L1-1-0.DLL
    API-MS-WIN-CORE-WINRT-STRING-L1-1-0.DLL
    API-MS-WIN-SHCORE-SCALING-L1-1-1.DLL
    DCOMP.DLL
    IESHIMS.DLL

    When I search for these libraries on google:
    http://stackoverflow.com/questions/17023419/win-7-64-bit-dll-problems
    But I already reinstalled Visual Studio 2013 x64 + x86 and Visual Studio 2015 x64 + x86.

    Do these libraries exist for Windows 7?
    https://msdn.microsoft.com/de-de/library/windows/desktop/hh802935(v=vs.85).aspx
    Describes them as Windows 10 related.

    Ideas are welcome?

    PS: cppcheck.exe seems to work fine.

     
    • Martin Gieseking

      I get the same error message on Windows 10.

       
  • raynebc

    raynebc - 2015-11-16

    The new 1.71 release works fine on XP, so this issue is probably fine to consider resolved.

     
  • Mr. X

    Mr. X - 2015-11-16

    Thanks for testing 1.71 on XP!

    See #7138 for updates on the x64 issue.

     
  • Daniel Marjamäki

    I removed the 64-bit installer for now. I'll upload a new installer when it works better. It could take a week or two.. so please bear with us.

     
    • Brett Rowbotham

      Brett Rowbotham - 2015-11-17

      Problem is easily rectified as far as I can see - the cppcheckgui.exe included in the 64 bit install is a 32 bit executable and not a 64 bit so cannot start as none of its Qt5 DLLs are available.

       
  • Mr. X

    Mr. X - 2015-11-17

    Yes, that is the problem, as I already wrote in #7138.

     
  • Rene

    Rene - 2015-11-25

    Indeed, 1.71 works fine on XP SP3.
    Thanks a lot for looking into this!
    Cheers

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.