ScriptBasic
May 22, 2012, 02:25:19 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Registration Disabled Send an e-mail to support @ scriptbasic.org to request a membership to this forum. (include desired forum name)
 
   Home   Wiki Help Search Login Register  
Pages: [1]
  Print  
Author Topic: japi compile  (Read 698 times)
RONB
Newbie
*
Posts: 35


« on: August 13, 2011, 03:41:24 PM »

I was going try a japi compile for my ubutuntu 11.
I installed scriba-v2.1.1_i386.deb and there is no scriptbasic directory with all the needed files.
Will the the scriptbasic directory and files from SB_2.1_RC1_Linux be ok to use with the scriba-v2.1.1_i386.deb install?

http://www.japi.de/

thanks

Logged
support
Administrator
*****
Posts: 409


« Reply #1 on: August 13, 2011, 07:02:56 PM »

I think the japi extension module was done by one of Peter Verhas's students long ago. I would like to see it work. If you need help with the SB extension module API, just post something here.

Logged
RONB
Newbie
*
Posts: 35


« Reply #2 on: August 16, 2011, 04:30:28 PM »

I think the japi extension module was done by one of Peter Verhas's students long ago. I would like to see it work. If you need help with the SB extension module API, just post something here.
I have japi working.
installed SB_2.1_RC1_Linux.tar (needed the source files)
installed scriba-v2.1.1_i386.deb (over SB_2.1_RC1)
installed dependencies
installed graphics environment for command line, x11 xorg. (probably not needed for full installs, mine is a ubuntu server install, apache2 command line)
compiled japi source (lots of warnings, no errors)
copied the new japi.so to /usr/local/lib/scriba
copied the unix version japi.bas to /usr/share/scriba/include (made no changes)

Trying out the unix samples. Needing to increase command line font size is my biggest problem under x11. Any help with that would be appreciated.  




 


Logged
support
Administrator
*****
Posts: 409


« Reply #3 on: August 16, 2011, 05:09:39 PM »

Please post some screen shots & code when you have something to show.

Logged
RONB
Newbie
*
Posts: 35


« Reply #4 on: August 16, 2011, 08:29:32 PM »

Please post some screen shots & code when you have something to show.
I'm not using a Linux GUI, just command line server, so can't do a screen shot. Not sure if I have the resources, maybe a minimum install kde.
All the sample programs work. This is a very nice graphical front end for SB. I was wondering about the the difference between, import japi.bas, and ,include japi.bas? All the examples have import instead of include. They work either way it seems though. I haven't tried but I bet the windows compile would work also.
Logged
support
Administrator
*****
Posts: 409


« Reply #5 on: August 16, 2011, 09:01:20 PM »

My mistake. I thought you had a GUI going with the X11 and font question.

IMPORT - Includes the file/module/...  only once.

INCLUDE - Includes the file/module/... explicitly at the point of the INCLUDE statement.

Note: If INCLUDE starts a line, it will execute even if it's wrapped in a IF/THEN structure. It one of those brute force kind of keywords.

 
Logged
RONB
Newbie
*
Posts: 35


« Reply #6 on: August 17, 2011, 06:09:04 PM »

Here is the japi compile I made under Linux ubuntu11.04-Natty. The dependencies were updated to the latest available. I think as long as you have a Java run-time installed it should work? Most of the example programs do not have an exit, just close the window.
I have japi.so in
/usr/local/lib/scriba
and
japi.bas in
/usr/share/scriba/include
Originator-
http://www.japi.de/







* japiubuntu11.zip (928.24 KB - downloaded 31 times.)
Logged
support
Administrator
*****
Posts: 409


« Reply #7 on: August 17, 2011, 06:46:34 PM »

Ron,

That's great news you were able to revive this extension to SB. I have attached the scriba examples and images from the JAPI site and put it in a zip for those wishing to join you on your adventure. Personally I have no interest in Java and the Windows 2000 looking GUI. (Latest Version: 26 Feb 2003 - V1.0.6)  This could be the reason it never got off the ground as an extension module for ScriptBasic. (project abandoned ?)

I'm happy with using GTK-Server and the GNOME Gtk API.

John

* sb-japi-samples.zip (906.74 KB - downloaded 26 times.)
« Last Edit: August 22, 2011, 12:02:35 AM by support » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!