여러 버젼의 라이브러리를 동시에 사용할수 있는지요?

나그네나그네의 이미지

예를 들어 어떤 컴퓨터에서 Qt 3.3을 사용하는 소스와 Qt 4.3을 사용하는 소스를, Qt와 관련된 so 파일의 설정 없이 바로 컴파일하는 것이 가능합니까?

ikpil의 이미지

이런 경우에는 .. 인터페이스만 중복 되지 않는다면, 가능한것으로 알고 있습니다. 해보진 못했습니다. : )
역시 한번 컴파일 하셔서 테스트 해보시는게 좋을것 같습니다.

bushi의 이미지

redhat, fedora 는 qt1 과 qt2 를, qt2 와 qt3를, qt3 와 qt4 를 항상 같이 제공해왔습니다.
다른 배포본 역시 마찬가지일거라 생각합니다.

[bushi@rose SPECS]$ rpm -ql qt-devel|grep pkgconfig
/usr/lib/pkgconfig/qt-mt.pc
[bushi@rose SPECS]$ 
[bushi@rose SPECS]$ pkg-config --cflags --libs qt-mt
-DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT -I/usr/lib/qt-3.3/include  -L/usr/lib/qt-3.3/lib -lqt-mt -lmng -ljpeg -lpng -lz -lXi -lXrender -lXrandr -lXcursor -lXinerama -lXft -lfreetype -lfontconfig -lXext -lX11 -lm -lSM -lICE -ldl -lpthread  
[bushi@rose SPECS]$ 

[bushi@rose SPECS]$ rpm -ql qt4-devel|grep pkgconfig
/usr/lib/pkgconfig/Qt.pc
/usr/lib/pkgconfig/Qt3Support.pc
/usr/lib/pkgconfig/QtAssistantClient.pc
/usr/lib/pkgconfig/QtCLucene.pc
/usr/lib/pkgconfig/QtCore.pc
/usr/lib/pkgconfig/QtDBus.pc
/usr/lib/pkgconfig/QtDesigner.pc
/usr/lib/pkgconfig/QtDesignerComponents.pc
/usr/lib/pkgconfig/QtGui.pc
/usr/lib/pkgconfig/QtHelp.pc
/usr/lib/pkgconfig/QtNetwork.pc
/usr/lib/pkgconfig/QtOpenGL.pc
/usr/lib/pkgconfig/QtScript.pc
/usr/lib/pkgconfig/QtSql.pc
/usr/lib/pkgconfig/QtSvg.pc
/usr/lib/pkgconfig/QtTest.pc
/usr/lib/pkgconfig/QtUiTools.pc
/usr/lib/pkgconfig/QtWebKit.pc
/usr/lib/pkgconfig/QtXml.pc
/usr/lib/pkgconfig/QtXmlPatterns.pc
/usr/lib/qt4/mkspecs/features/link_pkgconfig.prf
[bushi@rose SPECS]$ 
[bushi@rose SPECS]$ cat /usr/lib/qt4/mkspecs/features/link_pkgconfig.prf 
# handle pkg-config files
for(PKGCONFIG_LIB, $$list($$unique(PKGCONFIG))) {
    QMAKE_CXXFLAGS += $$system(pkg-config --cflags $$PKGCONFIG_LIB)
    QMAKE_CFLAGS += $$system(pkg-config --cflags $$PKGCONFIG_LIB)
    LIBS += $$system(pkg-config --libs $$PKGCONFIG_LIB)
}
[bushi@rose SPECS]$
[bushi@rose SPECS]$ pkg-config --cflags --libs `rpm -ql qt4-devel|grep "\.pc"|cut -d '/' -f5-|cut -d '.' -f1`
-DQT_SHARED -I/usr/include/Qt3Support -I/usr/include/QtAssistantClient -I/usr/include/QtCLucene -I/usr/include/QtCore -I/usr/include/QtDBus -I/usr/include/QtDesigner -I/usr/include/QtDesignerComponents -I/usr/include/QtGui -I/usr/include/QtHelp -I/usr/include/QtNetwork -I/usr/include/QtOpenGL -I/usr/include/QtScript -I/usr/include/QtSql -I/usr/include/QtSvg -I/usr/include/QtTest -I/usr/include/QtUiTools -I/usr/include/QtWebKit -I/usr/include/QtXml -I/usr/include/QtXmlPatterns  -L/lib -lQt3Support -lQtAssistantClient -lQtDBus -lQtDesignerComponents -lQtDesigner -lQtHelp -lQtCLucene -lQtOpenGL -lGLU -lGL -lQtScript -lQtSql -lQtSvg -lQtTest -lQtUiTools -lQtWebKit -lQtGui -lQtXml -lQtXmlPatterns -lQtNetwork -lQtCore  
[bushi@rose SPECS]$
[bushi@rose SPECS]$

OTL

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.