[R-SIG-Mac] qtbase installation problems on MacOS

Mark Heckmann mark.heckmann at gmx.de
Sun Mar 18 19:13:34 CET 2012


Dear R GUI / MacOS experts,

I having some trouble installing qtbase on MacOS (10.6.8).
I installed a recent version of Qt and cmake.
Unfortunately I am a rookie when it comes to installation procedures.
Below I attached the (shortened) terminal output.
I erased some of the parts that reported no failures.
I am especially suspicious the about the line: "include directory "/usr/include;/Library/Frameworks/QtCore.framework" doesn't exist " 
But I do not know what to make of it.
Any ideas what the problem might be?

Thanks in advance!

--Mark

PS. I translated the last few lines as I did not succeed in changing the language settings to english


mark-heckmanns-macbook:Desktop markheckmann$ R CMD INSTALL qtbase_1.0.4.tar.tar.gz 
* installing to library ‘/Library/Frameworks/R.framework/Versions/2.14/Resources/library’
* installing *source* package ‘qtbase’ ...
** Paket ‘qtbase’ erfolgreich entpackt und MD5 Summen überprüft
** libs
** arch - x86_64
mkdir -p ../kdebindings-build;
cd ../kdebindings-build; \
	cmake ../kdebindings -DCMAKE_INSTALL_PREFIX=../inst/local; \
	LD_LIBRARY_PATH=../../generator/bin make install
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - not found.
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - found
-- Looking for QT_MAC_USE_COCOA
-- Looking for QT_MAC_USE_COCOA - found
-- Found Qt4: /usr/bin/qmake (found suitable version "4.8.0", required is "4.0.0")
-- Found Qt4: /usr/bin/qmake (found suitable version "4.8.0", required is "4.0.0")
-- Found OpenGL: /System/Library/Frameworks/OpenGL.framework 
-- Found Perl: /opt/local/bin/perl 
-- Checking how Qt was built...
-- Threshold is set to 15
-- QT_NO_DEBUG *Undefined*
-- QT_NO_ACCESSIBILITY [Defined]
-- QT_NO_STYLE_PLASTIQUE *Undefined*
-- QT_NO_STYLE_WINDOWSXP [Defined]
-- QT_NO_STYLE_WINDOWS *Undefined*
-- QT_NO_STYLE_MAC [Defined]
-- QT_NO_STYLE_CLEANLOOKS *Undefined*
-- QT_NO_TABLEVIEW *Undefined*
-- QT_NO_DEBUG [Defined]
-- QT_OPENGL_LIB [Defined]
-- QT_DECLARATIVE_LIB [Defined]
-- QT_SCRIPT_LIB [Defined]
-- QT_SVG_LIB [Defined]
-- QT_HELP_LIB [Defined]
-- QT_WEBKIT_LIB [Defined]
-- QT_MULTIMEDIA_LIB [Defined]
-- QT_GUI_LIB [Defined]
-- QT_TEST_LIB [Defined]
-- QT_DBUS_LIB [Defined]
-- QT_XML_LIB [Defined]
-- QT_SQL_LIB [Defined]
-- QT_XMLPATTERNS_LIB [Defined]
-- QT_NETWORK_LIB [Defined]
-- QT_CORE_LIB [Defined]
-- Build Smoke... yes - Qt
-- Configuring done
-- Generating done
-- Build files have been written to: /private/var/folders/A1/A1rnUxaHGcutd4TCAmmZ3k+++TI/-Tmp-/Rtmpa3hWYG/R.INSTALL109db11f686f8/qtbase/kdebindings-build
Scanning dependencies of target cppparser
[  1%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/ast.cpp.o
...
[ 11%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/parser.cpp.o
/private/var/folders/A1/A1rnUxaHGcutd4TCAmmZ3k+++TI/-Tmp-/Rtmpa3hWYG/R.INSTALL109db11f686f8/qtbase/kdebindings/generator/parser/parser.cpp:1035:2: warning: #warning "implement me"
/private/var/folders/A1/A1rnUxaHGcutd4TCAmmZ3k+++TI/-Tmp-/Rtmpa3hWYG/R.INSTALL109db11f686f8/qtbase/kdebindings/generator/parser/parser.cpp:2603:2: warning: #warning "implemente me (AST)"
/private/var/folders/A1/A1rnUxaHGcutd4TCAmmZ3k+++TI/-Tmp-/Rtmpa3hWYG/R.INSTALL109db11f686f8/qtbase/kdebindings/generator/parser/parser.cpp:3489:2: warning: #warning "mark the ast as constant"
[ 13%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/listnode.cpp.o
...
[ 18%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/parsesession.cpp.o
/private/var/folders/A1/A1rnUxaHGcutd4TCAmmZ3k+++TI/-Tmp-/Rtmpa3hWYG/R.INSTALL109db11f686f8/qtbase/kdebindings/generator/parser/parsesession.cpp: In destructor ‘ParseSession::~ParseSession()’:
/private/var/folders/A1/A1rnUxaHGcutd4TCAmmZ3k+++TI/-Tmp-/Rtmpa3hWYG/R.INSTALL109db11f686f8/qtbase/kdebindings/generator/parser/parsesession.cpp:42: warning: possible problem detected in invocation of delete operator:
/private/var/folders/A1/A1rnUxaHGcutd4TCAmmZ3k+++TI/-Tmp-/Rtmpa3hWYG/R.INSTALL109db11f686f8/qtbase/kdebindings/generator/parser/parsesession.cpp:42: warning: invalid use of incomplete type ‘struct rpp::MacroBlock’
/private/var/folders/A1/A1rnUxaHGcutd4TCAmmZ3k+++TI/-Tmp-/Rtmpa3hWYG/R.INSTALL109db11f686f8/qtbase/kdebindings/generator/parser/parsesession.h:43: warning: forward declaration of ‘struct rpp::MacroBlock’
/private/var/folders/A1/A1rnUxaHGcutd4TCAmmZ3k+++TI/-Tmp-/Rtmpa3hWYG/R.INSTALL109db11f686f8/qtbase/kdebindings/generator/parser/parsesession.cpp:42: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
[ 19%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/commentparser.cpp.o
...
[ 63%] Built target generator_dump
[ 65%] Generating smokedata.cpp, x_1.cpp, x_2.cpp, x_3.cpp, x_4.cpp, x_5.cpp, x_6.cpp, x_7.cpp, x_8.cpp, x_9.cpp, x_10.cpp, x_11.cpp, x_12.cpp, x_13.cpp, x_14.cpp, x_15.cpp, x_16.cpp, x_17.cpp, x_18.cpp, x_19.cpp, x_20.cpp
using generator "/private/var/folders/A1/A1rnUxaHGcutd4TCAmmZ3k+++TI/-Tmp-/Rtmpa3hWYG/R.INSTALL109db11f686f8/qtbase/kdebindings-build/generator/bin/generator_smoke.so" 
include directory "/usr/include;/Library/Frameworks/QtCore.framework" doesn't exist 
parsing "/private/var/folders/A1/A1rnUxaHGcutd4TCAmmZ3k+++TI/-Tmp-/Rtmpa3hWYG/R.INSTALL109db11f686f8/qtbase/kdebindings/smoke/qt/qt_includes.h" 
Generating SMOKE sources... 
preparing SMOKE data [qt]
writing out smokedata.cpp [qt]
writing out x_*.cpp [qt]
Done. 
Scanning dependencies of target smokeqt
[ 67%] Building CXX object smoke/qt/CMakeFiles/smokeqt.dir/smokedata.cpp.o
[...
[100%] Building CXX object smoke/qt/CMakeFiles/smokeqt.dir/x_20.cpp.o
Linking CXX static library libsmokeqt.a
[100%] Built target smokeqt
Install the project...
-- Install configuration: ""
-- Installing: /private/var/folders/A1/A1rnUxaHGcutd4TCAmmZ3k+++TI/-Tmp-/Rtmpa3hWYG/R.INSTALL109db11f686f8/qtbase/inst/local/bin/smokegen
...
-- Installing: /private/var/folders/A1/A1rnUxaHGcutd4TCAmmZ3k+++TI/-Tmp-/Rtmpa3hWYG/R.INSTALL109db11f686f8/qtbase/inst/local/share/kdebindings/qtdefines
-- Installing: /private/var/folders/A1/A1rnUxaHGcutd4TCAmmZ3k+++TI/-Tmp-/Rtmpa3hWYG/R.INSTALL109db11f686f8/qtbase/inst/local/share/kdebindings/config.xml
mkdir -p ../src-build;
cd ../src-build; \
	cmake ../src \
	      -DR_LIBRARIES="-F/Library/Frameworks/R.framework/.. -framework R" \
	      -DR_INCLUDES=/Library/Frameworks/R.framework/Resources/include \
	      -DCMAKE_INSTALL_PREFIX=../src; \
	make install
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - not found.
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - found
-- Looking for QT_MAC_USE_COCOA
-- Looking for QT_MAC_USE_COCOA - found
-- Found Qt4: /usr/bin/qmake (found suitable version "4.8.0", required is "4.0.0")
-- Found Qt4: /usr/bin/qmake (found suitable version "4.8.0", required is "4.0.0")
-- Found OpenGL: /System/Library/Frameworks/OpenGL.framework 
-- Configuring done
-- Generating done
-- Build files have been written to: /private/var/folders/A1/A1rnUxaHGcutd4TCAmmZ3k+++TI/-Tmp-/Rtmpa3hWYG/R.INSTALL109db11f686f8/qtbase/src-build
[  2%] Generating moc_EventLoop.cxx
Scanning dependencies of target qtbase
[  5%] Building CXX object CMakeFiles/qtbase.dir/init.cpp.o
[  7%] Building CXX object CMakeFiles/qtbase.dir/EventLoop.cpp.o
/private/var/folders/A1/A1rnUxaHGcutd4TCAmmZ3k+++TI/-Tmp-/Rtmpa3hWYG/R.INSTALL109db11f686f8/qtbase/src/EventLoop.cpp:23: warning: deprecated conversion from string constant to ‘char*’
/private/var/folders/A1/A1rnUxaHGcutd4TCAmmZ3k+++TI/-Tmp-/Rtmpa3hWYG/R.INSTALL109db11f686f8/qtbase/src/EventLoop.cpp:23: warning: deprecated conversion from string constant to ‘char*’
[ 10%] Building CXX object CMakeFiles/qtbase.dir/convert.cpp.o
...
[100%] Building CXX object CMakeFiles/qtbase.dir/moc_EventLoop.cxx.o
Linking CXX shared library qtbase.so
[100%] Built target qtbase
Install the project...
-- Install configuration: ""
-- Installing: /private/var/folders/A1/A1rnUxaHGcutd4TCAmmZ3k+++TI/-Tmp-/Rtmpa3hWYG/R.INSTALL109db11f686f8/qtbase/src/./qtbase.so
installed to /Library/Frameworks/R.framework/Versions/2.14/Resources/library/qtbase/libs/x86_64
** R
** demo
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices ...
*** tangling vignette sources ...
   ‘qtbase.Rnw’ 
** testing if installed package can be loaded
Error : .onLoad failed in loadNamespace() for 'qtbase', details:
  call: dyn.load(file, DLLpath = DLLpath, ...)
  error: cannot load shared object '/Library/Frameworks/R.framework/Versions/2.14/Resources/library/qtbase/libs/x86_64/qtbase.so' :
  dlopen(/Library/Frameworks/R.framework/Versions/2.14/Resources/library/qtbase/libs/x86_64/qtbase.so, 6): Symbol not found: _kCFWebServicesProviderDefaultDisplayNameKey
  Referenced from: /Library/Frameworks/QtWebKit.framework/Versions/4/QtWebKit
  Expected in: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation

Fehler: Laden fehlgeschlagen (error: loading failed)
Ausführung angehalten (execution stopped)
Fehler: Laden fehlgeschlagen (error: loading failed)
* removing ‘/Library/Frameworks/R.framework/Versions/2.14/Resources/library/qtbase’

THANKS!
––––––––––––––––––––––––––––––––––––
Mark Heckmann
Blog: www.markheckmann.de
R-Blog: http://ryouready.wordpress.com



More information about the R-SIG-Mac mailing list