Can you run this: Experimental Cross compiled jp12serial

Discussion forum for JP1 software tools currently in use, or being developed, such as IR, KM, RemoteMaster, and other misc apps/tools.

Moderator: Moderators

Post Reply
carsonlittle
Posts: 62
Joined: Sun Dec 02, 2012 4:14 pm

Can you run this: Experimental Cross compiled jp12serial

Post by carsonlittle »

I am using this to compile jp12serial on Linux (and Windows): http://mingw-w64.sourceforge.net/

What this means is that any developer, including myself now (hopefully) have a way to:

1. Create jp12serial.dll *and* jp12serial.so on Linux
2. (as well as, possibly) create jp12serial.dll *and* jp12serial.so on Windows

This is useful if you have either Windows or Linux (but not both) available to you, but you want to release/distribute both jp12serial.dll *and* jp12serial.so to the general population

This is also useful if you want to build jp12serial.dll on Windows but don't want to install Visual Studio *or* you want to use mingw on both OSes (like I do).

I compiled this: (http://www.hifi-remote.com/forums/dload ... e_id=11218) and got this http://www.filedropper.com/jp12serialdll.

Could a kind person running Windows put this/replace the usual jp12serial.dll with this one and let me know if they have issues? (this dll should woek EXACTLY like the "original" one)

This is supposed to be a 32bit build, so should work on all Windows.

If there are no issues, that means my method works and I will come-up with a write-up, if required, to let anyone do this themselves.
3FG
Expert
Posts: 3434
Joined: Mon May 18, 2009 11:48 pm

Post by 3FG »

Doesn't load in RMIR, with the following message in rmaster.err: Unable to create JP12Serial object: C:\Remotes\2.03 Alpha\Windows\JP12Serial.dll: Can't find dependent libraries.

IR8.03 won't start and displays the message: The application has failed to start because libgcc_s_sjlj-1.dll was not found.

Note that the distributed JP12serial.dll is already compiled using MinGW g++, and is under 35K for Windows, Linux, or Mac, either 32 bit or 64bit. I don't think we are trying to cross compile, however.
carsonlittle
Posts: 62
Joined: Sun Dec 02, 2012 4:14 pm

Post by carsonlittle »

3FG wrote:Doesn't load in RMIR, with the following message in rmaster.err: Unable to create JP12Serial object: C:\Remotes\2.03 Alpha\Windows\JP12Serial.dll: Can't find dependent libraries.

IR8.03 won't start and displays the message: The application has failed to start because libgcc_s_sjlj-1.dll was not found.
My bad, could you try again with these files (dlls) in the same folder as this dll: http://www.filedropper.com/deps

If this works, tools like IR, jp1test should work with these 3 DLLs too.

If any tool compalins about mising dlls still, place a copy of these dlls in the same directory as the tool - for example, for RMIR, place these dlls in the same folder as the jar as well as inside the Windows folder (where is looks explicitly I guess?)
3FG wrote: Note that the distributed JP12serial.dll is already compiled using MinGW g++, and is under 35K for Windows, Linux, or Mac, either 32 bit or 64bit. I don't think we are trying to cross compile, however.
This is for my own purpose at the moment, and I hope it helps others in the future.

The filesize can be made comparable to 35K soon, I left in a lot of debug info.

I thank you for the detailed logs and feedback.
3FG
Expert
Posts: 3434
Joined: Mon May 18, 2009 11:48 pm

Post by 3FG »

I only tried downloading, but it worked in IR, where all dlls are kept in the same directory as the executable.

It also worked in RMIR, but it was necessary to put the two dependent dlls in the same directory as the jar file.

So far, so good!
carsonlittle
Posts: 62
Joined: Sun Dec 02, 2012 4:14 pm

Post by carsonlittle »

3FG wrote:I only tried downloading, but it worked in IR, where all dlls are kept in the same directory as the executable.

It also worked in RMIR, but it was necessary to put the two dependent dlls in the same directory as the jar file.

So far, so good!
So far, so good, and I could not have done it without you. Thank you.

Working on the RMIR communication ATM as it's working fine on Linux but I have a homework due tomorrow so not sure if I will be able to work everything out.
carsonlittle
Posts: 62
Joined: Sun Dec 02, 2012 4:14 pm

Post by carsonlittle »

Can you (and anyone else interested) try this one: http://www.filedropper.com/jp12serialdl ... trippeddll

Make sure to delete all the 3 DLLs I have provded so far - they are not required anymore.

Notice that the size is comparable to the existing jp12serial we have as well!

This is actually the DLL I should have originally posted had I been a bit more careful.

Anyways, I am happy this worked out well - essentially we don't need Visual Studio anymore nor do we need a Windows machine to build windows DLLs, and Win x64 support is free too.
3FG
Expert
Posts: 3434
Joined: Mon May 18, 2009 11:48 pm

Post by 3FG »

Again, I only tried downloads, but this dll worked with JP1.3 and JP2 remotes on a 32 bit XP system.
carsonlittle
Posts: 62
Joined: Sun Dec 02, 2012 4:14 pm

Post by carsonlittle »

3FG wrote:Again, I only tried downloads, but this dll worked with JP1.3 and JP2 remotes on a 32 bit XP system.
Thank you - I assume it should run on Win 7 64 bit systems too (but it would be great if someone with that config can test)

This progress is important to me as I am moving to a JPx-IRWidget combo cable where most of jp12 serial is actually resident in the cable itself and the FTDI chip is no longer necessary, nor are special drivers. My design will come with a new jp12 serial DLL that makes this transparent to all our tools.

Thanks again (Perhaps I should turn this into a poll to determine what systems this DLL runs on?)
Post Reply