Announcement

Collapse
No announcement yet.

Can't compile nghost with filesystem listbox

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can't compile nghost with filesystem listbox

    Code:
    [email protected]:~/nghost/trunk$ sudo make
    make  all-recursive
    make[1]: Entering directory `/home/jusitn/nghost/trunk'
    Making all in src
    make[2]: Entering directory `/home/jusitn/nghost/trunk/src'
    Making all in nscan
    make[3]: Entering directory `/home/jusitn/nghost/trunk/src/nscan'
    make[3]: Nothing to be done for `all'.
    make[3]: Leaving directory `/home/jusitn/nghost/trunk/src/nscan'
    Making all in skins
    make[3]: Entering directory `/home/jusitn/nghost/trunk/src/skins'
    Making all in vistique
    make[4]: Entering directory `/home/jusitn/nghost/trunk/src/skins/vistique'
    Making all in screens
    make[5]: Entering directory `/home/jusitn/nghost/trunk/src/skins/vistique/screens'
    Making all in images
    make[6]: Entering directory `/home/jusitn/nghost/trunk/src/skins/vistique/screens/images'
    Making all in menu_buttons
    make[7]: Entering directory `/home/jusitn/nghost/trunk/src/skins/vistique/screens/images/menu_buttons'
    make[7]: Nothing to be done for `all'.
    make[7]: Leaving directory `/home/jusitn/nghost/trunk/src/skins/vistique/screens/images/menu_buttons'
    Making all in weather
    make[7]: Entering directory `/home/jusitn/nghost/trunk/src/skins/vistique/screens/images/weather'
    make[7]: Nothing to be done for `all'.
    make[7]: Leaving directory `/home/jusitn/nghost/trunk/src/skins/vistique/screens/images/weather'
    make[7]: Entering directory `/home/jusitn/nghost/trunk/src/skins/vistique/screens/images'
    make[7]: Nothing to be done for `all-am'.
    make[7]: Leaving directory `/home/jusitn/nghost/trunk/src/skins/vistique/screens/images'
    make[6]: Leaving directory `/home/jusitn/nghost/trunk/src/skins/vistique/screens/images'
    make[6]: Entering directory `/home/jusitn/nghost/trunk/src/skins/vistique/screens'
    make[6]: Nothing to be done for `all-am'.
    make[6]: Leaving directory `/home/jusitn/nghost/trunk/src/skins/vistique/screens'
    make[5]: Leaving directory `/home/jusitn/nghost/trunk/src/skins/vistique/screens'
    make[5]: Entering directory `/home/jusitn/nghost/trunk/src/skins/vistique'
    make[5]: Nothing to be done for `all-am'.
    make[5]: Leaving directory `/home/jusitn/nghost/trunk/src/skins/vistique'
    make[4]: Leaving directory `/home/jusitn/nghost/trunk/src/skins/vistique'
    Making all in trueice
    make[4]: Entering directory `/home/jusitn/nghost/trunk/src/skins/trueice'
    make[4]: Nothing to be done for `all'.
    make[4]: Leaving directory `/home/jusitn/nghost/trunk/src/skins/trueice'
    make[4]: Entering directory `/home/jusitn/nghost/trunk/src/skins'
    make[4]: Nothing to be done for `all-am'.
    make[4]: Leaving directory `/home/jusitn/nghost/trunk/src/skins'
    make[3]: Leaving directory `/home/jusitn/nghost/trunk/src/skins'
    Making all in icons
    make[3]: Entering directory `/home/jusitn/nghost/trunk/src/icons'
    make[3]: Nothing to be done for `all'.
    make[3]: Leaving directory `/home/jusitn/nghost/trunk/src/icons'
    Making all in desktop
    make[3]: Entering directory `/home/jusitn/nghost/trunk/src/desktop'
    make[3]: Nothing to be done for `all'.
    make[3]: Leaving directory `/home/jusitn/nghost/trunk/src/desktop'
    make[3]: Entering directory `/home/jusitn/nghost/trunk/src'
    g++ -DHAVE_CONFIG_H -I. -I..    -Wall -g -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL    -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml++-2.6 -I/usr/lib/libxml++-2.6/include -I/usr/include/libxml2 -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/taglib   -DPLUGIN_DIR=\"/usr/local/lib/nghost\" -DHAS_QT -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore   -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/include/nghost   -I/usr/include/nghost -I/usr/include/taglib   -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/nghost -I/usr/include/SDL -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/libxml++-2.6 -I/usr/lib/libxml++-2.6/include -I/usr/include/taglib -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/nghost   -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/nghost -I/usr/include/SDL   -I/usr/include/nghost   -g -O2 -MT nghost-event.o -MD -MP -MF .deps/nghost-event.Tpo -c -o nghost-event.o `test -f 'event.cpp' || echo './'`event.cpp
    event.cpp: In member function ‘int EventClass::ifListboxEvent()’:
    event.cpp:379: error: ‘class nghost::SearchDir’ has no member named ‘isDir’
    event.cpp: In member function ‘int EventClass::doListBoxAction(nghost::ActionClass, int)’:
    event.cpp:1020: error: ‘fsListBox’ is not a member of ‘nghost’
    event.cpp:1020: error: ‘fsl’ was not declared in this scope
    event.cpp:1020: error: expected type-specifier
    event.cpp:1020: error: expected `>'
    event.cpp:1020: error: expected `('
    event.cpp:1020: error: ‘fsListBox’ is not a member of ‘nghost’
    event.cpp:1020: error: expected primary-expression before ‘>’ token
    event.cpp:1020: error: expected `)' before ‘;’ token
    event.cpp:1034: error: ‘fsListBox’ is not a member of ‘nghost’
    event.cpp:1034: error: ‘fsl’ was not declared in this scope
    event.cpp:1034: error: expected type-specifier
    event.cpp:1034: error: expected `>'
    event.cpp:1034: error: expected `('
    event.cpp:1034: error: ‘fsListBox’ is not a member of ‘nghost’
    event.cpp:1034: error: expected primary-expression before ‘>’ token
    event.cpp:1034: error: expected `)' before ‘;’ token
    event.cpp:1046: error: ‘fsListBox’ is not a member of ‘nghost’
    event.cpp:1046: error: ‘fsl’ was not declared in this scope
    event.cpp:1046: error: expected type-specifier
    event.cpp:1046: error: expected `>'
    event.cpp:1046: error: expected `('
    event.cpp:1046: error: ‘fsListBox’ is not a member of ‘nghost’
    event.cpp:1046: error: expected primary-expression before ‘>’ token
    event.cpp:1046: error: expected `)' before ‘;’ token
    make[3]: *** [nghost-event.o] Error 1
    make[3]: Leaving directory `/home/jusitn/nghost/trunk/src'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/home/jusitn/nghost/trunk/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/jusitn/nghost/trunk'
    make: *** [all] Error 2
    [email protected]:~/nghost/trunk$
    got all dependencies, "./configure" and then sudo make. not sure what the problem is but i hope its easy.

    populate.cpp does contain searchDir and isDir. I downloaded the latest from the svn directed by the website.

  • #2
    alright after emailing IonIdea and talking with the guys on the irc channel, I have gotten the filesystem support to work. Heres a quick howto.

    1.) here is the script i wrote to download the source, patch it, and build/install nghost. It automatically installs the required dependencies and whatnot. This script works on a brand new install of linuxice so it should work for you as well.

    Code:
    #install dependencies
    sudo apt-get install libqt4-dev build-essential libtool automake subversion pkg-config libxml++2.6-dev libx11-dev libsdl1.2-dev libsdl-ttf2.0-dev libsdl-gfx1.2-dev libsdl-image1.2-dev libboost-dev libtag1-dev libsqlite3-dev libcurl4-openssl-dev libdbus-1-dev libltdl3-dev
    
    #get the files
    svn checkout -r 2049 https://nghost.svn.sourceforge.net/svnroot/nghost/libnghost libnghost
    svn checkout -r 2049 https://nghost.svn.sourceforge.net/svnroot/nghost/nghost2/trunk trunk
    wget http://ionidea.ua/nghost/sources/fslistbox-patch-0.1.tgz
    
    #patch the source for the listbox addition
    tar -zxvf fslistbox-patch-0.1.tgz
    sh apply_patch.sh
    
    #config/build/make/install lignghost
    cd libnghost
    ./autogen.sh
    ./configure
    make
    sudo make install
    
    #config/build/make/install nghost
    cd ..
    cd trunk
    ./autogen.sh
    ./configure
    make
    sudo make install
    2.) run the script in a terminal to make sure everything went okay. after that there are a few things that need to be changed.

    -if the nghost.conf file you use is in /etc/nghost then copy it to ~.nghost.
    -copy your skins in /usr/share/nghost to /usr/local/share/nghost
    You can use the ~.nghost to hold your skins like tripzero stated, it is nice to keep
    all of you files in your home directory as well.

    3.) open up /etc/ld.so.conf as root in any text editor and add "/usr/local/lib" (no quotes) to it. save the file and run "ldconfig" as root.

    4.) after all this is done, you should be set up to use the filesystem support. you can use the BlackSea skin from IonIdea's website or you can just modify your existing one to allow support. this patch is great for thumb drives and the like.
    Last edited by superman279; 04-04-2011, 12:51 PM.

    Comment


    • #3
      I would copy your private skins to ~/.nghost as well.

      good work!
      Former author of LinuxICE, nghost, nobdy.
      Current author of Automotive Message Broker (AMB).
      Works on Tizen IVI. Does not represent anyone or anything but himself.

      Comment


      • #4
        I am new to linux. How do i run this script? Do i need to create a new script using your code? Also will it resolve mp3 reading issue with Linuxice?
        Sunil

        Comment

        Working...
        X