Problem when debugging Mac application - macos

I am trying to run an existing old mac os targeted application. When I try to run the application I got an error like as follows,
No architectures to compile for (ARCHS=ppc, VALID_ARCHS=i386 x86_64).
I am very new to Mac osx can you guys please help me?
Thank you,
Chandra

You need to Go to Project Properties expand Targets, select Leaves, right-click Get Info.
Update the base SDK to the version you are currently using.
Hope that solves the issue !

Set your targets ARCH build setting to "standard (32/64-bit) intel".

Related

How to add Mac OSX to cordova project

I currently have a Cordova project with 2 platforms: Android and iOS
I'm trying to add "OSX" with this:
https://github.com/apache/cordova-osx
However the documentation is quite hard to follow and I can't seem to get it to work properly.
Does anyone have any idea on how to do this? or more precise step by step instructions?
The Cordova CLI does not support OSX project targets.
In your project working directory root, type in:
cordova platform list
... to see the available and installed platforms.
just wondering if anyway gots this running ? actually I tried to load cordova from master. Later I tried to applied the patch which did NOT worked. So I did what the patch did by hand.
Anyway after the full cycle still "platform list" does not changed ?
So I assume there are more steps to be done, before OSX is added as a new platform?

Build & Install OpenSceneGraph-3.1.3 give me a No WindowSystemInterface error?

I am trying to install the latest SVN Update OpenSceneGraph-3.1.4 on Mac OS X Mountain Lion.
Do I need to install a specific WindowSystemInterface ?
$ osgviewer cow.osg
View::setUpViewAcrossAllScreens() : Error, no WindowSystemInterface available, cannot create windows.
Viewer::realize() - failed to set up any windows.
I build and re-build many times, using CMake with or without Gui, compiling Unix files or from within Xcode, but still same problem.
Thank you!
If you'd like a more recent Mac OSG binary which includes a
user-runnable installer, OSG Frameworks supporting both 32 and 64-bit
archs, etc. you can use the one published by ARToolworks:
http://www.artoolworks.com/dist/openscenegraph/3.1.x/
It doesn't include the COLLADA (.dae) plugin but most other plugins
are present.
Regards, Phil.
It sounds like somehow the GraphicsWindow*.cpp file didn't compile and link and execute, as this is what provides the WindowSystemInterface. This is an unusual condition, as normally this is built automatically, linked in and executed as the library starts up and the user is never the wiser.
I'm not sure what to advise you, only to re-check you build process as something has gone very wrong.

How to use FreeTDS with Xcode?

I'm a newbie on Mac development, I need to access sql server from cocoa app via FreeTDS but I don't know how to do that. Please help me.
Generally, I find that sort of work easiest if you just take the source code of the project and include it in the Xcode project and compile it all.
Later, you can build it as a framework or library in a separate target, but no need to that from the beginning.

How to build WineLib for Mac OS X 10.6 and link it with XCode project?

Please forgive me for a stupid lame question, but I can't find even minimal documentation... It seems that only Wine is covered.
Should I use the Wine sources to build Winelib? Is my assumption correct that I can create a Winelib framework by importing all Wine sources into a project? What middleware / libraries should I link to it in this case?
Please help!

Adding a Library to your build and link path in XCode

I am tryingo to build a GUI application using the JUCE framework on MAC OSX.
I have dowloaded all the API's and got a small hello World program running fine.
However, when I add files to my Xcode project I get compilation errors that say that the Juce library files don`t exist. I would like to know how to get the library API in the build and link path in XCode so that it finds the neccesary files for compilation.
What I would do on Visual Studio going to properties and adding aditional library dependencies, is what I need to do in XCode but I don't know how.
Any help greatly appreciated.
thanks.
Old question but maybe a useful answer in the future....
If you have the "Hello World" up and runnning, it should already be linked to the library. Are you using the introjucer? This should help get everything up and running for you. If you are, you need to add classes etc to the introjucer, as this sets up Xcode / VStudio for you. If not, (Presuming XCode 3 as you are using leopard) goto Xcode > Preferences. Scroll along to source trees, and add the path to the juce folder in there.

Resources