AnikeshiOS / libjingle

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

r141 calls Carbon API calls which don't seem to exist on Lion #347

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Update to r141
2. Build on lion
3.

What is the expected output? What do you see instead?
g++ -o build/dbg64/obj/session/phone/carbonvideorenderer.o -c 
-Wno-non-virtual-dtor -Wno-ctor-dtor-privacy -Wall -Werror -Wno-switch 
-fno-exceptions -fvisibility=hidden -gdwarf-2 -g3 -arch i386 -fasm-blocks -O0 
-m64 -fPIC -isysroot /Developer/SDKs/MacOSX10.6.sdk 
-Wno-deprecated-declarations -DLOGGING=1 -DFEATURE_ENABLE_SSL 
-DFEATURE_ENABLE_VOICEMAIL -DFEATURE_ENABLE_PSTN -DHAVE_SRTP 
-DHASHNAMESPACE=__gnu_cxx -DHASH_NAMESPACE=__gnu_cxx -DPOSIX 
-DDISABLE_DYNAMIC_CAST -DHAVE_OPENSSL_SSL_H=1 -D_REENTRANT 
-DOS_MACOSX=OS_MACOSX -DOSX -D_DEBUG -DDEBUG=1 -DARCH_CPU_64_BITS 
-DFEATURE_ENABLE_VOICEMAIL -DEXPAT_RELATIVE_PATH -DGTEST_RELATIVE_PATH 
-DSRTP_RELATIVE_PATH -DXML_STATIC -Ibuild/dbg64/obj -I. 
-I/Users/ekr/dev/libjingle -Ibuild/dbg64/obj/third_party/libudev 
-Ithird_party/libudev -Ibuild/dbg64/obj/third_party/expat-2.0.1/lib 
-Ithird_party/expat-2.0.1/lib -Ibuild/dbg64/obj/third_party/gtest/include 
-Ithird_party/gtest/include -Ibuild/dbg64/obj/third_party/srtp/include 
-Ithird_party/srtp/include -Ibuild/dbg64/obj/third_party/srtp/crypto/include 
-Ithird_party/srtp/crypto/include -Ibuild/dbg64/obj/third_party/openssl/include 
-Ithird_party/openssl/include session/phone/carbonvideorenderer.cc

session/phone/carbonvideorenderer.cc: In destructor 'virtual 
cricket::CarbonVideoRenderer::~CarbonVideoRenderer()':

session/phone/carbonvideorenderer.cc:47: error: 'DisposeWindow' was not 
declared in this scope

session/phone/carbonvideorenderer.cc: In member function 'bool 
cricket::CarbonVideoRenderer::DrawFrame()':

session/phone/carbonvideorenderer.cc:91: error: 'SetPortWindowPort' was not 
declared in this scope

session/phone/carbonvideorenderer.cc:92: error: 'GetWindowPort' was not 
declared in this scope

session/phone/carbonvideorenderer.cc:92: error: 'QDBeginCGContext' was not 
declared in this scope

session/phone/carbonvideorenderer.cc:97: error: 'GetWindowPortBounds' was not 
declared in this scope

session/phone/carbonvideorenderer.cc:106: error: 'GetWindowPort' was not 
declared in this scope

session/phone/carbonvideorenderer.cc:106: error: 'QDEndCGContext' was not 
declared in this scope

session/phone/carbonvideorenderer.cc: In member function 'virtual bool 
cricket::CarbonVideoRenderer::RenderFrame(const cricket::VideoFrame*)':

session/phone/carbonvideorenderer.cc:138: error: 'GetWindowPortBounds' was not 
declared in this scope

session/phone/carbonvideorenderer.cc:138: error: 'InvalWindowRect' was not 
declared in this scope

session/phone/carbonvideorenderer.cc: In member function 'bool 
cricket::CarbonVideoRenderer::Initialize()':

session/phone/carbonvideorenderer.cc:156: error: 'CreateNewWindow' was not 
declared in this scope

session/phone/carbonvideorenderer.cc:163: error: 'kEventWindowDrawContent' was 
not declared in this scope

session/phone/carbonvideorenderer.cc:166: error: 'GetWindowEventTarget' was not 
declared in this scope

session/phone/carbonvideorenderer.cc:177: error: 'SelectWindow' was not 
declared in this scope

session/phone/carbonvideorenderer.cc:178: error: 'ShowWindow' was not declared 
in this scope

scons: *** [build/dbg64/obj/session/phone/carbonvideorenderer.o] Error 1

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

Please provide any additional information below.
Some google searching suggests that these are carbon-only APIs and no longer 
available.

Original issue reported on code.google.com by e...@rtfm.com on 16 May 2012 at 11:11

GoogleCodeExporter commented 9 years ago
Does the problem go away if you use the 10.5 isysroot?

Original comment by juberti@google.com on 17 May 2012 at 2:13

GoogleCodeExporter commented 9 years ago
It's not installed on 10.7 and I'm not sure you can just install it. (I'm on 
Xcode 4.3.1)

Original comment by e...@rtfm.com on 17 May 2012 at 2:48

GoogleCodeExporter commented 9 years ago
carbon should work in 32 bit mode.

Original comment by fbarch...@chromium.org on 17 May 2012 at 3:13

GoogleCodeExporter commented 9 years ago
OK, that works. Unfortunately, though, you seem to have to hand-edit main.scons 
to get it to point to the 10.6 SDK, which isn't great.

Original comment by e...@rtfm.com on 17 May 2012 at 3:16

GoogleCodeExporter commented 9 years ago
This bug also prevents compilation in 64-bit mode in either the 10.5 or 10.6 
sdks.

Original comment by bj...@xowave.com on 10 Sep 2012 at 5:30