Building small big things
Open Tool Chain and C++ Standard Template Libray 
Sunday, March 15, 2009, 07:54 PM - Software
Posted by Administrator
The open Tool Chain headers convientely omit some critical STL headers so only basic C++ code could be used. Various samples provided by Apple that use OpenAL, are in C++ and also use STL. I copied the missing STL headers (map, vector, ...) over to the iPhone and updated my make file with the following settings for c++ compiling.


LDFLAGS += -lstdc++

CXXFLAGS := $(CFLAGS) -lz -x c++ -I"/var/include/c++/4.0.0" -I"/var/include/c++/4.0.0/arm-apple-darwin9"



add comment ( 15 views )   |  0 trackbacks   |  permalink
Prefix.pch and how to use it in open toolchain 
Sunday, March 8, 2009, 04:21 PM - Resources
Posted by Administrator
Most if not all of the sample apps provided with the iphone SDK use a prefix.pch file which, under Xcode would be handled as a precompiled prefix header included with all source files.

I searched all over to see if anyone had already handled it but come up empty.

This is what I came up with to properly include the prefix header and also have it precompiled.


%.o: %.m Prefix.pch.gch
$(CC) -include Prefix.pch -c $(CFLAGS) $< -o $@

%.o: %.cpp Prefix.pch.gch
$(CXX) -include Prefix.pch -c $(CXXFLAGS) $< -o $@

Prefix.pch.gch: Prefix.pch
$(CC) -x objective-c-header $(CFLAGS) Prefix.pch


It adds the Prefix.pch.gch as a dependence and then includes it when creating an object file.
add comment ( 15 views )   |  0 trackbacks   |  permalink
Ported TouchFighter to open Tool chain 
Sunday, March 1, 2009, 10:41 PM - Progress
Posted by Administrator

I came across the source for TouchFighter on the Apple developer website and I have ported everything but the audio (openAL) to use the open tool chain.

Still trying to figure out if it is even possible to compile the soundengine.cpp, which requires STL. I had the same problem with the CrashLanding code, which I just skipped, and commented out all sound calls.
add comment ( 11 views )   |  0 trackbacks   |  permalink
Ported some of the Apple IPhone SDK samples to use the open tool chain 
Sunday, February 22, 2009, 08:09 PM - Progress
Posted by Administrator
For some, I use a Mac to create the Nib file, but others didn't need it.

GLGravity
GLSprite
CrashLanding (No longer available as part of the SDK, but I had an old version)
GLPaint

add comment ( 14 views )   |  0 trackbacks   |  permalink
Found a ported version IPhone Sample UICatalog 
Saturday, February 21, 2009, 11:20 PM - Resources
Posted by Administrator
It does not use a NIB file, which can only be generated on a Mac using the ibtool.

It can be found here: Apple IPhone SDK Ported UICatalog
add comment ( 15 views )   |  0 trackbacks   |  permalink   |  related link

| 1 | 2 | 3 | 4 | 5 | 6 | 7 | Next> Last>>