VectorLinux

The nuts and bolts => Software General => Topic started by: Daniel on March 14, 2009, 03:22:58 pm

Title: Visual Basic programming
Post by: Daniel on March 14, 2009, 03:22:58 pm
I am looking for a Visual Basic programming IDE program. I have already tried gambas2 but I really need something where I can program in Visual Basic not just something like it.
Title: Re: Visual Basic programming
Post by: lagagnon on March 14, 2009, 03:30:04 pm
http://www.cyberciti.biz/tips/visual-basic-for-linux.html
Title: Re: Visual Basic programming
Post by: Daniel on March 14, 2009, 04:39:35 pm
Correct me if I'm wrong but it looks like "Mono" just compiles existing VB source code so that it will run on Linux. I was really looking for something where I could write my own code. Something like gambas2 but one that uses real Visual Basic.
Title: Re: Visual Basic programming
Post by: caitlyn on March 14, 2009, 05:12:21 pm
Visual Basic is a real Microsoft thing.  Microsoft generally doesn't allow any of their products to be licensed for Linux.  I'm not at all sure that what you want even exists.
Title: Re: Visual Basic programming
Post by: lagagnon on March 14, 2009, 06:50:47 pm
Daniel: I just checked www.winehq.com and apparently, depending on what version of VB you have it might work under Wine:
http://appdb.winehq.org/objectManager.php?sClass=application&iId=94
Title: Re: Visual Basic programming
Post by: The Headacher on March 17, 2009, 12:16:38 pm
Perhaps kbasic can fit your needs? I don't know, I'm not much of a basic-head. Anyways, I remembered seeing this some time ago.

http://kbasic.com/index.html
Title: Re: Visual Basic programming
Post by: Daniel on March 17, 2009, 06:10:18 pm
Well from looking at the website, it looks like it's what I was looking for. Thanks! But... I downloaded the version for Linux from the website, installed it, clicked on the icon on the desktop... And nothing happened. I tried to run it from the terminal and got this error message:

error while loading shared libraries: libQtWebKit.so.4: cannot open shared object file: No such file or directory

I looked on the website again and found the list of dependencies. The libQtWebKit.so.4 was one of them. I then looked in the repositories on Gslapt and found two different "Qt" libraries "Qt" and "Qt4". I am not sure which (if either) I need to get. Help?
Title: Re: Visual Basic programming
Post by: rbistolfi on March 17, 2009, 07:12:44 pm
That would be Qt4. You will probably need to do a symlink if the version number of the installed library is different, for example:

Code: [Select]
ln -s /usr/lib/qt-4.5.0/lib/libQtWebKit.so.4.5.0 /usr/lib/qt-4.5.0/lib/libQtWebKit.so.4
Title: Re: Visual Basic programming
Post by: Daniel on March 18, 2009, 07:00:18 am
So if the version number is different, I just type that line of code into a console?
Title: Re: Visual Basic programming
Post by: M0E-lnx on March 18, 2009, 07:18:57 am
Have you looked into Mono's .NET support?

http://www.mono-project.com/VisualBasic.NET_support

AFAIK, there are no IDEs for VB in linux... you'll find a lot of clones and VB-like languages and IDE's, but not the real thing..

Another option to try would be some win IDE via wine.
Title: Re: Visual Basic programming
Post by: Daniel on March 18, 2009, 07:26:11 am
Yes, I looked at that but the KBasic thing appears to be close enough to VB for me to be able to use it. And now it looks like I just have to download that library to get it to work but I just want to make sure that if the version number is different I just need to type that line of code that rbistolfi gave me into the console to do the symlink. (see previous post) So is that all I need to do to make the symlink?
Title: Re: Visual Basic programming
Post by: M0E-lnx on March 18, 2009, 07:27:57 am
yes.. that will make a symlink
Title: Re: Visual Basic programming
Post by: Daniel on March 18, 2009, 08:43:59 am
Ok, I downloaded the Qt4 library, tried to run KBasic again and again it didn't work so the version number is probably different. I looked on the KBasic website again and found that the libQtWebKit.so.4 is supposed to go in:

/usr/lib/libQtWebKit.so.4

Does that mean that it needs to be in a folder named libQtWebkit.so.4 in /usr/lib/ ? Right now it is in: /usr/lib/qt-4.4.1/lib/

In /usr/lib/qt-4.4.1/lib/   it has the shared library libQtWebKit.so.4.4.1 and two links to that library. The links are called libQtWebKit.so.4 and libQtWebKit.so.4.4

Help?
Title: Re: Visual Basic programming
Post by: M0E-lnx on March 18, 2009, 10:23:17 am
Are you executing the binary or are you building the source code?

if you build the source code, it should pick up the libs from the right place.
Title: Re: Visual Basic programming
Post by: newt on March 18, 2009, 10:48:02 am
daniel, you could put in a request to have kbasic built for VL6.  There is a package request forum for purposes such as this.  Most times the requests are answered pretty quickly, but it comes down to the volunteers available time.  FWIW.
Title: Re: Visual Basic programming
Post by: Daniel on March 18, 2009, 11:37:52 am
I might do that but is there any way that I can get my current installation to work?
Title: Re: Visual Basic programming
Post by: M0E-lnx on March 18, 2009, 01:08:39 pm
That's why I asked you... did you download the source code and are trying to compile it or did you download the binary package and are you just trying to run it?

Title: Re: Visual Basic programming
Post by: Daniel on March 18, 2009, 01:55:42 pm
Oh, sorry, I missed your earlier post. I guess I downloaded the binary package because I know I didn't try to compile source code. I just clicked the link on the website that downloaded the version for Linux.
Title: Re: Visual Basic programming
Post by: M0E-lnx on March 18, 2009, 02:00:52 pm
I downloaded the source here.. there is building instructions on their website, but I had to abort the build because it was sucking up all my CPU power which I needed for work... but seems like it will build

You should try it
Title: Re: Visual Basic programming
Post by: Daniel on March 18, 2009, 02:19:37 pm
I'm afraid I don't completely understand how to build things. I found those instructions you mentioned on the website but it looks like you download some KDevelop projects and then build those? Also, is there any way to fix the installation I already have or would I be better off to just uninstall it and build it and install it again?
Title: Re: Visual Basic programming
Post by: M0E-lnx on March 18, 2009, 02:21:31 pm
Well, yes...

It depends on a lot of KDE stuff
QT4 and stuff like that

You must have those dependencies met before you can run either the binary or the compiled source code.
Title: Re: Visual Basic programming
Post by: Daniel on March 19, 2009, 09:43:13 am
I requested KBasic in the New Package Requests section of the forum but just so I know, would I use vpackager to build a package from source?
Title: Re: Visual Basic programming
Post by: M0E-lnx on March 19, 2009, 10:03:51 am
vpackager will not build that..

That is a weird ting to build... I tried it, but it failed.... I dont have much time to tinker with it to much... but it sure looks like an interesting challange.
Title: Re: Visual Basic programming
Post by: Daniel on March 19, 2009, 10:52:38 am
In the source codes area of the KBasic site it has a bash script that is says will compile all three parts of KBasic if run. Would that be the thing to use then?
Title: Re: Visual Basic programming
Post by: M0E-lnx on March 19, 2009, 10:58:59 am
yes.. I tried building it with the script they provide

but it got me nowhere
except it was sucking up 100% of my dual core 3.0GHZ CPU and 100% of my 2GB of ram and 80% of my 2GB of swap space.

That thing is a hog.

And then it failed to build... so, like I said... it's quite the pickle.

Title: Re: Visual Basic programming
Post by: Daniel on March 19, 2009, 11:14:59 am
They also mentioned that the package contained three KDevelop projects and the source code. (see below)


Linux

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

    *
      kbc - the compiler (only C++ program without Qt usage)
    *
      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_linux_sourcecode.tar.gz (V1.87)


 Does that mean that something is supposed to be put into KDevelop and then compiled using the KDevelop compiler?
Title: Re: Visual Basic programming
Post by: M0E-lnx on March 19, 2009, 11:59:25 am
I imagine you'd have to get all 3 of them .
The kbc would be the language itself.
the kbide would be your IDE (Integrated Development Environment)
kbrun would be your runtime and interpreter for yor programs to actually run. This interprets the code provided by the kbc and translates it into something the linux system can understand.

You cannot put anything into kdevelop. (well, technically taht's wrong.. but that's a whole nother discussion)
your IDE has the compiler...

But then again, I've never done a BASIC programming... so I'm just shooting in the air here...
That's why I've gone gambas ;)

No ... but seriously... if you want pure basic dude, you may be out of luck here... I know that's not what you wanted to find out, but put BASIC is just not the most common language in linux.
I'd migrate to somethin glike mono-VB or gambas since the syntax is really next to the same... or find a way to run VB in wine.

The problem with running VB under wine is that ... well.... You'll be developing windows software... which is not good in linux. ;)
Title: Re: Visual Basic programming
Post by: Daniel on March 19, 2009, 04:38:57 pm
I might be able to get it working though if I could get those dependencies installed in the right place. I tried creating the symlink to the dependency that first showed up for me as an error message (see earlier posts in this thread) and then tried to run the program again in the console and got this error message: "error while loading shared libraries: /usr/lib/libQtWebKit.so.4: cannot read file data: Error 21" So what does that mean?
Title: Re: Visual Basic programming
Post by: Daniel on March 19, 2009, 06:52:24 pm
I also tried to run the bash script provided on the website but I kept getting errors every time. Which directory am I supposed to run it in?
Title: Re: Visual Basic programming
Post by: wcs on March 19, 2009, 08:27:35 pm
I'll mention another basic.
If you don't mind using proprietary software (which I reckon you don't, as you want to develop in VB), then RealBasic might do the trick... simple installation, free (as in beer) for linux, and cross-platform.

