Tuesday, November 3, 2015

OpenGL : how to install in Ubuntu 14.04


Check if OpenGL is installed or not:
$glxinfo | grep OpenGL
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce GTX 660/PCIe/SSE2
OpenGL core profile version string: 4.3.0 NVIDIA 352.30
OpenGL core profile shading language version string: 4.30 NVIDIA via Cg compiler
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.5.0 NVIDIA 352.30
OpenGL shading language version string: 4.50 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)
OpenGL extensions:


If you get error:

Install mesa-utils and run the command again.

$sudo apt-get install mesa-utils
$glxinfo | grep OpenGL


Refer:

http://www.codeproject.com/Articles/182109/Setting-up-an-OpenGL-development-environment-in-Ub

When you run the sample code firstWindow.cpp, you may get an error:

$ g++ firstWindow.cpp -lglut
/usr/bin/ld: /tmp/ccT2pQWr.o: undefined reference to symbol 'glClear'
//usr/lib/x86_64-linux-gnu/libGL.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

solution: add -lGL

$ g++ ./firstWindow.cpp -lGL  -lglut 
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status

I got error. 
Solution: Locate libGL.so and create soft link  /usr/lib/libGL.so

$ locate libGL.so
/usr/lib/libGL.so.1
/usr/lib/x86_64-linux-gnu/libGL.so
/usr/lib/x86_64-linux-gnu/libGL.so.1
/usr/lib/x86_64-linux-gnu/libGL.so.352.30
/usr/lib/x86_64-linux-gnu/mesa/libGL.so
/usr/local/MATLAB/R2015a/sys/opengl/lib/glnxa64/libGL.so.1
/usr/local/MATLAB/R2015a/sys/opengl/lib/glnxa64/libGL.so.1.5.070200



$ sudo ln -s /usr/lib/libGL.so.1 /usr/lib/libGL.so

Wednesday, August 5, 2015

take backup of your tabs and bookmarks in firefox

I was excited to figure out that its possible to take backup of my tabs, windows and bookmarks, basically my "profile" in firefox! Why? I usually keep many tabs and windows open, all for separate purpose and never close them... who knows when they will be helpful!

This is the link published by mozilla. The steps are quite simple too :)

https://support.mozilla.org/en-US/kb/back-and-restore-information-firefox-profiles

Enjoy!

Tuesday, August 4, 2015

Link for Gazebo installation in Ubuntu 12.04 with ROS Hydro package

I had to search a little bit to figure out how to install Gazebo in Ubuntu 12.04 with ROS Hydro package.( Gazebo is now updated with ROS Indigo, which works in Ubuntu 14.04. )

So here is the link: 
http://www.gazebosim.org/tutorials?tut=install&ver=1.9&cat=install

After this in terminal,
$ sudo apt-get install ros-hydro-gazebo-ros
$ rosrun gazebo_ros gazebo



 

Monday, May 18, 2015

Link to PASCAL VOC 2007 Dataset


Link where PASCAL VOC 2007 Dataset available:
http://vision.cs.utexas.edu/voc/
(Thanks to Dr  Jasper Uijlings)

How to download vis Linux terminal:
$ wget -m -np http://vision.cs.utexas.edu/voc/
(Ref: http://stackoverflow.com/questions/8386894/download-an-svn-repository )

Found the official mirror to PASCAL VOC datasets (Thanks to Dr  Jasper Uijlings again):

http://host.robots.ox.ac.uk/pascal/VOC/