Couldn't load library libftd2xx.dylib.
The libs seem to be installed correctly
~$ ls -l /usr/local/lib/libftd2xx.*
-rwxr-xr-x@ 1 root wheel 212748 Oct 8 09:43
/usr/local/lib/libftd2xx.0.1.6.dylib
lrwxr-xr-x 1 root wheel 36 Oct 8 09:43
/usr/local/lib/libftd2xx.dylib -> /usr/local/lib/libftd2xx.0.1.6.dylib
And I've got ftd2xx.h and WinTypes.h in the /usr/local/include/ dir
and compiled a recent git version with "D2XX_INCLUDE =
/usr/local/include" in my gcconfig.pri
Any ideas? .. hopefully just a stupid oversight on my part?
--
·´¯`·.¸. , . .·´¯`·.. ><((((º>`·.¸¸.·´¯`·.¸.·´¯`·...¸><((((º>
"The best way to predict the future is to invent it." -- Alan Kay
Matthew T. Perry
http://www.perrygeo.net
http://viedevelo.wordpress.com
--
_______________________________________________
Golden-Cheetah-Users mailing list
golden-che...@googlegroups.com
http://groups.google.com/group/golden-cheetah-users?hl=en
Thanks for the suggestion.
Well I just downloaded and ran 1.3 and it seems to find the driver
alright (no error at least). However it does not find any devices
(port list is empty).
On the latest dev build, GoldenCheetah_0d6949, I get a warning:
No serial devices found.
On my git build, I get a warning:
Couldn't load library libftd2xx.dylib.
No serial devices found.
I'm using a PT Comp wired LYC and the USB download cradle if that matters.
const char *libname = "/usr/local/lib/libftd2xx.dylib";
It does not but I found otool which seems to do the same thing
~/src/GoldenCheetah/src$ otool -L
GoldenCheetah.app/Contents/MacOS/GoldenCheetah
No libftd2xx listed anywhere .. should it be? The other builds I've
downloaded don't have it either.
I've made sure there are no libftd2xx.dylib files anywhere else on the
machine. Not sure where to go from here...
You're right .. i was thinking of the linux 'ld' perhaps?
> Did you try changing the line of code I suggested ?
>> I have never tried this but you could maybe try and change line 71 of
>> D2XX.cpp to:
>>
>> const char *libname = "/usr/local/lib/libftd2xx.dylib";
Yeah same result unfortunately .. Could not load /usr/local/lib/libftd2xx.dylib
Yeah same result unfortunately .. Could not load /usr/local/lib/libftd2xx.dylib
What version of OS X are you on ?
you'll see there is a @ at the end of the file mode indicating that
there are extended attributes associated with the file.
if you do ls -l@ i'm willing to bet you get:
com.apple.quarantine
in the output.
this is what normally prompts the user to allow an application that
has come from the Internet to be run.
I'm not sure but this might be causing problems.
you can try to remove the quarantine
by running:
sudo xattr -d com.apple.quarantine /usr/local/lib/libftd2xx.0.1.7.dylib
Shot in the dark, but you never know.
Jamie
> --
> _______________________________________________
> Golden-Cheetah-Users mailing list
> golden-che...@googlegroups.com
> http://groups.google.com/group/golden-cheetah-users?hl=en
"You don't use science to show that you're right, you use science to
become right."--xkcd
__________________
Jamie Kimberley
Postdoctoral Fellow
Department of Mechanical Engineering
The Johns Hopkins University
Office: 410.516.5162
Mobile: 217.621.8272
Fax: 410.516.4316
E-Mail:jamie.k...@jhu.edu
Jamie - that is a good idea, never knew about that trick! In this case
the quarantine didnt seem to be the issue.
So I'm still stuck but the good news is that its probably *not* a GC
issue .. I just installed PowerAgent and it cant read the device
either. Grrr. Please dont make me go back to Win/WKO+!!
- matt
--
1. Make sure the LYC is FULLY in the cradle.
2. if you are using the 0.1.7 drivers and you get things to connect
you'll probably get random crashes when downloading.
It is reported that you can add a config file to /usr/local/lib to
alleviate this problem.
from our tracker:
However, there is a better way to solve this. It's actually
explained
in the ReadMe file for the driver. The problem occurs in
multithreaded
applications only. You need to create an ftd2xx.cfg file in /usr/
lib/, /usr/local/lib/, or in your current working directory. The
file
should look like this:
[Globals]
ConfigFlags=0x40000000
I'll try this when I get home. I have my PT ther eand can try a few
other things.
Jamie
> ???`?.?. , . .???`?.. ><((((?>`?.??.???`?.?.???`?...?><((((?>
> "The best way to predict the future is to invent it." -- Alan Kay
> Matthew T. Perry
> http://www.perrygeo.net
> http://viedevelo.wordpress.com
>
GC is definitely being built at 64 bit which would explain it. I'm
building now with CONFIG += i386 .... is this the right way to
accomplish a 32-bit build? And is a 32-bit build the prefered way to
get powertap support on OSX?
On Fri, Oct 8, 2010 at 2:58 PM, Jamie Kimberley <jamie.k...@jhu.edu> wrote:
> Two things.
>
> 1. Make sure the LYC is FULLY in the cradle.
Yup... HOST mode is on and its locked in. Works on my windows box too.
> 2. if you are using the 0.1.7 drivers and you get things to connect you'll
> probably get random crashes when downloading.
>
> It is reported that you can add a config file to /usr/local/lib to alleviate
> this problem.
>
> from our tracker:
> However, there is a better way to solve this. It's actually explained
> in the ReadMe file for the driver. The problem occurs in multithreaded
> applications only. You need to create an ftd2xx.cfg file in /usr/
> lib/, /usr/local/lib/, or in your current working directory. The file
> should look like this:
>
> [Globals]
> ConfigFlags=0x40000000
>
Good to know. The 1.7 64-bit driver (with or without the cfg trick)
seems to be recognized/loaded but still no device found.
--
·´¯`·.¸. , . .·´¯`·.. ><((((º>`·.¸¸.·´¯`·.¸.·´¯`·...¸><((((º>
Thanks! I installed the latest version of PowerAgent (comes with
drivers) and it works beautifully .. in Power Agent but still not in
GC.
Using the 64-bit ftd 1.7 drivers, GC now sees the unit but errors out
Using the 32-bit ftd 1.6 drivers, GC cant find the drivers at all
(actually this may not be precise .. the error handler in D2XX.cpp
line 75 doesnt really distinguish between errors - it just says that
dlopen didnt work for some reason. perhaps we could output some
debugging info here??)
I suspect this is due to building GC as a 64-bit only? Can someone
confirm this? Is there a way to build GC as 32-bit even though all the
dependencies are likely 64-bit as well? I'm a bit over my head at this
point and I'm really just shooting in the dark. I'd appreciate some
advice from the programming gurus on how to proceed ... I can't
imagine I'm the only one on 64-bit Mac who wants to compile GC from
source and access their PT data.
I suspect this is due to building GC as a 64-bit only?
My question though is how do I build it as a 32 bit?
> Yes. This is precisely what I said in an earlier email.
> Why don't you just grab the latest build here:
> http://goldencheetah.stand2surf.net/ and use the 1.6 32bit drivers and see
> what that does for you.
I have several patches that I maintain related to the performance
manager and metrics which basically allow me to track training stress
on other bikes without power meters. Until those features make it into
the core GC (see my email to the group entitled "Proposal for managing
non-power based training stress metrics") I'll have to stay with my
patched version.
My question though is how do I build it as a 32 bit?
I have several patches that I maintain related to the performance
manager and metrics which basically allow me to track training stress
on other bikes without power meters. Until those features make it into
the core GC (see my email to the group entitled "Proposal for managing
non-power based training stress metrics") I'll have to stay with my
patched version.
Also when gc errors out with the 0.1.7 drivers is it crashing or just stating that there was an error downloading? If it is crashing try adding the ftd2xx.cfg file like I suggested eArlier.