Author Archive for peko

Page 3 of 37

XCode | Embedding frameworks and libraries to an APP

It can be done by this two utilities:

otool
install_name_tool

Read full instruction at cocoaism

OSX | Ogre + ARToolkitPlus

OSX + fopen | Relative Paths Not Working in Xcode C++

There are numerous post over the net that detail how relative paths don’t work in Xcode. I do have an Xcode template that I downloaded where the relative paths DO work, however I have not been able to figure out why nor replicate it in other projects.

#ifdef __APPLE__
#include "CoreFoundation/CoreFoundation.h"
#endif

// ----------------------------------------------------------------------------
// This makes relative paths work in C++ in Xcode by changing directory to the Resources folder inside the .app bundle
#ifdef __APPLE__
CFBundleRef mainBundle = CFBundleGetMainBundle();
CFURLRef resourcesURL = CFBundleCopyResourcesDirectoryURL(mainBundle);
char path[PATH_MAX];
if (!CFURLGetFileSystemRepresentation(resourcesURL, TRUE, (UInt8 *)path, PATH_MAX))
{
// error!
}
CFRelease(resourcesURL);

chdir(path);
std::cout << "Current Path: " << path << std::endl;
#endif

via stackoverflow

Augmented Reality | T 80


#robot #AR #tank

IR RC test


#robot

Amazing pilotage

robot testing

robot assemble complete

Augmented Reality | Truck

Augmented Reality | Audi TT