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
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
04-07-2004, 02:37 AM
#1
LQ Newbie
Registered: Mar 2003
Location: France
Distribution: debian, gnome 2.6,kernel 2.6.4
Posts: 11
Rep:
installing fluxbox 0.9.8
I am having some trouble upgrading fluxbox 0.1.14 to fluxbox 0.9.8
I followed the instructions.
seems to work fine
But when it comes to
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?
04-07-2004, 11:40 PM
#2
Member
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836
Rep:
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.
04-08-2004, 03:52 AM
#3
LQ Newbie
Registered: Mar 2003
Location: France
Distribution: debian, gnome 2.6,kernel 2.6.4
Posts: 11
Original Poster
Rep:
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
04-08-2004, 04:18 AM
#4
LQ Newbie
Registered: Mar 2003
Location: France
Distribution: debian, gnome 2.6,kernel 2.6.4
Posts: 11
Original Poster
Rep:
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
All times are GMT -5. The time now is 12:12 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News