Saturday, April 2, 2011

Glomosim installation just got much simpler!!!

About a week or a month back, our college seniors had organized a workshop/working session on Glomosim – Global Mobile information system Simulator – a popular wireless/wired simulator that is basically a command line simulator with a Parsec cum c compiler.
The hard part that we faced was the installation! We needed to install JAVA v1.2 and VB6 (installating newer versions of both JAVA and VB meant additional burden on top because newer versions of both the software packages do not have the extra advantage of having the environment variables added automatically to the system).
We were given VB6 that could have environment variables added automatically. But JAVA was newer and we had to manually add environment variables to the PC. As far the glomosim setup, we had no choice. We had to manually add the environment variables for the glomosim to work.
A lot of the participants of the workshop found this extremely tough. A significant time got wasted in instructing students as to how to set up environment variables and helping them. Newbies got very tired of repeated failures in setting the software up.
To overcome this, I have come up with a .exe setup that could make things easier.
INSTALLATION STEPS :
1. Before we proceed to the installation of Glomosim, you need to install two other softwares essential for glomosim to work.
· Visual C++
· Java JDK v1.2 or higher & Java JRE v1.2 or higher
Visual C++ from VB 6.0 package is recommended since, you need not worry about altering environment variables externally. If you prefer to go with a newer version of Visual Studio, then, here are the environment variable lists that you need to manipulate according to your installation package.
PATH : C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\bin;
INCLUDE : C:\Program Files\Microsoft Visual Studio\VC98\atl\include;C:\Program Files\Microsoft Visual Studio\VC98\mfc\include;C:\Program Files\Microsoft Visual Studio\VC98\include;
LIB : C:\Program Files\Microsoft Visual Studio\VC98\mfc\lib;C:\Program Files\Microsoft Visual Studio\VC98\lib
MSDEVDIR: C:\Program Files\Microsoft Visual Studio\Common\MSDev98
You can add environment variables here by Right click my computeràpropertiesàadvanced system settingsàadvancedàenvironment variables
All these files are being installed in C:\
NOTE: DO THIS ONLY IF YOU WANT TO HAVE VISUAL STUDIO 7.0 OR ABOVE. IF YOU HAVE VISUAL STUDIO 6.0 (RECOMMENDED) DON’T DO THIS !
clip_image002
clip_image004
clip_image006
clip_image008
For the java part, download the latest 6.0 version at http://www.oracle.com/technetwork/java/javase/downloads/index.html (just Java JDK - the first option there.)
Install both Java and Visual Studio before you proceed further.
2. If you are using Windows Vista/Windows 7, you first need to disable the user account settings to ‘Never Notify Me’. That is, you are trying to disable all the Security features of Windows that prevent you from making changes to it. This is essential for the setup to add the environment variables. If you are using Windows XP, you need not bother about this step. You may proceed to step 2.
Now, how do you do this?
§ Either, type UAC in Start Menu or goto Control Panelà User AccountsàClick ‘Change User Account Control Settings’ at the very bottom of the User Accounts Page.
§ You’ll get a screen very similar to this (Mine is Windows 7 Ultimate – SP 1 )
clip_image010
clip_image012
YOU WILL HAVE TO RESTART WINDOWS TO COMPLETE THIS ACTION. ONLY THEN THE UAC SETTINGS GET SAVED.
3. Now, Run the Glomosim Setup as shown below
clip_image014
clip_image016
clip_image017
If you get a popup complaining of some compiling error, then either you have not turned off the UAC account settings or you have still not gone for a system restart from UAC setting change.
4. After this installation step, half your burden has got over.
5. Now, Click Runàtype ‘cmd’. You’ll get command prompt window there.
clip_image019
· There, type
‘cd c:\glomosim\glomosim\main’
clip_image021
· Now, type ‘ makent ‘. i.e., it will be like c:\glomosim\glomosim\main>makent


· A screen goes like this.
clip_image023
· Now, type cd ..\bin and you will end up like c:\glomosim\glomosim\bin>
Now, type, glomosim config.in
* i.e., something like, c:\glomosim\glomosim\bin>glomosim config.inclip_image025
· You will get a screen like the one above. Congrats! You have successfully installed glomosim on your PC !
6. In order to continue with Optional Java Visualization tool, you need to configure Java tool.
to do that, copy all the files in C:\glomosim\glomosim\bin to C:\glomosim\glomosim\java_gui.
7. Now, go back to command prompt, and type ‘cd c:\glomosim\glomosim\java_gui’ .
Now, type javac *.java.
8. Now, type ‘java GlomoMain’ to visually see the results.
clip_image027

Download Glomosim.exe here : http://1drv.ms/1ofNOnM
Download PDF Instruction Manual here : http://1drv.ms/1ofNXYi

There might be mistakes and errors in installation process. Please let me know.

1 comment:

Sohail Kareem said...

Such a great blog, thank you for sharing your great information with us, keep it up.
ALSO VISIT HERE