Giter Site home page Giter Site logo

Comments (12)

yuanguangyong avatar yuanguangyong commented on July 18, 2024

elif defined(ARM_EABI) && !defined(__ARM_PCS_VFP)
include arm-linux-gnueabi/python2.7/pyconfig.h

And I try to use:
apt-get install gcc-arm-linux-gnueabi
apt-get install gcc-arm-linux-gnueabihf

There still have problem.

In folder"user/include", only x84_64-linux-gnu folder there have python2.7/pyconfig.h, I want to use this file direct, but there have error.

How can I get arm-linux-gnueabi.

from boost-for-android.

Bendr0id avatar Bendr0id commented on July 18, 2024

Hi @ll,

i've exactly the same problem.

gcc.compile.c++ bin.v2/libs/python/build/gcc-androidR8e/release/link-static/threading-multi/numeric.o
In file included from ./boost/python/detail/wrap_python.hpp:50:0,
from ./boost/python/detail/prefix.hpp:13,
from ./boost/python/numeric.hpp:8,
from libs/python/src/numeric.cpp:6:
/usr/include/python2.7/pyconfig.h:15:52: fatal error: arm-linux-gnueabi/python2.7/pyconfig.h: No such file or directory
compilation terminated.

Enviroment is Ubuntu 14.10 and android-ndk-r9c

Is there any solution for this?

from boost-for-android.

moritz-wundke avatar moritz-wundke commented on July 18, 2024

Have you tried it in a different OS?

On Wed, Feb 4, 2015 at 11:20 AM, Ben Gräf [email protected] wrote:

Hi @ll https://github.com/ll,

i've exactly the same problem.

gcc.compile.c++
bin.v2/libs/python/build/gcc-androidR8e/release/link-static/threading-multi/numeric.o
In file included from ./boost/python/detail/wrap_python.hpp:50:0,
from ./boost/python/detail/prefix.hpp:13,
from ./boost/python/numeric.hpp:8,
from libs/python/src/numeric.cpp:6:
/usr/include/python2.7/pyconfig.h:15:52: fatal error:
arm-linux-gnueabi/python2.7/pyconfig.h: No such file or directory
compilation terminated.

Enviroment is Ubuntu 14.10 and android-ndk-r9c

Is there any solution for this?


Reply to this email directly or view it on GitHub
#97 (comment)
.

Moritz Wundke
www.MoritzWundke.com

from boost-for-android.

Bendr0id avatar Bendr0id commented on July 18, 2024

Tested on debian as well.

But adding "--without-python " to ./bjam call in build-android.sh fixed it for me.

from boost-for-android.

moritz-wundke avatar moritz-wundke commented on July 18, 2024

If we can confirm the fix and no side effects will appear I'm OK with
integrating it.

On Wed, Feb 4, 2015 at 1:30 PM, Ben Gräf [email protected] wrote:

Tested on debian as well.

But adding "-without-python " to ./bjam call in build-android.sh fixed it
for me.


Reply to this email directly or view it on GitHub
#97 (comment)
.

Moritz Wundke
www.MoritzWundke.com

from boost-for-android.

Aman5692 avatar Aman5692 commented on July 18, 2024

Hi Bendr0id,
i'm facing the same problem while building boost1.55 with androidndkr10d on ubuntu 14.04.
I added -without-python \ on line no 142 of build-android.sh ...... but it does not seem to solve the error, can u tell me the fix.
Thanks

from boost-for-android.

Bendr0id avatar Bendr0id commented on July 18, 2024

Hi Aman,

check line 412.

There is something like this:

  { ./bjam -q                         \
         target-os=linux              \
         toolset=$TOOLSET             \
         $cxxflags                    \
         link=static                  \
         threading=multi              \
         --layout=versioned           \
         -sICONV_PATH=`pwd`/../libiconv-libicu-android/armeabi \
         -sICU_PATH=`pwd`/../libiconv-libicu-android/armeabi \
         --prefix="./../$BUILD_DIR/"  \
         $LIBRARIES                   \
         install 2>&1                 \
         || { dump "ERROR: Failed to build boost for android!" ; exit 1 ; }
  } | tee -a $PROGDIR/build.log

change it to:

  { ./bjam -q                         \
         target-os=linux              \
         toolset=$TOOLSET             \
         $cxxflags                    \
         link=static                  \
         threading=multi              \
         --layout=versioned           \
         --without-python \
         -sICONV_PATH=`pwd`/../libiconv-libicu-android/armeabi \
         -sICU_PATH=`pwd`/../libiconv-libicu-android/armeabi \
         --prefix="./../$BUILD_DIR/"  \
         $LIBRARIES                   \
         install 2>&1                 \
         || { dump "ERROR: Failed to build boost for android!" ; exit 1 ; }
  } | tee -a $PROGDIR/build.log

from boost-for-android.

Aman5692 avatar Aman5692 commented on July 18, 2024

Well i did the same, but it terminates with this

Invalid option: -w

usage: ./bjam [ options ] targets...

-a Build all targets, even if they are current.
-dx Set the debug level to x (0-9).
-fx Read x instead of Jambase.
-jx Run up to x shell commands concurrently.
-lx Limit actions to x number of seconds after which they are stopped.
-mx Maximum target output saved (kb), default is to save all output.
-n Don't actually execute the updating actions.
-ox Write the updating actions to file x.
-px x=0, pipes action stdout and stderr merged into action output.
-q Quit quickly as soon as a target fails.
-sx=y Set variable x=y, overriding environment.
-tx Rebuild x, even if it is up-to-date.
-v Print the version of jam and exit.
--x Option is ignored.

ERROR: Failed to build boost for android!
Done!

from boost-for-android.

Bendr0id avatar Bendr0id commented on July 18, 2024

hmm could be a missing "-"

please try:

--without-python

from boost-for-android.

Aman5692 avatar Aman5692 commented on July 18, 2024

Thanks Bendr0id,
that extra "-" did the trick

from boost-for-android.

Bendr0id avatar Bendr0id commented on July 18, 2024

;-)

i updated my posts.

from boost-for-android.

portwaypoint avatar portwaypoint commented on July 18, 2024

Same problem here; Can confirm fix works (Boost 1.55 on NDK9 within Android AOSP KitKat 4.4).

from boost-for-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.