Thread: cross compiling boost library for BeagleBone Black

  1. #1
    Registered User bremenpl's Avatar
    Join Date
    Apr 2013
    Posts
    57

    cross compiling boost library for BeagleBone Black

    Hello there,
    I am trying to cross compile the boost library for BeagleBone Black, so i am abble to build c++ projects on host x86 machine using boost and deploy it to arm target.

    I am on Linux Mint 64 bit and I have arm-linux-gnueabihf linaro toolchain installed. I have downloaded the boost_1_58_0 package.

    In the folder, I first edit the project-config.jam. I replace line:

    using gcc ;

    with:

    using gcc : arm : arm-linux-gnueabihf-g++ ;

    I then run ./b2 toolset=gcc-arm

    I get the following error:
    https://pastebin.com/SQScuTJ4

    I dont understand what am I doing wrong. I tried running bootstrap.sh before b2 but that didnt help as well. I am reffering to this document:
    Cross-compilation

    I would really aprichiate all help.
    Last edited by bremenpl; 04-25-2015 at 03:29 AM.

  2. #2
    Hurry Slowly vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,788
    looks like you do not have g++-arm installed which is required by the configuration you are trying to use
    All problems in computer science can be solved by another level of indirection,
    except for the problem of too many layers of indirection.
    – David J. Wheeler

  3. #3
    Registered User bremenpl's Avatar
    Join Date
    Apr 2013
    Posts
    57
    Im not sure either such thing exists, i have provided the path to my toolchain which is arm-linux-gnueabihf-g++

  4. #4
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    Quote Originally Posted by bremenpl View Post
    Im not sure either such thing exists, i have provided the path to my toolchain which is arm-linux-gnueabihf-g++
    Linux mint is basically ubuntu, so this link should help you.
    What can this strange device be?
    When I touch it, it gives forth a sound
    It's got wires that vibrate and give music
    What can this thing be that I found?

  5. #5
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    When I worked with the Bone, I found it convenient to actually put the toolchain on the device itself (which is, after all, running Linux) and do regular compiles instead of cross compiles. Though the convenience of this depends on what you're doing...
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  6. #6
    Registered User bremenpl's Avatar
    Join Date
    Apr 2013
    Posts
    57
    I found out that I can actually download the boost library on the beagle using package manager. That went a lot smoother. Thank you for replies guys.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. best process for cross compiling an application
    By nanodog in forum C Programming
    Replies: 4
    Last Post: 10-26-2013, 04:04 PM
  2. Cross Compiling GDB for MIPS
    By vlrk in forum Linux Programming
    Replies: 4
    Last Post: 10-21-2009, 09:18 AM
  3. Cross compiling
    By X56THN in forum Linux Programming
    Replies: 5
    Last Post: 07-04-2008, 03:30 PM
  4. Cross-Compiling: Libraries Necessary?
    By JupiterV2 in forum C++ Programming
    Replies: 5
    Last Post: 05-22-2008, 05:17 PM
  5. Cross Compiling with Linux and Turbo C
    By ozgulker in forum Linux Programming
    Replies: 0
    Last Post: 11-18-2002, 03:07 PM

Tags for this Thread