tuannv19 / idoubs

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

Compilation problem, with iOS SDK 4.3GM target to 4.3 device #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.follow the build source instruction in wiki to have the latest doubango and 
idoubs source code
2.compile the project with iOS sdk 4.3GM, target to 4.3; got the error message 
below

What is the expected output? What do you see instead?
Expected: compile and run the binary on device

Actual:(error)
============
Ld ./build/iDoubs.build/Debug-iphoneos/iDoubs.build/Objects-normal/armv7/iDoubs 
normal armv7
cd /Users/kencai/dev/iPhone/idoubs_43/mydoubs/iPhone/idoubs
setenv IPHONEOS_DEPLOYMENT_TARGET 4.3
setenv PATH 
"/Developer_4.3GM/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer_4.3GM
/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bi
n:/usr/local/git/bin"
/Developer_4.3GM/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch 
armv7 -isysroot 
/Developer_4.3GM/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk 
-L/Users/kencai/dev/iPhone/idoubs_43/mydoubs/iPhone/idoubs/build/Debug-iphoneos 
-L../../Doubango/thirdparties/iphone/lib/arm 
-F/Users/kencai/dev/iPhone/idoubs_43/mydoubs/iPhone/idoubs/build/Debug-iphoneos 
-filelist 
/Users/kencai/dev/iPhone/idoubs_43/mydoubs/iPhone/idoubs/./build/iDoubs.build/De
bug-iphoneos/iDoubs.build/Objects-normal/armv7/iDoubs.LinkFileList -dead_strip 
-framework Foundation -framework UIKit -lopencore-amrnb -lgsm -lavutil -lavcore 
-lswscale -lavcodec -lx264 -logg -ltheora -ltheoraenc 
-miphoneos-version-min=4.3 -lresolv -framework AddressBook -framework 
AddressBookUI -framework AudioToolbox -ltinyDAV -ltinyHTTP -ltinyIPSEC 
-ltinyMEDIA -ltinyMSRP -ltinyNET -ltinyRTP -ltinySAK -ltinySDP -ltinySIGCOMP 
-ltinySIP -ltinySMS -ltinyXCAP -framework CoreGraphics -framework AVFoundation 
-framework CoreVideo -framework CoreMedia -lsqlite3.0 -framework CFNetwork -o 
/Users/kencai/dev/iPhone/idoubs_43/mydoubs/iPhone/idoubs/./build/iDoubs.build/De
bug-iphoneos/iDoubs.build/Objects-normal/armv7/iDoubs

