QStars

Screensavers

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

2
Score 50.0%
Description:

Fast and small screen saver.
It simulates flight of the spacecrafts and the planets in the space.
Last changelog:

14 years ago

Added support for asteroids.
Added sprites for asteroids.
Added keyboard support (for demo mode only).
Various improvements.

ulam

11 years ago

Just wanted to comment, I've taken this very awesome screensaver and ported it to work with QT4, at the authors request I forked the project and have posted it under QCosmos here: http://www.kde-look.org/content/show.php/QCosmos?content=80217

Report

tripmine

12 years ago

This screensaver looks awesome but I haven't the slightest clue on how to install it...

Report

jackcy

12 years ago

i linke this screensaver! Wonder why it is not yet in the standard screensaver package. good work.

Report

janet

13 years ago

Very cool, finally a screensaver that perfectly fits my needs :)

Report

agentdunken

14 years ago

adam@ip68-228-229-136:~/programs> cd qstars-0.4
adam@ip68-228-229-136:~/programs/qstars-0.4> qmake
Project MESSAGE: Configuring for multi-threaded Qt...
adam@ip68-228-229-136:~/programs/qstars-0.4> make
g++ -c -pipe -fno-strict-aliasing -O2 -D_REENTRANT -Wall -W -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_GUI_LIB -DQT_SHARED -I/usr/share/qt/mkspecs/default -I. -I/usr/include/QtGui -I/usr/include/QtCore -I/usr/include -I. -I. -o mainwindow.o mainwindow.cpp
In file included from mainwindow.cpp:15:
mainwindow.h:47: error: 'QPtrList' is used as a type, but is not defined as a
type.
mainwindow.cpp:139: error: field `timer' has incomplete type
mainwindow.cpp: In constructor `Asteroid::Asteroid(QPixmap*)':
mainwindow.cpp:146: error: `timer' undeclared (first use this function)
mainwindow.cpp:146: error: (Each undeclared identifier is reported only once
for each function it appears in.)
mainwindow.cpp: In member function `void Asteroid::paint(QPainter*)':
mainwindow.cpp:188: error: no matching function for call to `QPainter::
drawPixmap(int&, int&, QPixmap&, int, int, int)'
/usr/include/QtGui/qpainter.h:253: error: candidates are: void
QPainter::drawPixmap(const QRectF&, const QPixmap&, const QRectF&)
/usr/include/QtGui/qpainter.h:643: error: void
QPainter::drawPixmap(const QRect&, const QPixmap&, const QRect&)
/usr/include/QtGui/qpainter.h:674: error: void
QPainter::drawPixmap(int, int, int, int, const QPixmap&, int, int, int, int)
/usr/include/QtGui/qpainter.h:680: error: void
QPainter::drawPixmap(int, int, const QPixmap&, int, int, int, int)
/usr/include/QtGui/qpainter.h:685: error: void
QPainter::drawPixmap(const QPointF&, const QPixmap&, const QRectF&)
/usr/include/QtGui/qpainter.h:690: error: void
QPainter::drawPixmap(const QPoint&, const QPixmap&, const QRect&)
/usr/include/QtGui/qpainter.h:648: error: void
QPainter::drawPixmap(const QPointF&, const QPixmap&)
/usr/include/QtGui/qpainter.h:653: error: void
QPainter::drawPixmap(const QPoint&, const QPixmap&)
/usr/include/QtGui/qpainter.h:663: error: void
QPainter::drawPixmap(int, int, const QPixmap&)
/usr/include/QtGui/qpainter.h:658: error: void
QPainter::drawPixmap(const QRect&, const QPixmap&)
/usr/include/QtGui/qpainter.h:668: error: void
QPainter::drawPixmap(int, int, int, int, const QPixmap&)
mainwindow.cpp: At global scope:
mainwindow.cpp:200: error: 'QPtrList' is used as a type, but is not defined as
a type.
mainwindow.cpp:201: error: 'QPtrList' is used as a type, but is not defined as
a type.
mainwindow.cpp: In constructor `Asteroids::Asteroids()':
mainwindow.cpp:207: error: `pixmaps' undeclared (first use this function)
mainwindow.cpp:208: error: `asteroids' undeclared (first use this function)
mainwindow.cpp: At global scope:
mainwindow.cpp:254: error: 'QPtrList' is used as a type, but is not defined as
a type.
mainwindow.cpp: In constructor `Planet::Planet()':
mainwindow.cpp:262: error: `create' undeclared (first use this function)
mainwindow.cpp:264: error: `maps' undeclared (first use this function)
mainwindow.cpp:290: error: `convertFromImage' undeclared (first use this
function)
mainwindow.cpp: In member function `virtual void Planet::paint(QPainter*)':
mainwindow.cpp:308: error: `convertFromImage' undeclared (first use this
function)
mainwindow.cpp: In constructor `Ship::Ship()':
mainwindow.cpp:333: error: `convertFromImage' undeclared (first use this
function)
mainwindow.cpp: In constructor `MainWindow::MainWindow(long unsigned int)':
mainwindow.cpp:358: error: `stars' undeclared (first use this function)
mainwindow.cpp:359: error: `resize' undeclared (first use this function)
mainwindow.cpp:361: error: `create' undeclared (first use this function)
mainwindow.cpp:363: error: `NoBackground' undeclared (first use this function)
mainwindow.cpp:363: error: `setBackgroundMode' undeclared (first use this
function)
mainwindow.cpp:364: error: 'class QPixmap' has no member named 'fromMimeSource'
mainwindow.cpp:364: error: `setIcon' undeclared (first use this function)
mainwindow.cpp:365: error: `setCaption' undeclared (first use this function)
mainwindow.cpp:370: error: `readNumEntry' undeclared (first use this function)
mainwindow.cpp:371: error: `readBoolEntry' undeclared (first use this function)
mainwindow.cpp: In destructor `virtual MainWindow::~MainWindow()':
mainwindow.cpp:393: error: `writeEntry' undeclared (first use this function)
mainwindow.cpp: In member function `void MainWindow::restart()':
mainwindow.cpp:415: error: `black' undeclared (first use this function)
mainwindow.cpp:419: error: `QValueList' undeclared (first use this function)
mainwindow.cpp:419: error: syntax error before `>' token
mainwindow.cpp:420: error: `list' undeclared (first use this function)
mainwindow.cpp:434: error: `QWMatrix' undeclared (first use this function)
mainwindow.cpp:434: error: syntax error before `;' token
mainwindow.cpp:436: error: `matrix' undeclared (first use this function)
mainwindow.cpp:436: error: `xForm' undeclared (first use this function)
mainwindow.cpp:439: error: `bitBlt' undeclared (first use this function)
mainwindow.cpp: In member function `virtual void
MainWindow::timerEvent(QTimerEvent*)':
mainwindow.cpp:456: error: `bitBlt' undeclared (first use this function)
mainwindow.cpp: In member function `virtual void
MainWindow::keyPressEvent(QKeyEvent*)':
mainwindow.cpp:468: error: `key' undeclared (first use this function)
mainwindow.cpp:470: error: `Key_Up' undeclared (first use this function)
mainwindow.cpp:474: error: `Key_Down' undeclared (first use this function)
mainwindow.cpp:478: error: `Key_Right' undeclared (first use this function)
mainwindow.cpp:486: error: `Key_Q' undeclared (first use this function)
make: *** [mainwindow.o] Error 1
adam@ip68-228-229-136:~/programs/qstars-0.4>

