compilation error building 1.8.10 (latest trunk) for iphone simulator SDK 4.2

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

 



Hi Thomas,

This is an unrelated compilation error.

You have to set your config_site.h to the following:
#define PJ_CONFIG_IPHONE 1
#include <pj/config_site_sample.h>
(Reference: http://trac.pjsip.org/repos/wiki/Getting-Started/iPhone)

Regards,
Ming

On Wed, Mar 2, 2011 at 5:27 PM, Thomas Martin <tmemail at gmx.de> wrote:
> Hi Ming,
>
> thanks for your response.
>
> I just updated to r3435 - the compilation for device still completes without errors.
>
> The compilation for simulator terminates - with the following error now:
>
>
> /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.0 -c -Wall -DPJ_AUTOCONF=1 -O2 -Wno-unused-label -DPJ_SDK_NAME="\"iPhoneSimulator4.2.sdk\"" ?-isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk ? ?-I/Users/thomas/Projects/pjLibs/simulator/pjproject/third_party/build/speex -I/Users/thomas/Projects/pjLibs/simulator/pjproject/third_party/speex/include -DPJMEDIA_AUDIO_DEV_HAS_WMME=0 -I../include -I../../pjlib/include -I../../pjlib-util/include -I../../pjnath/include -I../.. -I/Users/thomas/Projects/pjLibs/simulator/pjproject/third_party/build/srtp -I/Users/thomas/Projects/pjLibs/simulator/pjproject/third_party/srtp/crypto/include -I/Users/thomas/Projects/pjLibs/simulator/pjproject/third_party/srtp/include ?\
> ? ? ? ? ? ? ? ?-ooutput/pjmedia-audiodev-arm-apple-darwin9/errno.o \
> ? ? ? ? ? ? ? ?../src/pjmedia-audiodev/errno.c
> ../src/pjmedia-audiodev/errno.c:23:26: error: portaudio.h: No such file or directory
> ../src/pjmedia-audiodev/errno.c: In function ?pjmedia_audiodev_strerror?:
> ../src/pjmedia-audiodev/errno.c:104: warning: implicit declaration of function ?Pa_GetErrorText?
> make[2]: *** [output/pjmedia-audiodev-arm-apple-darwin9/errno.o] Error 1
> make[1]: *** [pjmedia-audiodev] Error 2
> make: *** [all] Error 1
>
> Best regards,
>
> -Thomas
>
>
> On Mar 2, 2011, at 3:45 , Ming wrote:
>
>> Hi Thomas,
>>
>> Thanks for the report. We just fixed this in r3433.
>>
>> Best regards,
>> Ming
>>
>> On Wed, Mar 2, 2011 at 5:45 AM, Thomas Martin <tmemail at gmx.de> wrote:
>>> Hello Everybody,
>>>
>>> today I have svn-updated my 1.8.10 and successfully recompiled for the device.
>>>
>>> However, compiling for the simulator creates the following error:
>>>
>>> /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.0 -c -Wall -DPJ_AUTOCONF=1 -O2 -Wno-unused-label -DPJ_SDK_NAME="\"iPhoneSimulator4.2.sdk\"" ?-isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk ? ?-I../include \
>>> ? ? ? ? ? ? ? ?-ooutput/pjlib-arm-apple-darwin9/os_info_iphone.o \
>>> ? ? ? ? ? ? ? ?../src/pj/os_info_iphone.m
>>> In file included from ../src/pj/os_info_iphone.m:23:
>>> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h:33: error: syntax error before ?}? token
>>> make[2]: *** [output/pjlib-arm-apple-darwin9/os_info_iphone.o] Error 1
>>> make[1]: *** [pjlib] Error 2
>>> make: *** [all] Error 1
>>>
>>> after:
>>>
>>> export DEVPATH=/Developer/Platforms/iPhoneSimulator.platform/Developer
>>> export CC=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.0
>>>
>>> ./configure-iphone
>>>
>>> make dep
>>> make clean
>>> make
>>>
>>> The config_site.h looks like this:
>>>
>>> #define PJ_CONFIG_IPHONE 1
>>> #include <pj/config_site_sample.h>
>>>
>>> #undef __MAC_OS_X_VERSION_MIN_REQUIRED
>>> #undef __MAC_OS_X_VERSION_MAX_ALLOWED
>>> #define __MAC_OS_X_VERSION_MIN_REQUIRED __MAC_OS_X_VERSION_10_4
>>> #define __MAC_OS_X_VERSION_MAX_ALLOWED __MAC_OS_X_VERSION_10_5
>>>
>>> Looking forward to a hint ...
>>>
>>> Thanks in advance!
>>>
>>> -Thomas
>>>
>>>
>>> _______________________________________________
>>> 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
>>>
>>
>> _______________________________________________
>> 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
>
>
> _______________________________________________
> 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
>



[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