I don't know how different it is from VB, and it has disadvantage of you having to pay for the Windows version (or for a Professional version that allows you to cross-compile).

I've used it before and liked it. Instead of paying more for the Professional version, I ended up downloading the Linux one for free, and when I needed to compile for Windows, I bought the Windows version, and opened/compiled the same code.
Title: Re: Visual Basic programming
Post by: Daniel on March 20, 2009, 08:46:14 am
I would really like to fix the program I already have but since you mentioned it, when you install RealBasic, does it install all the dependancies as well?
Title: Re: Visual Basic programming
Post by: wcs on March 20, 2009, 12:09:08 pm
Quote
I would really like to fix the program I already have but since you mentioned it, when you install RealBasic, does it install all the dependancies as well?

It has no dependencies. I mean, nothing that you don't already have in your system.
It's just download and install:
http://www.realsoftware.com/store/ (http://www.realsoftware.com/store/)

As you can see there, the Linux version costs nothing.
Title: Re: Visual Basic programming
Post by: Daniel on March 20, 2009, 01:13:56 pm
RealBasic looks pretty good but I checked the system requirements for it. Minimum RAM is 1GB and Minimum CPU speed is 1GHz. My machine has 256MB of RAM and an 850MHz processor. So, thanks, but can I have some help on fixing KBasic?
Title: Re: Visual Basic programming
Post by: M0E-lnx on March 20, 2009, 01:21:52 pm
the Kbasic thing is not too friendly with the older hardware either requiring QT 4.4 and newer.
I'm about out of bullets on the kbasic thing
Title: Re: Visual Basic programming
Post by: newt on March 20, 2009, 02:57:17 pm
VL6 Standard Gold + KDE4 + KBasic binary professional installer = working

I just tested this and kbasic starts fine, however depending on how you install kbasic you may need to clean up .desktop files and move accordingly.  Regardless, I just test running from terminal and it worked fine.  The gpl/commercial dual-licensing is confusing to me, but since I just wanted to test the installation I don't really care.

Summary: It works in VL6+KDE4.  Nothing special needs to be done to install the (professional) binary.

Hope this helps!
Title: Re: Visual Basic programming
Post by: Daniel on March 20, 2009, 04:05:41 pm
Does that mean that VL6 (or KDE4) has all the correct dependencies installed in the right places already?
Title: Re: Visual Basic programming
Post by: newt on March 20, 2009, 05:12:49 pm
Does that mean that VL6 (or KDE4) has all the correct dependencies installed in the right places already?
I would *assume* that to be the case since the program runs, but will hold back from saying "definitively yes."  I would venture a guess that a stock VL6 Standard Gold install may provide a few of the dependencies and that the remainder are provided when installing KDE4.  Keep in mind the KDE4 is still in the 'testing' repository which means that it may do unwanted things to your system.  Again, since I was just testing (via virtual machine) to see if the binary installer worked I did not determine my overall system configuration after the KDE4+KBasic installation.  I know that XFCE and KBasic were working though.

Hope this helps!
Title: Re: Visual Basic programming
Post by: caitlyn on March 20, 2009, 05:44:48 pm
The version of KDE 4.2.1 in the testing repository is not ready for prime time.  It will cause breakage.  kdm/gdm will be broken after install for certain.  The only confirmed working version at this point is 4.2 on the second Deluxe CD.  As soon as we have a working version of KDE 4.2.1 for general consumption it will be announced.  The developers are working on it.
Title: Re: Visual Basic programming
Post by: newt on March 20, 2009, 07:29:51 pm
The version of KDE 4.2.1 in the testing repository is not ready for prime time.  It will cause breakage.  kdm/gdm will be broken after install for certain.  The only confirmed working version at this point is 4.2 on the second Deluxe CD.  As soon as we have a working version of KDE 4.2.1 for general consumption it will be announced.  The developers are working on it.

Thanks for the input. This is great information for Daniel to hear prior to any major package installations.  I prefer the text user interface login so did not experience any problems with kdm/gdm, but this would be a valid concern for most users.
Title: Re: Visual Basic programming
Post by: M0E-lnx on March 21, 2009, 05:22:51 am
i might also add that i tried this on a machine with kde4 and still no joy