On 03/24/2013 09:16 AM, João Paulo Bodanese wrote:
> Hi,
>
> I had the same problem when I was using arm-angstrom-linux-gnueabi
> toolchain. My Makefile was:
>
> NL_CFLAGS =
> -I/home/joao/JoaoPaulo/lowpan3/libnl-3.2.7/../out/home/joao/JoaoPaulo/lowpan3/libnl-3.2.7/../out/include/libnl3
>  
>
> NL_LIBS =
> -L/home/joao/JoaoPaulo/lowpan3/libnl-3.2.7/../out/home/joao/JoaoPaulo/lowpan3/libnl-3.2.7/../out/lib
> -lnl-genl-3 -lnl-3 
>
> So, I installed "apt-get install gcc-arm-linux-gnueabi" and than I
> could compile. The generated Makefile was:
>
> NL_CFLAGS =
> -I/home/joao/JoaoPaulo/lowpan3/linux-zigbee/../out/home/joao/JoaoPaulo/lowpan3/libnl-3.2.7/../out/include/libnl3
>  
>
> NL_LIBS =
> -L/home/joao/JoaoPaulo/lowpan3/linux-zigbee/../out/home/joao/JoaoPaulo/lowpan3/libnl-3.2.7/../out/lib
> -lnl-genl-3 -lnl-3 
>
> But even I modifying the NL_CFLAGS and NL_LIBS to the both paths,
> using the arm-angstrom-linux-gnueabi toolchain I could not compile.
>
> Now I am using the arm-linux-gnueabi. But the problem that this
> toolchain doesn't have arm-linux-gnueabi-g++, so I can't compile the
> elce2012_alarm_demo.

See my reply to K F a minute ago.

-I/home/joao/JoaoPaulo/lowpan3/linux-zigbee/../out/home/joao/JoaoPaulo/lowpan3/libnl-3.2.7/../out/include/libnl3
 


Isn't a real path.

For reference. I have libnl-3.2.7 and linux-zigbee in $HOME/work/beagle
and want the output to go in $HOME/work/beagle/out.

I've run the following:
export STAGING=$HOME/work/beagle/out
export HOST=arm-linux

#delete what's in $STAGING (BE CAREFUL!!!)
cd $STAGING
# rm -Rf *  <- do this manually. Clear out $STAGING/out
cd ..

cd libnl-3.2.7/
make distclean
./configure --prefix=$STAGING --host=$HOST
make -j10
make install

cd ../linux-zigbee
make distclean
./autogen.sh --help    # --help prevents it from running ./configure .
PKG_CONFIG_DIR=  \
PKG_CONFIG_LIBDIR=\
$STAGING/lib/pkgconfig:$STAGING/share/pkgconfig \
PKG_CONFIG_SYSROOT_DIR=$STAGING \
DESTDIR=$STAGING ./configure --prefix=/ --host=$HOST
make

ignore the make distclean lines if you've recently done it or have done
git clean -fdx.

Alan.




------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Linux-zigbee-devel mailing list
Linux-zigbee-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel

Reply via email to