ld: warning: ignoring file 
../../Doubango/thirdparties/iphone/lib/arm/libopencore-amrnb.a, file was built 
for archive which is not the architecture being linked (armv7)
ld: warning: ignoring file ../../Doubango/thirdparties/iphone/lib/arm/libgsm.a, 
file was built for archive which is not the architecture being linked (armv7)
ld: warning: ignoring file 
../../Doubango/thirdparties/iphone/lib/arm/libavutil.a, file was built for 
archive which is not the architecture being linked (armv7)
ld: warning: ignoring file 
../../Doubango/thirdparties/iphone/lib/arm/libavcore.a, file was built for 
archive which is not the architecture being linked (armv7)
ld: warning: ignoring file 
../../Doubango/thirdparties/iphone/lib/arm/libswscale.a, file was built for 
archive which is not the architecture being linked (armv7)
ld: warning: ignoring file 
../../Doubango/thirdparties/iphone/lib/arm/libavcodec.a, file was built for 
archive which is not the architecture being linked (armv7)
ld: warning: ignoring file 
../../Doubango/thirdparties/iphone/lib/arm/libx264.a, file was built for 
archive which is not the architecture being linked (armv7)
ld: warning: ignoring file ../../Doubango/thirdparties/iphone/lib/arm/libogg.a, 
file was built for archive which is not the architecture being linked (armv7)
ld: warning: ignoring file 
../../Doubango/thirdparties/iphone/lib/arm/libtheora.a, file was built for 
archive which is not the architecture being linked (armv7)
ld: warning: ignoring file 
../../Doubango/thirdparties/iphone/lib/arm/libtheoraenc.a, file was built for 
archive which is not the architecture being linked (armv7)
Undefined symbols for architecture armv7:
  "_avcodec_encode_video", referenced from:
      _tdav_codec_mp4ves_encode in libtinyDAV.a(tdav_codec_mp4ves.o)
      _tdav_codec_h264_encode in libtinyDAV.a(tdav_codec_h264.o)
      _tdav_codec_h263_encode in libtinyDAV.a(tdav_codec_h263.o)
      _tdav_codec_theora_encode in libtinyDAV.a(tdav_codec_theora.o)
      _tdav_codec_h261_encode in libtinyDAV.a(tdav_codec_h261.o)
  "_avcodec_find_decoder", referenced from:
      _tdav_codec_mp4ves_open in libtinyDAV.a(tdav_codec_mp4ves.o)
      _tdav_codec_h264_init in libtinyDAV.a(tdav_codec_h264.o)
      _tdav_codec_h263_init in libtinyDAV.a(tdav_codec_h263.o)
      _tdav_codec_theora_open in libtinyDAV.a(tdav_codec_theora.o)
      _tdav_codec_h261_open in libtinyDAV.a(tdav_codec_h261.o)
  "_avcodec_alloc_frame", referenced from:
      _tdav_codec_mp4ves_open in libtinyDAV.a(tdav_codec_mp4ves.o)
      _tdav_codec_h264_open in libtinyDAV.a(tdav_codec_h264.o)
      _tdav_codec_h263_open in libtinyDAV.a(tdav_codec_h263.o)
      _tdav_codec_theora_open in libtinyDAV.a(tdav_codec_theora.o)
      _tdav_codec_h261_open in libtinyDAV.a(tdav_codec_h261.o)
      _tdav_converter_video_convert in libtinyDAV.a(tdav_converter_video.o)
  "_avpicture_get_size", referenced from:
      _tdav_codec_mp4ves_open in libtinyDAV.a(tdav_codec_mp4ves.o)
      _tdav_codec_mp4ves_decode in libtinyDAV.a(tdav_codec_mp4ves.o)
      _tdav_codec_h264_open in libtinyDAV.a(tdav_codec_h264.o)
      _tdav_codec_h264_decode in libtinyDAV.a(tdav_codec_h264.o)
      _tdav_codec_h263_open in libtinyDAV.a(tdav_codec_h263.o)
      _tdav_codec_h263_decode in libtinyDAV.a(tdav_codec_h263.o)
      _tdav_codec_h263p_decode in libtinyDAV.a(tdav_codec_h263.o)
      ...
  "_gsm_create", referenced from:
      _tdav_codec_gsm_open in libtinyDAV.a(tdav_codec_gsm.o)
  "_av_malloc", referenced from:
      _tdav_converter_video_convert in libtinyDAV.a(tdav_converter_video.o)
  "_Encoder_Interface_init", referenced from:
      _tdav_codec_amrnb_open in libtinyDAV.a(tdav_codec_amr.o)
  "_avcodec_alloc_context", referenced from:
      _tdav_codec_mp4ves_open in libtinyDAV.a(tdav_codec_mp4ves.o)
      _tdav_codec_h264_open in libtinyDAV.a(tdav_codec_h264.o)
      _tdav_codec_h263_open in libtinyDAV.a(tdav_codec_h263.o)
      _tdav_codec_theora_open in libtinyDAV.a(tdav_codec_theora.o)
      _tdav_codec_h261_open in libtinyDAV.a(tdav_codec_h261.o)
  "_Decoder_Interface_exit", referenced from:
      _tdav_codec_amrnb_close in libtinyDAV.a(tdav_codec_amr.o)
      _tdav_codec_amr_deinit in libtinyDAV.a(tdav_codec_amr.o)
  "_avpicture_fill", referenced from:
      _tdav_codec_mp4ves_encode in libtinyDAV.a(tdav_codec_mp4ves.o)
      _tdav_codec_h264_encode in libtinyDAV.a(tdav_codec_h264.o)
      _tdav_codec_h263_encode in libtinyDAV.a(tdav_codec_h263.o)
      _tdav_codec_theora_encode in libtinyDAV.a(tdav_codec_theora.o)
      _tdav_codec_h261_encode in libtinyDAV.a(tdav_codec_h261.o)
      _tdav_converter_video_convert in libtinyDAV.a(tdav_converter_video.o)
  "_Decoder_Interface_Decode", referenced from:
      _tdav_codec_amr_be_decode in libtinyDAV.a(tdav_codec_amr.o)
      _tdav_codec_amr_oa_decode in libtinyDAV.a(tdav_codec_amr.o)
  "_gsm_decode", referenced from:
      _tdav_codec_gsm_decode in libtinyDAV.a(tdav_codec_gsm.o)
     (maybe you meant: _tdav_codec_gsm_decode)
  "_sws_freeContext", referenced from:
      _tdav_converter_video_dtor in libtinyDAV.a(tdav_converter_video.o)
  "_Encoder_Interface_Encode", referenced from:
      _tdav_codec_amr_be_encode in libtinyDAV.a(tdav_codec_amr.o)
      _tdav_codec_amr_oa_encode in libtinyDAV.a(tdav_codec_amr.o)
  "_avcodec_register_all", referenced from:
      _tdav_init in libtinyDAV.a(tdav.o)
  "_av_free", referenced from:
      _tdav_codec_mp4ves_close in libtinyDAV.a(tdav_codec_mp4ves.o)
      _tdav_codec_h264_close in libtinyDAV.a(tdav_codec_h264.o)
      _tdav_codec_h263_close in libtinyDAV.a(tdav_codec_h263.o)
      _tdav_codec_theora_close in libtinyDAV.a(tdav_codec_theora.o)
      _tdav_codec_h261_close in libtinyDAV.a(tdav_codec_h261.o)
      _tdav_converter_video_dtor in libtinyDAV.a(tdav_converter_video.o)
  "_av_init_packet", referenced from:
      _tdav_codec_mp4ves_decode in libtinyDAV.a(tdav_codec_mp4ves.o)
      _tdav_codec_h264_decode in libtinyDAV.a(tdav_codec_h264.o)
      _tdav_codec_h263_decode in libtinyDAV.a(tdav_codec_h263.o)
      _tdav_codec_h263p_decode in libtinyDAV.a(tdav_codec_h263.o)
      _tdav_codec_theora_decode in libtinyDAV.a(tdav_codec_theora.o)
      _tdav_codec_h261_decode in libtinyDAV.a(tdav_codec_h261.o)
  "_avcodec_get_frame_defaults", referenced from:
      _tdav_codec_mp4ves_open in libtinyDAV.a(tdav_codec_mp4ves.o)
      _tdav_codec_h264_open in libtinyDAV.a(tdav_codec_h264.o)
      _tdav_codec_h263_open in libtinyDAV.a(tdav_codec_h263.o)
      _tdav_codec_theora_open in libtinyDAV.a(tdav_codec_theora.o)
      _tdav_codec_h261_open in libtinyDAV.a(tdav_codec_h261.o)
  "_avpicture_layout", referenced from:
      _tdav_codec_mp4ves_decode in libtinyDAV.a(tdav_codec_mp4ves.o)
      _tdav_codec_h264_decode in libtinyDAV.a(tdav_codec_h264.o)
      _tdav_codec_h263_decode in libtinyDAV.a(tdav_codec_h263.o)
      _tdav_codec_h263p_decode in libtinyDAV.a(tdav_codec_h263.o)
      _tdav_codec_theora_decode in libtinyDAV.a(tdav_codec_theora.o)
      _tdav_codec_h261_decode in libtinyDAV.a(tdav_codec_h261.o)
  "_Decoder_Interface_init", referenced from:
      _tdav_codec_amrnb_open in libtinyDAV.a(tdav_codec_amr.o)
  "_avcodec_decode_video2", referenced from:
      _tdav_codec_mp4ves_decode in libtinyDAV.a(tdav_codec_mp4ves.o)
      _tdav_codec_h264_decode in libtinyDAV.a(tdav_codec_h264.o)
      _tdav_codec_h263_decode in libtinyDAV.a(tdav_codec_h263.o)
      _tdav_codec_h263p_decode in libtinyDAV.a(tdav_codec_h263.o)
      _tdav_codec_theora_decode in libtinyDAV.a(tdav_codec_theora.o)
      _tdav_codec_h261_decode in libtinyDAV.a(tdav_codec_h261.o)
  "_gsm_encode", referenced from:
      _tdav_codec_gsm_encode in libtinyDAV.a(tdav_codec_gsm.o)
     (maybe you meant: _tdav_codec_gsm_encode)
  "_avcodec_init", referenced from:
      _tdav_init in libtinyDAV.a(tdav.o)
  "_avcodec_open", referenced from:
      _tdav_codec_mp4ves_open in libtinyDAV.a(tdav_codec_mp4ves.o)
      _tdav_codec_h264_open in libtinyDAV.a(tdav_codec_h264.o)
      _tdav_codec_h263_open in libtinyDAV.a(tdav_codec_h263.o)
      _tdav_codec_theora_open in libtinyDAV.a(tdav_codec_theora.o)
      _tdav_codec_theora_decode in libtinyDAV.a(tdav_codec_theora.o)
      _tdav_codec_h261_open in libtinyDAV.a(tdav_codec_h261.o)
  "_avcodec_get_context_defaults", referenced from:
      _tdav_codec_mp4ves_open in libtinyDAV.a(tdav_codec_mp4ves.o)
      _tdav_codec_h264_open in libtinyDAV.a(tdav_codec_h264.o)
      _tdav_codec_h263_open in libtinyDAV.a(tdav_codec_h263.o)
      _tdav_codec_theora_open in libtinyDAV.a(tdav_codec_theora.o)
      _tdav_codec_h261_open in libtinyDAV.a(tdav_codec_h261.o)
  "_avcodec_find_encoder", referenced from:
      _tdav_codec_mp4ves_open in libtinyDAV.a(tdav_codec_mp4ves.o)
      _tdav_codec_h264_init in libtinyDAV.a(tdav_codec_h264.o)
      _tdav_codec_h263_init in libtinyDAV.a(tdav_codec_h263.o)
      _tdav_codec_theora_open in libtinyDAV.a(tdav_codec_theora.o)
      _tdav_codec_h261_open in libtinyDAV.a(tdav_codec_h261.o)
  "_avcodec_close", referenced from:
      _tdav_codec_mp4ves_close in libtinyDAV.a(tdav_codec_mp4ves.o)
      _tdav_codec_h264_close in libtinyDAV.a(tdav_codec_h264.o)
      _tdav_codec_h263_close in libtinyDAV.a(tdav_codec_h263.o)
      _tdav_codec_theora_close in libtinyDAV.a(tdav_codec_theora.o)
      _tdav_codec_h261_close in libtinyDAV.a(tdav_codec_h261.o)
  "_sws_scale", referenced from:
      _tdav_converter_video_convert in libtinyDAV.a(tdav_converter_video.o)
  "_gsm_destroy", referenced from:
      _tdav_codec_gsm_close in libtinyDAV.a(tdav_codec_gsm.o)
      _tdav_codec_gsm_dtor in libtinyDAV.a(tdav_codec_gsm.o)
  "_Encoder_Interface_exit", referenced from:
      _tdav_codec_amrnb_close in libtinyDAV.a(tdav_codec_amr.o)
      _tdav_codec_amr_deinit in libtinyDAV.a(tdav_codec_amr.o)
  "_sws_getContext", referenced from:
      _tdav_converter_video_convert in libtinyDAV.a(tdav_converter_video.o)
