View Full Version : dfGUI for Linux!
bwkaz
02-09-2003, 09:22 AM
Yeah, you heard right! :D
There is now a port (well, more accurately, a reimplementation, but whatever) of dfGUI, for Linux and Qt. It's even pseudo-skinnable.
Check it out here:
http://3dguios.resnet.mtu.edu/dfGUI-linux
Check out BUGS and INSTALL (text files in the package) before installing it. There is one fairly major bug that I haven't been able to track down, that requires some special installation procedures.
Have fun! :D
Great! I'll give this a try some time!
IronBits
02-09-2003, 12:14 PM
Alright! Thanks for the hard work.
:thumbs:
Moogie
02-09-2003, 03:04 PM
This is great. I'll check it out! Thanks! :cheers:
Dyyryath
02-10-2003, 12:48 AM
Heh, I've been hoping somebody else would do this before I got time to mess with it. :D :thumbs:
It looks pretty good from the SS, but I'm having some compilation issues. I'll pop the source open when I have a few minutes, but in the meantime, does this mean anything to you offhand:
In file included from .ui/dfGUIform.cpp:47:
dfGUIform.ui.h: In member function `void dfGUIform::setupScript(const dfGUIconfiguration&)':
dfGUIform.ui.h:1271: no matching function for call to `QString::QString(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
/usr/local/qt/include/qstring.h:669: candidates are: QString::QString(QStringData*, bool)
/usr/local/qt/include/qstring.h:650: QString::QString(int, bool)
/usr/local/qt/include/qstring.h:391: QString::QString(const char*)
/usr/local/qt/include/qstring.h:389: QString::QString(const QChar*, unsigned int)
/usr/local/qt/include/qstring.h:388: QString::QString(const QByteArray&)
/usr/local/qt/include/qstring.h:387: QString::QString(const QString&)
/usr/local/qt/include/qstring.h:386: QString::QString(QChar)
/usr/local/qt/include/qstring.h:761: QString::QString()
make: *** [.obj/dfGUIform.o] Error 1
I'm using qt 3.1.1 compiled from source. g++ is v3.2. I've got all the devel stuff loaded for X and libstdc++.
bwkaz
02-10-2003, 09:51 AM
I don't know why I didn't see that, but if you go to line 1271 in that file and change QString(switches.str()) to QString(switches.str().c_str()), that should work.
Hmm, I wonder why they got rid of the QString constructor that took a std::string? I don't think I tried using it anywhere else, but if I did, replace that too. I'll fix this and throw the code up again, too.
EDIT: Oh, did you define QT_NO_STL for some reason when you compiled Qt (or the app)? That would do it... Or, are you running this on a Mac? The mac9-mwerks and macx-mwerks mkspecs define QT_NO_STL...
bwkaz
02-18-2003, 11:44 PM
Whee! An update! :D
I finally got around to looking at the biggest known bug. Somehow it seems to be fixed, all I did was reset a couple of QTimer pointers and moved the check for an existing config file up a bit higher. So I'm not quite sure what it was, but it seems fixed.
I also added support for "AutoStop on Battery". I figured out how to read /proc/apm (by reading linux-2.4.20/arch/i386/apm.c, of course! duh, why didn't I think of that earlier :rolleyes: ), so every time the client does a refresh, it checks that file. If you ask it to, if there's a battery in the system, and if the AC line status is "offline", it shuts down the client. No support yet for bringing the client back up; is this needed/wanted by anyone? It wouldn't be too hard to do, but I need sleep today so I won't put it in now. ;)
There is currently no APM driver version checking done on /proc/apm, which means if you run an APM driver other than 1.16 (the first number in the file is the driver version), it may very well not work. CONFIG_PM and CONFIG_APM are required in the kernel, or the /proc/apm file will not exist. If it doesn't exist, though, the program handles it nearly gracefully (all APM-related stuff is disabled). No support is here for apmd, the user-space daemon. Perhaps that would be easier, but I don't run it, so yeah. ;)
The BUGS file has been renamed to GOTCHAS, because that's what it is now. Since no prewritten rc file is necessary, the dfGUI.rc template has also been removed.
The page has been updated; the link is the same. The filename is also the same, because I want to keep the versioning in step with the Windows dfGUI.
Powered by vBulletin® Version 4.2.4 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.