Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install error on Mac OS #180

Open
dluo-zz opened this issue Apr 2, 2012 · 5 comments
Open

install error on Mac OS #180

dluo-zz opened this issue Apr 2, 2012 · 5 comments

Comments

@dluo-zz
Copy link

dluo-zz commented Apr 2, 2012

I followed the steps in the Wiki page. I installed QT, QT cocoa, cmake on Mac Lion. Then I tried installing packages from GitHub using the devtools package in R.

I get following error in R console:

* building 'qtbase_1.0.3.tar.gz'
* installing *source* package 'qtbase' ...
** libs
** arch - i386
sh: make: command not found
ERROR: compilation failed for package 'qtbase'
* removing '/Library/Frameworks/R.framework/Versions/2.14/Resources/library/qtbase'
Error: Command failed (1)



The downloaded packages are in
    /var/folders/k8/h5fltz0n2fl1w_f_1zmd199c0000gn/T//RtmpfC0BdP/downloaded_packages
* checking for file '/private/var/folders/k8/h5fltz0n2fl1w_f_1zmd199c0000gn/T/RtmpfC0BdP/ggobi-cranvas-929f60d/DESCRIPTION' ... OK
* preparing 'cranvas':
* checking DESCRIPTION meta-information ... OK
* checking for LF line-endings in source and make files
* checking for empty or unneeded directories
* looking to see if a 'data/datalist' file should be added
* building 'cranvas_0.8.tar.gz'

ERROR: dependencies 'qtbase', 'qtpaint' are not available for package 'cranvas'
* removing '/Library/Frameworks/R.framework/Versions/2.14/Resources/library/cranvas'
Error: Command failed (1)
In addition: Warning message:
In getDependencies(pkgs, dependencies, available, lib) :
  packages ‘qtbase’, ‘qtpaint’ are not available (for R version 2.14.2)
@yihui
Copy link
Member

yihui commented Apr 3, 2012

the error message said sh: make: command not found; I do not use Mac, so I do not know if make is shipped with Mac by default.

@dluo-zz
Copy link
Author

dluo-zz commented Apr 3, 2012

In XCode, I go to XCode->Preferences->Downloads and install component named "Command Line Tools". After that all the relevant tools will be placed in /usr/bin folder and now I am able to use make command. But I got another error when compiling in R:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
QT_QTDBUS_INCLUDE_DIR (ADVANCED)
used as include directory in directory /private/var/folders/k8/h5fltz0n2fl1w_f_1zmd199c0000gn/T/RtmpywwY2y/R.INSTALL3fc4d76b5a5/qtbase/kdebindings
used as include directory in directory /private/var/folders/k8/h5fltz0n2fl1w_f_1zmd199c0000gn/T/RtmpywwY2y/R.INSTALL3fc4d76b5a5/qtbase/kdebindings/generator
used as include directory in directory /private/var/folders/k8/h5fltz0n2fl1w_f_1zmd199c0000gn/T/RtmpywwY2y/R.INSTALL3fc4d76b5a5/qtbase/kdebindings/generator/parser
used as include directory in directory /private/var/folders/k8/h5fltz0n2fl1w_f_1zmd199c0000gn/T/RtmpywwY2y/R.INSTALL3fc4d76b5a5/qtbase/kdebindings/generator/generators
used as include directory in directory /private/var/folders/k8/h5fltz0n2fl1w_f_1zmd199c0000gn/T/RtmpywwY2y/R.INSTALL3fc4d76b5a5/qtbase/kdebindings/generator/generators/smoke
used as include directory in directory /private/var/folders/k8/h5fltz0n2fl1w_f_1zmd199c0000gn/T/RtmpywwY2y/R.INSTALL3fc4d76b5a5/qtbase/kdebindings/generator/generators/dump
used as include directory in directory /private/var/folders/k8/h5fltz0n2fl1w_f_1zmd199c0000gn/T/RtmpywwY2y/R.INSTALL3fc4d76b5a5/qtbase/kdebindings/smoke
used as include directory in directory /private/var/folders/k8/h5fltz0n2fl1w_f_1zmd199c0000gn/T/RtmpywwY2y/R.INSTALL3fc4d76b5a5/qtbase/kdebindings/smoke/qt

