Compiling KBasic & 64-bit issues

If you have problems with the installation of KBasic, you are right here

Compiling KBasic & 64-bit issues

Postby Luke-Jr » Thu Jan 15, 2009 6:09 pm

Reporting a few problems herein:
1. KBasic's "source codes" do not compile. The build system is entirely broken.
2. The "source codes" may not be the latest version. Is there a repository (CVS, Subversion, etc) somewhere?
3. KBasic appears to contain a lot of bad code which will break on 64-bit systems.
Luke-Jr
 
Posts: 3
Joined: Thu Jan 15, 2009 6:07 pm

Re: Compiling KBasic & 64-bit issues

Postby berndnoetscher » Thu Jan 15, 2009 7:28 pm

It is not supposed to compile on 64bit yet and the latest source codes are fully provided and are working on openSUSE 11.0. Three KDevelop projects for each sub project are provided. You have to set define.h as described on the source codes page: http://www.kbasic.com/doku.php?id=source_codes
berndnoetscher
Site Admin
 
Posts: 1059
Joined: Tue Sep 25, 2007 9:37 am

Re: Compiling KBasic & 64-bit issues

Postby Luke-Jr » Fri Jan 16, 2009 12:20 am

I did read the instructions. The build system is broken in the source code downloads, however.
Luke-Jr
 
Posts: 3
Joined: Thu Jan 15, 2009 6:07 pm

Re: Compiling KBasic & 64-bit issues

Postby berndnoetscher » Fri Jan 16, 2009 8:13 am

Which error message do you get? Do you have all needed libraries installed, escpecially development libraries? The list of dependencies on the download page, give you a clue what is needed. Thanks in advance.
berndnoetscher
Site Admin
 
Posts: 1059
Joined: Tue Sep 25, 2007 9:37 am

Re: Compiling KBasic & 64-bit issues

Postby Luke-Jr » Fri Jan 16, 2009 6:04 pm

luke-jr@yoko /tmp/KB $ emerge -pv @qt-split
These are the packages that would be merged, in order:

[ebuild N ] x11-libs/qt-assistant-4.4.2-r1 USE="webkit -debug -pch" 102,858 kB
[ebuild R ] x11-libs/qt-core-4.4.2 USE="qt3support ssl -debug -doc -glib -pch" 0 kB
[ebuild R ] x11-libs/qt-dbus-4.4.2 USE="-debug -pch" 0 kB
[ebuild N ] x11-libs/qt-demo-4.4.2 USE="-debug -pch" 0 kB
[ebuild R ] x11-libs/qt-gui-4.4.2-r1 USE="accessibility cups dbus mng qt3support tiff xinerama -debug -glib -nas -nis -pch" INPUT_DEVICES="-wacom" 0 kB
[ebuild R ] x11-libs/qt-opengl-4.4.2 USE="qt3support -debug -pch" 0 kB
[ebuild N ] x11-libs/qt-phonon-4.4.2 USE="dbus -debug -pch" 0 kB
[ebuild R ] x11-libs/qt-qt3support-4.4.2 USE="accessibility -debug -pch" 0kB
[ebuild R ] x11-libs/qt-script-4.4.2 USE="-debug -pch" 0 kB
[ebuild R ] x11-libs/qt-sql-4.4.2 USE="qt3support sqlite -debug -firebird -mysql -odbc -pch -postgres" 0 kB
[ebuild R ] x11-libs/qt-svg-4.4.2 USE="-debug -pch" 0 kB
[ebuild R ] x11-libs/qt-test-4.4.2 USE="-debug -pch" 0 kB
[ebuild R ] x11-libs/qt-webkit-4.4.2 USE="-debug -pch" 0 kB
[ebuild N ] x11-libs/qt-xmlpatterns-4.4.2 USE="-debug -pch" 0 kB

Total: 14 packages (4 new, 10 reinstalls), Size of downloads: 102,858 kB

luke-jr@yoko /tmp/KB $ wget http://www.kbasic.com/kbasic_linux_sourcecode.tar.gz
--2009-01-16 10:59:57-- http://www.kbasic.com/kbasic_linux_sourcecode.tar.gz
Resolving http://www.kbasic.com... 212.227.153.7
Connecting to http://www.kbasic.com|212.227.153.7|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3802785 (3.6M) [application/x-tar]
Saving to: `kbasic_linux_sourcecode.tar.gz'

100%[======================================>] 3,802,785 723K/s in 6.1s

2009-01-16 11:00:03 (613 KB/s) - `kbasic_linux_sourcecode.tar.gz' saved [3802785/3802785]

luke-jr@yoko /tmp/KB $ tar xzpf kbasic_linux_sourcecode.tar.gz
luke-jr@yoko /tmp/KB $ grep 'define \(KBC\|IDE\|RUN\)' kbshared/define.h
//#define KBC
//#define IDE
#define RUN
luke-jr@yoko /tmp/KB $ cd kbrun/
luke-jr@yoko /tmp/KB/kbrun $ make
<snip>
cc1plus: out of memory allocating 688761600 bytes after a total of 337715200 bytes
make: *** [interpreter_kbasic_binding2.o] Error 1
Luke-Jr
 
Posts: 3
Joined: Thu Jan 15, 2009 6:07 pm

Re: Compiling KBasic & 64-bit issues

Postby berndnoetscher » Sat Jan 17, 2009 6:41 pm

Looks like your machine is running out of memory and has not sufficient hardware to compile kbasic.

Look at the error message you posted:

cc1plus: out of memory allocating 688761600 bytes after a total of 337715200 bytes

Which hardware and software are you running?
berndnoetscher
Site Admin
 
Posts: 1059
Joined: Tue Sep 25, 2007 9:37 am


Return to Installation

cron