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.
Related
I'm trying to run Libgit2Sharp in a Xamarin.iOS project (I'm currently running it on Xamarin.Droid).
For doing so, I was trying to follow the same approach than for Android (generating a custom native binaries package) but I have faced some doubts/problems.
First, iOS doesn't allow the use of dynamic libraries at least if you want to upload the app to the market.
Is there any "easy" way no rebuild libgit2sharp to make it run static libraries?
Probably the App will not go to the official App Store, but it would be nice to know if it is possible.
Another thing I have realized while checking the libgit2sharp source code is that iOS is not in the list of possible Operating Systems, so should I make any other modification to make it run on iOS?
Thanks in advance
So in the end I found a way to run libgit2 in Xamarin.iOS.
Basically what I did was to generate the iOS libgit2 static libraries (you can use the Objective-git repository for doing so, as it is part of the process) and then modify LibGit2Sharp project to look for "__Internal" instead of the .dll/.so dynamic libraries.
The you just need to add the libgit2 static library to your Xamarin.iOS project, and that's all.
Hope someone finds this info helpful.
ALL,
In *nix, the usual way of building the software is to do:
../configure && make && make install
However sometimes you need to pass some options to configure. As an example you can say "../configure --prefix=".
Now sometimes configure has a lot of programmer defined options. As an example if I want to build a freeTDS software (driver to access MS SQL Server/Sybase Server) I can choose which DBMS I want to build against thru "--enable-mssql/--enable-Sybase".
Unfortunately I'm not very familiar with Xcode, however I do know that OSX is a type of *nix environment.
So my question is: do I have access to such configure options inside Xcode? Let's say I am building a software that uses ODBC. So I can use either unixODBC DM or iODBC DM. And so my thought is that I can use "--with-unixodbc/--with-iodbc" mutually exclusive configure options. But inside Xcode I have no idea where/how to define those.
Could someone please shed some light, please?
I have OSX 10.8 with the latest Xcode for that version, if it matters.
[EDIT]
On Linux when building pgodbc, I can use:
../configure --with-unixodbc=<some_dir>
or
../configure --with-iodbc=<some_dir>
Is there a way to tell Xcode I want to build with one OR another? Or you just build as many binaries as you wish?
Becase iODBC manager installs its files as a framework and unixODBC build from source installs as usual *nix file. So, when I build I want to know what I am testing against and what the user machine will have...
[/EDIT]
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.
I'm trying to use the GData framework, so I downloaded it and it came as an Xcode project so I assumed I needed to build it. So I opened it up and and clicked run and it compiled fine, but where do I go to access the .framework it created? I'm new to frameworks and have only been using xcode for a month or two so you'll have to excuse my lack of knowledge about it.
The documentation will help you
Anyway, by default the target is GDataUnitTest, just change it to GDataFramework. Once you compile it you will find the framework in the folder of the XCode Project called target.
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.