Posts Tagged ‘OpenGL’

Linux: 12 Weeks of School Later

December 20th, 2009 No comments

Finished Exams

Rather than just copy Sasha’s previous post, I will do my best to try and tell the story through the eyes of a Computer Science undergrad. Now that I have finally finished my exams for this term I can safely say that Linux has not impeded my coursework and in fact has given me quite a seamless user experience.

Web Development

Designing websites and creating server side programs has been an absolute delight in Linux. Unlike within Windows, I can easily mount a remote SSH server as a browsable folder in my file system in Linux, making additional file transfer programs unnecessary. This lets me edit the files in my favourite editor, which more often than not was just KWrite, and then watch as they updated on the remote server with a simple click of the save button.

Graphics Programming

For a different course I was required to program 3D graphics in OpenGL. On Windows my professor had recommended Dev-C++, a program I am familiar with but not exactly a fan of. Thankfully we weren’t doing anything platform specific and thus I was able to make use of the exact same OpenGL and GLUT libraries to get the job done on Linux. As a replacement for Dev-C++ I started with Eclipse but eventually settled on MonoDevelop as my IDE of choice. Even better I was able to share the exact same code with a fellow classmate for our group project, which he was in turn able to compile on Windows in Dev-C++ with no modification whatsoever!

Pretty Standard Stuff

The rest of my time spent at University was of pretty standard fare: note taking, web browsing, e-mailing, instant messaging, assignments, etc. Linux performed superbly at these tasks as well and handled everything I could think to throw at it – even our school’s insane Wi-Fi network configuration.

Three Months of School Later

And there you have it. My experience with Linux during my term at school has been, like Sasha’s, excellent. For those of you out there worried that trying out Linux will impact your school or work or have concerns that you won’t be able to find replacements for your generally Windows or Mac centric worlds, I can attest to the exact opposite being true. Give Linux a shot, it might even make you more productive! Hell, you just might even like it ;)

I am currently running a variety of distributions, primarily Linux Mint Debian Edition.
Previously I was running KDE 4.3.3 on top of Fedora 11 (for the first experiment) and KDE 4.6.5 on top of Gentoo (for the second experiment).
Check out my profile for more information.

Making glut.h work in Fedora 11

November 2nd, 2009 3 comments

As part of a computer graphics course I am taking at university I need to be able to develop C/C++ applications using openGL and the openGL Utility Toolkit (GLUT). I tried using many different C/C++ IDEs, including Eclipse, before I finally settled on MonoDevelop as my IDE of choice. After trying for some time to get this to work in a way similar to what I am used to on Windows, I finally gave up on the compilation errors and consulted the GOOG. As this all actually happened about 2 weeks ago I am a little cloudy where I discovered this tidbit of information but it turns out that even after you install freeglut through yum,

sudo yum install freeglut freeglut-devel

it doesn’t actually register the glut.h library correctly. Unfortunately due to the aforementioned registration issue, MonoDevelop was unable to load glut.h. I was able to rectify this by creating my own pkgconfig file, glut.pc, and placing it under /usr/lib64/pkgconfig.

Here is what I placed in my custom created glut.pc file that seemed to do the job:


Name: glut
Description: Mesa OpenGL Utility Toolkit library
Requires: gl glu
Version: 7.6.0
Libs: -L${libdir} -lglut
Cflags: -I${includedir}

So yeah, that’s it! This seems to be a very common problem so hopefully what I have described here works for you as well.

I am currently running a variety of distributions, primarily Linux Mint Debian Edition.
Previously I was running KDE 4.3.3 on top of Fedora 11 (for the first experiment) and KDE 4.6.5 on top of Gentoo (for the second experiment).
Check out my profile for more information.

Programming on Linux

September 27th, 2009 No comments

Now that school as resumed I am getting to spend a lot of time with my Linux install doing day to day productive tasks. The most recent thing that I have had to deal with is programming on Linux. As part of my Computer Graphics class the professor recommended that we install Dev-C++ and GLUT (with related libraries) so that we can code some OpenGL goodness. Well seeing as Dev-C++ is a Windows only IDE that just won’t do.

Instead I opted to install the C and C++ development tools for Eclipse. This works perfectly and within minutes I had a simple “Hello, world!” program up and running. In the past I had only ever used Eclipse for Java programming, however that may be changing permanently in the future.

Next up I had to install GLUT. After a quick search in my Fedora repositories I only had the option to install freeglut listed. So I figured ‘what the heck’ and gave it a try anyway. To my surprise this worked perfectly, even when I still referenced #<GL/glut.h>. This means I can use all of this great open source software to develop the same C++ code that I can then submit to my professor to mark on his Window’s machine.

The only issue I have found is I cannot for the life of me get MinGW to compile the code to a Windows exe. Yet even barring this I must say that all in all I am very impressed!

Graphical Woes and a Bricked System

September 2nd, 2009 1 comment

Today’s big task was to get rid of the Windows 3.1 look of the default GNOME theme by installing the Compiz Fusion window manager. First, however, I needed to add 3D hardware acceleration and OpenGL support to my existing graphics system. Unfortunately, after an evening of searching for how to accomplish these seemingly simple tasks in Google’s proverbial haystack of information, I found myself no wiser, and in the mood to chew through my power cable and just end it all.

Bleary-eyed and pissed off, I turned to the community in the #debian IRC channel for help, and found a room full of knowledgeable folks who were very willing to help me out. Sometime during the ensuing discussion, I followed this guy’s advice and installed a package called mesa-utils that added OpenGL support to my system, and was good to go. The only problem is that I don’t know if I could do it again, because I can’t recall the steps that got me to where I am. Damn.

In any case, with hardware acceleration now supported, I moved on to enabling the Compiz Fusion window manager with this tutorial on the Debian Wiki. Unfortunately, upon activating my newly installed eye candy, my entire system froze up. I restarted X, but the service refused to come back online, and was disabled by the system.

Now, whenever I attempt to boot my laptop, I get a big error message claiming that X failed to start, and can’t get into my desktop. It seems that the changes that I made to the /etc/X11/xorg.conf file while setting up Compiz have caused an error that occurs while parsing the file on startup.

So, I guess my install is bricked until I can remove my changes to that config file… Anybody got a live CD?