Menu

Compile on OSX?

izahn
2008-02-01
2013-01-15
  • izahn

    izahn - 2008-02-01

    Hi,
    I've been using RKward on Kubuntu for some time now. I also use Mac OSX, and have been running KDE4 on that platform for several months(it kind of works). I recently tried compiling RKward on OSX, but ran into trouble when qmake could not find R_HOME. Is there a way to make this work?

    Thanks,
    Ista

    P.S., here are the details: I downloaded RKward 5.0a, added export PATH=/opt/qt4/bin:$PATH
    to my .profile, and ran cmake. This returned

    -- Found Qt-Version 4.3.3 (using /opt/qt4/bin/qmake)
    -- Found KDE 4.0 include dir: /opt/kde4/include
    -- Found KDE 4 library dir: /opt/kde4/lib
    -- Found KDE4 kconfig_compiler preprocessor: /opt/kde4/bin/kconfig_compiler
    -- Found KDE4 automoc: /opt/kde4/bin/kde4automoc
    -- Looking for R executable
    -- Specified by user
    -- Using R at /Applications/R.app/Contents/MacOS/R
    -- Looking for R_HOME

    The R.app GUI opened, and informed me that

    The file /Users/izahn/CMD does not exist.
    The file /Users/izahn/sh does not exist.

     
    • izahn

      izahn - 2008-02-03

      OK, I've made some progress, but specifying R_HOME etc. in the cmake options. In fact, the cmake part works fine now, but when I try make install I get the following:

      sudo make install
      Password:
      [  1%] Generating rksaveobjectchooser.moc
      [  2%] Generating rkspinbox.moc
      [  2%] Generating getfilenamewidget.moc
      [  3%] Generating rkobjectlistview.moc
      [  3%] Generating multistringselector.moc
      [  4%] Generating rkprogresscontrol.moc
      Scanning dependencies of target misc
      [  4%] Building CXX object rkward/misc/CMakeFiles/misc.dir/rkspinbox.o
      [  5%] Building CXX object rkward/misc/CMakeFiles/misc.dir/getfilenamewidget.o
      [  6%] Building CXX object rkward/misc/CMakeFiles/misc.dir/rkobjectlistview.o
      [  6%] Building CXX object rkward/misc/CMakeFiles/misc.dir/xmlhelper.o
      [  7%] Building CXX object rkward/misc/CMakeFiles/misc.dir/multistringselector.o
      [  7%] Building CXX object rkward/misc/CMakeFiles/misc.dir/rkcommonfunctions.o
      [  8%] Building CXX object rkward/misc/CMakeFiles/misc.dir/rkprogresscontrol.o
      [  8%] Building CXX object rkward/misc/CMakeFiles/misc.dir/rksaveobjectchooser.o
      [  9%] Building CXX object rkward/misc/CMakeFiles/misc.dir/rkdummypart.o
      [ 10%] Building CXX object rkward/misc/CMakeFiles/misc.dir/rkstandardicons.o
      /Users/****/Desktop/rkward-0.5.0a/rkward/misc/rkstandardicons.cpp:61:2: warning: #warning TODO add further action icons here
      [ 10%] Building CXX object rkward/misc/CMakeFiles/misc.dir/rkstandardactions.o
      Linking CXX static library ../../lib/libmisc.a
      [ 10%] Built target misc
      [ 11%] Generating rktoolwindowbar.moc
      [ 11%] Generating rkcommandeditorwindow.moc
      [ 12%] Generating rkhtmlwindow.moc
      [ 12%] Generating rcontrolwindow.moc
      [ 13%] Generating detachedwindowcontainer.moc
      [ 13%] Generating rkmdiwindow.moc
      [ 14%] Generating rkworkplaceview.moc
      [ 15%] Generating rkworkplace.moc
      [ 15%] Generating rkwindowcatcher.moc
      [ 16%] Generating rkcommandlog.moc
      [ 16%] Generating rkhelpsearchwindow.moc
      [ 17%] Generating rktoplevelwindowgui.moc
      [ 17%] Generating rkfilebrowser.moc
      Scanning dependencies of target windows
      [ 18%] Building CXX object rkward/windows/CMakeFiles/windows.dir/rkcommandeditorwindow.o
      /Users/****/Desktop/rkward-0.5.0a/rkward/windows/rkcommandeditorwindow.cpp:767:2: warning: #warning deal with object removals while the completion model is active! Maybe cache all information?
      [ 18%] Building CXX object rkward/windows/CMakeFiles/windows.dir/rkhtmlwindow.o
      [ 19%] Building CXX object rkward/windows/CMakeFiles/windows.dir/rcontrolwindow.o
      [ 19%] Building CXX object rkward/windows/CMakeFiles/windows.dir/detachedwindowcontainer.o
      [ 20%] Building CXX object rkward/windows/CMakeFiles/windows.dir/rkmdiwindow.o
      [ 21%] Building CXX object rkward/windows/CMakeFiles/windows.dir/rkworkplaceview.o
      [ 21%] Building CXX object rkward/windows/CMakeFiles/windows.dir/rkworkplace.o
      [ 22%] Building CXX object rkward/windows/CMakeFiles/windows.dir/rkwindowcatcher.o
      /Users/******/Desktop/rkward-0.5.0a/rkward/windows/../rkwardapplication.h:38: error: ‘XEvent’ has not been declared
      /opt/qt4/include/QtGui/qx11embed_x11.h:70: error: ‘XEvent’ has not been declared
      /opt/qt4/include/QtGui/qx11embed_x11.h:108: error: ‘XEvent’ has not been declared
      /Users/****/Desktop/rkward-0.5.0a/rkward/windows/rkwindowcatcher.cpp: In constructor ‘RKCaughtX11Window::RKCaughtX11Window(WId, int)’:
      /Users/****/Desktop/rkward-0.5.0a/rkward/windows/rkwindowcatcher.cpp:112: error: ‘KWindowInfo’ was not declared in this scope
      /Users/****/Desktop/rkward-0.5.0a/rkward/windows/rkwindowcatcher.cpp:112: error: expected `;' before ‘wininfo’
      /Users/****/Desktop/rkward-0.5.0a/rkward/windows/rkwindowcatcher.cpp:113: error: ‘wininfo’ was not declared in this scope
      /Users/****/Desktop/rkward-0.5.0a/rkward/windows/rkwindowcatcher.cpp:114: error: ‘wininfo’ was not declared in this scope
      make[2]: *** [rkward/windows/CMakeFiles/windows.dir/rkwindowcatcher.o] Error 1
      make[1]: *** [rkward/windows/CMakeFiles/windows.dir/all] Error 2
      make: *** [all] Error 2

       
      • John Doe

        John Doe - 2008-03-13

        I tried to put a line of X11/Xlib.h include but failed with conflicting declaration ‘typedef void Display’ error.
        I can't tell rkward is wrong or kde is wrong.
        Does anybody know that? How can I bypass this error?

         
        • Thomas Friedrichsmeier

          Hi,

          sorry for not responding earlier. Right now RKWard does not support MacOS X. Besides the troubles you already ran into, there are some more lingering in rembedinternal.cpp, and potentially a few other files.

          While we certainly hope to support MacOS in the future, we'd really need some help in the port. If you have some development knowledge, your help will be much appreciated. You can best contact us on rkward-devel at lists dot sourceforge dot net about this, and we'll try to help out, where we can. But if you're just looking for an easy solution to compile RKWard on MacOS, we just can't provide that, yet.

          Regards
          Thomas

           
MongoDB Logo MongoDB