Community
    • Login

    Starting Compiled Notepad++ generate an Error: load dll

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    6 Posts 3 Posters 3.0k 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.
    • sambuccidS
      sambuccid
      last edited by sambuccid

      Hello, I tried to compile and start notepad ++ to contribute to its development.
      I managed to fill it up but when I started it from these mistakes:
      error1
      Check certificate of C:\Users\user\Desktop\notepad-plus-plus-master\PowerEditor\visual.net\UnicodeDebug\SciLexer.dll: The specified object can not be found.
      error2
      ScintillaEditView::init : SCINTILLA ERROR - Can not load the dinamic library

      I tried to follow the readme file present on github for compile of scilexer.dll but the errors continue to occur.

      Using visualStudio express 2013 with the addition of missing libraries:
      libraries

      sorry for my english

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC
        Claudia Frank @sambuccid
        last edited by Claudia Frank

        @sambuccid

        for error1 be referred to here
        and regarding error2 two make sure generated SciLexer.dll is in the same folder as notepad++.exe is.

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 0
        • sambuccidS
          sambuccid
          last edited by

          First of all thanks for your answer,

          But I did not understand how I can fix the first mistake,
          instead on the second when I come home I look for the generated files and I will delete one.
          I’ll let you know

          1 Reply Last reply Reply Quote 0
          • dailD
            dail
            last edited by

            The commit Claudia pointed to makes it so that Notepad++ needs a cryptographically signed SciLexer.dll file. The downside is that you cannot create a signed DLL file, only Don Ho. So the instructions in the readme currently are completely wrong. So you have two options:

            1. Comment out the line of code that checks it, i.e. if (not isCertificateValidated(sciLexerPath, TEXT("Notepad++"))). But you will have to make sure never to commit that change.
            2. Download the official Notepad++ v7.3.3 installer or zip file which contains the signed DLL file and use that instead of building SciLexer yourself. You still have to make sure you put the DLL file in the right place or you will still get the second warning.
            1 Reply Last reply Reply Quote 2
            • sambuccidS
              sambuccid
              last edited by

              Ok, thanks for the explanation,
              Do you know what the right place to put the file?
              Otherwise when I have some time looking for it

              1 Reply Last reply Reply Quote 0
              • sambuccidS
                sambuccid
                last edited by

                Thanks to everyone, I changed the “SciLexer.dll” file generated by “nmake” with the “ScliLexer.dll” file in the official zip install zip, only that still made the same mistakes, then I put the file in the folder “Unicode Debug” generated by visualstudio that contained the compiled project, then it worked.

                Thank you again to everyone and I hope to be able to contribute to this project

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