Eh?

Report

lmcafe

12 years ago

Same Output here...

Report

agentdunken

14 years ago

Ok this is odd. I go to install it and do like I said in the first post qmake but it comes up saying qmake can not be found. Then I look in the folder and no wonder why qmake is not in there! How do I get it to work?

adam@ip68-228-229-136:~/programs/qstars-0.4> ./qmake
bash: ./qmake: No such file or directory
adam@ip68-228-229-136:~/programs/qstars-0.4>

Report

C

Andi

14 years ago

You need to install qt-tools ot qt-free from sources.

Report

agentdunken

14 years ago

Open a terminal. cd to where you saved example cd /home/adam/programs/qstars-0.4
then after that do qmake, make, su then your password, then make install.

Report

smihael

14 years ago

Hello!
How to install?

Miha

Report

atifmkhan

14 years ago

I did qmake, make and make install. Everything went fine and I can run it as an application. But somehow it does not show up in the screensavers list. I am running Mandrake 10.1

Report

Adinsx88

14 years ago

Same here. It's not showing up.

Report

dtmonterrey

14 years ago

Good work. This screen saver is very good.I think it will be my default for a long, long time...

Thank you

Report

C

Andi

14 years ago

Hi!

Thank you for feedback! I am happy)

For everybody:

I am interesting by good graphics for qstars now. So if you have such, mail me please!

Report

tek-69

14 years ago

im running fedcore 3 with kde 3.x
i followed dirs and it works fine, cept for setup in control center, but using qstars -setup on the line worked fine so no big deal. i just wish my graphics card was better so i could enjoy it this with the ships.
thanks for the ss

Report

C

Andi

14 years ago

Hi!

QStars do not use OpenGL for rendering now, but it requires quick CPU. I think this will be fixed in future.

Report

marclijour

14 years ago

How do you install this on Mandrake?
I am not familiar with KDE setup. As far as I see it uses xscreensaver to take care of the job.

qstars -setup runs fine

Now how do I add the screensaver to the option list and how do I select it?

Report

C

Andi

14 years ago

>How do you install this on Mandrake?
>I am not familiar with KDE setup. As far as I see it uses xscreensaver to take care of the job.

No, it does not use the xscreensaver. After installation (with make install) required links will be added to KDE Control Center. Run it.

Report

marclijour

14 years ago

After make install I can see that the files are copied and a .desktop entry is put in the right place:

cp -f "qstars.desktop" "/usr/share/applnk/System/ScreenSavers/"

Now the problem is that in the KDE Kontrol Center/LookNFeel/ScreenSavers I cannot locate the QStars entry.

The screensavers are grouped by categories (like Desktop distortions which is one) and QStars is below none of them. While all .desktop entries are in the same directory (level) I do not understand where kde reads that it should group them by categories?

Report

marclijour

14 years ago

I also tried to edit manually the config file to add the qstars.desktop entry like this:

$cd ~/.kde/share/config
$vi kdesktoprc

QStars did not run.

Report

gproso

14 years ago

You need to copy the file qstars.desktop to ~/.kde/share/applnk-mdk/.hidden/ScreenSavers and to ~/.kde/share/applnk-mdk-simplified/.hidden/ScreenSavers
then select it from your KDE Control Centre

Report

marclijour

14 years ago

Yes it works!

Thanks :)

Report

BorgQueen

14 years ago

Hi Andi
I followed the instruction in the readme but ended up with an error. What do you think it is?
The BorgQueen

g++ -c -pipe -Wall -W -O2 -march=i386 -mcpu=i686 -g -DGLX_GLXEXT_LEGACY -fno-use-cxa-atexit -fno-exceptions -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/usr/lib/qt-3.1/mkspecs/default -I. -I/usr/lib/qt-3.1/include -o mainwindow.o mainwindow.cpp
mainwindow.cpp: In member function `QImage MainWindow::loadRandomImage(const
QString&)':
mainwindow.cpp:282: no matching function for call to `QApplication::
applicationDirPath()'
make: *** [mainwindow.o] Error 1

Report

C

Andi

14 years ago

You need update Qt-library. Try 3.3.3 version (or 3.2 if possible).

Also you can replace this code (QApplication::applicationDirPath () call) by string "/usr/local/bin/".

Report

BorgQueen

14 years ago

Hi Andi,

Sorry I don't follow.

Also you can replace this code (QApplication::applicationDirPath () call) by string "/usr/local/bin/".

I'm great with hardware, not so good with software (yet). Could you provide a little more detail.

At the moment I can't upgrade to 3.1.

The Borg Queen

Report

14 years ago

Added support for asteroids.
Added sprites for asteroids.
Added keyboard support (for demo mode only).
Various improvements.

12345678910
product-maker Base: 4 x 5.0 Ratings
Avalonemyst
Aug 19 2018
janet
May 09 2009
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.4
updated Feb 13 2005
added Jan 12 2004
downloads 24h
0
pageviews 24h 2