Community
    • Login

    Does arm64 plugin build required to include?

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    4 Posts 2 Posters 32 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.
    • h-jangraH
      h-jangra
      last edited by

      Hi All,

      I am migrating my plugin to rust and apparently I can safely build 32bit and 64 bit but arm64 doesn’t build with plugin.rc file (without it builds fine).
      Is this necessary to include arm64 or only x86 and x64 are fine.

      This is the error if anyone can help.
      cargo build --target aarch64-pc-windows-msvc
      windres: Can't detect target endianness and architecture.

      EkopalypseE 2 Replies Last reply Reply Quote 0
      • EkopalypseE
        Ekopalypse @h-jangra
        last edited by

        @h-jangra

        I think Arm is a niche platform under Windows, so I decided to go with x64 and x86 only, partly because I don’t have an Arm platform to test on.

        But I tested the build, and all I had to do was install the MSVC extensions for ARM and add the target aarch64-pc-windows-msvc to the Rust toolchain.

        Then I got a DLL built.

        dumpbin /headers target\aarch64-pc-windows-msvc\debug\RustDemoPlugin.dll
        Microsoft (R) COFF/PE Dumper Version 14.44.35221.0
        Copyright (C) Microsoft Corporation.  All rights reserved.
        
        
        Dump of file target\aarch64-pc-windows-msvc\debug\RustDemoPlugin.dll
        
        PE signature found
        
        File Type: DLL
        
        FILE HEADER VALUES
                    AA64 machine (ARM64)
                       6 number of sections
                692ADC8C time date stamp Sat Nov 29 12:44:12 2025
                       0 file pointer to symbol table
                       0 number of symbols
                      F0 size of optional header
                    2022 characteristics
                           Executable
                           Application can handle large (>2GB) addresses
                           DLL
        
        OPTIONAL HEADER VALUES ...
        
        1 Reply Last reply Reply Quote 0
        • EkopalypseE
          Ekopalypse @h-jangra
          last edited by

          @h-jangra

          By the way… I just checked and rc.exe is being called on my system, so that could be the difference. I use MSVC, while you use the GNU toolchain?

          h-jangraH 1 Reply Last reply Reply Quote 0
          • h-jangraH
            h-jangra @Ekopalypse
            last edited by

            @Ekopalypse I too use MSCVC but I downloaded them from here https://gist.github.com/mmozeiko/7f3162ec2988e81e56d5c4e22cde9977 not visual studio. So that might be the problem.

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