DXI-Ltd / PjSIP

This project builds a iOS Static Library that provides sip connection functionalities. It exposes the DXIPJSipManager class that cam be used to connect an iOS App to a sip server.
GNU General Public License v3.0
16 stars 17 forks source link

Should the project build without errors? "Please specify target machine" error on build. #1

Open azav opened 8 years ago

azav commented 8 years ago

Mac OS 10.11.1 Xcode 7.1

  1. Open pjsip-ios.xcodeproject in Xcode
  2. Select device running iOS 9.x
  3. Build.

Results: These following errors: Please select target machine. PJ_HAS_PENTIUM is not defined! PJ_IS_LITTLE_ENDIAN is not defined! PJ_IS_BIG_ENDIAN is not defined!

PJ_CONFIG_IPHONE is defined to 1 in config_site.h. This happens on a fresh download and build attempt.

azav commented 8 years ago

A solution to this would be to go to Build Settings for the project, select Preprocessor Macros and add this entry: PJ_AUTOCONF

I've done this for the debug build and it works to build the lib. Reference here: http://www.xianwenchen.com/images/2014-07-15-4.add-pj-autoconf.png http://www.xianwenchen.com/blog/2014/07/15/how-to-make-an-ios-voip-app-with-pjsip-part-5/

bdaneshgar commented 7 years ago

I have added PJ_AUTOCONF for Preprocessor Macros, but am still getting these errors when running on my iPhone

bdaneshgar commented 7 years ago

Adding this compiler flag in the pjsip-ios.xcodeproj and not the parent project works for me.

NaiyerAghaz commented 6 years ago

I have added PJ_AUTOCONF in Preprocessor Macros, but I am getting still this error screen shot 2018-08-08 at 1 29 53 pm screen shot 2018-08-08 at 1 30 16 pm

azav commented 6 years ago

I haven't tried a recent build. If time permits, I'll see what I can do.

botradingblog1 commented 5 years ago

Take a look at the VialerSipLib example project. You need to set PJ_AUTOCONF=1 as the preprocessor macro.

Screen Shot 2019-03-13 at 6 38 35 AM
buitunglam commented 4 years ago

Adding this compiler flag in the pjsip-ios.xcodeproj and not the parent project works for me.

could you please describe more specific??. i really appreciated your help

mariouzae commented 4 years ago

@buitunglam , select the pjsip project on libraries then go to "Build Settings", filter by "Preprocessor Macros Not used in Precompiled Headers" and set PJ_AUTOCONF=1 for Debug and Release.