Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpprest for android #189

Closed
alexxxgu opened this issue Mar 21, 2018 · 6 comments
Closed

cpprest for android #189

alexxxgu opened this issue Mar 21, 2018 · 6 comments
Assignees
Labels
blocked blocked by other issue bug feedback Waiting for feedback from the original issue author. Gets closed after several weeks if no feedback

Comments

@alexxxgu
Copy link

alexxxgu commented Mar 21, 2018

Hi, I'm trying to build cpprestsdk 2.10.1 & 2.9.1 using clang, standalone toochain, and conan profile.
include from CXXFLAGS= -fPIE -fPIC -I$standalone_toolchain/include/c++/4.9.x is missing

...found 176 targets...
...updating 13 targets...
common.copy system/lib/jamroot.jam
clang-linux.compile.c++.without-pth bin/system/build/49fab69930d5ddcba6d43c790dc712bb/error_code.o
In file included from system/src/error_code.cpp:16:
In file included from system/include/boost/system/error_code.hpp:14:
In file included from system/include/boost/system/config.hpp:13:
In file included from /home/user/.conan/data/boost_config/1.66.0/bincrafters/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/config/include/boost/config.hpp:44:
/home/user/.conan/data/boost_config/1.66.0/bincrafters/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/config/include/boost/config/detail/select_stdlib_config.hpp:18:12: fatal error: 'cstddef' file not found
#  include <cstddef>
           ^~~~~~~~~
1 error generated.

  "clang++" -c -x c++ -fPIC -stdlib=libc++ -O0 -g -fno-inline -Wall -g -fPIC -stdlib=libc++ -DBOOST_ALL_NO_LIB=1 -DBOOST_SYSTEM_STATIC_LINK=1 -I"/home/user/.conan/data/boost_assert/1.66.0/bincrafters/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/assert/include" -I"/home/user/.conan/data/boost_config/1.66.0/bincrafters/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/config/include" -I"/home/user/.conan/data/boost_core/1.66.0/bincrafters/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/core/include" -I"/home/user/.conan/data/boost_predef/1.66.0/bincrafters/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/predef/include" -I"/home/user/.conan/data/boost_winapi/1.66.0/bincrafters/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/winapi/include" -I"system/include" -o "bin/system/build/49fab69930d5ddcba6d43c790dc712bb/error_code.o" "system/src/error_code.cpp"

boost/1.66.0@conan/stable is ok.

@solvingj solvingj self-assigned this Mar 29, 2018
@solvingj
Copy link
Member

so sorry for the delay, there was some issue with github notifications.

@SSE4 SSE4 self-assigned this Apr 4, 2018
@SSE4
Copy link
Member

SSE4 commented Apr 4, 2018

hi @alexxxgu
from your build log, it seems like actually boost config fails to build.
could you possibly share your profile?

@alexxxgu
Copy link
Author

alexxxgu commented Apr 4, 2018

Hi, it's just an Android profile from Conan article:

standalone_toolchain=/mnt/c/Android/arm_21_toolchain16
target_host=arm-linux-androideabi
cc_compiler=clang
cxx_compiler=clang++

[settings]
compiler=clang
compiler.version=5.0
compiler.libcxx=libc++
os=Android
os.api_level=21
arch=armv7
build_type=Debug

[env]
CONAN_CMAKE_FIND_ROOT_PATH=$standalone_toolchain/sysroot
PATH=[$standalone_toolchain/bin]
CHOST=$target_host
AR=$target_host-ar
AS=$target_host-as
RANLIB=$target_host-ranlib
CC=$target_host-$cc_compiler
CXX=$target_host-$cxx_compiler
LD=$target_host-ld
STRIP=$target_host-strip
CFLAGS= -fPIE -fPIC -DNONCLFLAG -I$standalone_toolchain/include/c++/4.9.x
CXXFLAGS= -fPIE -fPIC -DNONCXXFLAG -I$standalone_toolchain/include/c++/4.9.x
LDFLAGS= -pie

@SSE4
Copy link
Member

SSE4 commented Apr 18, 2018

I am back on this one. it seems to be the problem that custom CFLAGS/CXXFLAGS/LDFLAGS are not applied for boost, I'll fix it soon.

@SSE4
Copy link
Member

SSE4 commented Jul 9, 2018

@alexxxgu despite of opened issues against conan and cpprestsdk, latest recipe builds fine for Android in my case. please check on your side.

@SSE4 SSE4 added the feedback Waiting for feedback from the original issue author. Gets closed after several weeks if no feedback label Jul 9, 2018
@no-response
Copy link

no-response bot commented Nov 10, 2018

This issue has been automatically closed because there has been no response to our request for more information or feedback from the original author. With only the information that is currently in the issue, we don't have enough information to take further action. Please reach out if you have or find the answers we need so that we can investigate further.

@no-response no-response bot closed this as completed Nov 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked blocked by other issue bug feedback Waiting for feedback from the original issue author. Gets closed after several weeks if no feedback
Projects
None yet
Development

No branches or pull requests

4 participants