cloudjanak / idoubs

Automatically exported from code.google.com/p/idoubs
0 stars 0 forks source link

idoubs xcode project fails to compile for iPad(ios3.2) #18

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Checked out r27 of the idoubs source
2. While the compile works fine for iPhone (iOS4.1), it fails for iPad (iOS3.2)
3. Get the following error

/InCallViewController?.m:209: error: accessing unknown 'cornerRadius' component 
of a property

4. If I stub out that line of code, the linker fails with the following error

Undefined symbols:

    "posix_memalign", referenced from:

        av_malloc in libavutil.a(mem.o) av_strdup in libavutil.a(mem.o) av_mallocz in libavutil.a(mem.o) 

What is the expected output? What do you see instead?
iPad compile should have been successful and be capable of receiving incoming 
video. No outgoing video since iPad does not have a camera device
unlike the iPhone which does.

What version of the product are you using? On what operating system?

iPad iOS3.2 device

Please provide any additional information below.

 Comment by project member boss...@yahoo.fr,  Oct 05 (3 days ago)

If you look at the errors you will see that they are all related to 
'AVCaptureDevice' @interface. This @interface is only available on a real 
device and on iOS4 and later. In the code source, this @interface is guarded by 
TARGET_OS_EMBEDDED macro. I will add iOS version.
Comment by project member boss...@yahoo.fr, Oct 05 (3 days ago)

@saket424 Revision 27 should solve the problem. This means that you won't be 
able to capture video on an iPad running iOS 3.2. Off course you will be able 
to display the incoming stream.
Delete comment
Comment by saket424, Yesterday (40 hours ago)

I now get the following errors when I try compiling for iPad (iOS3.2) for video 
receive-only, no camera If I stub out the cornerradius error, I still get a 
linker error also attached.

CompileC 
/Users/pktapps/Projects/mydoubs/doubango/tinySAK/iDoubs.build/Debug-iphonesimula
tor/iDoubs.build/Objects-normal/i386/InCallViewController?.o 
Classes/InCallViewController?.m normal i386 objective-c 
com.apple.compilers.gcc.4_2 cd /Users/pktapps/Projects/mydoubs/iphone/idoubs 
setenv LANG en_US.US-ASCII setenv PATH 
"/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/
bin:/usr/bin:/bin:/usr/sbin:/sbin" 
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -x 
objective-c -arch i386 -fmessage-length=0 -pipe -std=c99 -Wno-trigraphs 
-fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable 
-DIPHONE_OS_VERSION_MIN_REQUIRED=30200 -isysroot 
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.
sdk -fexceptions -fvisibility=hidden -mmacosx-version-min=10.5 -gdwarf-2 
-fobjc-abi-version=2 -fobjc-legacy-dispatch 
-DIPHONE_OS_VERSION_MIN_REQUIRED=30200 -iquote 
/Users/pktapps/Projects/mydoubs/doubango/tinySAK/iDoubs.build/Debug-iphonesimula
tor/iDoubs.build/iDoubs-generated-files.hmap 
-I/Users/pktapps/Projects/mydoubs/doubango/tinySAK/iDoubs.build/Debug-iphonesimu
lator/iDoubs.build/iDoubs-own-target-headers.hmap 
-I/Users/pktapps/Projects/mydoubs/doubango/tinySAK/iDoubs.build/Debug-iphonesimu
lator/iDoubs.build/iDoubs-all-target-headers.hmap -iquote 
/Users/pktapps/Projects/mydoubs/doubango/tinySAK/iDoubs.build/Debug-iphonesimula
tor/iDoubs.build/iDoubs-project-headers.hmap 
-F/Users/pktapps/Projects/mydoubs/doubango/tinySAK/Debug-iphonesimulator 
-I/Users/pktapps/Projects/mydoubs/doubango/tinySAK/Debug-iphonesimulator/include
 -I../../Doubango/tinySAK/src -I../../Doubango/tinySIGCOMP/src 
