LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-07-2004, 02:37 AM   #1
BaPu
LQ Newbie
 
Registered: Mar 2003
Location: France
Distribution: debian, gnome 2.6,kernel 2.6.4
Posts: 11

Rep: Reputation: 0
installing fluxbox 0.9.8


I am having some trouble upgrading fluxbox 0.1.14 to fluxbox 0.9.8
I followed the instructions.
Code:
./configure
seems to work fine
But when it comes to
Code:
make
it prints this:

Code:
g++ -DHAVE_CONFIG_H -I. -I. -I..  -Wall  -IFbTk   -g -O2  -I/usr/X11R6/include -DSHAPE    -c -o FbCommands.o `test -f FbCommands.cc || echo './'`FbCommands.cc
FbCommands.cc: Dans constructor «
   FbCommands::RestartFluxboxCmd::RestartFluxboxCmd(const std::string&) »:
FbCommands.cc:85: error: uninitialized member '
   FbCommands::RestartFluxboxCmd::m_screen_num' with 'const' type 'const int'
make[4]: *** [FbCommands.o] Erreur 1
make[4]: quittant le répertoire « /home/bapu/fluxbox/fluxbox-0.9.8/src »
make[3]: *** [all-recursive] Erreur 1
make[3]: quittant le répertoire « /home/bapu/fluxbox/fluxbox-0.9.8/src »
make[2]: *** [all] Erreur 2
make[2]: quittant le répertoire « /home/bapu/fluxbox/fluxbox-0.9.8/src »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /home/bapu/fluxbox/fluxbox-0.9.8 »
make: *** [all] Erreur 2
Does someone have any clues of what might have gone wrong?
 
Old 04-07-2004, 11:40 PM   #2
AutOPSY
Member
 
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836

Rep: Reputation: 31
FbCommands.cc:85: error: uninitialized member '

remove this member from this file.

if you post this file I may be able to tell you exactly what to remove.
Its unfinished or a typo looks like.
post FbCommands.cc file from the fluxbox source code directory to this board.
 
Old 04-08-2004, 03:52 AM   #3
BaPu
LQ Newbie
 
Registered: Mar 2003
Location: France
Distribution: debian, gnome 2.6,kernel 2.6.4
Posts: 11

Original Poster
Rep: Reputation: 0
Here is the file, it is a bit big
Code:
// FbCommands.cc for Fluxbox
// $Id: FbCommands.cc,v 1.22 2003/12/20 17:41:32 fluxgen Exp $

#include "FbCommands.hh"
#include "fluxbox.hh"
#include "Screen.hh"
#include "CommandDialog.hh"
#include "Workspace.hh"
#include "Keys.hh"

#include "FbTk/Theme.hh"
#include "FbTk/Menu.hh"

#include <sys/types.h>
#include <unistd.h>

#include <fstream>
#include <iostream>
using namespace std;

