• Login
Community
  • Login

Help to build PythonScript plugin

Scheduled Pinned Locked Moved Notepad++ & Plugin Development
7 Posts 3 Posters 769 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.
  • C
    cmeriaux
    last edited by Oct 31, 2019, 7:11 AM

    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

    A 1 Reply Last reply Nov 1, 2019, 4:05 PM Reply Quote 1
    • E
      Ekopalypse
      last edited by Ekopalypse Oct 31, 2019, 10:38 AM Oct 31, 2019, 10:37 AM

      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
      • C
        cmeriaux
        last edited by Oct 31, 2019, 11:16 PM

        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 ?

        E 1 Reply Last reply Nov 1, 2019, 3:42 PM Reply Quote 0
        • E
          Ekopalypse @cmeriaux
          last edited by Nov 1, 2019, 3:42 PM

          @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
          • A
            andrecool-68 @cmeriaux
            last edited by Nov 1, 2019, 4:05 PM

            @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
            • C
              cmeriaux
              last edited by Nov 2, 2019, 8:12 AM

              @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

              E 1 Reply Last reply Nov 3, 2019, 4:46 PM Reply Quote 2
              • E
                Ekopalypse @cmeriaux
                last edited by Nov 3, 2019, 4:46 PM

                @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
                2 out of 7
                • First post
                  2/7
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors