[kde-edu]: Step: interactive physical simulator

Carsten Niehaus cniehaus at gmx.de
Sat Jan 27 20:25:46 CET 2007


Moin

I just looked at it. Here is the screenie from the homepage:

http://sourceforge.net/project/screenshots.php?group_id=187916

It is already using CMake. 

-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Check size of void*
-- Check size of void* - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Using GSL from /usr
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Found Qt-Version 4.2.2
-- Found Qt-Version 4.2.2
-- Configuring done
-- Generating done
-- Build files have been written to: /home/carsten/svn/step/step/build

results in this error:

make[2]: Entering directory `/home/carsten/svn/step/step/build'
/usr/bin/cmake -E 
cmake_progress_report /home/carsten/svn/step/step/build/CMakeFiles 1
[  2%] Building CXX object stepcore/CMakeFiles/stepcore.dir/world.o
/usr/bin/c++   ;-Wall -I/home/carsten/svn/step/step/. -I/usr/include/QtXml -I/usr/include/QtCore -I/home/carsten/svn/step/step/build/stepcore   -DSTEPCORE_WITH_GSL -DSTEPCORE_WITH_QT -DQT_SHARED -DQT_XML_LIB -DQT_CORE_LIB -o 
stepcore/CMakeFiles/stepcore.dir/world.o -c /home/carsten/svn/step/step/stepcore/world.cc
c++: no input files
/bin/sh: -Wall: command not found
make[2]: *** [stepcore/CMakeFiles/stepcore.dir/world.o] Error 127
make[2]: Leaving directory `/home/carsten/svn/step/step/build'
make[1]: *** [stepcore/CMakeFiles/stepcore.dir/all] Error 2
make[1]: Leaving directory `/home/carsten/svn/step/step/build'
make: *** [all] Error 2


This patch to CMakeLists.txt fixes the problem:

-set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} -Wall)
-set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -Wall)
+set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS})
+set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})

When you port to KDE4 you would use the KDE4-cmake-stuff anyway. By the way, 
KDE4 now depends on CMake 2.4.5.




About the app: With the patch it compiles. I am pretty impressed. It seems to 
really work already, though the UI is really not good. But you know that of 
course. I would like to see it in KDE4, why not?
The first step would be to move it to kdeplayground and port it to Qt4.2 and 
KDE4. After that and some more features you'd move it to kdereview and then 
to kdeedu.
I am sure some lone souls of the KDE community will help you here and there. 
As the author of Kalzium and a chemistry teacher I would love to have some 
simulations at hand. For example, the charged particle thing.

Carsten








More information about the kde-edu mailing list