SOURCE CODES

KBasic's source codes are copyrighted by Bernd Noetscher 2000 - 2009. All rights reserved.

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.

--------------------------

32 bit only

Only for Open Source software

Code must be distributed

You cannot start developing open source software and convert to commercial closed source software

In order to compile KBasic, you need to have installed Qt development packages (Version >= 4.6)

--------------------------

Instructions

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.

--------------------------

Windows, Mac and Linux

The following package contains three projects for Qt Creator with complete source codes:

  • kbc - the compiler (only C++ program without Qt usage, but still a Qt project for easy compilation)
  • kbide - the IDE (with Qt usage)
  • kbrun - the runtime and intepreter (with Qt usage)
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)]

Build script build.sh for Linux only

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.
Back to top
source_codes.txt · Last modified: 2010/04/27 21:37 by berndnoetscher