Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Building .dll files using Makefile

Building .dll files using Makefile

Scheduled Pinned Locked Moved C / C++ / MFC
c++javahelpcsharpvisual-studio
6 Posts 2 Posters 15 Views 1 Watching
  • 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.
  • J Offline
    J Offline
    JohnCodding
    wrote on last edited by
    #1

    I downloaded Argon2 source[^] for Java, and in it's code it's using JNA, so I also got JNA source[^]. Now the problem I have is that the JNA code also needs some DLL files, but inside the repository for JNA[^] it doesn't contain a .sln project to use that with Visual Studio and build the .dll files, but instead it has makefile, and I don't know how to use it. Can someone help me on how to build the .dll files from that repository? I need jnidispatch.dll. For both Argon2 and JNA I choose the path using the source code and building them myself because that is what I need for the project I have, and I can't use them already compiled/jars. C/C++ isn't something that I use as main language for any of my projects, but I can make some basic .dll files using Visual Studio for stuff that can't be made inside Java, but I never had to use makefiles, and they aren't something I was able to understand. Even tho Java can be used on multiple OS, I only need it for Windows.

    Mircea NeacsuM J 2 Replies Last reply
    0
    • J JohnCodding

      I downloaded Argon2 source[^] for Java, and in it's code it's using JNA, so I also got JNA source[^]. Now the problem I have is that the JNA code also needs some DLL files, but inside the repository for JNA[^] it doesn't contain a .sln project to use that with Visual Studio and build the .dll files, but instead it has makefile, and I don't know how to use it. Can someone help me on how to build the .dll files from that repository? I need jnidispatch.dll. For both Argon2 and JNA I choose the path using the source code and building them myself because that is what I need for the project I have, and I can't use them already compiled/jars. C/C++ isn't something that I use as main language for any of my projects, but I can make some basic .dll files using Visual Studio for stuff that can't be made inside Java, but I never had to use makefiles, and they aren't something I was able to understand. Even tho Java can be used on multiple OS, I only need it for Windows.

      Mircea NeacsuM Offline
      Mircea NeacsuM Offline
      Mircea Neacsu
      wrote on last edited by
      #2

      Looking at the JNA repo, if the DLL you need is libffi, I see a vcxproj file in msvc_build directory jna/native/libffi/msvc_build/aarch64 at master · java-native-access/jna · GitHub[^]

      Mircea

      J 1 Reply Last reply
      0
      • Mircea NeacsuM Mircea Neacsu

        Looking at the JNA repo, if the DLL you need is libffi, I see a vcxproj file in msvc_build directory jna/native/libffi/msvc_build/aarch64 at master · java-native-access/jna · GitHub[^]

        Mircea

        J Offline
        J Offline
        JohnCodding
        wrote on last edited by
        #3

        Mircea Neacsu wrote:

        if the DLL you need is libffi

        JohnCodding wrote:

        I need jnidispatch.dll.

        That is the DLL file I need. At least that is the first exception I get, maybe after I add that DLL I'll need another, or not, not sure.

        Mircea NeacsuM 1 Reply Last reply
        0
        • J JohnCodding

          Mircea Neacsu wrote:

          if the DLL you need is libffi

          JohnCodding wrote:

          I need jnidispatch.dll.

          That is the DLL file I need. At least that is the first exception I get, maybe after I add that DLL I'll need another, or not, not sure.

          Mircea NeacsuM Offline
          Mircea NeacsuM Offline
          Mircea Neacsu
          wrote on last edited by
          #4

          Don't know much but looking at the comments in jna/native/Makefile at master · java-native-access/jna · GitHub[^], seems you need to have Cygwin installed.

          Mircea

          J 1 Reply Last reply
          0
          • Mircea NeacsuM Mircea Neacsu

            Don't know much but looking at the comments in jna/native/Makefile at master · java-native-access/jna · GitHub[^], seems you need to have Cygwin installed.

            Mircea

            J Offline
            J Offline
            JohnCodding
            wrote on last edited by
            #5

            At the bottom of the GitHub repository for JNA I found this[^]. I'll try to follow that tomorrow, maybe with that I'll get all that I need.

            1 Reply Last reply
            0
            • J JohnCodding

              I downloaded Argon2 source[^] for Java, and in it's code it's using JNA, so I also got JNA source[^]. Now the problem I have is that the JNA code also needs some DLL files, but inside the repository for JNA[^] it doesn't contain a .sln project to use that with Visual Studio and build the .dll files, but instead it has makefile, and I don't know how to use it. Can someone help me on how to build the .dll files from that repository? I need jnidispatch.dll. For both Argon2 and JNA I choose the path using the source code and building them myself because that is what I need for the project I have, and I can't use them already compiled/jars. C/C++ isn't something that I use as main language for any of my projects, but I can make some basic .dll files using Visual Studio for stuff that can't be made inside Java, but I never had to use makefiles, and they aren't something I was able to understand. Even tho Java can be used on multiple OS, I only need it for Windows.

              J Offline
              J Offline
              JohnCodding
              wrote on last edited by
              #6

              Due to all the problems in getting this to work, and also because in the project that I was going to use I'm not saving any really personal information, I'm going to stick with PBKDF2WithHmacSHA512 for password hashing.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups