Community
    • Login

    Help to build PythonScript plugin

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    7 Posts 3 Posters 752 Views
    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.
    • cmeriauxC
      cmeriaux
      last edited by

      Someone can help me to build PythonScript from source code ( https://github.com/bruderstein/PythonScript ) ?
      I’m trying to do same as Appveyor script (official builder machine):

      • Using Microsoft visual studio 2017 community
      • Using platform toolset v140_xp
      • My Visual Studio install contains components “ATL Visual C++” and “MFC Visual C++”

      The build fails on the link:
      Severity Code Description Project File Line Suppression State
      Error RC1015 cannot open include file ‘afxres.h’. PythonScript D:\dev\PythonScript\PythonScript\res\PythonScript.rc 10

      I need to compile it because I want to contribute for some minor GUI improvement.
      Thanks

      andrecool-68A 1 Reply Last reply Reply Quote 1
      • EkopalypseE
        Ekopalypse
        last edited by Ekopalypse

        I downloaded the repo, changed the PythonSettigns.props file to match
        my python directories and compiled it.

        afxres is found here
        ...\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\atlmfc\include\afxres.h

        and it looks like it is defined via $(VC_IncludePath)

        This stackoverflow post suggests it might be worth repairing the SDK installation.

        Adding the directory to the PATH variable might be another way.

        1 Reply Last reply Reply Quote 1
        • cmeriauxC
          cmeriaux
          last edited by

          Thanks @Ekopalypse for your fast answer. I’m still not able to compile despite your informations. I’m digging.

          Here is the command that fails (rc.exe)
          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\bin\rc.exe /D USING_V110_SDK71 /D _UNICODE /D UNICODE /l"0x0
          409" /nologo /fo"Release\PythonScript.res" …\res\PythonScript.rc
          …\res\PythonScript.rc(10): fatal error RC1015: cannot open include file ‘afxres.h’. [d:\dev\PythonScript\PythonScri
          pt\project\PythonScript2010.vcxproj]

          doesn’t that speak to you ?

          EkopalypseE 1 Reply Last reply Reply Quote 0
          • EkopalypseE
            Ekopalypse @cmeriaux
            last edited by

            @cmeriaux

            Sorry, I see the same code executed but without the error - it runs through. I would give it a try to use procmon to see which paths do get searched in your case. Repair of SDK installation didn’t work?

            1 Reply Last reply Reply Quote 0
            • andrecool-68A
              andrecool-68 @cmeriaux
              last edited by

              @cmeriaux
              You need to ask the author of the plugin, he generally does not have a manual for assembling the plugin. Perhaps additional components or libraries are needed.

              1 Reply Last reply Reply Quote 0
              • cmeriauxC
                cmeriaux
                last edited by

                @Ekopalypse the Windows SDK reinstall didn’t work. However debugging wih proc monitor showned me the paths where RC.exe is looking for the header file.

                0d96da10-34bb-4092-9d7a-d372d6d42030-image.png

                So I did a copy of the necessary afxres.h in a local project folder and it works !!! I’m not proud of it but it makes the build OK.

                Thanks for the help

                EkopalypseE 1 Reply Last reply Reply Quote 2
                • EkopalypseE
                  Ekopalypse @cmeriaux
                  last edited by

                  @cmeriaux

                  it looks that the general environment variables are defined in
                  Microsoft.Cpp.Common.props file which is located at
                  ...\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets

                  and the toolset specific props are read from
                  ...\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Platforms\x64\PlatformToolsets

                  So I assume that one of those props files point to an non-existent atl include path.

                  1 Reply Last reply Reply Quote 1
                  • First post
                    Last post
                  The Community of users of the Notepad++ text editor.
                  Powered by NodeBB | Contributors