LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: basten54188

关于WM2窗口管理器的问题!

[复制链接]
发表于 2003-5-21 20:57:28 | 显示全部楼层
编译好了以后用不着make install,把src目录下的qlwm拷到随便那个能执行到目录里,在用户的HOME目录里建一个./qlwm目录,把files下的文件拷进去,编辑$(HOME)/.xsession,就一行exec qlwm,完了运行startx就行了。
 楼主| 发表于 2003-5-21 21:00:57 | 显示全部楼层
libinary兄!

src目录下好像没有qlwm啊!!怎么回事?
 楼主| 发表于 2003-5-21 21:04:12 | 显示全部楼层
怎么修改啊??教教小弟!
我只留下SCR和FILES两个目录,其余的玩意全不要可不可以!?
发表于 2003-5-21 21:17:55 | 显示全部楼层
dclock和mail可以不要。
你编译过了吗,编译了就应该有qlwm呀,我用的是debian,好多东西和你不一样,我改的代码你不一定用的着的,你先编译吧,你用的是qt3吗?看看$(QTDIR)/include里有qlist.h和qstack.h没有。
发表于 2003-5-21 21:32:28 | 显示全部楼层
我改的如下:

src/defs.h
#include <qlist.h>
#include <qstack.h>
两行改成:
#include <qptrlist.h>
#include <qptrstack.h>
最后加上两行:
#include <qcursor.h>
#include <qtimer.h>

src/xwindow.cpp
1424行:
GC gc = qt_xget_temp_gc(depth = 1) 改成:
GC gc = qt_xget_temp_gc(depth = 1, TRUE)
1429行:
gc = qt_xget_temp_gc(TRUE) 改成:
gc = qt_xget_temp_gc(1, TRUE)

*这两处我也不知道改的对不对,qt_xget_temp_gc()没搞清楚。

你先编译一下看能编译出qlwm不?
 楼主| 发表于 2003-5-21 21:35:25 | 显示全部楼层
怎么编译?MAKE就可以了吗??
发表于 2003-5-21 21:39:03 | 显示全部楼层
直接在src目录下make就行了
 楼主| 发表于 2003-5-21 21:55:58 | 显示全部楼层
In file included from /usr/include/c++/3.2/backward/iostream.h:31,
                 from defs.h:29,
                 from xwindow.cpp:9:
/usr/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
xwindow.cpp: In constructor `xwindow::xwindow(long unsigned int, QWidget*)':
xwindow.cpp:235: invalid use of undefined type `struct QTimer'
/usr/lib/qt3-gcc3.2/include/qwindowdefs.h:81: forward declaration of `struct
   QTimer'
xwindow.cpp:237: no matching function for call to `xwindow::connect(QTimer*&,
   const char[11], const char[9])'
/usr/lib/qt3-gcc3.2/include/qobject.h:112: candidates are: static bool
   QObject::connect(const QObject*, const char*, const QObject*, const char*)
/usr/lib/qt3-gcc3.2/include/qobject.h:208:                 bool
   QObject::connect(const QObject*, const char*, const char*) const
xwindow.cpp: In member function `void xwindow::press_move(QMouseEvent*)':
xwindow.cpp:478: invalid use of undefined type `struct QCursor'
/usr/lib/qt3-gcc3.2/include/qnamespace.h:47: forward declaration of `struct
   QCursor'
xwindow.cpp: In member function `void xwindow::press_leftresize(QMouseEvent*)':
xwindow.cpp:512: invalid use of undefined type `struct QCursor'
/usr/lib/qt3-gcc3.2/include/qnamespace.h:47: forward declaration of `struct
   QCursor'
xwindow.cpp: In member function `void
   xwindow::press_rightresize(QMouseEvent*)':
xwindow.cpp:564: invalid use of undefined type `struct QCursor'
/usr/lib/qt3-gcc3.2/include/qnamespace.h:47: forward declaration of `struct
   QCursor'
xwindow.cpp: In member function `void xwindow::press_midresize(QMouseEvent*)':
xwindow.cpp:606: invalid use of undefined type `struct QCursor'
/usr/lib/qt3-gcc3.2/include/qnamespace.h:47: forward declaration of `struct
   QCursor'
xwindow.cpp: In member function `void xwindow::stopautofocus()':
xwindow.cpp:912: invalid use of undefined type `struct QTimer'
/usr/lib/qt3-gcc3.2/include/qwindowdefs.h:81: forward declaration of `struct
   QTimer'
xwindow.cpp: In member function `void xwindow::startautofocus()':
xwindow.cpp:951: invalid use of undefined type `struct QTimer'
/usr/lib/qt3-gcc3.2/include/qwindowdefs.h:81: forward declaration of `struct
   QTimer'
/usr/lib/qt3-gcc3.2/include/qwindowdefs.h: In member function `void
   xwindow::get_servericon(long unsigned int, long unsigned int)':
/usr/lib/qt3-gcc3.2/include/qwindowdefs.h:149: too few arguments to function `
   _XGC* qt_xget_temp_gc(int, bool)'
xwindow.cpp:1424: at this point in file
/usr/lib/qt3-gcc3.2/include/qwindowdefs.h:149: too few arguments to function `
   _XGC* qt_xget_temp_gc(int, bool)'
xwindow.cpp:1429: at this point in file
make: *** [xwindow.o] Error 1
发表于 2003-5-21 21:59:03 | 显示全部楼层
按我上面说的改,应该差不多
 楼主| 发表于 2003-5-21 22:02:11 | 显示全部楼层
OK!
偶试试把!老大问你在plwm2.2/下的CHANGES,COPYING,qlwm1,READme makefile可不可以不要!?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表