pjsua in xcode, missing include files?

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

 



I'm working on getting pjsua to build in Xcode and am almost there?  I've
got the libraries compiled, added them to the project/target, deleted
template main.c and added main.c/pjsua_app.c/main_rtems.c, but noticed
that the included main_rtems.c from pjlib/src/pjlib-test tries to include
files that don't exist anywhere on my comp or in pjsip (bsp.h, confdefs.h,
rtems.h).  Are these what I'm missing?  What are they and where do I get
them from?

Here's my build log:

---------------------------------------------------------------------

Build pjsua of project pjsua with configuration Debug

CompileC
build/pjsua.build/Debug/pjsua.build/Objects-normal/x86_64/main_rtems-742B35
F5B2AB6248.o ../../../pjlib/src/pjlib-test/main_rtems.c normal x86_64 c
com.apple.compilers.gcc.4_2
cd /Users/David/Projects/PJSUA/pjsip-apps/src/pjsua
setenv LANG en_US.US-ASCII
/Developer/usr/bin/gcc-4.2 -x c -arch x86_64 -fmessage-length=0 -pipe
-std=gnu99 -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type
-Wunused-variable -isysroot /Developer/SDKs/MacOSX10.6.sdk
-mfix-and-continue -mmacosx-version-min=10.6 -gdwarf-2 -iquote
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/build/pjsua.build/Debug/pj
sua.build/pjsua-generated-files.hmap
-I/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/build/pjsua.build/Debug/
pjsua.build/pjsua-own-target-headers.hmap
-I/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/build/pjsua.build/Debug/
pjsua.build/pjsua-all-target-headers.hmap -iquote
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/build/pjsua.build/Debug/pj
sua.build/pjsua-project-headers.hmap
-F/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/build/Debug
-I/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/build/Debug/include
-I/Developer/SDKs/MacOSX10.6.sdk/usr/include/libxml2
-I../../../pjlib/include -I../../../pjlib-util/include
-I../../../pjmedia/include -I../../../pjnath/include
-I../../../pjsip/include
-I/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/build/pjsua.build/Debug/
pjsua.build/DerivedSources/x86_64
-I/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/build/pjsua.build/Debug/
pjsua.build/DerivedSources -c
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c -o
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/build/pjsua.build/Debug/pj
sua.build/Objects-normal/x86_64/main_rtems-742B35F5B2AB6248.o