ld: symbol(s) not found for architecture armv7
collect2: ld returned 1 exit status
============

What version of the product are you using? On what operating system?
xcode version: 3.2.6
iOS: SDK 4.3GM

Please provide any additional information below.
1. can compile with sdk 4.2 and run the binary on device and simulator
2. can compile with sdk 4.3 simulator, and run it on simulator but not the 
device 
3. tried both arm6 and arm7, got the same error message.

Original issue reported on code.google.com by android...@gmail.com on 4 Mar 2011 at 10:14

GoogleCodeExporter commented 9 years ago
I have a same issue, could you give some advice ?

Original comment by develop....@gmail.com on 18 Mar 2011 at 4:14

GoogleCodeExporter commented 9 years ago
 ./build/Debug-iphonesimulator/iDoubs.app/iDoubs normal i386
    cd /Users/matt/Documents/curiousminds/idoubs/iPhone/idoubs
    setenv MACOSX_DEPLOYMENT_TARGET 10.6
    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/iPhoneSimulator4.3.sdk -L/Users/matt/Documents/curiousminds/idoubs/iPhone/idoubs/build/Debug-iphonesimulator -L../../doubango/thirdparties/iphone/lib/i386 -F/Users/matt/Documents/curiousminds/idoubs/iPhone/idoubs/build/Debug-iphonesimulator -filelist /Users/matt/Documents/curiousminds/idoubs/iPhone/idoubs/./build/iDoubs.build/Debug-iphonesimulator/iDoubs.build/Objects-normal/i386/iDoubs.LinkFileList -mmacosx-version-min=10.6 -framework Foundation -framework UIKit -lopencore-amrnb -lgsm -lavutil -lavcore -lswscale -lavcodec -lx264 -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 -framework CoreVideo -framework CoreMedia -lsqlite3.0 -framework CFNetwork -o /Users/matt/Documents/curiousminds/idoubs/iPhone/idoubs/./build/Debug-iphonesimulator/iDoubs.app/iDoubs

