2012-08-09 5 views
5

libqxt의 최신 (자식 버전) 있습니다. 내가 ./configure 실행하고 그것이 잘 작동 한 후 확인이 오류와 함께 실패합니다mac osx에서 libqxt 컴파일

linking ../../lib/QxtWidgets.framework/QxtWidgets 
ld: warning: directory not found for option '-L/usr/local/pgsql/lib' 
ld: warning: directory not found for option '-L/tmp/qt-stuff-85167/source/qt-everywhere-opensource-src-4.8.1/Desktop/Qt/4.8.1/gcc/lib' 
ld: warning: directory not found for option '-F/tmp/qt-stuff-85167/source/qt-everywhere-opensource-src-4.8.1/Desktop/Qt/4.8.1/gcc/lib' 
Undefined symbols for architecture x86_64: 
    "_CGSGetWindowProperty", referenced from: 
     QxtWindowSystem::windowTitle(long) in qxtwindowsystem_mac.o 
ld: symbol(s) not found for architecture x86_64 
collect2: ld returned 1 exit status 
make[1]: *** [../../lib/QxtWidgets.framework/QxtWidgets] Error 1 
make: *** [sub-src-widgets-install_subtargets] Error 2 

을가 중요한 경우에, 나는 OSX 마운틴 라이온을 사용하고 있습니다.

감사합니다.

답변

4

Qxt처럼 보이지만 Mountain Lion에서 제거 된 일부 개인용 Mac OS X API를 사용하고 있습니다. CGSGetWindowProperty는 Mac OS X의 이전 버전에서 문서화되지 않았으므로 어쨌든 그것을 사용하는 것이 신뢰할 수 없다고 생각합니다.

+1

그래, 나도 그렇게 생각하고있어.이 문제를 해결할 방법이 있다고 생각하니, 아니면 헤더/lib를 다른 곳에서 찾을 수있는 방법이 있다고 생각하니? 그렇다면 어디에서? – sfw

4

해키 픽스로 CGSGetWindowProperty 속성 호출을 제거하면 Qxt가 컴파일되지만 물론 QxtWindowSystem::windowTitle은 올바르게 작동하지 않습니다.

diff --git a/src/widgets/mac/qxtwindowsystem_mac.cpp b/src/widgets/mac/qxtwindowsystem_mac.cpp 
index 63cab38..de4a89c 100644 
--- a/src/widgets/mac/qxtwindowsystem_mac.cpp 
+++ b/src/widgets/mac/qxtwindowsystem_mac.cpp 
@@ -89,11 +89,7 @@ QString QxtWindowSystem::windowTitle(WId window) 
    // most of CoreGraphics private definitions ask for CGSValue as key but since 
    // converting strings to/from CGSValue was dropped in 10.5, I use CFString, which 
    // apparently also works. 
- err = CGSGetWindowProperty(connection, window, (CGSValue)CFSTR("kCGSWindowTitle"), &windowTitle); 
- if (err != noErr) return QString(); 
- 
- // this is UTF8 encoded 
- return QCFString::toQString((CFStringRef)windowTitle); 
+ return QString(); 
} 

QRect QxtWindowSystem::windowGeometry(WId window) 

나중에 참조 할 수 있도록 this issue in libqxt repository을 참조하십시오.

+0

안녕하세요, 가능한 경우이 질문에 답변 해주세요 : http://stackoverflow.com/questions/28708747/error-trying-to-install-qxt-for-sending-email? 내가 말한 픽스를했는데,'make install' 단계에서 오류가 발생했습니다. – SexyBeast

관련 문제