namespace FbCommands {

ExecuteCmd::ExecuteCmd(const std::string &cmd, int screen_num):m_cmd(cmd), m_screen_num(screen_num) {

}

void ExecuteCmd::execute() {
#ifndef    __EMX__
    if (! fork()) {
        std::string displaystring("DISPLAY=");
        displaystring += DisplayString(FbTk::App::instance()->display());
        char intbuff[64];
        int screen_num = m_screen_num;
        if (screen_num < 0) {
            if (Fluxbox::instance()->mouseScreen() == 0)
                screen_num = 0;
            else
                screen_num = Fluxbox::instance()->mouseScreen()->screenNumber();
        }

        sprintf(intbuff, "%d", screen_num);

        // remove last number of display and add screen num
        displaystring.erase(displaystring.size()-1);
        displaystring += intbuff;
        setsid();
        putenv(const_cast<char *>(displaystring.c_str()));
        execl("/bin/sh", "/bin/sh", "-c", m_cmd.c_str(), 0);
        exit(0);
    }
#else //   __EMX__
    spawnlp(P_NOWAIT, "cmd.exe", "cmd.exe", "/c", item->exec().c_str(), 0);
#endif // !__EMX__

}

void ExitFluxboxCmd::execute() {
    Fluxbox::instance()->shutdown();
}

void SaveResources::execute() {
    Fluxbox::instance()->save_rc();
}

RestartFluxboxCmd::RestartFluxboxCmd(const std::string &cmd):m_cmd(cmd){
}

void RestartFluxboxCmd::execute() {
    if (m_cmd.size() == 0) {
        Fluxbox::instance()->restart();
    } else {
        Fluxbox::instance()->restart(m_cmd.c_str());
    }
}

void ReconfigureFluxboxCmd::execute() {
    Fluxbox::instance()->reconfigure();
}


void ReloadStyleCmd::execute() {
    SetStyleCmd cmd(Fluxbox::instance()->getStyleFilename());
    cmd.execute();
}

SetStyleCmd::SetStyleCmd(const std::string &filename):m_filename(filename) {

}

void SetStyleCmd::execute() {
    Fluxbox::instance()->saveStyleFilename(m_filename.c_str());
    Fluxbox::instance()->save_rc();
    FbTk::ThemeManager::instance().load(m_filename);
}

void ShowRootMenuCmd::execute() {
    BScreen *screen = Fluxbox::instance()->mouseScreen();
    if (screen == 0)
        return;

    Window root_ret;
    Window window_ret;

    int rx, ry;
    int wx, wy;
    unsigned int mask;

    if ( XQueryPointer(FbTk::App::instance()->display(),
                       screen->rootWindow().window(), &root_ret, &window_ret,
                       &rx, &ry, &wx, &wy, &mask) ) {

        if ( rx - (screen->getRootmenu().width()/2) > 0 )
            rx-= screen->getRootmenu().width()/2;
        screen->getRootmenu().move(rx, ry);
    }

    screen->getRootmenu().show();
    screen->getRootmenu().grabInputFocus();

}

void ShowWorkspaceMenuCmd::execute() {
    BScreen *screen = Fluxbox::instance()->mouseScreen();
    if (screen == 0)
        return;

 

    Window root_ret;
    Window window_ret;

    int rx, ry;
    int wx, wy;
    unsigned int mask;

    if ( XQueryPointer(FbTk::App::instance()->display(),
                       screen->rootWindow().window(), &root_ret, &window_ret,
                       &rx, &ry, &wx, &wy, &mask) ) {

        if ( rx - (screen->getWorkspacemenu().width()/2) > 0 )
            rx-= screen->getWorkspacemenu().width()/2;
        screen->getWorkspacemenu().move(rx, ry);
    }
    screen->getWorkspacemenu().show();
    screen->getWorkspacemenu().grabInputFocus();
 
}



SetWorkspaceNameCmd::SetWorkspaceNameCmd(const std::string &name, int spaceid):
    m_name(name), m_workspace(spaceid) { }

void SetWorkspaceNameCmd::execute() {
    BScreen *screen = Fluxbox::instance()->mouseScreen();
    if (screen == 0) {
        screen = Fluxbox::instance()->keyScreen();
        if (screen == 0)
            return;
    }

    if (m_workspace < 0) {
        screen->currentWorkspace()->setName(m_name);
    } else {
        Workspace *space = screen->getWorkspace(m_workspace);
        if (space == 0)
            return;
        space->setName(m_name);
    }

    screen->updateWorkspaceNamesAtom();
    Fluxbox::instance()->save_rc();
}

void WorkspaceNameDialogCmd::execute() {

    BScreen *screen = Fluxbox::instance()->mouseScreen();
    if (screen == 0)
        return;

    CommandDialog *win = new CommandDialog(*screen, "Set Workspace Name:", "SetWorkspaceName ");
    win->setText(screen->currentWorkspace()->name());
    win->show();
}

void CommandDialogCmd::execute() {
    BScreen *screen = Fluxbox::instance()->mouseScreen();
    if (screen == 0)
        return;

    FbTk::FbWindow *win = new CommandDialog(*screen, "Fluxbox Command");
    win->show();
}

    
SetResourceValueCmd::SetResourceValueCmd(const std::string &resname, 
                                         const std::string &value):
    m_resname(resname),
    m_value(value) {

}

void SetResourceValueCmd::execute() {
    BScreen *screen = Fluxbox::instance()->mouseScreen();
    if (screen == 0)
        return;
    screen->resourceManager().setResourceValue(m_resname, m_value);
    Fluxbox::instance()->save_rc();
}

void SetResourceValueDialogCmd::execute() {
    BScreen *screen = Fluxbox::instance()->mouseScreen();
    if (screen == 0)
        return;

    FbTk::FbWindow *win = new CommandDialog(*screen,  "Type resource name and the value", "SetResourceValue ");
    win->show();
};

BindKeyCmd::BindKeyCmd(const std::string &keybind):m_keybind(keybind) { }

void BindKeyCmd::execute() {
    if (Fluxbox::instance()->keys() != 0) {
        if (Fluxbox::instance()->keys()->addBinding(m_keybind)) {
            ofstream ofile(Fluxbox::instance()->keys()->filename().c_str(), ios::app);
            if (!ofile)
                return;            
            ofile<<m_keybind<<endl;
        }
    }
}

}; // end namespace FbCommands
 
Old 04-08-2004, 04:18 AM   #4
BaPu
LQ Newbie
 
Registered: Mar 2003
Location: France
Distribution: debian, gnome 2.6,kernel 2.6.4
Posts: 11

Original Poster
Rep: Reputation: 0
I tried to ommit line 85.
./configure went fine. However make crashed and returned almost the same but refering to other files. So I tried to ommit the lines in the other lines. And I reached this point. And now I am stuck
Code:
Screen.o(.text+0x133f1): In function `BScreen::initMenu()':
/usr/include/c++/3.3/bits/stl_alloc.h:652: undefined reference to `FbCommands::RestartFluxboxCmd::RestartFluxboxCmd[in-charge](std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: ld returned 1 exit status
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing FLUXBOX? carlosinfl Debian 6 10-13-2005 03:26 PM
installing fluxbox annehoog Linux - Software 9 08-04-2004 12:41 PM
installing theme: Fluxbox kuffal General 27 07-13-2004 09:51 PM
installing fluxbox JROCK1980 Linux - Software 2 03-15-2004 09:15 PM
installing slack 8.1 and fluxbox N_A_J_M Slackware 2 02-04-2003 03:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration