pocoproject / conan-poco

Conan.io package for POCO C++ Libraries
17 stars 28 forks source link

Problems when compile for Android #42

Closed paulocoutinhox closed 5 years ago

paulocoutinhox commented 5 years ago

Hi, im with a problem while compile poco project for android, but the real problem is when compile openssl that poco depends on it. I get this error:

aes-armv4.S:358:2: error: out of range immediate fixup value
 sub r10,r3,#AES_encrypt-AES_Te @ Te
 ^
aes-armv4.S:994:2: error: out of range immediate fixup value
 sub r10,r3,#AES_decrypt-AES_Td @ Td
 ^
make[3]: *** [aes-armv4.o] Error 1
make[2]: *** [subdirs] Error 1
make[1]: *** [build_crypto] Error 1
OpenSSL/1.0.2o@conan/stable: 
OpenSSL/1.0.2o@conan/stable: ERROR: Package '534df50dac7c680f5f1cff0af81b32be7b5b5a24' build failed
OpenSSL/1.0.2o@conan/stable: WARN: Build folder /Users/paulo/.conan/data/OpenSSL/1.0.2o/conan/stable/build/534df50dac7c680f5f1cff0af81b32be7b5b5a24
ERROR: OpenSSL/1.0.2o@conan/stable: Error in build() method, line 112
    self.unix_build(config_options_string)
while calling 'unix_build', line 208
    self.run_in_src("make", show_output=True)
while calling 'run_in_src', line 134
    self.run(command)
    ConanException: Error 512 while executing make
make: *** [conan-android] Error 1

I dont know why, it is compiling for "armv4.s".

My profile:

include(default)

[settings]
os=Android
os.api_level=21
compiler=clang
compiler.version=7.0
arch=armv7

[build_requires]
android-ndk/r18@theodelrieu/testing

And my command is:

conan install ../../ --profile android_profile -s arch=armv7 --build=missing --update
conan install ../../ --profile android_profile -s arch=armv8 --build=missing --update
conan install ../../ --profile android_profile -s arch=x86 --build=missing --update 
conan install ../../ --profile android_profile -s arch=x86_64 --build=missing --update

And my conanfile.txt is:

[requires]
Poco/1.9.0@pocoproject/stable

[generators]
cmake

Can anyone help me?

uilianries commented 5 years ago

Hi @prsolucoes !

Please, move this issue to https://github.com/conan-community/community/issues/

Since OpenSSL is a package maintained by Conan Community, this project is only to solve problems related to Poco + Conan.

paulocoutinhox commented 5 years ago

Hi,

Ok, moved.

Thanks.

uilianries commented 5 years ago

Please close this one.