make[1]: *** No rule to make target `install'. Stop.
make: *** [all] Error 2
ERROR: compilation failed for package 'qtbase'

  • removing '/Library/Frameworks/R.framework/Versions/2.14/Resources/library/qtbase'
    Error: Command failed (1)

@yihui
Copy link
Member

yihui commented Apr 4, 2012

sorry I really do not know anything about Mac; I hope other cranvas developers can help you...

@cezikm
Copy link

cezikm commented Aug 8, 2012

I am getting almost the same error as above when I try to install cranvas on a mac (OSX 10.7 Lion). Does anybody have success in this installation and get around the QT_QTDBUS_INCLUDE_DIR problem?

here's the error I get:

> install_github('qtbase', 'ggobi')
Installing github repo(s) qtbase/master from ggobi
Installing qtbase.zip from https://github.com/ggobi/qtbase/zipball/master
Installing qtbase
* checking for file '/private/var/folders/8t/ln07gvkx3ln6_668xrwg3ltd3_fm0x/T/Rtmp2QqQ8a/ggobi-qtbase-f71d9ef/DESCRIPTION' ... OK
* preparing 'qtbase':
* checking DESCRIPTION meta-information ... OK
* cleaning src
* checking for LF line-endings in source and make files
* checking for empty or unneeded directories
* building 'qtbase_1.0.5.tar.gz'

* installing *source* package 'qtbase' ...
** libs
** arch - x86_64
mkdir -p ../kdebindings-build;
cd ../kdebindings-build; \
cmake ../kdebindings -DR_CXX="g++" -DCMAKE_CXX_FLAGS="-arch x86_64 " -DCMAKE_SHARED_LINKER_FLAGS="-arch x86_64 " \
     -DCMAKE_INSTALL_PREFIX=../inst/local \
     -DCMAKE_EXE_LINKER_FLAGS="-arch x86_64 " \
     -DCMAKE_MODULE_LINKER_FLAGS="-arch x86_64 "; \
LD_LIBRARY_PATH=../../generator/bin make install
-- The C compiler identification is GNU 4.2.1
-- The CXX compiler identification is Clang 4.0.0
-- 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
-- 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.2", required is "4.0.0") 
-- Could NOT find Qt4 (missing:  QT_QTDBUS_INCLUDE_DIR) (found suitable version "4.8.2", required is "4.0.0")
-- Found OpenGL: /System/Library/Frameworks/OpenGL.framework  
-- Found Perl: /usr/bin/perl (found version "5.12.3") 
-- Checking how Qt was built...
-- Threshold is set to 15
-- QT_NO_DEBUG [Defined]
-- QT_NO_ACCESSIBILITY [Defined]
-- QT_NO_STYLE_PLASTIQUE [Defined]
-- QT_NO_STYLE_WINDOWSXP [Defined]
-- QT_NO_STYLE_WINDOWS [Defined]
-- QT_NO_STYLE_MAC [Defined]
-- QT_NO_STYLE_CLEANLOOKS [Defined]
-- QT_NO_TABLEVIEW [Defined]
-- 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_XMLPATTERNS_LIB [Defined]
-- QT_GUI_LIB [Defined]
-- QT_TEST_LIB [Defined]
-- QT_DBUS_LIB [Defined]
-- QT_XML_LIB [Defined]
-- QT_SQL_LIB [Defined]
-- QT_NETWORK_LIB [Defined]
-- QT_CORE_LIB [Defined]
-- Build Smoke... yes - Qt
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
QT_QTDBUS_INCLUDE_DIR (ADVANCED)
   used as include directory in directory /private/var/folders/8t/ln07gvkx3ln6_668xrwg3ltd3_fm0x/T/RtmpIDEh4q/R.INSTALL1382f6068be79/qtbase/kdebindings/generator
   used as include directory in directory /private/var/folders/8t/ln07gvkx3ln6_668xrwg3ltd3_fm0x/T/RtmpIDEh4q/R.INSTALL1382f6068be79/qtbase/kdebindings/generator/parser
   used as include directory in directory /private/var/folders/8t/ln07gvkx3ln6_668xrwg3ltd3_fm0x/T/RtmpIDEh4q/R.INSTALL1382f6068be79/qtbase/kdebindings/generator/generators/smoke
   used as include directory in directory /private/var/folders/8t/ln07gvkx3ln6_668xrwg3ltd3_fm0x/T/RtmpIDEh4q/R.INSTALL1382f6068be79/qtbase/kdebindings/generator/generators/dump
   used as include directory in directory /private/var/folders/8t/ln07gvkx3ln6_668xrwg3ltd3_fm0x/T/RtmpIDEh4q/R.INSTALL1382f6068be79/qtbase/kdebindings/smoke/qt

-- Configuring incomplete, errors occurred!
make[1]: *** No rule to make target `install'.  Stop.
make: *** [all] Error 2
ERROR: compilation failed for package 'qtbase'
* removing '/Users/cezikm/Library/R/2.15/library/qtbase'
Error: Command failed (1)

@doesmindmatter
Copy link

I had the same problem on Mac OS X 10.7.4 Lion. -- Could NOT find Qt4 (missing: QT_QTDBUS_INCLUDE_DIR)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants