Ticket #353 (new defect)

Opened 7 years ago

Problems compiling Telldus Core on OS X Mavericks (10.9)

Reported by: oskar hagberg <oskar.hagberg@…> Owned by:
Priority: major Milestone:
Component: telldus-core Version: 2.1.1
Keywords: Cc:
Blocked By: Blocking:
Platform: Mac OS X Sensitive: no
Verified by Telldus: no



First I have to mention that I'm no expert on cmake and c in general. More of a high level, no need to care about memory management, kind of developer ;) Obviously telldus core works on osx mavericks since TelldusCenter is working out of the box. So I'm guessing my problem is more of a "missing documentation" issue. I finally got it working by performing the steps described below.

I was trying to build telldus core, byt simply performing cmake, make, and make install was a no go. Failed at cmake where it complained that the ftd2xx path wasn't found. Some quick googling also revealed that there were issues with ftd2xx on Mavericks, so I'd thought I give libftdi a go instead.

My steps to build:

First some modifications to the source and cmake configurations (see attached patch).

Then install libftdi to use instead of ftd2xx

$ brew install libusb pkg-config libusb-compat libftdi

Then cmake.
I ended up building HEAD on the master branch, but had the same issues on the 2.1.1 release. I also couldn't get cmake to find libftd so had to provide the full path manually.

$ cmake . -DFORCE_COMPILE_FROM_TRUNK=TRUE -DFTDI_LIBRARY=/usr/local/lib/libftdi1.2.0.0.dylib

Then make and install

$ make
$ sudo make DESTDIR=/ install

After this it worked as a charm.

Perhaps you could update your build instructions for OS X so a make noob like me can get up and running faster :)


telldus-mavericks.diff Download (26.8 KB) - added by oskar hagberg <oskar.hagberg@…> 7 years ago.
Patch to achieve make on OS X Mavericks

Change History

Changed 7 years ago by oskar hagberg <oskar.hagberg@…>

Patch to achieve make on OS X Mavericks

Note: See TracTickets for help on using tickets.