I'm newbie to iPhone programming.I want to use DCMTK library in my iPhone project to display DICOM image but I don't know how.
I search google to use DCMTK on iPhone project.They tell me use CMake to configure and build on XCode. I have already successfully used CCmake to compile dcmtk3.6 but not build it in ios environment on XCode.It have 69 error of dcmprscp about Apple Mach-O Linker (Id) Error.
Have any idea,Thank you for answer. :)
ps.sorry for my bad english.
We can use DCMTK on iOS. The follow link will help someone who looks for information about this.
http://www.cppblog.com/kesalin/archive/2011/11/10/dcmtk_ios.html
That post is written in Chinese with many screenshots, we still can get enough information to work it out.
This is likely NOT a cmake issue, but rather an issue with trying to use DCMTK for iphone.
The "dcmprscp" module appears to be a command line tool, which I wouldn't expect to work under iOS. Start with building the DCMTK libraries under iOS & skip building the command line tools completely.
Related
I want to compile the mathomatic(CAS) library for iPhone. I am not able to find any place where to define the "HANDHELD" flag which helps to compile the library for mobile devices.
You can find the library from mathomatic.
I have already compiled library but when I am trying to use that library then xcode is throwing error like "libmathomatic.a doesn't contain slice for i386" so, I have tried to get the architecture info using lipo command so, it showing x86_64. It might be looks like compiled library is for OSX not for iPhone so, what changes I need to do to compile it for iPhone? I have already taken look into make file but I am not getting how to define or change the architecture.
Help would be highly appreciated.
Thanks in advance.
I have an iphone app to upload to the AppStore and I am stuck with Xcode.
It keeps telling me when I want to create a build:
Library not found for -lOAuthConsumer_iPhone
I have checked everywhere on the web and haven't really found what the problem is.
Please bear in mind that I am not an iphone developer. I just know how to submit the apps but this bug here is really annoying as I can't find what it is.
Where can I find that library and how can I install it?
And where to install it??
It seems like the project is asking for the OAuthConsumer Library which can be found at: https://github.com/jdg/oauthconsumer.
You first need to check if your Project actually needs the library and ensure that the Security.framework is included as described in the OAuthConsumer readme
I'm using the mosync library for develop iPhone applications. It generates the Xcode project ,
now I need to compile it to make it run on a iphone. So for that I need a mac.
do anybody know somewhere online to find online compiler which do that with a web based interface?
--thanks in advance--
Its really a difficult ask, since apples terms of use on certificates stop people from doing this.
But I got a paid solution for the same problem you mentioned which provides Xcode on Macintosh with latest updates. It just cost about 10$-20$ per month. Initially, you will get the trial offer too. If you like it, then you can subscribe it.
But friends beware of those who provides hacintosh version.
You can refer to following link-
http://www.xcodeclub.com/
http://virtualmacosx.com/
If you want to compile C or C++ right on iPhone/iPad you can try CppCode ios app
What's the best practice to include existing C Libraries into an iPhone Project? I searched the Internet and actually found some pieces but nothing that explains the exact way to do it.
I'm trying to include the following Citrix XenServer SDK Library.
Any help is appreciated. Thanks!
You could try to build a static library and link against that.
I didn't try that myself yet, but as far as I could see, libxenserver has libxml2 as its only dependency.
libxml2 is available on the iPhone so you might have a chance.
To get started, create a Cocoa touch static library project and drag the C files into the project.
Now you have to figure out where to place the include files.
This might get a bit tricky and you will start with a lot of compile errors, but to me it seems possible to get it compiled.
The way I did it was to just create an iPhone static library project in Xcode and drop all the library's files in there. Then check if it builds and if the build settings are appropriate for the library you wish to compile. To add the newly-created library to your binary, you should follow the steps explained in the bottom part of the Three20 readme.
Note that you can only add static libraries to iPhone projects if you wish to get them into the App Store. Xcode also doesn't provide means to create dynamic iPhone libraries.
I am trying to use Lua on the iPhone. On Mac OS X, in a normal (non-iOS) Cocoa application, I used the following code:
lua_State* l;
l = lua_open();
luaL_openlibs(l);
luaL_loadstring(l, "print(\"Hi from Lua\");");
lua_pcall(l, 0, 0, 0);
I downloaded Lua 5.1.4 from lua.org/ftp and compiled it for Mac OS X.
In the Xcode project, I used "Add Existing Framework" to add liblua.a and I used "Add Existing Files" to add the include directory.
This works as expected, and prints the string: "Hi from Lua".
When I try the same thing in an iOS project, it gives the errors:
"_luaL_newstate", referenced from:
_main in main.o
more of the same thing...
symbol(s) not found
collect2: ld returned 1 exit status
It seems that the .a file is not linked into the iPhone app.
Does anybody know how to make this work?
(By the way, I don't really care that Apple might not accept my app if it has Lua in it.)
You'll need to compile the Lua .a for ARM, not Intel. If the Lua library uses autoconf, you can use my favorite iphone/autoconf builder: build_for_iphoneos. If it's not autoconf, then you can use that script to get an idea of how to attack it. Sometimes you can just build a Static Library Xcode project, dump all the files into it and hit build. If the build is simple enough, it'll do most of the work for you.
I know it doesn't matter for your use, but Lua-based tools are generally shippable on the app store. You just can't download arbitrary code at run time and interpret it.
You might want to check out iPhone Wax. It is a lua/iPhone bridge that lets you write native iPhone apps in pure lua! Here is a pretty good tutorial about it.
If you want to write Lua code for iOS, then check out MOAI immediately: http://getmoai.com/
Its an absolutely enjoyable framework for developing games on iOS and Android, as well as Windows and OSX. Not only that, but it provides a pretty good idea of how to properly implement a Lua-VM based hosting environment for scripting in a cross-platform manner: from MOAI, you can learn a lot about this. I've done 4 titles with MOAI so far, and won't be stopping any time soon .. MOAI absolutely kicks ass!
Also check out LOAD81, which is a similar effort albeit with SDL as the target environment: http://github.com/antirez/load81
(I've contributed a little to the LOAD81 project, specifically giving it features of interest/value to the OpenPandora community. MOAI is more commercial, LOAD81 more hobbyist..)
For those trying to learn Lua and the different methods of integrating the Lua VM in a project for multiple platform targets, both MOAI and LOAD81 can provide a lot of great background and clues about the right way to proceed.