Sign in to follow this  
  • entries
    455
  • comments
    639
  • views
    422584

OGLWFW Linux update...

Sign in to follow this  

149 views

gah.
Programming in linux feels like I'm doing it with one hand behind my back, hot pokers in one eye and ice being randomly applied to my feet... :|

Anyways, some progress has been made, although not as much as I would like..

The inital (note that word) seg. fault was tracked down to me being dumb, I was calling the OSSpecificCreate() function after I was trying to use some varibles which it sets up.

Then I got a bad Atom problem, I've managed to make that go away but god knows how its going to effect things later on as the XInternalAtom()'s docs werent as clear as I'd like them to be.

I also found out you cant call "XSetInputFocus" when the window isnt visable, so I'll have to find a way to deal with that later.

After I'd sorted that out I was STILL getting a seg fault, a liberal sprinkling of std::couts over the place and the error was track down to me forgetting to create and setcurrent a GL context, god knows why I left that function blank like that.

I have tried to set something up, but its now seg faulting inside the NV GLX driver when I call 'CreateContext', god knows why :|

At some point I'll have to check my window creation and context creation code for sanity against some known working code, I've probably just over looked something somewhere... at least, I hope its something as simple as that.

For now, the pain of doing it has gotten to me and I've abandoned project in favour of chips, family guy and bed with a light read.

Earlier today I finished reading Modern C++ design, I wont say I followed all of it, I plan to give my brain some time to chew the infomation over, however it was ALOT easier to read this time compared to the last time I tried where I ended up bailing at the start of the 2nd chapter. 7 books later and I have the skill set to understand it.

I'm not sure what I'm going to read next, The C++ Standard Library is tempting but then so is C++ Template Metaprogramming, I'll flip a coin later [grin]
Sign in to follow this  


3 Comments


Recommended Comments

Quote:
gah.
Programming in linux feels like I'm doing it with one hand behind my back, hot pokers in one eye and ice being randomly applied to my feet... :|
HAHAHA [lol] Yeah I like programming in linuz too.

Share this comment


Link to comment
Quote:
Programming in linux feels like I'm doing it with one hand behind my back, hot pokers in one eye and ice being randomly applied to my feet... :|


Out of curiosity, what makes it so unpleasant for you? I've found that 99.9999% of the programming I do in Linux is exactly identical to programming I do in Windows, and the other infinitesimal amount is stuff I only have to do once and never again... And even still, it's not that bad.

Share this comment


Link to comment
some of it is probably down to me not being 100% used to the linux/Gnome enviroment however I feel like I'm fighting the IDE and its just not making things fun [depressed]

I'm using code::blocks, i've had to switch off code completion because that crashes the ide [sad]

Starting a new project leaves a little to be desired as well, I tried to start a new project to test my lib and the section which should hold the name of the source file had an entry which was blank.
It also, despite my closing it, seems to remember I had my lib's project open and I can find no way to start a new workspace.

Thankfull, during the last session it didnt take to crashing when I rebuilt the lib, however I've had to fall back to the command line for recompiling my test app via a Make file.

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now