I am very new to adding c/c++ library to iOS project. My requirement is to add DICOM toolkit (written in c/c++) to my swift ios project. I have spent two days with googling to find steps how to include and use it, but i could not find any such blogs that are using DICOM toolkit by Mergecom.
Can somebody help here..
Thanks.
There is nothing (apparent) special about the merge toolkit. Look at any tutorial about using C code/libraries.
Here is one;
https://maniacdev.com/2015/02/tutorial-a-quick-guide-to-using-c-libraries-within-swift-code
Have you asked Merge for a sample app?
I've done this. If you are working from the publicly available sources, you'll need to:
1 - make the DCMTK sources build their libraries for iOS using Xcode
2 - make a Objective-C bridging library, like iiDicom work on iOS
3 - create additional Objective-C bridging code to access DCMTK via Swift
To get DCMTK + iiDicom working under iOS, it will take about a month of off-and-on work to get both libraries ready for initial use with Xcode.
Related
I'm trying to add opencv framework into built project(https://github.com/amolaks76/iOS-Camera-and-OpenCV) I found from Github. I'm just trying to run the app on my iPhone to see how opencv works with Swift.
I added opencv.framework which I found from opencv website. Even if I add the framework, it still complains like below image.
one thing I found is that opencv.framework has different image than apple's framework like below:
I've seen other stackoverflow questions about this matter and people suggested to make sure Always Search User Paths is Yes. I'm updating my search path setting below:
can you guys tell me what I'm doing wrong here?
use following
#import "opencv2/opencv.hpp"
and in build settings -> compile as -> objective c++
you need to download ovencv frame work from https://github.com/Itseez/opencv
add it to your project
I'm looking for a solution to create an iOS project with C++.
Do you know if there is other manners than mix C++ with Objective-C ?
It's for a game written in C++, using some librairies : OpenGL, SDL, ...
Do you know if it's possible to use these librairies with an iOS project ?
I found something like this kind of stuff :
http://philjordan.eu/article/mixing-objective-c-c++-and-objective-c++
On this website you'll see in a video how to port your SDL game to iOS.
This link might be useful too; a step by step tutorial on how to use SDL.
This is basically it:
Create a new iPhone view based application project.
Build the SDL libraries statically (libSDL.a and libSDLSimulator.a) for iOS and include them in your project. XCode will ignore the library that is not currently of the correct architecture, hence your app will work both on iPhone and in the iPhone Simulator.
Include the SDL header files in your project. (e.g. #include "SDL.h")
Remove AppDelegate.h and AppDelegate.m -- SDL for iPhone provides its own UIApplicationDelegate. Remove your storyboard -- SDL for iPhone produces its user interface programmatically.
Delete the contents of main.m and program your app as a regular SDL program instead. You may replace main.m with your own main.c, but you must tell XCode not to use the project prefix file, as it includes Objective-C code.
I'm currently working on a project for my university, where I have to develop an iOS app. For this I would like to work with octave. My question is, if it's possible to use my octave code as a c++ library without having octave installed, which I just can include to my Objective-C project and give the input to the library, which computes the result and return the output to my project.
I already searched the web, but I couldn't find anything :/
Best regards,
Carsten
I am currently taking a few different online programming courses, one of which is the Programming Abstractions Stanford course. They have a set of default libraries that are utilized for the class.
You can download that package here:
http://see.stanford.edu/materials/icspacs106b/cs106libs_for_xcode.zip
I am needing assistance with figuring out how to get this package of libraries into Xcode so that I can utilize them with the programs I write. How can I go about doing that so when I create a new project I can create one that has these libraries ready to go, on top of the standard C++ libraries.
Thanks a bunch in advance!
Edit: I did install the .pkg file, but I do not where it installed. How do I utilize the installed library from within Xcode?
Bad luck. From this page:
How to install external library in X-Code 4
You need to install XCode 3.0 in order to use
CS106LibrariesForXcode.pkg library.
XCode 4 have a very different UI and functionality compared to XCode
3. So it would be unwise to study XCode 3 only. But if you're going to study C++ using those tutorials you'd probably want to install XCode 3
and use it.
Old answer [Not applicable]
If the package is a pkg file, you actually needs to install it. Double-click on it, follow the steps.
If you have a warning message,
CS106LibrariesForXcode.pkg” can’t be opened because it is from an
unidentified developer.
then right-click (or ctrl+click) and select open. The warning will then have an open option to allow you to open the package.
Once this is done, just write a new program, and include the headers you need.
I built an iPad app in actionscript. A potential partner wants to pull my app into their app. They built their app natively using XCode. From what I understand, if my app had been built natively, I could simply export the code as a static library (.a file) for use by their app. Alas, I built mine in actionscript. So...
Is there a way to convert ActionScript 3 to C++?
Is one possible solution to do this conversion via AS3 to Haxe to C++?
Am I simply SOL and need to rebuild the game using XCode?
Thanks in advance.
Jason
You might consider the Tamarin project or Tamarin redux.
http://www-archive.mozilla.org/projects/tamarin/
It can be compiled in XCode as well. However, if your application is heavily depended on Flash runtime you have to implement all classes by yourself, because AVM contains only the basic AS3 classes.