| You may use the public KBasic’s source codes of the compiler, the IDE and the VM under the terms of the GNU Public License as published by the Free Software Foundation (Version 3). If you are interested in using the source codes for other licenses or closed source commercial development, you must buy commercial licenses from KBasic Software. KBasic Software offers the source code for non-open source projects of the compiler, the GUI and VM running on Windows, Mac and Linux. Namely IDE, form designer, toolbox, property window, source code editor with syntax highlighting, code complition, bookmarks, breakpoints, source code browser, builtin help, help file generator, project window et cetera for a low price. Please contact KBasic Software. KBasic and its documentations are copyrighted and are protected by German copyright laws and international treaty provisions. |
In older released there was the need to compile each sub-project by doing the following task.
Change the common define.h to a proper value for each project.
So there is a changed configuration of the build files, so there is no need of changing the defines for each sub-project: kbc, kbide and kbrun and all three projects are now qmake based, so that the following script will compile it. Also removed the need to set defines for each platform before compilation, now it is automatically done.
Compiling the project can be achieved by using Qt Creator (or qmake only) on all supported platforms. Project files for Xcode, KDevelop and Visual Studio are not provided anymore and only one source package is available and which makes it is easier to maintain it.
The following package contains three projects for Qt Creator with complete source codes:
| Available under the terms of the GNU Public License as published by the Free Software Foundation (Version 3): http://www.kbasic.com/kbasic_sourcecodes.zip [V1.89(u)] |
The following bash script compiles all three projects.
Just go to the kbasic source code directory and create a new file called build.sh with the following text. Make it executable and open the shell and run it by typing
./build.sh
(at the place where build.sh has been created).
You need to have Qt installed and qmake must be installed as well.
#!/bin/bash # Script for Linux only cd kbc rm moc* qmake kbc.pro make -j4 cd .. cd kbide rm moc* qmake kbide.pro make -j4 cd .. cd kbrun rm moc* qmake kbrun.pro make -j4
| Don’t forget to copy (to the installation path) all needed resource files like icons and examples shipping with the binary or tar.gz package. Be careful to have the same structure of files and directory or KBasic won’t work. |