ftdi_user.sh issue on Kubuntu 64 bits


quicky

Recommended Posts

Hi Jack,

 

I had a small issue with ftdi_user.h provided with DesignLab-1.0.1-linux64.tar.gz downloaded here http://forum.gadgetfactory.net/index.php?/files/getdownload/873-papilio-designlab-ide/

 

On Kubuntu 64 bits the

apt-get install libftdi-dev

install the 64 bits version of lib ftdi whereas lines 12 and 13 refer to 32 bits version of papilio-prog executable.

By the way execution of papilio-prog failed as it is not able to locate the 32 bits version of libftdi.

By replacing

chgrp dialout hardware/tools/papilio/lin32/papilio-progchgrp dialout tools/Papilio_Loader/programmer/linux32/papilio-prog

by

chgrp dialout hardware/tools/papilio/lin64/papilio-progchgrp dialout tools/Papilio_Loader/programmer/linux64/papilio-prog

and adding the missing linux64/papilio-prog in tools

cp -rf hardware/tools/papilio/lin64/papilio-prog tools/Papilio_Loader/programmer/linux64

the papilio-prog run properly.

 

It would be great if you could integrate the correction for DesignLab-1.0.3
Would it be possible too to avoid the duplication of papilio-prog binaries in two different locations ?

Link to comment
Share on other sites

I made a new issue in the DesignLab issue tracker and will try to find a solution for DesignLab 1.0.3.

 

You ask if we could avoid duplication of the papilio-prog binaries. It would be possible to just provide the 32 bit version of the DesignLab and then ask people to install linux32 compatibility libraries... That would be much easier to support but I wasn't sure if people would like that approach...

 

Jack.

Link to comment
Share on other sites

You ask if we could avoid duplication of the papilio-prog binaries. It would be possible to just provide the 32 bit version of the DesignLab and then ask people to install linux32 compatibility libraries... That would be much easier to support but I wasn't sure if people would like that approach...

 

Jack.

 

I just talk about the fact that papilio-prog is located here ( hardware/tools/papilio/lin32/papilio-prog ) and here (tools/Papilio_Loader/programmer/linux32/papilio-prog)

 

The fact there is a 32 bits package and a 64 bits package of DesignLab is fine for me.

Hope this make things more clear

Link to comment
Share on other sites

  • 2 weeks later...

not that i have any clue what is in the script, but 

why not modify the script to do 

 

#!/bin/bash
 
# grab os 32 or 64 type
_osbits="$(getconf LONG_BIT)"
 
# echo "osbits : $_osbits"
 
case "$_osbits" in
 
'32')
echo "i am 32"
# do 32 bit stuffs
;;
 
'64')
echo "i am 64"
# do 64 bit stuffs
;;
 
esac
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.