/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c:37:17: error: bsp.h: No such file or directory
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c:70: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'Init'
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c:73:22: error: confdefs.h: No such file or directory
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c:74:19: error: rtems.h: No such file or directory
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c:78:32: error: rtems/rtems_bsdnet.h: No such file or
directory
In file included from
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c:79:
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:48:2: warning: #warning
"RTEMS_BSP_NETWORK_DRIVER_NAME is not defined"
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:53:2: warning: #warning
"RTEMS_BSP_NETWORK_DRIVER_ATTACH is not defined"
In file included from
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c:79:
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:82: warning: 'struct rtems_bsdnet_ifconfig'
declared inside parameter list
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:82: warning: its scope is only this definition
or declaration, which is probably not what you want
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:83: error: variable 'loopback_config' has
initializer but incomplete type
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:84: warning: excess elements in struct
initializer
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:84: warning: (near initialization for
'loopback_config')
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:85: warning: excess elements in struct
initializer
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:85: warning: (near initialization for
'loopback_config')
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:86: warning: excess elements in struct
initializer
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:86: warning: (near initialization for
'loopback_config')
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:87: warning: excess elements in struct
initializer
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:87: warning: (near initialization for
'loopback_config')
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:88: warning: excess elements in struct
initializer
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:88: warning: (near initialization for
'loopback_config')
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:95: error: variable 'netdriver_config' has
initializer but incomplete type
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:96: warning: excess elements in struct
initializer
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:96: warning: (near initialization for
'netdriver_config')
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:97: warning: excess elements in struct
initializer
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:97: warning: (near initialization for
'netdriver_config')
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:100: warning: excess elements in struct
initializer
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:100: warning: (near initialization for
'netdriver_config')
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:109: warning: excess elements in struct
initializer
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:109: warning: (near initialization for
'netdriver_config')
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:110: warning: excess elements in struct
initializer
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:110: warning: (near initialization for
'netdriver_config')
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:116: warning: excess elements in struct
initializer
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:116: warning: (near initialization for
'netdriver_config')
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:119: warning: excess elements in struct
initializer
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:119: warning: (near initialization for
'netdriver_config')
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:124: error: variable 'rtems_bsdnet_config' has
initializer but incomplete type
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:125: warning: excess elements in struct
initializer
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:125: warning: (near initialization for
'rtems_bsdnet_config')
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:130: warning: excess elements in struct
initializer
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:130: warning: (near initialization for
'rtems_bsdnet_config')
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:133: warning: excess elements in struct
initializer
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:133: warning: (near initialization for
'rtems_bsdnet_config')
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:134: warning: excess elements in struct
initializer
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:134: warning: (near initialization for
'rtems_bsdnet_config')
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:135: warning: excess elements in struct
initializer
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:135: warning: (near initialization for
'rtems_bsdnet_config')
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:138: warning: excess elements in struct
initializer
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:138: warning: (near initialization for
'rtems_bsdnet_config')
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:139: warning: excess elements in struct
initializer
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:139: warning: (near initialization for
'rtems_bsdnet_config')
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:140: warning: excess elements in struct
initializer
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:140: warning: (near initialization for
'rtems_bsdnet_config')
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:141: warning: excess elements in struct
initializer
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:141: warning: (near initialization for
'rtems_bsdnet_config')
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:142: error: extra brace group at end of
initializer
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:142: error: (near initialization for
'rtems_bsdnet_config')
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:142: warning: excess elements in struct
initializer
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:142: warning: (near initialization for
'rtems_bsdnet_config')
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:143: error: extra brace group at end of
initializer
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:143: error: (near initialization for
'rtems_bsdnet_config')
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:143: warning: excess elements in struct
initializer
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/rtems_network_config.h:143: warning: (near initialization for
'rtems_bsdnet_config')
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c: In function 'POSIX_Init':
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c:113: error: storage size of 'sched_param' isn't known
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c:122: error: 'rtems_time_of_day' undeclared (first use in
this function)
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c:122: error: (Each undeclared identifier is reported only
once
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c:122: error: for each function it appears in.)
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c:122: error: expected ';' before 'fakeTime'
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c:124: error: 'RTEMS_SUCCESSFUL' undeclared (first use in
this function)
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c:124: warning: implicit declaration of function
'rtems_clock_set'
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c:124: error: 'fakeTime' undeclared (first use in this
function)
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c:137: warning: implicit declaration of function
'pthread_attr_init'
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c:144: warning: implicit declaration of function
'pthread_attr_setinheritsched'
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c:144: error: 'PTHREAD_EXPLICIT_SCHED' undeclared (first
use in this function)
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c:149: warning: implicit declaration of function
'pthread_attr_setschedpolicy'
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c:149: error: 'SCHED_RR' undeclared (first use in this
function)
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c:152: warning: implicit declaration of function
'pthread_attr_getschedparam'
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c:154: warning: implicit declaration of function
'pthread_attr_setschedparam'
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c:160: warning: implicit declaration of function
'pthread_attr_getstacksize'
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c:162: warning: implicit declaration of function
'pthread_attr_setstacksize'
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c:166: warning: implicit declaration of function
'pthread_create'
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c:113: warning: unused variable 'sched_param'
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c: In function 'pjlib_test_main':
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c:188: error: storage size of 'schedParam' isn't known
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c:193: warning: implicit declaration of function
'pthread_getschedparam'
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c:193: warning: implicit declaration of function
'pthread_self'
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c:197: warning: implicit declaration of function
'pthread_setschedparam'
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c:207: warning: cast to pointer from integer of different
size
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c:188: warning: unused variable 'schedParam'
In file included from
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c:211:
/Developer/SDKs/MacOSX10.6.sdk/usr/include/sys/socket.h: At top level:
/Developer/SDKs/MacOSX10.6.sdk/usr/include/sys/socket.h:108: error:
conflicting types for 'socklen_t'
../../../pjlib/include/pj/compat/os_darwinos.h:98: error: previous
declaration of 'socklen_t' was here
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c: In function 'initialize_network':
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c:292: error: 'unsigned32' undeclared (first use in this
function)
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c:292: error: expected ';' before 'fd'
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c:298: error: 'result' undeclared (first use in this
function)
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c:299: error: 'fd' undeclared (first use in this function)
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c:308: error: invalid use of undefined type 'struct
rtems_bsdnet_ifconfig'
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c:309: error: invalid use of undefined type 'struct
rtems_bsdnet_ifconfig'
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c:310: error: invalid use of undefined type 'struct
rtems_bsdnet_config'
/Users/David/Projects/PJSUA/pjsip-apps/src/pjsua/../../../pjlib/src/pjlib-t
est/main_rtems.c:312: warning: implicit declaration of function
'rtems_bsdnet_initialize_network'




[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