configure-iphone can't detect openh264

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Remove libopenh264.dylib and use the static lib instead.
Also double check the architecture of the lib.

BR,

frank.zheng

2015-01-19 17:51 GMT+08:00 ?? <sanfarloth at gmail.com>:

> update: I digged in configure.log and find something
>
> aconfigure:7111: result: Using OpenH264 prefix... /Users/apple/openh264
> aconfigure:7118: checking OpenH264 availability
> aconfigure:7145:
> /Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/../../../Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
> -o conftest -I/Users/apple/openh264/include -O2 -Wno-unused-label
> -DPJ_SDK_NAME="\"iPhoneOS7.1.sdk\"" -arch armv7 -isysroot
> /Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk
> -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1  -L/Users/apple/openh264/lib
> -O2 -arch armv7 -isysroot
> /Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk
> -framework AudioToolbox -framework Foundation -lstdc++ conftest.c
> -lopenh264 -lm -lpthread  -framework CoreAudio -framework CoreFoundation
> -framework AudioToolbox -framework CFNetwork -framework UIKit -framework
> UIKit -framework OpenGLES -framework AVFoundation -framework CoreGraphics
> -framework QuartzCore -framework CoreVideo -framework CoreMedia >&5
> ld: warning: ignoring file /Users/apple/openh264/lib/libopenh264.dylib,
> file was built for x86_64 which is not the architecture being linked
> (armv7): /Users/apple/openh264/lib/libopenh264.dylib
> Undefined symbols for architecture armv7:
>   "_WelsCreateSVCEncoder", referenced from:
>       _main in conftest-f52882.o
> ld: symbol(s) not found for architecture armv7
> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
> aconfigure:7145: $? = 1
> aconfigure: failed program was:
> | /* confdefs.h */
> | #define PACKAGE_NAME "pjproject"
> | #define PACKAGE_TARNAME "pjproject"
> | #define PACKAGE_VERSION "2.x"
> | #define PACKAGE_STRING "pjproject 2.x"
> | #define PACKAGE_BUGREPORT ""
> | #define PACKAGE_URL ""
> | #define HAVE_LIBPTHREAD 1
> | #define HAVE_LIBM 1
> | #define PJ_M_NAME "arm"
> | #define PJ_POOL_ALIGNMENT 4
> | #define STDC_HEADERS 1
> | #define HAVE_SYS_TYPES_H 1
> | #define HAVE_SYS_STAT_H 1
> | #define HAVE_STDLIB_H 1
> | #define HAVE_STRING_H 1
> | #define HAVE_MEMORY_H 1
> | #define HAVE_STRINGS_H 1
> | #define HAVE_INTTYPES_H 1
> | #define HAVE_STDINT_H 1
> | #define HAVE_UNISTD_H 1
> | #define PJ_DARWINOS 1
> | #define PJ_HAS_FLOATING_POINT 1
> | #define PJ_HAS_ARPA_INET_H 1
> | #define PJ_HAS_ASSERT_H 1
> | #define PJ_HAS_CTYPE_H 1
> | #define PJ_HAS_ERRNO_H 1
> | #define PJ_HAS_FCNTL_H 1
> | #define PJ_HAS_LIMITS_H 1
> | #define PJ_HAS_NETDB_H 1
> | #define PJ_HAS_NETINET_IN_SYSTM_H 1
> | #define PJ_HAS_NETINET_IN_H 1
> | #define PJ_HAS_NETINET_IP_H 1
> | #define PJ_HAS_NETINET_TCP_H 1
> | #define PJ_HAS_IFADDRS_H 1
> | #define PJ_HAS_SEMAPHORE_H 1
> | #define PJ_HAS_SETJMP_H 1
> | #define PJ_HAS_STDARG_H 1
> | #define PJ_HAS_STDDEF_H 1
> | #define PJ_HAS_STDIO_H 1
> | #define PJ_HAS_STDINT_H 1
> | #define PJ_HAS_STDLIB_H 1
> | #define PJ_HAS_STRING_H 1
> | #define PJ_HAS_SYS_IOCTL_H 1
> | #define PJ_HAS_SYS_SELECT_H 1
> | #define PJ_HAS_SYS_SOCKET_H 1
> | #define PJ_HAS_SYS_TIME_H 1
> | #define PJ_HAS_SYS_TIMEB_H 1
> | #define PJ_HAS_SYS_TYPES_H 1
> | #define PJ_HAS_SYS_FILIO_H 1
> | #define PJ_HAS_SYS_SOCKIO_H 1
> | #define PJ_HAS_SYS_UTSNAME_H 1
> | #define PJ_HAS_TIME_H 1
> | #define PJ_HAS_UNISTD_H 1
> | #define PJ_HAS_NET_IF_H 1
> | #define PJ_OS_NAME "arm-apple-darwin9"
> | #define PJ_HAS_ERRNO_VAR 1
> | #define PJ_HAS_HIGH_RES_TIMER 1
> | #define PJ_HAS_MALLOC 1
> | #define PJ_NATIVE_STRING_IS_UNICODE 0
> | #define PJ_ATOMIC_VALUE_TYPE long
> | #define PJ_SOCK_HAS_INET_ATON 1
> | #define PJ_SOCK_HAS_INET_PTON 1
> | #define PJ_SOCK_HAS_INET_NTOP 1
> | #define PJ_SOCK_HAS_GETADDRINFO 1
> | #define PJ_SOCKADDR_HAS_LEN 1
> | #define PJ_HAS_SOCKLEN_T 1
> | #define PJ_HAS_SO_ERROR 1
> | #define PJ_EMULATE_RWMUTEX 0
> | /* end confdefs.h.  */
> | #include <wels/codec_api.h>
> |                                     #include <wels/codec_app_def.h>
> |
> | int
> | main ()
> | {
> | WelsCreateSVCEncoder(0);
> |
> |   ;
> |   return 0;
> | }
> aconfigure:7156: result: failed
>
> 2015-01-19 16:37 GMT+08:00 ?? <sanfarloth at gmail.com>:
>
>> Hi all,
>>
>> I was following the description to build video support on ios.
>>
>> I intstalled the openh264 library with "make OS=ios ARCH=armv7 install"
>> at /Users/Apple/openh264(modified the makefile)
>> and run configure-iphone with "./configure-iphone
>> --with-openh264=/Users/Apple/openh264" but it says checking OpenH264
>> availability was failed.
>>
>> P.S. I am running on mac
>>
>
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20150121/959ccb47/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux