When compiling GLEW or freeglut as a static library…

When compiling GLEW or freeglut as a static library…

Surprised nobody ran across this yet, but then again, makes sense.

When compiling either the freeglut and GLEW (packages nearly essential of OpenGL graphics development), both have the option to be built as libraries statically or dynamically.  When the libraries are built dynamically, you just include the lib in the link line then copy the dll’s over to your binary folder.  But when compiled statically, you need to specify GLEW_STATIC and FREEGLUT_STATIC symbols as compile-time defines when compiling the libraries (and be free of dll hell).

The tricky part is when you include those two libraries in another library and then try to compile that combination into a binary.  In the case of freeglut, the linker will complain that it can’t find “freeglut.lib”.  Which is strange because freeglut static compiles into a library named “freeglut_static.lib” and only the dll version compiles into “freeglut.lib”.   Hmmm, why is freeglut looking for the wrong lib?  Well, freeglut_std.h line 53 holds the key.   If FREEGLUT_STATIC is defined, then there is a pragma to include “freeglut_static.lib” otherwise the pragma points to “freeglut.lib”.  So, you need to include the -D FREEGLUT_STATIC in the link line of the final executable’s link line as well.

GLEW also has this problem, but if you forget the -D GLEW_STATIC in the link line of the executable, you’ll get errors about unresolved externals.

And there you have it.

(update: you must also put  GLEW_STATIC and FREEGLUT_STATIC in the link lines of the intermediate libraries as well.  The chain of libraries from freeglut and glew ALL need to have that compile parameter specified or you’ll get the same errors).

I don’t need this…

I don’t need this…

While I was down at Siggraph, I got to talk with someone who is an extremely bright guy and I admire a good bit on a professional level.  While we chatted in a real informal setting, the topic of religion came up (the thread of all my conversations always goes: “how long you worked for Intel?  Really, why’d you have that gap?  A monastery/seminary?!?!  Wow, lets talk about religion…)  Anyway, this person said that they’d really enjoyed the faith and growth of his community church, but got really turned off by the whole ‘Church’ thing as he got to know the shortcomings and problems in the parish.  “I’m spiritual – just not religious.  God can be found everywhere so now I do my own thing.  I just got to the point of say ‘I don’t need this hassle’.”

I wish I had a nickle for every time I hear this (or felt it myself).  Despite all the good intentions of everyone getting along perfectly – dealing with the other folks in the church is hard.  Maddening really.  It inherently puts us into contact with folks outside our comfort, social, economic, philosophical, educational, behavioral and all other bounds.  I know first hand.  We’re a big, messy lot for sure.  But his statement stuck with me and I pondered it a long time since I felt this very thing many times.  I was driving home about a week later that the Holy Spirit kind of slapped me with:

Yep, you may be right – you may not ‘need’ this hassle.  But they might really need you.  Now go and be the Christ you are supposed to be for them and that will teach you what you DO need.

Intel Developer Forum – My project is image 3

Intel Developer Forum – My project is image 3

Intel’s annual developer forum is where they roll out a lot of our new stuff.  Anandtech covered the IDF (Intel Developers forum) keynote.  Turns out, my project made it to the keynote with the strange description of: “No need to sort for transparency demo. Sorry, that’s as well as I can describe it. Look at the picture.”.  The man has a way with words. 🙂 

Still, I am the sole developer writing the code for this technology; and nice to see my work in the keynote.  My technique is the 3rd picture down of the futuristic towers and glowing orb.  It was a really nice animation – but not such a great web/phonecam photo apparently.  ArsTechnica also have an article on Larrabee that you might find interesting (I’m not confirming or denying anything in their coverage – just that they have coverage)

Any rate – lots of good stuff coming out of the IDF (including a lot of really cool features in Nehalem/7i like Turbo mode, etc).  I must confess I don’t know more than the public press releases – but the feature of this new Nehelem core look great. 

Larrabee comes clean at Siggraph

Larrabee comes clean at Siggraph

Siggraph has arrived and we have released a very good paper on the Larrabee architecture we’re working on.  Here’s the article for you perusal:

http://portal.acm.org/citation.cfm?doid=1360612.1360617