ld: library not found for -ltinySAK
collect2: ld returned 1 exit status
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 
failed with exit code 1

Also cannot compile on XCode following the steps above.

Original comment by mattvanv...@gmail.com on 21 Mar 2011 at 7:28

GoogleCodeExporter commented 9 years ago

Original comment by boss...@yahoo.fr on 23 Mar 2011 at 8:42

GoogleCodeExporter commented 9 years ago
RE: comment 2 (mattanv...)

Head into the config for for the tinySAK target, and change the Build Products 
Path for Debug to.... './build' (compare it with one of the other libraries, it 
should be the same)

Original comment by mattze...@gmail.com on 29 Apr 2011 at 1:09

GoogleCodeExporter commented 9 years ago
Issue 31 has been merged into this issue.

Original comment by boss...@yahoo.fr on 3 May 2011 at 8:22

GoogleCodeExporter commented 9 years ago
Fixed in iDoubs v2.x

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

GoogleCodeExporter commented 9 years ago
I have just done an svn up (on the trunk) and there were no code changes. Has 
these fixes been committed to the svn repo yet? Or do I need to use a different 
branch for v2.x (although the wiki says to build 2.x to use the trunk).

Thankyou

Matt

Original comment by mattze...@gmail.com on 4 Jun 2011 at 2:41

GoogleCodeExporter commented 9 years ago
@
No. The wiki doesn't say to use trunk.
To build v2.x you must use "banches/2.0" for both Doubango and iDoubs.
All is explained here: http://code.google.com/p/idoubs/wiki/Building_iDoubs_v2_x

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