Wednesday, July 22, 2009

SetUp Code::Blocks in Windows (Vista)

I've had trouble getting Code::Blocks to compile my project in Windows (Vista to be specific). Here's what it took for me to get it working properly.
First install Code::Blocks using the Windows/binary version of the installer, the one with MinGW included. For me this resulted in a functional installation the IDE, but it threw the following error whenever I hit F9 to build and run.

"MyProject - Debug" uses an invalid compiler. Skipping...

MinGW was not missing, but Code::Blocks doesn't yet know where it is (even though it was the Code::Blocks installer that set it up in the first place!). Here's the fix:
goto the 'Settings' menu
click 'Compiler and debugger...'
click 'Global compiler settings' in the column of icons on the left side
click the 'Toolchain executables' tab
note that the path to "Compiler's installation directory" is 'C:\MinGW' (at least for me it was)
click the 'Auto-detect' button next to that input

Hopefully that will succeed in finding your MinGW installation directory for you. It was when I did it. That was enough to allow me to build and run a console application, the default "Hello World!" that the IDE provides whenever you create a new console application project.

Next, I closed that project and opened up my openGL/GLUT project. This is the one for which I'd been setting up Code::Blocks in the first place. Hitting F9 still didn't result in a happily running GLUT window like Code::Blocks had been giving me on my Linux machine. The next problem?

ld.exe cannot find -lGL
=== Build finished: 1 errors, 0 warnings ==

This error I'd already seen, just one night before on my Linux machine. The solution to that problem can be found in my previous post, "cannot find -lGL". That's all I can take tonight, I'll have to continue this unnecessary torment tomorrow.

Monday, July 20, 2009

cannot find -lGL

I was working on my tank game in Code::Blocks and suddenly it started throwing this error whenever I tried to build. Turns out it's an error from 'ld', the GNU linker, and means that it can't find the openGL library: libGL.so. I looked in /usr/lib/ and found 'libGL.so.1', so I copied that to 'libGL.so'. That was it, all fixed.
Still no clue how that happened. I'd been happily building mere minutes beforehand.

Sunday, September 16, 2007

Kitchen Chandelier


I finally installed this chandelier type thingie that I bought at Costco for $55.
Now, what do I do for the other side of the kitchen?

Tuesday, March 27, 2007

Washer Closet - Tiling the Floor

Washer Closet - Tile Floor
1st night: shopping, cutting Durock, and cutting tiles.
2nd night: mortar, and setting tiles
3rd night: grout
Lessons:
Never leave your trowel outside when rain clouds are overhead. Cheap tools rust fast.
A carton of grout needs 26oz of water. This means that half a carton of grout needs 13oz of water, not 23oz. Retard.
Tile nippers suck on their own. To get a straight line, where you want it, tile must be deeply scored to make the break with hand held nibblers.

Update: 3 weeks later and it's all done