Re: invalid ELF header
"Diez B. Roggisch" <[email protected]> Thu, 23 Nov 2017 10:27:31 +0100
| Newsgroups | gmane.comp.python.ctypes |
|---|---|
| Message-ID | <[email protected]> |
--===============8131403959209627760== Content-Type: multipart/signed; boundary="Apple-Mail=_12A2078A-6721-4322-BEE4-62A35AC8172C"; protocol="application/pgp-signature"; micalg=pgp-sha512 --Apple-Mail=_12A2078A-6721-4322-BEE4-62A35AC8172C Content-Type: multipart/alternative; boundary="Apple-Mail=_5E1F8CC3-CDB2-4FD1-B282-1DF633AB381E" --Apple-Mail=_5E1F8CC3-CDB2-4FD1-B282-1DF633AB381E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 You are trying to use a Windows DLL under Linux. That won=E2=80=99t fly. AFAIK the ft260 shouldn=E2=80=99t need this to begin with, because = it=E2=80=99s a HID-device that should show up in your OS. Here is a = discussion about using it on Linux: = https://www.eevblog.com/forum/microcontrollers/has-anyone-worked-with-the-= ftdi-ft260-yet/ = <https://www.eevblog.com/forum/microcontrollers/has-anyone-worked-with-the= -ftdi-ft260-yet/> Diez > On 23. Nov 2017, at 08:33, Jach Fong <[email protected]> wrote: >=20 > Hi! I tried the xml2py under Ubuntu 14.04 on library LibFT260, but = fail. >=20 > ubuntu@ubuntu:~/Works$ xml2py -c -d -k defst -l ~/Works/LibFT260.dll = -o ~/Works/libft260.py ~/Works/libft260.xml > ... > ... > OSError: /home/ubuntu/Works/LibFT260.dll: invalid ELF header >=20 > Can anyone tell what the problem is? Thank you. >=20 >=20 > Best Regards, > Jach Fong >=20 > PS. this library can be downloaded from the following page: > http://www.ftdichip.com/Products/ICs/FT260.html >=20 >=20 >=20 > --- > This email has been checked for viruses by Avast antivirus software. > https://www.avast.com/antivirus >=20 >=20 > = --------------------------------------------------------------------------= ---- > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > ctypes-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ctypes-users >=20 --Apple-Mail=_5E1F8CC3-CDB2-4FD1-B282-1DF633AB381E Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html = charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" = class=3D"">You are trying to use a Windows DLL under Linux. That won=E2=80= =99t fly.<div class=3D""><br class=3D""></div><div class=3D"">AFAIK the = ft260 shouldn=E2=80=99t need this to begin with, because it=E2=80=99s a = HID-device that should show up in your OS. Here is a discussion about = using it on Linux:</div><div class=3D""><br class=3D""></div><div = class=3D""><a = href=3D"https://www.eevblog.com/forum/microcontrollers/has-anyone-worked-w= ith-the-ftdi-ft260-yet/" = class=3D"">https://www.eevblog.com/forum/microcontrollers/has-anyone-worke= d-with-the-ftdi-ft260-yet/</a></div><div class=3D""><br = class=3D""></div><div class=3D"">Diez</div><div class=3D""><br = class=3D""><div><blockquote type=3D"cite" class=3D""><div class=3D"">On = 23. Nov 2017, at 08:33, Jach Fong <<a = href=3D"mailto:[email protected]" class=3D"">[email protected]</a>>= wrote:</div><br class=3D"Apple-interchange-newline"><div class=3D""><div = class=3D"">Hi! I tried the xml2py under Ubuntu 14.04 on library = LibFT260, but fail.<br class=3D""><br class=3D"">ubuntu@ubuntu:~/Works$ = xml2py -c -d -k defst -l ~/Works/LibFT260.dll -o ~/Works/libft260.py = ~/Works/libft260.xml<br class=3D"">...<br class=3D"">...<br = class=3D"">OSError: /home/ubuntu/Works/LibFT260.dll: invalid ELF = header<br class=3D""><br class=3D"">Can anyone tell what the problem is? = Thank you.<br class=3D""><br class=3D""><br class=3D"">Best Regards,<br = class=3D"">Jach Fong<br class=3D""><br class=3D"">PS. this library can = be downloaded from the following page:<br class=3D""> = <a = href=3D"http://www.ftdichip.com/Products/ICs/FT260.html" = class=3D"">http://www.ftdichip.com/Products/ICs/FT260.html</a><br = class=3D""><br class=3D""><br class=3D""><br class=3D"">---<br = class=3D"">This email has been checked for viruses by Avast antivirus = software.<br class=3D""><a href=3D"https://www.avast.com/antivirus" = class=3D"">https://www.avast.com/antivirus</a><br class=3D""><br = class=3D""><br = class=3D"">---------------------------------------------------------------= ---------------<br class=3D"">Check out the vibrant tech community on = one of the world's most<br class=3D"">engaging tech sites, Slashdot.org! = http://sdm.link/slashdot<br = class=3D"">_______________________________________________<br = class=3D"">ctypes-users mailing list<br = class=3D"">[email protected]<br = class=3D"">https://lists.sourceforge.net/lists/listinfo/ctypes-users<br = class=3D""><br class=3D""></div></div></blockquote></div><br = class=3D""></div></body></html>= --Apple-Mail=_5E1F8CC3-CDB2-4FD1-B282-1DF633AB381E-- --Apple-Mail=_12A2078A-6721-4322-BEE4-62A35AC8172C Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEzBAEBCgAdFiEEijcjZP0vXZhz8OhhyBau9wuVhecFAloWlIMACgkQyBau9wuV heeqdAgAvNnhEfXc+anrq6CoGlQ9PTa+GY1Asf4tdOcpXboZt7t6sulvjYmlIQlD 2Mtq2FW1/0DS0qBMD2GrO+CI+jhu+fSF1g+7AR3CpcwApbWpL9uIfxhnRPX7bcv0 ztn6lBTwodGNMTdPa72pXLYm/GD1IELkeUdrNmeq3vngI9HSfqGpfuQipgge2RAz bBvg/gbS71iFDiMJMk0kB1SrOjzwFChkMXIxFTFpidnO18rSddxZsJgrUsF677mt gyRzvJEVm8KTCac4P9pQK0mGS3gHGvD6kRP7/a/Ox+iwELT4z/L6unMfBWfZGcSb mJJvIv9m3paDwMT+Zxd0bXYs5PwkmA== =yn7T -----END PGP SIGNATURE----- --Apple-Mail=_12A2078A-6721-4322-BEE4-62A35AC8172C-- --===============8131403959209627760== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot --===============8131403959209627760== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ctypes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ctypes-users --===============8131403959209627760==--