Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Contributor
Posts: 12
Registered: ‎09-18-2013
My Device: Z10
My Carrier: none
Accepted Solution

libapr

Anyone successfull in porting libapr to Blackberry 10?

 

I'm porting a lib which uses libapr, so I need a libapr library for Blackberry 10.

 

Any ideas?

Contributor
Posts: 12
Registered: ‎09-18-2013
My Device: Z10
My Carrier: none

Re: libapr

solved!

Developer
Posts: 1,163
Registered: ‎03-20-2013
My Device: Red LE Developer Z10
My Carrier: Fido

Re: libapr

Rats I hate posts like this one. 

 

Care to share?



Developer of Built for BlackBerry certified multiFEED RSS/Atom feed reader and aggregator.  multiFEED Icon

Play nice: Clicking Like Button on posts that helped you not only encourages others to continue sharing their experience, but also improves your own rating on this board. Also, don't forget to accept a post if it solves your problem or answers your question.
Highlighted
Contributor
Posts: 12
Registered: ‎09-18-2013
My Device: Z10
My Carrier: none

Re: libapr

Hi,

 

no problem didn't seem like anybody would care Smiley Very Happy

 

I created a build Script for it:

 

 

#! /bin/bash

unset CPATH
unset C_INCLUDE_PATH
unset CPLUS_INCLUDE_PATH
unset LIBS
unset DYLD_FALLBACK_LIBRARY_PATH
unset DYLD_FALLBACK_FRAMEWORK_PATH

export SDKVER="10.1"
export DEVROOT="/Applications/Momentics.app/host_10_1_0_238"
export SDKROOT="$DEVROOT/darwin/x86"

if [ ! \( -d "$DEVROOT" \) ] ; then
   echo "The Blackberry SDK could not be found. Folder \"$DEVROOT\" does not exist."
   exit 1
fi

if [ ! \( -d "$SDKROOT" \) ] ; then
   echo "The Blackberry SDK could not be found. Folder \"$SDKROOT\" does not exist."
   exit 1
fi

if [ ! \( -x "./configure" \) ] ; then
    echo "This script must be run in the folder containing the \"configure\" script."
    exit 1
fi

export PKG_CONFIG_PATH="$SDKROOT/usr/lib/pkgconfig":"/opt/blackberry-$SDKVER/lib/pkgconfig":"/usr/local/blackberry-$SDKVER/lib/pkgconfig"
export PKG_CONFIG_LIBDIR="$PKG_CONFIG_PATH"
export PREFIX="/opt/blackberry-$SDKVER"
export AS="$SDKROOT/usr/bin/ntoarmv7-as"
export ASCPP="$SDKROOT/usr/bin/ntoarmv7-as"
export AR="$SDKROOT/usr/bin/ntoarmv7-ar"
export RANLIB="$SDKROOT/usr/bin/ntoarmv7-ranlib"
export CPP="$SDKROOT/usr/bin/ntoarmv7-cpp"
export CXXCPP="$SDKROOT/usr/bin/ntoarmv7-cpp"
export CC="$SDKROOT/usr/bin/ntoarmv7-gcc"
export CXX="$SDKROOT/usr/bin/ntoarmv7-g++"
export LD="$SDKROOT/usr/bin/ntoarmv7-ld"
export STRIP="$SDKROOT/usr/bin/ntoarmv7-strip"

./configure \
    --prefix="$PREFIX" \
    --host="arm-unknown-nto-qnx8.0.0eabi" \
    --with-apr=/opt/blackberry-$SDKVER/bin/ \
    ac_cv_file__dev_zero="yes" \
    ac_cv_func_setpgrp_void="yes" \
    apr_cv_process_shared_works="yes" \
    apr_cv_mutex_robust_shared="no" \
    apr_cv_tcp_nodelay_with_cork="yes" \
    ac_cv_sizeof_struct_iovec="8" \
    apr_cv_mutex_recursive="yes" $@