Yubico Forum

...visit our web-store at store.yubico.com
It is currently Tue Jan 30, 2018 11:38 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Wed Nov 05, 2014 5:05 am 
Offline

Joined: Tue Nov 25, 2008 12:10 am
Posts: 12
I'm trying to cross-compile the latest version of yubikey-personalization for a raspberry-pi on my x64 debian box, but it's failing on the ./configure. I was able to successfully build libyubikey, which runs successfully on the pi, but I can't figure out how to make the ./configure see libyubikey.

Code:
...
checking for libyubikey... no
configure: error: libyubikey v1.5+ not found, see https://developers.yubico.com/yubico-c/


I'm using the crosstool-ng toolchain, and have tried various combinations of the below, and with and without copying libyubikey into the toolchain environment, and it keeps failing as above.

Code:
CC=~/x-tools/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-gcc LDFLAGS="-L~/build/yubico-c/usr/lib/" CFLAGS="-I$~/build/yubico-c/usr/include" CPPFLAGS="-I~/build/yubico-c/usr/include" lt_cv_deplibs_check_method=pass_all ./configure --prefix=~/build/yubikey-personalization/usr/ --with-libyubikey-prefix=~/build/yubico-c/usr/ --without-libyubikey-prefix --host=armel --build=armhf-unknown-linux-gnu


Anyone have suggestions? I'm sure I've spent more time trying to figure this out than it would have taken to just compile it on the pi.

*Edit* Debian stable(wheezy)


SOLUTION:

Wound up firing up a QEMU chroot to build arm code in. Definitely slower than x64 gcc cross compiling, but at least it finds libyubikey.


Top
 Profile  
Reply with quote  

Share On:

Share on Facebook FacebookShare on Twitter TwitterShare on Tumblr TumblrShare on Google+ Google+

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group