-I../../Doubango/tinyNET/src -I../../Doubango/tinyHTTP/include 
-I../../Doubango/tinyXCAP/include -I../../Doubango/tinyIPSec/src 
-I../../Doubango/tinyMEDIA/include -I../../Doubango/tinySDP/include 
-I../../Doubango/tinyRTP/include -I../../Doubango/tinyMSRP/include 
-I../../Doubango/tinySIP/include -I../../Doubango/tinyDAV/include 
-I/Users/pktapps/Projects/mydoubs/doubango/tinySAK/iDoubs.build/Debug-iphonesimu
lator/iDoubs.build/DerivedSources?/i386 
-I/Users/pktapps/Projects/mydoubs/doubango/tinySAK/iDoubs.build/Debug-iphonesimu
lator/iDoubs.build/DerivedSources? -DDEBUG_LEVEL=DEBUG_LEVEL_INFO -include 
/var/folders/tO/tOkD+KJDHJu0WuuLosbR-E+++TI/-Caches-/com.apple.Xcode.501/SharedP
recompiledHeaders?/UIKit-fnvnbrfgqsivhscimlipemvgrndq/UIKit.h -c 
/Users/pktapps/Projects/mydoubs/iphone/idoubs/Classes/InCallViewController?.m 
-o 
/Users/pktapps/Projects/mydoubs/doubango/tinySAK/iDoubs.build/Debug-iphonesimula
tor/iDoubs.build/Objects-normal/i386/InCallViewController?.o

/Users/pktapps/Projects/mydoubs/iphone/idoubs/Classes/InCallViewController?.m: 
In function '-initWithNibName:bundle:?': 
/Users/pktapps/Projects/mydoubs/iphone/idoubs/Classes/InCallViewController?.m:20
9: error: accessing unknown 'cornerRadius' component of a property

Ld 
/Users/pktapps/Projects/mydoubs/doubango/tinySAK/Debug-iphonesimulator/iDoubs.ap
p/iDoubs normal i386 cd /Users/pktapps/Projects/mydoubs/iphone/idoubs setenv 
MACOSX_DEPLOYMENT_TARGET 10.5 setenv PATH 
"/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/
bin:/usr/bin:/bin:/usr/sbin:/sbin" 
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch 
i386 -isysroot 
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.
sdk -L/Users/pktapps/Projects/mydoubs/doubango/tinySAK/Debug-iphonesimulator 
-L../../Doubango/thirdparties/iphone/lib/i386 
-F/Users/pktapps/Projects/mydoubs/doubango/tinySAK/Debug-iphonesimulator 
-filelist 
/Users/pktapps/Projects/mydoubs/doubango/tinySAK/iDoubs.build/Debug-iphonesimula
tor/iDoubs.build/Objects-normal/i386/iDoubs.LinkFileList? 
-mmacosx-version-min=10.5 -framework Foundation -framework UIKit -lavutil 
-lavcore -lswscale -lavcodec -lx264 -lgsm -lopencore-amrnb -logg -ltheora 
-ltheoraenc -Xlinker -objc_abi_version -Xlinker 2 -lresolv -framework 
AddressBook? -framework AddressBookUI -framework AudioToolbox? -ltinyDAV 
-ltinyHTTP -ltinyIPSEC -ltinyMEDIA -ltinyMSRP -ltinyNET -ltinyRTP -ltinySAK 
-ltinySDP -ltinySIGCOMP -ltinySIP -ltinySMS -ltinyXCAP -framework CoreGraphics? 
-framework AVFoundation -lsqlite3.0 -framework CFNetwork -o 
/Users/pktapps/Projects/mydoubs/doubango/tinySAK/Debug-iphonesimulator/iDoubs.ap
p/iDoubs

Undefined symbols:

    "posix_memalign", referenced from:

        av_malloc in libavutil.a(mem.o) av_strdup in libavutil.a(mem.o) av_mallocz in libavutil.a(mem.o) 

ld: symbol(s) not found collect2: ld returned 1 exit status

Original issue reported on code.google.com by saket...@gmail.com on 9 Oct 2010 at 9:52

GoogleCodeExporter commented 8 years ago

Original comment by boss...@yahoo.fr on 11 Oct 2010 at 4:19

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Just an update for people may have the same problem.

In order to make it run on iPad, I managed to compile the source with sdk 4.2 
beta3. Also after upgrading the OS on iPad to 4.2 beta 3(8C5115c), everything 
works great, I have incoming video call on my iPad.

Original comment by android...@gmail.com on 28 Oct 2010 at 10:36

GoogleCodeExporter commented 8 years ago
@android.kc
Thanks for the info

Original comment by boss...@yahoo.fr on 29 Oct 2010 at 10:13

GoogleCodeExporter commented 8 years ago
Fixed in iDoubs v2.x

Original comment by boss...@yahoo.fr on 4 Jun 2011 at 2:07