tag:blogger.com,1999:blog-34534563336841692032024-03-05T01:14:07.291-08:00Gambas (Linux Software Engineering)A free linux compiler with Visual Basic resemblance-simply means basic .E^3http://www.blogger.com/profile/05952379906468956430noreply@blogger.comBlogger12125tag:blogger.com,1999:blog-3453456333684169203.post-4149976819277046592013-07-07T02:25:00.001-07:002013-07-07T09:03:19.012-07:00Installing Gambas2 in Linux (Fedora 1X)<br />
<b>Introductions:</b><br />
<div style="text-align: justify;">
Still we want to use the Gambas2 latest version.The VB6 version will be the best alike compiler in Linux and that is the Gambas2.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Below are the details to completely install the gambas2 from its repository.You can visit the Gambas2 website for additional informations.Here is the link <span style="color: blue;"><i>http://gambas.sourceforge.net/en/main.html. </i></span>Good Luck!</div>
<br />
<br />
<b>Requirements:</b><br />
The following versions of GNU tools are needed:<br />
Please be assure that all of these are contemporary with the OS version being used! <br />
<ul>
<li><span style="font-family: inherit;">automake 1.11.x</span></li>
<li><span style="font-family: inherit;">autoconf 2.6x</span></li>
<li><span style="font-family: inherit;">libtool 2.x</span></li>
</ul>
<br />
<b>Methodology</b><br />
<br />
<i><b>Download</b></i><br />
gambas2.2.4.tar.gz<br />
<br />
root@localhost# wget http://sourceforge.net/projects/gambas/files/gambas2/2.24.0/gambas2-2.24.0.tar.bz2/download<br />
<br />
<br />
<i><b>Install </b></i><br />
yum install the following:<br />
<br />
root@localhost# yum install automake* autoconf* libtool*<br />
<br />
<div style="text-align: justify;">
root@localhost# yum install build-essential autoconf libbz2-dev libmysqlclient-dev
unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libglib2.0-dev
libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev
libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libxml2-dev
libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libxtst-dev
libffi-dev libqt4-dev libglew1.5-dev libimlib2-dev libv4l-dev
libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev
linux-libc-dev libgsl0-dev libgstreamer0.10-dev
libgstreamer-plugins-base0.10-dev libcairo2-dev libgsl0-dev
libncurses5-dev libgmime-2.6-dev</div>
<div style="text-align: justify;">
<br />
root@localhost# tar -zxvf gambas2.2.4.tar.gz<br />
root@localhost# cd gambas2.2.4/<br />
root@localhost# ./reconf-all<br />
root@localhost# ./configure -C <br />
root@localhost# make<br />
root@localhost# make install<br />
<br />
<i><b>Testing</b></i><br />
root@localhost# gambas2 ( you must see gambas2 now running!)<br />
<br /></div>
<b>Details:</b><br />
<br />
<br />
<br />
<br />
<b>Summary:</b><br />
<br />
<i><b>Troubles:</b></i><br />
<div style="text-align: justify;">
If you did several successive compilations and having updated the source from the subversion
repository yet if something fails during
all this process.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<i><b>Shooting:</b></i></div>
<div style="text-align: justify;">
(1)Please try to "reconfigure" the configuration scripts by typing the following command: </div>
<div style="text-align: justify;">
<br /></div>
<div class="container">
<pre class="code"><span style="color: lime;"><span style="font-family: Arial,Helvetica,sans-serif;"><b><span style="font-size: small;">$ ./reconf-all</span></b></span></span></pre>
</div>
<span style="font-family: Arial,Helvetica,sans-serif;"><b>
</b></span>
(2) Then run<br />
<span style="color: lime;"><span style="font-family: Arial,Helvetica,sans-serif;"><b>./configure -C</b></span></span> <br />
<br />
(3) If it does not work, please know what happened exactly. Type the following command :<br />
<br />
<div class="container">
<pre class="code"><span style="color: lime;"><b><span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-size: small;">$ ( ./configure -C; make; make install ) > output.txt 2>&1</span></span></b></span></pre>
<pre class="code"> </pre>
</div>
<span style="color: blue;"><b>Note:</b></span><br />
And send to the gambas2 support the file "output.txt" by mail, including the other
detail about your computer and your distribution you find
useful.
<br />
<br />
<br />
<b>Conclusions: </b>E^3http://www.blogger.com/profile/05952379906468956430noreply@blogger.com1tag:blogger.com,1999:blog-3453456333684169203.post-26419746766332993702012-09-10T08:00:00.002-07:002012-09-10T08:18:59.221-07:00Gambas2 with "espeak"(Text to Speech in Linux)<b>Introduction:</b><br />
<b><br />
</b> Hello folks and all there in the community, its quite a long time since my last post here.Anyway,I will introduce you something interesting to spice Gambas2.We've been discussing a lot of extra functions and features about this compiler, but this one ,will surely get your attentions.Why? Let me give you some idea ,its all about inserting our Gambas2 applications with a text to speech engine (CLI SDK).Yep, we we'll let our application to have the speaking capabilities -and that is possible by using "espeak".<br />
<br />
<br />
<b>Requirements:</b><br />
Fedora 17 or latest<br />
espeak , espeak-devel<br />
Gambas2<br />
<br />
<b>Methodology:</b><br />
1)Installation<br />
Installing linux sound drivers<br />
root@localhost# yum install alsa*<br />
root@localhost# yum install *pcm*<br />
<br />
Installing espeak<br />
root@localhost# yum install espeak*<br />
<br />
2) CLI testing<br />
root@localhost# espeak "H-Techno Barrio"<br />
root@localhost # espeak -f "Hi-Techno Barrio"<br />
<br />
3) Interfacing espeak<br />
3.1) Shell scripting<br />
<br />
3.2) C interfacing<br />
<br />
3.3) Gambas2 interfacing<br />
DIM soundChannel as String<br />
EXEC [ "espeak","-g","14","-s","145", words] TO soundChannel<br />
<br />
<br />
<br />
<b>Summary:</b><br />
<br />
<br />
<b>Conclusion:</b>E^3http://www.blogger.com/profile/05952379906468956430noreply@blogger.com0tag:blogger.com,1999:blog-3453456333684169203.post-30599858106505845372011-08-10T21:36:00.003-07:002012-06-28T19:25:58.717-07:00Gambas FTP Server<span style="font-weight: bold;">Introductions:</span> <br />
<div style="text-align: justify;">Here we begin choosing which FTP server software is available and common, by browsing we stumbled to vsftpd, indeed it fits to our requirement. Gambas FTP client will use the vsftpd as its server and the Apache will be set-up so that we can access the data sent by the client to the FTP server via on-line. </div><br />
<div style="text-align: justify;">At this time, we will need a browser hosted by apache2 and vsftpd for our FTP server , perhaps in the second part ,its browser will be embedded in the Gambas2 code. Or we will implement a peer to peer FTP link between the client and the server all will be programmed in Gambas2.</div><br />
<br />
<span style="font-weight: bold;">Objectives:</span> <br />
1)To link our Gambas FTP client to Vsftpd server <br />
2) The pulling of data is done through web browsing <br />
<br />
<span style="font-weight: bold;">Requirements: <br />
</span>Fedora 14 (32-63 bits)<span style="font-weight: bold;"> <br />
</span>Apache web server <br />
Vsftpd server <br />
libpam* or pam* libraries in Fedora <br />
<br />
<br />
<span style="font-weight: bold;">Methodology:</span><br />
<span style="font-weight: bold;"> </span> <br />
<i style="color: blue;">Let's install the basic requirements</i><br />
root@localhost# yum install httpd <br />
root@localhost# yum install vsftpd <br />
<br />
<i><span style="color: blue;">Let's activate the service at start-up</span><b> </b></i><br />
root@localhost# chkconfig vsftpd on <br />
root@localhost# yum install pam* <br />
<br />
<div style="color: blue;"><span style="font-style: italic;">Let's create an account first and have its authentications</span> </div>root@localhost# httpswd -c /etc/vsftpd/passwd/ cobe <br />
root@localhost# <br />
<br />
<div style="color: blue;"><span style="font-style: italic;">Or we can try also this one...</span> * Create User to access Apache home </div>root@localhost# useradd -g apache -d /home/user user <br />
root@localhost# passwd user <br />
<span style="font-style: italic;"> <br />
<span style="color: blue;">Set permissions to the apache2 web folder </span></span> <br />
root@localhost# vi /etc/group<span style="font-style: italic;"> <br />
apache:x:##:user <br />
<br style="color: blue;" /><span style="color: blue;"> Create link to Apache home </span><br />
root@localhost# ln -s /var/www/html /home/user/html <br />
<br style="color: blue;" /><span style="color: blue;"> Set permissions in web root </span><br />
</span>root@localhost#<span style="font-style: italic;"> chgrp -R apache * <br />
</span>root@localhost#<span style="font-style: italic;"> chown -R apache * <br />
</span>root@localhost#<span style="font-style: italic;"> chmod -R 775 * <br />
<br />
<span style="color: blue;">Edit the vsftpd.conf</span></span> <br />
root@locahost# vim /etc/vsftpd.conf <br />
<br />
<div style="color: blue;">Here are the configurations: </div><div style="color: #b45f06;">listen=YES </div><div style="color: #b45f06;">anonymous_enable=NO </div><div style="color: #b45f06;">local_enable=YES </div><div style="color: #b45f06;">virtual_use_local_privs=YES </div><div style="color: #b45f06;">write_enable=YES </div><div style="color: #b45f06;">connect_from_port_20=YES </div><div style="color: #b45f06;">secure_chroot_dir=/var/run/vsftpd </div><div style="color: #b45f06;">pam_service_name=vsftpd </div><div style="color: #b45f06;">guest_enable=YES </div><div style="color: #b45f06;">user_sub_token=$USER </div><div style="color: #b45f06;">local_root=/var/www/sites/$USER </div><div style="color: #b45f06;">chroot_local_user=YES </div><div style="color: #b45f06;">hide_ids=YES </div><br />
<div style="color: blue;"><span style="font-style: italic;">Running or restarting the service of Vsftpd server</span> </div>root@localhost# /etc/init.d/vsftpd start <br />
root@localhost# /etc/init.d/vsftpd stop <br />
<div style="color: blue;"><br />
</div><div style="color: blue;"><span style="font-style: italic;">Then let us check if the FTP server is really working...</span> </div>root@localhost# ftp localhost <br />
<div style="color: blue;">or </div>root@localhost# ftp 127.0.0.1 <br />
<div style="color: blue;"><br />
</div><span style="font-style: italic;"><span style="color: blue;">Now create the home folder of "cobe" as user and the correct setting of file </span>access permissions .</span> <br />
root@localhost# mkdir /var/www/cobe <br />
root@localhost# chmod +w /var/www/cobe <br />
<br />
<div style="color: blue;"><span style="font-style: italic;">This time we can have a try again logging in the FTP server</span> </div>root@localhost# ftp 127.0.0.1 <br />
<div style="color: #b45f06;">Connected to 127.0.0.1 (127.0.0.1). </div><div style="color: #b45f06;">220 Welcome to RoBook Scanner FTP service. </div><div style="color: #b45f06;">Name (127.0.0.1:robook): cobe </div><div style="color: #b45f06;">331 Please specify the password. </div><div style="color: #b45f06;">Password: </div><div style="color: #b45f06;">230 Login successful. </div><div style="color: #b45f06;">Remote system type is UNIX. </div><div style="color: #b45f06;">Using binary mode to transfer files. </div><div style="color: #b45f06;">ftp> </div><div style="color: blue;"><br />
</div><div style="color: blue;"><span style="font-style: italic;">So let's now use our ftp client in gambas2 and upload files to vsftpd server.</span> </div>Be sure to check the following: <br />
1)Ownership of files in the folder <br />
2)Correct IP address and its port<br />
3) Username<br />
4) Password<br />
5) FTP port<i> (if default or configured!) </i>E^3http://www.blogger.com/profile/05952379906468956430noreply@blogger.com2tag:blogger.com,1999:blog-3453456333684169203.post-32419776965056998092011-07-18T20:12:00.000-07:002011-11-13T22:28:09.067-08:00Gambas FTP Client<span style="font-weight: bold;">Introductions:</span><br />
Another interesting features of this programming language is the application in networking .More functions are added such as DNS,HTTP,UDP and I' ll have a try using the FTP clients.<br />
<br />
The purpose of this simple tutorials is to include sending files to a remote server , in this case the choice is to do it with FTP clients- for a more faster and secure sending and getting files to a remote server.<br />
<br />
Again , I am going to document it in this simple blog.<br />
<br />
<br />
<br />
<span style="font-weight: bold;">Requirements:</span><br />
Gambas2<br />
gb.net.curl<br />
<br />
<span style="color: #3333ff; font-style: italic; font-weight: bold;">Functions</span>:<br />
<span style="font-style: italic;">Async</span><br />
<span style="font-style: italic;">byteorder</span><br />
<span style="font-style: italic;">close</span><br />
<span style="font-style: italic;">EndofFile</span><br />
<span style="font-style: italic;">EndofLine</span><br />
<span style="font-style: italic;">gethandle</span><br />
<span style="font-style: italic;">id </span><br />
<span style="font-style: italic;">password</span><br />
<span style="font-style: italic;">peek </span><br />
<span style="font-style: italic;">proxy</span><br />
<span style="font-style: italic;">put</span><br />
<span style="font-style: italic;">status</span><br />
<span style="font-style: italic;">stop</span><br />
<span style="font-style: italic;">tag</span><br />
<span style="font-style: italic;">timeout</span><br />
<span style="font-style: italic;">url</span><br />
<span style="font-style: italic;">user</span><br />
<br />
<br />
<br />
<span style="font-weight: bold;">Methodology:</span><br />
<br />
<br />
Details(1) gb.net.curl FTP components in Gambas2<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgteopmNVkdBMH7myDyv2rAlIqJqPlRv7iJkG9KMcPda64VNF9kp8dohudK51Ymk8DNA2Nrn-GxG2r_GBvcSCN54pyUnMYv7EaC7qEf7PVqWW6qy2zQvI9KQegl1Vr7exEsp8JiKo7an4C7/s1600/Screenshot.png"><img alt="" border="0" id="BLOGGER_PHOTO_ID_5630896334514384434" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgteopmNVkdBMH7myDyv2rAlIqJqPlRv7iJkG9KMcPda64VNF9kp8dohudK51Ymk8DNA2Nrn-GxG2r_GBvcSCN54pyUnMYv7EaC7qEf7PVqWW6qy2zQvI9KQegl1Vr7exEsp8JiKo7an4C7/s400/Screenshot.png" style="cursor: pointer; height: 184px; width: 471px;" /></a><br />
<br />
Details(2) Gambas2 project properties<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiigcf2vyz8gpRydPJ3LlXg121V-ca_imoV3kEqKpm6_0ElNWOnW9dhMh9_RQQpUAs4DszAOK7Fo2vSTpI53FRDSREEcoLLoL1Ob71WgysVmUnC9fDspi9nwR-Ix0h0U5kSTOLKawlLyt9G/s1600/Screenshot-2.png"><img alt="" border="0" id="BLOGGER_PHOTO_ID_5630898796353218626" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiigcf2vyz8gpRydPJ3LlXg121V-ca_imoV3kEqKpm6_0ElNWOnW9dhMh9_RQQpUAs4DszAOK7Fo2vSTpI53FRDSREEcoLLoL1Ob71WgysVmUnC9fDspi9nwR-Ix0h0U5kSTOLKawlLyt9G/s400/Screenshot-2.png" style="cursor: pointer; height: 406px; width: 470px;" /></a><br />
<br />
Details(3):Icon for FTP service<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgh3-oU_H-l271VzsQ5PJAN8aiUocHXcEnwvS2TVufnorB5JWWLvRhLvyfDwCwIOohGMRafjw9-V-SqeBQiWoAlWRta2r9B2gSn_abIdlTB7gKwGKCVOR9Mn4tpLwrh7tRZhteN9Ppbfmoo/s1600/Screenshot-1.png"><img alt="" border="0" id="BLOGGER_PHOTO_ID_5630897195938254898" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgh3-oU_H-l271VzsQ5PJAN8aiUocHXcEnwvS2TVufnorB5JWWLvRhLvyfDwCwIOohGMRafjw9-V-SqeBQiWoAlWRta2r9B2gSn_abIdlTB7gKwGKCVOR9Mn4tpLwrh7tRZhteN9Ppbfmoo/s400/Screenshot-1.png" style="cursor: pointer; height: 220px; width: 478px;" /></a><br />
<br />
<br />
Details(4)Properties of FTP components<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5vyvBCCGt3pXULgMWMwX7Rxh4CTJVLuu3GIkjEquPzSUEmAvB_pGAZTw4vPOrV3YvzoFaf6eMkCLeCVJ6TgIjp5mALx4H0bKdMUXyLTQM6kGizd7l93rFZJQCbdzgHrajS9JeYdmWZmvx/s1600/Screenshot.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5vyvBCCGt3pXULgMWMwX7Rxh4CTJVLuu3GIkjEquPzSUEmAvB_pGAZTw4vPOrV3YvzoFaf6eMkCLeCVJ6TgIjp5mALx4H0bKdMUXyLTQM6kGizd7l93rFZJQCbdzgHrajS9JeYdmWZmvx/s1600/Screenshot.png" /></a></div><span style="font-weight: bold;"><br />
</span><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<i><b>Here is the source code</b></i><br />
<br />
'-------------------------------------------------------------------------------------------------------<br />
'SendFTPFile(spath AS String, sDataFileName AS String)<br />
'Sending FTP File <br />
'-------------------------------------------------------------------------------------------------------<br />
PUBLIC SUB SendFTPFile(spath AS String, sFileName AS String, sDataFileName AS String) '(dataFile AS String) AS Boolean<br />
<br />
DIM myFtp AS NEW FtpClient<br />
<br />
<i>'myFtp.URL = "ftp://10.36.129.163/disk1/RoBook/Test2.pdf"</i><br />
myFtp.URL = spath & sFileName<br />
myFtp.User = "Cobe"<br />
myFtp.Password = "***********"<br />
'myFtp.Timeout = 120<br />
myFtp.Put(sDataFileName)<br />
<br />
END<br />
<br />
<br />
'-------------------------------------------------------------------------------------------------------<br />
'GetFTPFile(sPath AS String, sDataFileName AS String)<br />
'Receiving FTP File FTP File <br />
'-------------------------------------------------------------------------------------------------------<br />
PUBLIC SUB GetFTPFile(spath AS String, sDataFileName AS String) '(dataFile AS String) AS Boolean<br />
<br />
DIM myFtp AS NEW FtpClient<br />
<br />
<i>'myFtp.URL = "ftp://10.36.129.163/disk1/RoBook/ok.pdf"</i><br />
myFtp.URL = spath & sDataFileName<br />
myFtp.User = "Cobe"<br />
myFtp.Password = "**********"<br />
'myFtp.Timeout = 120<br />
myFtp.Get("/home/robook/Desktop/ShortCourses145.pdf")<br />
<br />
END<br />
<br />
<br />
<span style="font-weight: bold;">Remarks :</span><br />
<br />
<span style="font-weight: bold;">Conclusions:</span><br />
<span style="font-weight: bold;"><br />
</span>E^3http://www.blogger.com/profile/05952379906468956430noreply@blogger.com0tag:blogger.com,1999:blog-3453456333684169203.post-43489448726916215752011-07-06T20:31:00.000-07:002011-07-06T20:32:10.133-07:00Creating diretory in Gambas2 (Two)<h3 class="post-title entry-title"><br /></h3>E^3http://www.blogger.com/profile/05952379906468956430noreply@blogger.com0tag:blogger.com,1999:blog-3453456333684169203.post-78489191495714968232011-07-06T18:09:00.000-07:002011-07-18T20:51:17.939-07:00Creating diretory in Gambas2<span style="font-weight: bold;">Introductions:</span><br />Hello here we are again, our next tutorials are the File & Directory functions available in Gambas2.It allows the flexibility of Gambas2 in manipulating files and its directories.Below are the list of the current features available in Gambas2 :<br /><br /><span style="font-weight: bold;">Requirements:</span><br /><br /><table class="table" border="0" cellpadding="4" cellspacing="0"><tbody><tr><td valign="top"><tt><a href="http://gambasdoc.org/help/lang/access">Access</a></tt> </td><td valign="top"> Tests the access authorization of a file. </td></tr> <tr class="dark"><td valign="top"> <tt><a href="http://gambasdoc.org/help/lang/copy">COPY</a></tt> </td><td valign="top"> Copy a file. </td></tr> <tr><td valign="top"> <tt><a href="http://gambasdoc.org/help/lang/dfree">DFree</a></tt> </td><td valign="top"> Returns the free space on a device. </td></tr> <tr class="dark"><td valign="top"> <tt><a href="http://gambasdoc.org/help/lang/dir">Dir</a></tt> </td><td valign="top"> Browses a directory. </td></tr> <tr><td valign="top"> <tt><a href="http://gambasdoc.org/help/lang/exist">Exist</a></tt> </td><td valign="top"> Checks if a specific file or directory exists. </td></tr> <tr class="dark"><td valign="top"> <tt><a href="http://gambasdoc.org/help/lang/isdir">IsDir</a></tt> </td><td valign="top"> Returns if a path points at a directory. </td></tr> <tr><td valign="top"> <tt><a href="http://gambasdoc.org/help/lang/kill">KILL</a></tt> </td><td valign="top"> Removes a file. </td></tr> <tr class="dark"><td valign="top"> <tt><a href="http://gambasdoc.org/help/lang/link">LINK</a></tt> </td><td valign="top"> Creates a symbolic link. </td></tr> <tr><td valign="top"> <tt><a href="http://gambasdoc.org/help/lang/mkdir">MKDIR</a></tt> </td><td valign="top"> Creates a directory. </td></tr> <tr class="dark"><td valign="top"> <tt><a href="http://gambasdoc.org/help/lang/move">MOVE</a></tt> </td><td valign="top"> Renames or moves a file or a directory. </td></tr> <tr><td valign="top"> <tt><a href="http://gambasdoc.org/help/lang/rdir">RDir</a></tt> </td><td valign="top"> Browses a directory recursively. </td></tr> <tr class="dark"><td valign="top"> <tt><a href="http://gambasdoc.org/help/lang/rmdir">RMDIR</a></tt> </td><td valign="top"> Removes an empty directory. </td></tr> <tr><td valign="top"> <tt><a href="http://gambasdoc.org/help/lang/stat">Stat</a></tt> </td><td valign="top"> Get information about a file. </td></tr> <tr class="dark"><td valign="top"> <tt><a href="http://gambasdoc.org/help/lang/temp">Temp$</a></tt> </td><td valign="top"> Makes temporary file names. </td></tr></tbody></table><br /><br /><span style="font-weight: bold;">Methodology:</span><br />1) Create a sample program<br />2) Choose 1 functions<br />3) Give examples<br />4) Discuss the output<br /><br />Detail(1):Title project<br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTYSeNypwidl3RdaCSdWArsamjOefAzPk1zPeBh8AjY2yg2rYz8yOSZXXYwGfbgMt8Rz2uhVLl7CufWKJzK5QkxFSet2_o0f10rbpu6RXiN7ms2Mgfb4xnSUDEQD8ToXJwADeQxPWiW55K/s1600/Screenshot-12.png"><img style="cursor: pointer; width: 400px; height: 334px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTYSeNypwidl3RdaCSdWArsamjOefAzPk1zPeBh8AjY2yg2rYz8yOSZXXYwGfbgMt8Rz2uhVLl7CufWKJzK5QkxFSet2_o0f10rbpu6RXiN7ms2Mgfb4xnSUDEQD8ToXJwADeQxPWiW55K/s400/Screenshot-12.png" alt="" id="BLOGGER_PHOTO_ID_5626419370829379026" border="0" /></a><br /><br />Detail(2) : Create a form<br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvoi75z_LCMeQaU270Qh2xmWCnzg4NjkYwLbYrplzjqPgISew0KlU6a8mfFaGEabXbkQZXE2gT2KgJXSIbn_zcdKLKk-PpG6YGlogb3stGgPJx7Rpuj0Y1Vlbwy1ciDCbmHA8WDSGiuGYJ/s1600/Screenshot-16.png"><img style="cursor: pointer; width: 404px; height: 451px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvoi75z_LCMeQaU270Qh2xmWCnzg4NjkYwLbYrplzjqPgISew0KlU6a8mfFaGEabXbkQZXE2gT2KgJXSIbn_zcdKLKk-PpG6YGlogb3stGgPJx7Rpuj0Y1Vlbwy1ciDCbmHA8WDSGiuGYJ/s400/Screenshot-16.png" alt="" id="BLOGGER_PHOTO_ID_5626420804912705794" border="0" /></a><br /><br />Detail(3) A simple source code<br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgU366pZEr8Ci4F9AZwQ6aby_UhHzGv1RYbypuHE26yAvuYm0xC9SpiundIzlL6dyej0V0yTLUyDBcdq06C4nQsMm1WLVwPUSkkZ7tIZ3vIHhAe8QYaR7Hy-i-nu0rm3MlBAqoj2xYEdd8C/s1600/Screenshot-14.png"><img style="cursor: pointer; width: 400px; height: 182px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgU366pZEr8Ci4F9AZwQ6aby_UhHzGv1RYbypuHE26yAvuYm0xC9SpiundIzlL6dyej0V0yTLUyDBcdq06C4nQsMm1WLVwPUSkkZ7tIZ3vIHhAe8QYaR7Hy-i-nu0rm3MlBAqoj2xYEdd8C/s400/Screenshot-14.png" alt="" id="BLOGGER_PHOTO_ID_5626418806728444130" border="0" /></a><br />Detail(4)<br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrH7xfybejI6JM05_7tk0lbNwh8YF4YJFFgOqq_KoL161kZBB2DAcRxSq-3UvvhyphenhyphenTb076JqPklhVBsYgKDL1CqdANGoExjG7wHuH2lt6egj_hF8SzO9EXdu7WJvQWUvnLJXj_xrqx4r2Ui/s1600/Screenshot-17.png"><img style="cursor: pointer; width: 411px; height: 311px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrH7xfybejI6JM05_7tk0lbNwh8YF4YJFFgOqq_KoL161kZBB2DAcRxSq-3UvvhyphenhyphenTb076JqPklhVBsYgKDL1CqdANGoExjG7wHuH2lt6egj_hF8SzO9EXdu7WJvQWUvnLJXj_xrqx4r2Ui/s400/Screenshot-17.png" alt="" id="BLOGGER_PHOTO_ID_5626421670049707458" border="0" /></a><br /><br />Detail(5) Run the program "File Directory"<br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZU4BRsoRGKQ3efrN6n7ErL1Iq-dDPdts3UgmogQypPgbDuAY1cMaxsqjjCuqxqnykbhg9PfZtedSYXNyS5VpdX-kJ4A4teH0zJ0eVZtLFkjkimljX1x3NcTVDmPOdmvwZ_W5CVsHUIZIO/s1600/Screenshot-18.png"><img style="cursor: pointer; width: 409px; height: 458px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZU4BRsoRGKQ3efrN6n7ErL1Iq-dDPdts3UgmogQypPgbDuAY1cMaxsqjjCuqxqnykbhg9PfZtedSYXNyS5VpdX-kJ4A4teH0zJ0eVZtLFkjkimljX1x3NcTVDmPOdmvwZ_W5CVsHUIZIO/s400/Screenshot-18.png" alt="" id="BLOGGER_PHOTO_ID_5626420661978466226" border="0" /></a><br /><br /><br /><span style="font-weight: bold;">Remarks:</span><br /><br /><br /><span style="font-weight: bold;">Conclusions:</span>E^3http://www.blogger.com/profile/05952379906468956430noreply@blogger.com0tag:blogger.com,1999:blog-3453456333684169203.post-79612026459417702332011-05-09T19:51:00.002-07:002012-06-23T09:56:17.602-07:00Serial Comm RS232 port Interface (Gambas2)<span style="font-weight: bold;"><br />
Introductions:</span><br />
Serial communication is very important tools required in programming, its serial functions must be learned by a programmer too. In some electronic interfacing we frequently use serial interfacing RS232,RS485 and etc.<br />
<br />
<span style="font-weight: bold;">Requirements:</span><br />
Gambas 2 interpreter/compiler<br />
gb.net project component<br />
<br />
<span style="font-weight: bold;">Objectives:</span><br />
1) To discuss the use of serial communications<br />
2) To discuss the function of serial interface using gambas2<br />
3) To demonstrate a simple program in gambas2<br />
<br />
<br />
<span style="font-weight: bold;">Methodology:</span><br />
0) check the availability of serial port device " <strong>ls -l /dev/ttyS* "</strong><br />
1) check the ownership of "uccp" -default is owned by "root"<br />
2) Open Gambas2<br />
3) Add gb.net in the project component<br />
3) Create a form<br />
4) Specify setting in COM port:<br />
Data bits<br />
Flow control<br />
Parity<br />
Portname<br />
Speed<br />
Stopbits<br />
<br />
<br />
Detail(1) Project properties to choose serial components<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHF1_7cYaSVYWURO9dPj0mnpXkEalMPG8SV55nsxSS38I1a4dQcS1IDwgff4Dc3YyE9G4k-T-BCzeHw37-Ym3SwGIL6f_DNgygHBo3H-e2rn8WlXQag__kBaUqkFykNc_A3DQ37JGySAat/s1600/Screenshot.png"><img alt="" border="0" id="BLOGGER_PHOTO_ID_5604914996545837666" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHF1_7cYaSVYWURO9dPj0mnpXkEalMPG8SV55nsxSS38I1a4dQcS1IDwgff4Dc3YyE9G4k-T-BCzeHw37-Ym3SwGIL6f_DNgygHBo3H-e2rn8WlXQag__kBaUqkFykNc_A3DQ37JGySAat/s400/Screenshot.png" style="cursor: pointer; height: 344px; width: 400px;" /></a><br />
<br />
Detail(2) Icon for serial component<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtroQ2WKtQdsMRpdHmebJMuu2Xk0k8R0AtJ24I6Gpo_e-1wtTupsCqdiPBviL72zD7dOZHJrkx568y-qFIMK9m8xT-l55zUbUw0g_kR_tjYykZMINnP9u8ofLdiKzrNJHtIKdnNwBqiBf8/s1600/Screenshot-2.png"><img alt="" border="0" id="BLOGGER_PHOTO_ID_5604915575643559042" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtroQ2WKtQdsMRpdHmebJMuu2Xk0k8R0AtJ24I6Gpo_e-1wtTupsCqdiPBviL72zD7dOZHJrkx568y-qFIMK9m8xT-l55zUbUw0g_kR_tjYykZMINnP9u8ofLdiKzrNJHtIKdnNwBqiBf8/s400/Screenshot-2.png" style="cursor: pointer; height: 104px; width: 400px;" /></a><br />
<br />
Detail(3) Serial Comm properties<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQixJYr9pUrpyt6OSSp-4neS5OeeA3c6tBI3GrgdRqsADfvUBv69-kaQAKnihuudwpf3ejgtwFY_4tE8Fy5_Gut6sBnMndfwYDFXD2OsE87lDQJADNCIgLG_uNLF7Tg9KsI7yEYCr0nRA3/s1600/Screenshot-1.png"><img alt="" border="0" id="BLOGGER_PHOTO_ID_5604915463525048130" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQixJYr9pUrpyt6OSSp-4neS5OeeA3c6tBI3GrgdRqsADfvUBv69-kaQAKnihuudwpf3ejgtwFY_4tE8Fy5_Gut6sBnMndfwYDFXD2OsE87lDQJADNCIgLG_uNLF7Tg9KsI7yEYCr0nRA3/s400/Screenshot-1.png" style="cursor: pointer; height: 296px; width: 246px;" /></a><br />
<br />
Detail(4) Cut and paste source code<br />
<pre face="georgia"><strong></strong><span style="font-size: 100%;"><span style="color: #3333ff;"><span style="color: #000099;">PRIVATE</span> </span>SComm AS SerialPort <span style="color: #000099;">CONST</span> None AS Integer = 0
<span style="color: #3366ff;">
<span style="color: #000099;">PRIVAT</span></span><span style="color: #000099;">E</span> Rx AS String <span style="color: #000099;">PUBLIC SUB</span> Form_Open()
SComm = NEW SerialPort AS "SComm"
SComm.PortName = "/dev/ttyUSB0"
SComm.Speed = "19200"
SComm.Parity = 0
SComm.DataBits = "8"
SComm.StopBits = "1"
SComm.FlowControl = 0
TRY
SComm.Open()
<span style="color: #000099;">IF ERROR THEN</span>
TRY
SComm.PortName = "/dev/ttyS0"
SComm.Speed = "19200"
SComm.Parity = 0
SComm.DataBits = "8"
SComm.StopBits = "1"
SComm .FlowControl = 0
SComm.Open()
<span style="color: #000099;"> IF ERROR THEN </span>
Message("No Serial Come Exiting...")
QUIT
<span style="color: #000099;">ENDIF </span>
<span style="color: #000099;">ENDIF</span>
<span style="color: #000099;">END</span> <span style="font-style: italic;"> 'Private RX</span>
'******** Incoming serial data ********
PUBLIC SUB SComm _Read()
SLEEP 0.025
TRY READ #SComm , Rx, Lof(SComm )
IF ERROR THEN
Message.info(No received data!)
ENDIF
IF Len(Rx) > 8 THEN
TextBox1.Text= Cstr(Rx)
END IF
END
PUBLIC SUB Form_Close()
SComm.Close()
QUIT
END
</span></pre>Detail(5) Error message if serial port is not available<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIDgp0G_qWTJ78RBVvPwWVmIky_7Ki-sjgRFrD9V7k8BreZxgAS0OYMqgu33dyDJP7oQGUtosHQCeWbBXzgsx0QFlvMOdOQ9TCihzw0gv22TDma2k6cm1kjSnFNt5gGmSp87w1NLG56URK/s1600/Screenshot-1.png"><img alt="" border="0" id="BLOGGER_PHOTO_ID_5630951451534979586" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIDgp0G_qWTJ78RBVvPwWVmIky_7Ki-sjgRFrD9V7k8BreZxgAS0OYMqgu33dyDJP7oQGUtosHQCeWbBXzgsx0QFlvMOdOQ9TCihzw0gv22TDma2k6cm1kjSnFNt5gGmSp87w1NLG56URK/s400/Screenshot-1.png" style="cursor: pointer; height: 134px; width: 269px;" /></a><br />
<br />
Detail(6): Checking serial port "<strong><span style="color: #3333ff;">ls -l /dev/ttyS*</span>"</strong><br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3YGSH6NKHsWy22Mw6tUbGZRdFhvaEyKOIpS5-O20NCpWeD7h7Rp1IloabKlFPWzu9vn4OeZEpxIwBNLioaOfHU7RIYzVhVfGh40XRUNBEn2Jt6TS2DAQQIOscNUKYIRER5Eijgs-UsjFU/s1600/Screenshot-19.png"><img alt="" border="0" id="BLOGGER_PHOTO_ID_5627993369617839794" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3YGSH6NKHsWy22Mw6tUbGZRdFhvaEyKOIpS5-O20NCpWeD7h7Rp1IloabKlFPWzu9vn4OeZEpxIwBNLioaOfHU7RIYzVhVfGh40XRUNBEn2Jt6TS2DAQQIOscNUKYIRER5Eijgs-UsjFU/s400/Screenshot-19.png" style="cursor: pointer; height: 113px; width: 452px;" /></a><br />
<br />
Detail(7) chown -R group.user /dev/ttyS0<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6WeS6t6theTthgTdcDlIW08x7UIBBXWTp-CtoS7xDEafWajyKPwrvn0elDtVPzmYpPeKyypoC71tDIJpNO4FfKJCAwUmPZ6fRooHUN2a5rkRwwv07BDqGDJJJXmBYvEIC6MbFkM4fab1z/s1600/Screenshot-2.png"><img alt="" border="0" id="BLOGGER_PHOTO_ID_5630951536040286514" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6WeS6t6theTthgTdcDlIW08x7UIBBXWTp-CtoS7xDEafWajyKPwrvn0elDtVPzmYpPeKyypoC71tDIJpNO4FfKJCAwUmPZ6fRooHUN2a5rkRwwv07BDqGDJJJXmBYvEIC6MbFkM4fab1z/s400/Screenshot-2.png" style="cursor: pointer; height: 100px; width: 400px;" /></a><br />
Detail(8) Running serial interface -gambas2 example<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicSi_DdhSHIpVZLqwtA3vcYWSv7UUHNXgfSXrVkS_ZXCiW7y83DifxU_aK7TLxqU0NNGDx7mBKVQU75Javke7v3haNh9RKgFFi17yfrlyVU74FQC521lFqtLqIWWJA18AXagNHgFXetH5g/s1600/Screenshot.png"><img alt="" border="0" id="BLOGGER_PHOTO_ID_5630950788191104722" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicSi_DdhSHIpVZLqwtA3vcYWSv7UUHNXgfSXrVkS_ZXCiW7y83DifxU_aK7TLxqU0NNGDx7mBKVQU75Javke7v3haNh9RKgFFi17yfrlyVU74FQC521lFqtLqIWWJA18AXagNHgFXetH5g/s400/Screenshot.png" style="cursor: pointer; height: 467px; width: 393px;" /></a><br />
<b><br />
</b><br />
<b><br />
</b><br />
<span style="font-weight: bold;"> Remarks:</span><br />
<span style="color: red;">Hints:</span><br />
Problem: Can't open serial port#<br />
<br />
1) Create a user and group to add it uucp(if you don't have a login-name)<br />
<strong style="font-weight: normal;">root@localhost#groupmod –-add-user user_name uucp</strong><br />
<br />
2) change ownership (if you t have a login-name)<br />
root@localhost# chown -R your_group.your_user /dev/ttyS0<br />
Still on evaluations, and we hope that gambas2 developers<br />
would add more features in the serial functions.<br />
<strong></strong><br />
Problem: Can't have a faster read via serial port?<br />
1) Try to empty first the buffer before reading the next data<br />
buffer =""<br />
buffer=read_serial()<br />
<br />
2) of course you can adjust the faster baud rate your host device is capable too.<br />
<br />
<span style="font-weight: bold;"><br />
Conclusions:<br />
</span>A simple serial interfacing <span style="font-weight: bold;"><br />
<br />
</span><span style="font-style: italic;">E^3</span><span style="font-weight: bold;"><br />
</span>E^3http://www.blogger.com/profile/05952379906468956430noreply@blogger.com20tag:blogger.com,1999:blog-3453456333684169203.post-12197344780156094572011-05-05T02:04:00.000-07:002014-06-23T18:41:36.695-07:00Installing Gambas3 in Fedora 14<pre class="code" style="font-family: georgia;"><span style="font-family: georgia; font-size: 100%; font-weight: bold;">Introductions:</span><span style="font-size: 100%;">
</span></pre>
<div class="code" style="font-family: georgia; text-align: justify;">
<span style="font-family: georgia; font-size: 100%;">There are more and more programmers are using gambas3 as their new VB6 like interpreter in Linux.It is so obvious that the widespread of its applications are being supported in the open community.</span></div>
<div class="code" style="font-family: georgia; text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<pre class="code" style="font-family: georgia;"><span style="font-family: georgia; font-size: 100%;">In this scratch article I will help you install Gambas3 and its easiest way, hoping </span></pre>
<pre class="code" style="font-family: georgia;"><span style="font-family: georgia; font-size: 100%;">that this tutorials could help you.</span></pre>
</div>
<pre class="code" style="font-family: georgia;"><span style="font-family: georgia; font-size: 100%;"> </span></pre>
<pre class="code" style="font-family: georgia;"><span style="font-family: georgia; font-size: 100%;">Good Luck </span></pre>
<pre class="code" style="font-family: georgia;"><span style="font-family: georgia; font-size: 100%;"> </span></pre>
<pre class="code" style="font-family: georgia;"><span style="font-family: georgia; font-size: 100%; font-weight: bold;"> </span></pre>
<pre class="code" style="font-family: georgia;"><span style="font-family: georgia; font-size: 100%; font-weight: bold;">Requirements:</span><span style="font-size: 100%;">
</span><span style="font-family: georgia; font-size: 100%;">Fedora OS</span></pre>
<pre class="code" style="font-family: georgia;"><span style="font-family: georgia; font-size: 100%;">PC</span></pre>
<pre class="code" style="font-family: georgia;"><span style="font-family: georgia; font-size: 100%;">Internet</span></pre>
<pre class="code" style="font-family: georgia;"><span style="font-family: georgia; font-size: 100%;"> </span></pre>
<pre class="code" style="font-family: georgia;"><b><span style="font-family: georgia; font-size: 100%;">Objectives:</span></b><span style="font-size: 100%;">
</span><span style="font-family: georgia; font-size: 100%;">1) To install Gambas3 in Fedora as easy as possible</span></pre>
<pre class="code" style="font-family: georgia;"><span style="font-family: georgia; font-size: 100%;">2) To use Gambas3 in Linux programming applications </span><span style="font-family: georgia; font-size: 100%; font-weight: bold;">
</span></pre>
<pre class="code" style="font-family: georgia;"><span style="font-family: georgia; font-size: 100%; font-weight: bold;"> </span></pre>
<pre class="code" style="font-family: georgia;"><span style="font-family: georgia; font-size: 100%; font-weight: bold;">Methodology:</span><span style="font-size: 100%;">
</span></pre>
<pre class="code" style="font-family: georgia;"><span style="font-size: 100%;"></span></pre>
<pre class="code" style="font-family: georgia;"><span style="font-size: 100%;"></span></pre>
<pre class="code" style="font-family: georgia;"><span style="font-size: 100%;"></span></pre>
<pre class="code" style="font-family: georgia;"><span style="font-size: 100%;">
<span style="font-family: georgia;"><span style="color: blue;">Install the development tools and libraries </span></span></span></pre>
<pre class="code" style="font-family: georgia;"><span style="font-size: 100%;"><span style="font-family: georgia;">root@localhost# yum groupinstall </span></span><span style="font-family: georgia; font-size: 100%; font-style: italic;">"Development Tools" "Development Libraries" </span><span style="font-size: 100%;">
<span style="font-family: georgia;"> </span></span></pre>
<pre class="code" style="font-family: georgia;"><span style="font-size: 100%;"><span style="font-family: georgia;"><span style="color: blue;">Install the following apps: </span></span></span></pre>
<div class="code" style="font-family: georgia;">
<span style="font-size: 100%;"><span style="font-family: georgia;">root@localhost# yum install </span></span><span style="font-family: georgia; font-size: 100%; font-style: italic;"> </span></div>
<div class="code" style="font-family: georgia;">
<span style="font-family: georgia; font-size: 100%; font-style: italic;">cairo-devel libsqlite3x-devel </span></div>
<div class="code" style="font-family: georgia;">
<span style="font-family: georgia; font-size: 100%; font-style: italic;">sqlite2-devel </span></div>
<div class="code" style="font-family: georgia;">
<span style="font-family: georgia; font-size: 100%; font-style: italic;">gtk2-devel gtkglext-devel </span><span style="font-size: 100%;">
</span><span style="font-family: georgia; font-size: 100%; font-style: italic;">imlib2-devel librsvg2-devel </span></div>
<div class="code" style="font-family: georgia;">
<span style="font-family: georgia; font-size: 100%; font-style: italic;">poppler-devel qt-devel libv4l-devel </span></div>
<div class="code" style="font-family: georgia;">
<span style="font-family: georgia; font-size: 100%; font-style: italic;">SDL-devel SDL_sound-devel </span><span style="font-size: 100%;">
</span><span style="font-family: georgia; font-size: 100%; font-style: italic;">SDL_ttf-devel SDL_net-devel </span></div>
<div class="code" style="font-family: georgia;">
<span style="font-family: georgia; font-size: 100%; font-style: italic;">SDL_mixer-devel </span></div>
<div class="code" style="font-family: georgia;">
<span style="font-family: georgia; font-size: 100%; font-style: italic;">SDL_image-devel </span></div>
<div class="code" style="font-family: georgia;">
<span style="font-family: georgia; font-size: 100%; font-style: italic;">SDL_gfx-devel </span></div>
<div class="code" style="font-family: georgia;">
<span style="font-family: georgia; font-size: 100%; font-style: italic;">SDL_Pango-devel </span><span style="font-size: 100%;">
</span><span style="font-family: georgia; font-size: 100%; font-style: italic;">firebird-libfbclient unixODBC-devel </span></div>
<div class="code" style="font-family: georgia;">
<span style="font-family: georgia; font-size: 100%; font-style: italic;">postgresql-devel libXtst-devel </span></div>
<div class="code" style="font-family: georgia;">
<span style="font-family: georgia; font-size: 100%; font-style: italic;">mysql-devel pcre-devel </span><span style="font-size: 100%;">
</span><span style="font-family: georgia; font-size: 100%; font-style: italic;">mesa-libGLU-devel mesa-libGLw-devel </span></div>
<div class="code" style="font-family: georgia;">
<span style="font-family: georgia; font-size: 100%; font-style: italic;">mesa-libGL-devel glew-devel </span></div>
<div class="code" style="font-family: georgia;">
<span style="font-family: georgia; font-size: 100%; font-style: italic;">firebird-devel </span></div>
<div class="code" style="font-family: georgia;">
<span style="font-family: georgia; font-size: 100%; font-style: italic;">dbus-devel </span><span style="font-family: georgia; font-size: 100%; font-style: italic;"> libzip libzip-devel </span></div>
<div class="code" style="font-family: georgia;">
<span style="font-family: georgia; font-size: 100%; font-style: italic;">bzip2-devel </span></div>
<div class="code" style="font-family: georgia;">
<span style="font-family: georgia; font-size: 100%; font-style: italic;">libcurl-devel qt-webkit-devel</span><span style="font-size: 100%;">
</span></div>
<pre class="code" style="font-family: georgia;"><span style="font-size: 100%;"></span></pre>
<pre class="code" style="font-family: georgia;"><span style="font-size: 100%;">
<span style="font-family: georgia;"><span style="color: blue;">Download Gambas3 from SVN </span></span></span></pre>
<pre class="code" style="font-family: georgia;"><span style="font-size: 100%;"><span style="font-family: georgia;">root@localhost# </span><span style="font-family: georgia; font-style: italic;">mkdir gambas3-sources</span>
<span style="font-family: georgia;">root@localhost# </span><span style="font-family: georgia; font-style: italic;">cd gambas3-sources</span>
<span style="font-family: georgia;">root@localhost#<span style="color: blue;"><i> </i></span></span><span style="color: blue;"><i>svn checkout</i></span></span></pre>
<pre class="code" style="font-family: georgia;"><span style="color: blue;"><i><span style="font-size: 100%;"> https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk/
<span style="font-family: georgia;"> </span></span></i></span></pre>
<pre class="code" style="font-family: georgia;"><span style="font-size: 100%;"><span style="font-family: georgia;"><span style="color: blue;">Install and configure Gambas3 </span> </span></span></pre>
<pre class="code" style="font-family: georgia;"><span style="font-size: 100%;"><span style="font-family: georgia;">root@localhost# </span><span style="font-family: georgia; font-style: italic;">cd trunk </span>
<span style="font-family: georgia;">root@localhost# </span><span style="font-family: georgia; font-style: italic;">./reconf-all </span>
<span style="font-family: georgia;">root@localhost# </span><span style="font-family: georgia; font-style: italic;">./configure </span></span></pre>
<pre class="code" style="font-family: georgia;"><span style="font-size: 100%;"><span style="font-family: georgia;">root@localhost# </span><span style="font-family: georgia; font-style: italic;">make </span>
<span style="font-family: georgia;">root@localhost# <i>make install</i> </span></span><span style="font-family: georgia; font-size: 100%; font-weight: bold;"> </span></pre>
<pre class="code" style="font-family: georgia;"><span style="font-family: georgia; font-size: 100%; font-weight: bold;"> </span></pre>
<pre class="code" style="font-family: georgia;"><span style="font-family: georgia; font-size: 100%; font-weight: bold;"> </span></pre>
<pre class="code" style="font-family: georgia;"><span style="font-family: georgia; font-size: 100%; font-weight: bold;">Remarks:</span><span style="font-size: 100%;">
</span></pre>
<div class="code" style="font-family: georgia; text-align: justify;">
Installing tools and libraries should be completed to avoid errors of compiling code in Gambas3.To make sure you can download the files regardless of its number of versions, you may try doing this in yum: example: Sqlite</div>
<div class="code" style="font-family: georgia; text-align: justify;">
root@localhost@ yum install sqlite*</div>
<div class="code" style="font-family: georgia; text-align: justify;">
<br /></div>
<div class="code" style="font-family: georgia; text-align: justify;">
<span style="font-family: georgia; font-size: 100%; font-weight: bold;">Conclusions:</span></div>
<div class="code" style="font-family: georgia; text-align: justify;">
<span style="font-family: georgia; font-size: 100%;">This procedure of installations really help me for an instant installation of gambas3.This tutorial guides users the easy way of having gambas3 in their programming applications. </span></div>
<div style="text-align: justify;">
<pre class="code" style="font-family: georgia;"><span style="font-family: georgia; font-size: 100%;"> </span></pre>
</div>
<pre class="code" style="font-family: georgia;"><span style="font-family: georgia; font-size: 100%;"> </span></pre>
<pre class="code" style="font-family: georgia;"><span style="font-family: georgia; font-size: 100%; font-weight: bold;"> </span></pre>
E^3http://www.blogger.com/profile/05952379906468956430noreply@blogger.com0tag:blogger.com,1999:blog-3453456333684169203.post-86214571475997832562011-01-18T01:08:00.001-08:002011-01-19T01:42:29.487-08:00" Hello World " GambasIntroductions:<br /><br /><br />Materials & References<br /><br />Installations<br /><br />Learning the basic<br /><br />Running the code<br /><br />A simple hello world<br /><br />The next steps<br /><br />Advance continuationsE^3http://www.blogger.com/profile/05952379906468956430noreply@blogger.com0tag:blogger.com,1999:blog-3453456333684169203.post-28996744372315405292011-01-18T01:07:00.003-08:002011-04-04T22:31:06.837-07:00Howto Installations -Gambas<span style="font-weight: bold;"><br /><br /><br /><br /><span style="color: rgb(0, 153, 0);">Building Gambas2</span></span> in Ubunto 10.9<br /><span style="font-size:100%;"><span style="font-family: georgia;">root@localhost# sudo apt-get install build-essential autoconf libbz2-dev libfbclient2 libmysqlclient-dev unixodbc-dev libpq-dev \</span><br /><span style="font-family: georgia;">libsqlite0-dev libsqlite3-dev libgtk2.0-dev libldap2-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev \</span><br /><span style="font-family: georgia;">libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev libbonobo2-dev \</span><br /><span style="font-family: georgia;">libcos4-dev libomniorb4-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libasound2-dev libesd0-dev \</span><br /><span style="font-family: georgia;">libdirectfb-dev libaa1-dev libxtst-dev libffi-dev kdelibs4-dev firebird2.1-dev libqt4-dev libglew1.5-dev \</span><br /><span style="font-family: georgia;">libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev mysql-client-core-5.1 mysql-server</span></span><br /><br /><br /><span style="font-weight: bold; color: rgb(0, 153, 0);">Building Gambas2</span> in Fedora<br />root@localhost# sudo yum install gambas2-gb-db gambas2-gb-db-form \<br />gambas2-gb-db-mysql gambas2-gb-desktop \<br />gambas2-gb-form gambas2-gb-form-dialog \<br />gambas2-gb-form-mdi gambas2-gb-net \<br />gambas2-gb-net-curl gambas2-gb-net-smtp \<br />gambas2-gb-qt gambas2-gb-qt-ext \<br />gambas2-gb-settings gambas2-gb-xml \<br />gambas2-gb-xml-rpc gambas2-runtime<span style="font-weight: bold;font-size:130%;" ><span style="font-family: georgia;"></span></span><span style="font-family: georgia;"></span><br /><pre class="wiki"><span style="font-size:130%;"><span style="font-size:100%;"><span style="font-family: georgia;"><br /></span></span></span></pre>E^3http://www.blogger.com/profile/05952379906468956430noreply@blogger.com3tag:blogger.com,1999:blog-3453456333684169203.post-66453612635174668652011-01-18T01:07:00.001-08:002011-01-19T01:40:11.371-08:00A timely GambasIntroductions:<br /><br /><br />Everybody wanted an open source software<br /><br />Breaking away with the digital divide<br /><br /><br />The need to learn<br /><br />The cost<br /><br />The academe <br /><br />The developer<br /><br /><br />Our future R&D in opensource<br /><br />Gambas rule..E^3http://www.blogger.com/profile/05952379906468956430noreply@blogger.com0tag:blogger.com,1999:blog-3453456333684169203.post-91092096761223660072011-01-18T01:06:00.000-08:002011-01-18T01:07:14.853-08:00Introductions to GambasE^3http://www.blogger.com/profile/05952379906468956430noreply@blogger.com0