I work with the paper authors nearly daily – amazing group of pioneers in the field of computer graphics.  Have a lot of ‘pinch me! Is this real?’ days.  Here’s a discussion of the paper on the Beyond 3D site:

http://forum.beyond3d.com/showthread.php?t=48314

siggraph 2008

siggraph 2008

I’m down at Siggraph 2008 in Los Angeles, and it’s been great so far.  Amazing talks – especially the revelations and talks about Larrabee.  However, there are some amazingly cool other talks going on as well.  I’ll post links as they get up, but wow – super cool so far.

Now things are getting reasonable

Now things are getting reasonable

As a perspective new home buyer – I’ve been sitting on the sidelines for about 2 years (well, saving up a good down payment anyway).  The prices during the boom were ridiculous, and as things are crashing, I’m waiting to see if were at a bottom (most experts are saying not likely till end of next year – but they’ve said that for 2 years now).  The latest national S&P Home price index keeps dropping but Portland has fared much better than most.  Lately, however, it looks like we’re no longer immune.  It reported that Portland average prices dropped a record 5% since last year.

Looking on forclosures.com and RLMS database the other night, I actually found several very nice condos and houses in my price range.  It was actually amazing/frightening/sad how many pre-forclosures were in the works.  And how many of those homes were in the 500k-1000k range (I thought rich people didn’t go bust?).  I did the same search about 2 years ago and got nothing but run-down shacks in questionable neighborhoods on the edges of my desired region.  Now I have 10 really good hits right where I was looking – one even had 2 garage spaces (kind of unheard of around here).

But when prices are dropping 5%/year -it definitely isn’t buying time.  At -5% a year, you seriously jeopardize the value of investing in a home.  The whole point of buying is to grow equity.  But, for example, if you have a $200,000 loan who’s home is losing only 5% value in a year, that’s $10,000/year you’re losing in real value.  If your mortgage payment is about $1200/mo, then you are just dumping about a years worth of money down a hole with nothing to show for it.  And any conceivable tax benefit doesn’t really offset that kind of loss.  Yes, if you really need a home, then you might jump on a good deal – but this is hardly a buyers market – even if the latest home stimulus package includes an incentive for first-time buyers (not very useful, it’s a $7500 tax credit that phases out based on income and you still have to pay back, just interest free).

So what to do?  Look for good deals.  Wait until we see some stability and/or growth.  I get the feeling things will keep dropping for the foreseeable future.  And so what if you miss the ‘bottom’?  Well, it doesn’t matter if you catch prices at the same point on the way down or the way up.  I’ll wait and keep saving a better down payment.

Signs of the times – a new generation

Signs of the times – a new generation

I was just reading a report in the Oregonian about the most important concerns to new college graduates.   Talk about a difference from the dot-com attitudes I graduated with.  Here’s their responses (according to the Oregonian)

51% of new college grads said they were going to jump right into the job market and not take time off

Order of importance when selecting a new job:
#3 = location
#2 = salary
and their #1 criteria when selecting a new job = the benefits package (quality of health care and 401k/retirement)

Another shocking statistic – around 30% of 18 year-olds in Oregon don’t even have a license and the trend of going later and later until getting one is growing (but that might be due to some newer/stricter licensing requirements).  I guess when you’re a teen – $4/gallon gas isn’t affordable.  Heck, at $0.99/gallon when I was a kid – it wasn’t cheap.  No wonder kids now a days aren’t driving.

That’s about exactly the opposite of what it would have been when I graduated in the height of dot-com craziness a few years back.   I would have put it at:
20% said they would start working – the rest were going to backpack Europe or travel to Tibet for enlightenment for a few years – or just smoke some hash.
Order of importance when selecting a job:
#1 – salary
#2 – salary/bonuses and stock options
#3 – living in the Bay Area/Silicon Valley/Somewhere cool (Pac. northwest)
#4 – salary – show me the money

You think you know some obscure references…

You think you know some obscure references…

Here is a nifty site.  Ever listen to electronic music and hear those interesting little audio clips sampled by the DJ of voices/movies thrown in? As Strongbad would say: ‘the system is down‘?  Ever want to know where they come from?

This site (http://s107.net/) is a compendium of all the strange audio clips, the actual text, and what movie/sources they came from. It helped me find a few strange references.  Look them up by song or search by text string.