PJSIP for iOS (ARMv6 and ARMv7)

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

 



Thanks for the info.. I am running now the universal library from armv6 and armv7 with no warnings and no issues so far 

One more thing, If you I want to compile pjsip one more time for the simulator. how can I merge the three libraries(Armv6, Armv7 and Simulator) into one universal library.

1. Can I pass three libraries to lipo to get one universal library? if yes what ?arch I should pass with the one from the simulator.
2. If I can not pass 3 libraries to lipo I can merge armv6 and armv7 into a universal library then I used lipo again to merge with the simulator library into another universal library,  but what ?arch I should use with the universal arm6/arm7 library and for the simulator library when I use lipo for the second time?

Thanks again,

From: Dzmitry Yablonski 
Sent: Friday, June 24, 2011 3:32 PM
To: pjsip list 
Subject: Re: PJSIP for iOS (ARMv6 and ARMv7)

I have added only next flags for armv6 compilation and pjproject have been compiled successfully 
-march=armv6 -mcpu=arm1176jzf-s

Best regards, Dima.

On 24.06.2011, at 16:24, AsH wrote:


  that?s right.. what flags do I need to pass to CFLAGS  and LDFLAGS  to build for Armv6?

  Thanks... 

  From: Dzmitry Yablonski 
  Sent: Friday, June 24, 2011 5:21 AM
  To: pjsip list 
  Subject: Re: PJSIP for iOS (ARMv6 and ARMv7)

  Hi  

  You should compile separately for both arch armv6 and armv7 and combine libraries with tool lipo

  For exemple combining libpjmedia armv6 and armv7 to universal librarary:
  lipo -arch armv6 ./lib/armv6/libpjmedia-arm-apple-darwin9.a -arch armv7 ./lib/armv7/libpjmedia-arm-apple-darwin9.a -create -output ./lib/universal/libpjmedia-arm-apple-darwin9.a

  You should  use this combined libraries in Xcode.

  Best regards, Dima 

  On 23.06.2011, at 22:45, AsH wrote:


    Hi all,

    When I compiled pjsip for the first time I got the warning about CPU_SUBTYPE_ARM_ALL subtype is deprecated. so I changed my user.mak to add:

    export CFLAGS += -march=armv7 -mcpu=arm1176jzf-s -mcpu=cortex-a8
    export LDFLAGS += -march=armv7 -mcpu=arm1176jzf-s -mcpu=cortex-a8

    This compiled with no warnings.

    In xCode I had to set my project to build only for Active Archi. and I was getting 0 errors 0 warnings when I build as expected.

    My problem is when I started the process of submitting the APP to the APP store it got rejected immediately  due the lack of ARMv6.. 

    So I recompiled pjsip for all ARM and I got the CPU_SUBTYPE_ARM_ALL , in xCodeI got the same error 400 times but it still compiled and the initial submit of the APP passed with no problems.. now I am waiting on the review stage.

    My question is how can I compile for both ARMv6/7 to support more phones without using CPU_SUBTYPE_ARM_ALL???

    I know I can force the APP to run only on iPhone4 then I do not have to use ARMv6 . but I want to support more devices is there always to pass extra flags to CFLAGS and LDFLAGS  to add ARMv6. because I hate to see all those warnings when I use CPU_SUBTYPE_ARM_ALL .

    My development environment is MAC mini and I am using xCode 4 and sdk for iOS4.3.

    Thanks for you help.
    _______________________________________________
    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





--------------------------------------------------------------------------------
_______________________________________________
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/20110705/b8e26169/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 1041 bytes
Desc: not available
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20110705/b8e26169/attachment.png>


[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