Please do a github preview before you post the comment, your copying and pasting on Windows seems to have converted the text you copied from my post to non-utf-8 so it shows as Asian characters.

Your subsequent edits show that the problem is pkg-config can't find Geany and tells you what to do, add the directory containing the geany.pc file to the environment variable.

Are you running the gcc command in the mingw shell, not the Windows cmd?

I didn't find the official version of signcode, so I downloaded it from the web. But I'm not sure if it works properly, and when I execute a python script, the following issue arises

D:\DevelopTools\msys64\home\hp\geany>python ..\
Execute command: git pull
hint: core.useBuiltinFSMonitor=true is deprecated;please set core.fsmonitor=true instead
hint: Disable this message with "git config advice.useCoreFSMonitorConfig false"
Already up to date.
Execute command: d:/DevelopTools/msys64/mingw64/bin/strip.exe geany-1.38/bin/geany.exe
Execute command: d:/DevelopTools/msys64/mingw64/bin/strip.exe geany-1.38/bin\libgeany-0.dll
Execute command: d:/DevelopTools/msys64/mingw64/bin/strip.exe geany-1.38/lib/geany\classbuilder.dll
Execute command: d:/DevelopTools/msys64/mingw64/bin/strip.exe geany-1.38/lib/geany\export.dll
Execute command: d:/DevelopTools/msys64/mingw64/bin/strip.exe geany-1.38/lib/geany\filebrowser.dll
Execute command: d:/DevelopTools/msys64/mingw64/bin/strip.exe geany-1.38/lib/geany\htmlchars.dll
Execute command: d:/DevelopTools/msys64/mingw64/bin/strip.exe geany-1.38/lib/geany\saveactions.dll
Execute command: d:/DevelopTools/msys64/mingw64/bin/strip.exe geany-1.38/lib/geany\splitwindow.dll
Execute command: c:/signcode/signcode.exe -sha1 1ae7e5af8ab57e16d22cdf9bb3a7e6d2a43703ec -a md5 -i -n Geany Binary -t -tr 5 geany-1.38/bin/geany.exe
Usage:  SignCode [options] FileName
 -spc  <file>      Spc file containing software publishing certificates
 -v    <pvkFile>   Pvk file name containing the private key
 -k    <KeyName>   Key container name
 -n    <name>      Text name representing content of the file to be signed
 -i    <info>      Place to get more info on content (usually a URL)
 -p    <provider>  Name of the cryptographic provider on the system
 -y    <type>      Cryptographic provider type to use
 -ky   <keytype>   Key type
 -$    <authority> Signing authority of the certificate
                      Default to using certificate's highest capability
 -a    <algorithm> Hashing algorithm for signing
                      <md5|sha1>. Default to md5
 -t    <URL>       TimeStamp server's http address
 -tr   <number>    The # of timestamp trial until succeeds. Default to 1
 -tw   <number>    The # of seconds delay between each timestamp. Default to 0
 -j    <dllName>   Name of the dll that provides attributes of the signature
 -jp   <param>     Parameter to be passed to the dll
 -c    <file>      X509 file containing encoded software publishing certificate
 -s    <store>     Cert store containing certs. Default to my store
 -r    <location>  Location of the cert store in the registry
                      <localMachine|currentUser>. Default to currentUser
 -sp   <policy>    Add all the certificates in the chain or add until one cert
                   in the chain is from the spc store.
                      <chain|spcstore>. Default to spcstore
 -cn   <name>      The common name of the certificate
 -x                Do not sign the file.  Only Timestamp the file

Note:   To sign with a SPC file, the required options are -spc and -v if
        your private key is in a PVK file. If your private key is in a
        registry key container, then -spc and -k are the required options.
Traceback (most recent call last):
  File "D:\DevelopTools\msys64\home\hp\", line 121, in <module>
  File "D:\DevelopTools\msys64\home\hp\", line 102, in make_release
  File "D:\DevelopTools\msys64\home\hp\", line 77, in sign_files
  File "D:\DevelopTools\msys64\home\hp\", line 37, in run_command
    check_call(cmd, **kwargs)
  File "D:\DevelopTools\msys64\mingw64\lib\python3.10\", line 369, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '('c:/signcode/signcode.exe', '-sha1', '1ae7e5af8ab57e16d22cdf9bb3a7e6d2a43703ec', '-a', 'md5', '-i', '', '-n', 'Geany Binary', '-t', '', '-tr', '5', 'geany-1.38/bin/geany.exe')' returned non-zero exit status 4294967295.

Can you provide this installation route?

Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <geany/geany-plugins/issues/1169/>