FTDI Community

General Category => Discussion - Software => Topic started by: Archer6906 on April 27, 2020, 12:47:20 PM

Title: Can't build or run the example for LibMPSSE-SPI downloaded from the FTDI website
Post by: Archer6906 on April 27, 2020, 12:47:20 PM
Hi,

I have downloaded the LibMPSSE 0.6 Source from the FTDI website, but I got an error when running the SPI example as below,

==============================================
chris@chris-HP-ProDesk-490-G3-MT-Business-PC:SPI$ . b.bash
------------------------------------------------
in function getArch
STR = 64
ARCH = x86_64
------------------------------------------------
----------------------------------------
Please select the sample application to build and run
1. SPI-Static
2. SPI-Dynamic
3. Test all
1
------------------------------------------------
Building sample by linking to static library and running it
sample-static.c: In function ‘main’:
sample-static.c:290:31: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    printf("  ftHandle=0x%x\n",(unsigned int)devList.ftHandle);/*is 0 unless open*/
                               ^
sample-static.c:296:40: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   printf("\nhandle=0x%x status=0x%x\n",(unsigned int)ftHandle,status);
                                        ^
/usr/bin/ld: i386 architecture of input file `libMPSSE.a(ftdi_spi.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `libMPSSE.a(ftdi_infra.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `libMPSSE.a(ftdi_mid.o)' is incompatible with i386:x86-64 output
collect2: error: ld returned 1 exit status
bash: ./sample-static.o: No such file or director
==============================================

It looks  like there is no libMPSSE.a for x86_64 (My OS is Ubuntu 18.04 64-bit, Kernel 5.3.0-46-generic) in the ../Release/lib/linux directory. And even I tried to build the libMPSSE.a, there is no Makefile to build it.

Could you help to provide the libMPSSE.a for x86_64 PC and the Makefile that can be used for building it as well?

Thanks.
Title: Re: Can't build or run the example for LibMPSSE-SPI downloaded from the FTDI website
Post by: FTDI Community on April 28, 2020, 12:00:06 PM
Hello,

We don't have a 64-bit version included with our Linux built at the moment but we are currently working on a build for 64-bit Linux. We should have a beta version soon and will let you know when it is available.

Best Regards, FTDI Community
Title: Re: Can't build or run the example for LibMPSSE-SPI downloaded from the FTDI website
Post by: Linus on April 09, 2022, 12:49:08 AM
Hello (this is my first time here :) ),

I found this post (and this forum) looking for an official 64-bit Linux build of LibMPSSE.
The official download links at https://ftdichip.com/software-examples/mpsse-projects/libmpsse-spi-examples/ are still without it.

Has there been any progress with the mentioned beta version in the last two years?  ;)

I was a reluctant to download the libs from here:
https://github.com/bithium/ftdi-mpsse/tree/master/lib/spi/linux/x86_64

Is there anything directly from FTDI?

Thanks!
Title: Re: Can't build or run the example for LibMPSSE-SPI downloaded from the FTDI website
Post by: FTDI_USA on April 18, 2022, 11:27:12 PM
Linus:

Here is the HighTail FTP link for our 64 bit Linux LibMPSSE library:
[url][https://spaces.hightail.com/receive/8xGjIDeabe/url]



Best Regards,
FTDU USA