Recompile jpicusb.dll into a 64bit .dll

  build, c++, cross-compiling, dll, java

Background: I need to communicate my computer (Win7 64bit) to a PIC18F4550 using the USB port. I found the jpicusb library for Java, but it is compiled to work in 32bit OS. When I attemp to use it on my computer it does not recognize the jpicusb.dll file (which is needed). Some other posts on the internet say that happens because the .dll is built for 32bits OS.

Question: The files in the link contain the sources of the .class, .dll (I think?) and examples of how to use the .class. How can I compile the .dll source into a 64bit version .dll?

I would prefer not to use a VM to run a 32bit OS.

If you know how to communicate PIC to a PC in C or Java please tell me how to.

I’ve tried adding -m64 -march=x86-64 to the gcc command with no results

Some say the code makes it compile for 32bit but I don’t know how that is possible.

I know libusb also does the work but I haven’t tried it out (I wanted to completely discard jpicusb)

Source: Windows Questions C++

LEAVE A COMMENT