Page 1 of 1
Windows build FTDI sdk
Posted: Tue Jun 23, 2015 3:58 am
by iamchrislaurie
Hi
I am trying the new windows build method and am getting stuck on the part bout the FTDI sdk. There is not and sdk package on the drivers page per se that I can download and if you just download the drivers, they doe not give you an option on where to install them.
I assume 0n windows they go into the system folders somewhere, but I am unsure about what I need (and where to find it) to make the msys2 compatible files.
Cheers
Chris
Re: Windows build FTDI sdk
Posted: Tue Jun 23, 2015 9:47 am
by mcallegari
hi Chris,
apparently they replaced .zip with .exe files...but there's a trick.
The zip files are still there, just change the final extension of the link:
http://www.ftdichip.com/Drivers/CDM/CDM ... tified.zip
That is the SDK
Re: Windows build FTDI sdk
Posted: Tue Jun 23, 2015 3:06 pm
by iamchrislaurie
Thanks Massimo, that worked.
Now the next issue: the build wiki says to cd to the appropriate dir and that works but ithen asks to issue a gendef command but if I do that I get an error from the shell:
$ cd /c/Qt/CDM21000/i386
CHRIS@CHRIS-PC MINGW64 /c/Qt/CDM21000/i386
$ gendef.exe - ftd2xx.dll > ftd2xx.def
bash: gendef.exe: command not found
the same goes for the dlltool command later.
Where did I go wrong?
Re: Windows build FTDI sdk
Posted: Tue Jun 23, 2015 3:11 pm
by iamchrislaurie
Ok solved that part I had to point to the gendef in the 32 bit path:
$ /c/msys64/mingw32/bin/gendef.exe - ftd2xx.dll > ftd2xx.def
* [ftd2xx.dll] Found PE image
CRIS@CRIS-PC MINGW64 /c/Qt/CDM21000/i386
$ /c/msys64/mingw32/bin/dlltool -k --input-def FTD2XX.def --dllname ftd2xx.dll --output-lib libftd2xx.a
Will keep this thread posted.
Re: Windows build FTDI sdk
Posted: Tue Jun 23, 2015 3:15 pm
by iamchrislaurie
I had to switch to the mingw32_shell - using the mingw64_shell gave an error.
It is compiling now....
Re: Windows build FTDI sdk
Posted: Tue Jun 23, 2015 4:04 pm
by iamchrislaurie
Compiling and installing went fine, essentially the same as the Linux process.
I had to copy a number of lib?.dll files from C:\msys64\mingw32\bin to c:qlcplus when windows complained about it when I tried to run the app.
Once that was done it compiled fine.
Now to figure out how to do a pull request...