Compile pjsip for iPhone

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

 



Hi,

I have compiled PJPROJECT for iPhone using voiphone project (http://code.google.com/p/voiphone/wiki/BuildPJsipSDK21 
) but I haven't sound. So I would try to modify ipodsound.c and re- 
compile the library. When I try to compile, I have a lot of warnings  
as you can see :

checking build system type... i386-apple-darwin9.6.0
checking host system type... arm-apple-darwin9
checking target system type... arm-apple-darwin9
checking for arm-apple-darwin9-gcc... /Developer/Platforms/ 
iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /Developer/Platforms/iPhoneOS.platform/Developer/usr/ 
bin/arm-apple-darwin9-gcc accepts -g... yes
checking for /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ 
arm-apple-darwin9-gcc option to accept ISO C89... unsupported
checking for arm-apple-darwin9-g++... arm-apple-darwin9-g++
checking whether we are using the GNU C++ compiler... yes
checking whether arm-apple-darwin9-g++ accepts -g... yes
checking for pthread_create in -lpthread... yes
checking for puts in -lwsock32... no
checking for puts in -lws2_32... no
checking for puts in -lole32... no
checking for puts in -lwinmm... no
checking for puts in -lsocket... no
checking for puts in -lrt... no
checking for puts in -lnsl... no
checking for uuid_generate in -luuid... no
checking for uuid_generate in -luuid... (cached) no
Setting PJ_M_NAME to arm
checking memory alignment... 4 bytes (default)
checking how to run the C preprocessor... /Developer/Platforms/ 
iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-cpp
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... no
checking for sys/types.h... no
checking for sys/stat.h... no
checking for stdlib.h... no
checking for string.h... no
checking for memory.h... no
checking for strings.h... no
checking for inttypes.h... no
checking for stdint.h... no
checking for unistd.h... no
checking whether byte ordering is bigendian... no
Checking if floating point is disabled... no
checking for fmod in -lm... yes
checking arpa/inet.h usability... no
checking arpa/inet.h presence... yes
aconfigure: WARNING: arpa/inet.h: present but cannot be compiled
aconfigure: WARNING: arpa/inet.h:     check for missing prerequisite  
headers?
aconfigure: WARNING: arpa/inet.h: see the Autoconf documentation
aconfigure: WARNING: arpa/inet.h:     section "Present But Cannot Be  
Compiled"
aconfigure: WARNING: arpa/inet.h: proceeding with the preprocessor's  
result
aconfigure: WARNING: arpa/inet.h: in the future, the compiler will  
take precedence
checking for arpa/inet.h... yes
checking assert.h usability... no
checking assert.h presence... yes
aconfigure: WARNING: assert.h: present but cannot be compiled
aconfigure: WARNING: assert.h:     check for missing prerequisite  
headers?
aconfigure: WARNING: assert.h: see the Autoconf documentation
aconfigure: WARNING: assert.h:     section "Present But Cannot Be  
Compiled"
aconfigure: WARNING: assert.h: proceeding with the preprocessor's result
aconfigure: WARNING: assert.h: in the future, the compiler will take  
precedence
checking for assert.h... yes
checking ctype.h usability... no
checking ctype.h presence... yes
aconfigure: WARNING: ctype.h: present but cannot be compiled
aconfigure: WARNING: ctype.h:     check for missing prerequisite  
headers?
aconfigure: WARNING: ctype.h: see the Autoconf documentation
aconfigure: WARNING: ctype.h:     section "Present But Cannot Be  
Compiled"
aconfigure: WARNING: ctype.h: proceeding with the preprocessor's result
aconfigure: WARNING: ctype.h: in the future, the compiler will take  
precedence
checking for ctype.h... yes
checking errno.h usability... no
checking errno.h presence... yes
aconfigure: WARNING: errno.h: present but cannot be compiled
aconfigure: WARNING: errno.h:     check for missing prerequisite  
headers?
aconfigure: WARNING: errno.h: see the Autoconf documentation
aconfigure: WARNING: errno.h:     section "Present But Cannot Be  
Compiled"
aconfigure: WARNING: errno.h: proceeding with the preprocessor's result
aconfigure: WARNING: errno.h: in the future, the compiler will take  
precedence
checking for errno.h... yes
checking fcntl.h usability... no
checking fcntl.h presence... yes
aconfigure: WARNING: fcntl.h: present but cannot be compiled
aconfigure: WARNING: fcntl.h:     check for missing prerequisite  
headers?
aconfigure: WARNING: fcntl.h: see the Autoconf documentation
aconfigure: WARNING: fcntl.h:     section "Present But Cannot Be  
Compiled"
aconfigure: WARNING: fcntl.h: proceeding with the preprocessor's result
aconfigure: WARNING: fcntl.h: in the future, the compiler will take  
precedence
checking for fcntl.h... yes
checking linux/socket.h usability... no
checking linux/socket.h presence... no
checking for linux/socket.h... no
checking malloc.h usability... no
checking malloc.h presence... no
checking for malloc.h... no
checking netdb.h usability... no
checking netdb.h presence... yes
aconfigure: WARNING: netdb.h: present but cannot be compiled
aconfigure: WARNING: netdb.h:     check for missing prerequisite  
headers?
aconfigure: WARNING: netdb.h: see the Autoconf documentation
aconfigure: WARNING: netdb.h:     section "Present But Cannot Be  
Compiled"
aconfigure: WARNING: netdb.h: proceeding with the preprocessor's result
aconfigure: WARNING: netdb.h: in the future, the compiler will take  
precedence
checking for netdb.h... yes
checking netinet/in_systm.h usability... no
checking netinet/in_systm.h presence... yes
aconfigure: WARNING: netinet/in_systm.h: present but cannot be compiled
aconfigure: WARNING: netinet/in_systm.h:     check for missing  
prerequisite headers?
aconfigure: WARNING: netinet/in_systm.h: see the Autoconf documentation
aconfigure: WARNING: netinet/in_systm.h:     section "Present But  
Cannot Be Compiled"
aconfigure: WARNING: netinet/in_systm.h: proceeding with the  
preprocessor's result
aconfigure: WARNING: netinet/in_systm.h: in the future, the compiler  
will take precedence
checking for netinet/in_systm.h... yes
checking netinet/in.h usability... no
checking netinet/in.h presence... yes
aconfigure: WARNING: netinet/in.h: present but cannot be compiled
aconfigure: WARNING: netinet/in.h:     check for missing prerequisite  
headers?
aconfigure: WARNING: netinet/in.h: see the Autoconf documentation
aconfigure: WARNING: netinet/in.h:     section "Present But Cannot Be  
Compiled"
aconfigure: WARNING: netinet/in.h: proceeding with the preprocessor's  
result
aconfigure: WARNING: netinet/in.h: in the future, the compiler will  
take precedence
checking for netinet/in.h... yes
checking for netinet/ip.h... no
checking ifaddrs.h usability... no
checking ifaddrs.h presence... yes
aconfigure: WARNING: ifaddrs.h: present but cannot be compiled
aconfigure: WARNING: ifaddrs.h:     check for missing prerequisite  
headers?
aconfigure: WARNING: ifaddrs.h: see the Autoconf documentation
aconfigure: WARNING: ifaddrs.h:     section "Present But Cannot Be  
Compiled"
aconfigure: WARNING: ifaddrs.h: proceeding with the preprocessor's  
result
aconfigure: WARNING: ifaddrs.h: in the future, the compiler will take  
precedence
checking for ifaddrs.h... yes
checking semaphore.h usability... no
checking semaphore.h presence... yes
aconfigure: WARNING: semaphore.h: present but cannot be compiled
aconfigure: WARNING: semaphore.h:     check for missing prerequisite  
headers?
aconfigure: WARNING: semaphore.h: see the Autoconf documentation
aconfigure: WARNING: semaphore.h:     section "Present But Cannot Be  
Compiled"
aconfigure: WARNING: semaphore.h: proceeding with the preprocessor's  
result
aconfigure: WARNING: semaphore.h: in the future, the compiler will  
take precedence
checking for semaphore.h... yes
checking setjmp.h usability... no
checking setjmp.h presence... yes
aconfigure: WARNING: setjmp.h: present but cannot be compiled
aconfigure: WARNING: setjmp.h:     check for missing prerequisite  
headers?
aconfigure: WARNING: setjmp.h: see the Autoconf documentation
aconfigure: WARNING: setjmp.h:     section "Present But Cannot Be  
Compiled"
aconfigure: WARNING: setjmp.h: proceeding with the preprocessor's result
aconfigure: WARNING: setjmp.h: in the future, the compiler will take  
precedence
checking for setjmp.h... yes
checking stdarg.h usability... no
checking stdarg.h presence... yes
aconfigure: WARNING: stdarg.h: present but cannot be compiled
aconfigure: WARNING: stdarg.h:     check for missing prerequisite  
headers?
aconfigure: WARNING: stdarg.h: see the Autoconf documentation
aconfigure: WARNING: stdarg.h:     section "Present But Cannot Be  
Compiled"
aconfigure: WARNING: stdarg.h: proceeding with the preprocessor's result
aconfigure: WARNING: stdarg.h: in the future, the compiler will take  
precedence
checking for stdarg.h... yes
checking stddef.h usability... no
checking stddef.h presence... yes
aconfigure: WARNING: stddef.h: present but cannot be compiled
aconfigure: WARNING: stddef.h:     check for missing prerequisite  
headers?
aconfigure: WARNING: stddef.h: see the Autoconf documentation
aconfigure: WARNING: stddef.h:     section "Present But Cannot Be  
Compiled"
aconfigure: WARNING: stddef.h: proceeding with the preprocessor's result
aconfigure: WARNING: stddef.h: in the future, the compiler will take  
precedence
checking for stddef.h... yes
checking stdio.h usability... no
checking stdio.h presence... yes
aconfigure: WARNING: stdio.h: present but cannot be compiled
aconfigure: WARNING: stdio.h:     check for missing prerequisite  
headers?
aconfigure: WARNING: stdio.h: see the Autoconf documentation
aconfigure: WARNING: stdio.h:     section "Present But Cannot Be  
Compiled"
aconfigure: WARNING: stdio.h: proceeding with the preprocessor's result
aconfigure: WARNING: stdio.h: in the future, the compiler will take  
precedence
checking for stdio.h... yes
checking for stdint.h... (cached) no
checking for stdlib.h... (cached) no
checking for string.h... (cached) no
checking sys/ioctl.h usability... no
checking sys/ioctl.h presence... yes
aconfigure: WARNING: sys/ioctl.h: present but cannot be compiled
aconfigure: WARNING: sys/ioctl.h:     check for missing prerequisite  
headers?
aconfigure: WARNING: sys/ioctl.h: see the Autoconf documentation
aconfigure: WARNING: sys/ioctl.h:     section "Present But Cannot Be  
Compiled"
aconfigure: WARNING: sys/ioctl.h: proceeding with the preprocessor's  
result
aconfigure: WARNING: sys/ioctl.h: in the future, the compiler will  
take precedence
checking for sys/ioctl.h... yes
checking sys/select.h usability... no
checking sys/select.h presence... yes
aconfigure: WARNING: sys/select.h: present but cannot be compiled
aconfigure: WARNING: sys/select.h:     check for missing prerequisite  
headers?
aconfigure: WARNING: sys/select.h: see the Autoconf documentation
aconfigure: WARNING: sys/select.h:     section "Present But Cannot Be  
Compiled"
aconfigure: WARNING: sys/select.h: proceeding with the preprocessor's  
result
aconfigure: WARNING: sys/select.h: in the future, the compiler will  
take precedence
checking for sys/select.h... yes
checking sys/socket.h usability... no
checking sys/socket.h presence... yes
aconfigure: WARNING: sys/socket.h: present but cannot be compiled
aconfigure: WARNING: sys/socket.h:     check for missing prerequisite  
headers?
aconfigure: WARNING: sys/socket.h: see the Autoconf documentation
aconfigure: WARNING: sys/socket.h:     section "Present But Cannot Be  
Compiled"
aconfigure: WARNING: sys/socket.h: proceeding with the preprocessor's  
result
aconfigure: WARNING: sys/socket.h: in the future, the compiler will  
take precedence
checking for sys/socket.h... yes
checking sys/time.h usability... no
checking sys/time.h presence... yes
aconfigure: WARNING: sys/time.h: present but cannot be compiled
aconfigure: WARNING: sys/time.h:     check for missing prerequisite  
headers?
aconfigure: WARNING: sys/time.h: see the Autoconf documentation
aconfigure: WARNING: sys/time.h:     section "Present But Cannot Be  
Compiled"
aconfigure: WARNING: sys/time.h: proceeding with the preprocessor's  
result
aconfigure: WARNING: sys/time.h: in the future, the compiler will take  
precedence
checking for sys/time.h... yes
checking sys/timeb.h usability... no
checking sys/timeb.h presence... yes
aconfigure: WARNING: sys/timeb.h: present but cannot be compiled
aconfigure: WARNING: sys/timeb.h:     check for missing prerequisite  
headers?
aconfigure: WARNING: sys/timeb.h: see the Autoconf documentation
aconfigure: WARNING: sys/timeb.h:     section "Present But Cannot Be  
Compiled"
aconfigure: WARNING: sys/timeb.h: proceeding with the preprocessor's  
result
aconfigure: WARNING: sys/timeb.h: in the future, the compiler will  
take precedence
checking for sys/timeb.h... yes
checking for sys/types.h... (cached) no
checking time.h usability... no
checking time.h presence... yes
aconfigure: WARNING: time.h: present but cannot be compiled
aconfigure: WARNING: time.h:     check for missing prerequisite headers?
aconfigure: WARNING: time.h: see the Autoconf documentation
aconfigure: WARNING: time.h:     section "Present But Cannot Be  
Compiled"
aconfigure: WARNING: time.h: proceeding with the preprocessor's result
aconfigure: WARNING: time.h: in the future, the compiler will take  
precedence
checking for time.h... yes
checking for unistd.h... (cached) no
checking winsock.h usability... no
checking winsock.h presence... no
checking for winsock.h... no
checking winsock2.h usability... no
checking winsock2.h presence... no
checking for winsock2.h... no
checking for mswsock.h... no
checking ws2tcpip.h usability... no
checking ws2tcpip.h presence... no
checking for ws2tcpip.h... no
checking uuid/uuid.h usability... no
checking uuid/uuid.h presence... yes
aconfigure: WARNING: uuid/uuid.h: present but cannot be compiled
aconfigure: WARNING: uuid/uuid.h:     check for missing prerequisite  
headers?
aconfigure: WARNING: uuid/uuid.h: see the Autoconf documentation
aconfigure: WARNING: uuid/uuid.h:     section "Present But Cannot Be  
Compiled"
aconfigure: WARNING: uuid/uuid.h: proceeding with the preprocessor's  
result
aconfigure: WARNING: uuid/uuid.h: in the future, the compiler will  
take precedence
checking for uuid/uuid.h... yes
checking for net/if.h... no
Setting PJ_OS_NAME to arm-apple-darwin9
Setting PJ_HAS_ERRNO_VAR to 1
Setting PJ_HAS_HIGH_RES_TIMER to 1
Setting PJ_HAS_MALLOC to 1
Setting PJ_NATIVE_STRING_IS_UNICODE to 0
Setting PJ_ATOMIC_VALUE_TYPE to long
checking if inet_aton() is available... no
checking if inet_pton() is available... no
checking if inet_ntop() is available... no
checking if getaddrinfo() is available... no
checking if sockaddr_in has sin_len member... no
checking if socklen_t is available... no
checking if SO_ERROR is available... no
checking if pthread_rwlock_t is available... no
checking if pthread_rwlock_t is available with  
_POSIX_READER_WRITER_LOCKS... no
checking if pthread_mutexattr_settype() is available... no
checking if pthread_mutexattr_t has recursive member... no
checking ioqueue backend... select()
checking sys/soundcard.h usability... no
checking sys/soundcard.h presence... no
checking for sys/soundcard.h... no
checking linux/soundcard.h usability... no
checking linux/soundcard.h presence... no
checking for linux/soundcard.h... no
checking machine/soundcard.h usability... no
checking machine/soundcard.h presence... no
checking for machine/soundcard.h... no
Checking sound device backend... AudioQueue
Checking if small filter is disabled... no
Checking if large filter is disabled... no
Checking if Speex AEC is disabled...yes
Checking if G.711 codec is disabled...no
Checking if L16 codecs are disabled...yes
Checking if GSM codec is disabled...no
Checking if G.722 codec is disabled...yes
Checking if Speex codec is disabled...yes
Checking if iLBC codec is disabled...yes
Skipping libsamplerate detection
Skipping Intel IPP settings (not wanted)
Checking if SSL support is disabled... yes
checking if select() needs correct nfds... no (default)
** Decided that select() doesn't need correct nfds (please check)
checking if pj_thread_create() should enforce stack size... no (default)
checking if pj_thread_create() should allocate stack... no (default)
** Setting non-blocking recv() retval to EAGAIN (please check)
** Setting non-blocking connect() retval to EINPROGRESS (please check)
aconfigure: creating ./config.status
config.status: creating build.mak
config.status: creating build/os-auto.mak
config.status: creating pjlib/build/os-auto.mak
config.status: creating pjlib-util/build/os-auto.mak
config.status: creating pjmedia/build/os-auto.mak
config.status: creating pjsip/build/os-auto.mak
config.status: creating third_party/build/portaudio/os-auto.mak
config.status: creating third_party/build/os-auto.mak
config.status: creating pjlib/include/pj/compat/os_auto.h
config.status: pjlib/include/pj/compat/os_auto.h is unchanged
config.status: creating pjlib/include/pj/compat/m_auto.h
config.status: pjlib/include/pj/compat/m_auto.h is unchanged
config.status: creating pjmedia/include/pjmedia/config_auto.h
config.status: pjmedia/include/pjmedia/config_auto.h is unchanged
config.status: creating pjmedia/include/pjmedia-codec/config_auto.h
config.status: pjmedia/include/pjmedia-codec/config_auto.h is unchanged
config.status: creating pjsip/include/pjsip/sip_autoconf.h
config.status: pjsip/include/pjsip/sip_autoconf.h is unchanged


And if I try to do make dep, I have an error like : "error: stddef.h:  
No such file or directory In file included from ../src/pj/ 
ioqueue_select.c:32:" for all the file which are not in pjproject (C  
or C++ headers). And after I have the error :
.pjlib-arm-apple-darwin9.depend:1: *** missing separator.  Stop.
make[1]: *** [depend] Error 2
make: *** [dep] Error 1

There is no difference between the last compilation and now except  
that I have try to compile other librairies with the iPhone SDK.
I am on Mac OS 10.5.6, the version of pjproject is 1.0 and I have  
tried with the iPhone SDK 2.1 and 2.2.
I have try to compile the last pjproject which have compiled one time  
and try with a new project and I have always the same problem.

Can you help me ?

Regards

Ma?lle








[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