dcmtk on iPhone ??

All other questions regarding DCMTK

Moderator: Moderator Team

Message
Author
ali.m.habib
Posts: 85
Joined: Sun, 2010-12-26, 17:34

#16 Post by ali.m.habib »

Michael Onken wrote:Hi,

that's an error on the mac caused by the CMake configuration.. You can ignore it and go ahead anyway,i.e. hit configure again and go on.

If you want to fix it instead, unselect any boxes on the screen where the description contains the word TIFF ;)

Best regards,
Michael
ok I have another question

is there a bug in in file dcdict.cc, that I should fix

I see this in the thread viewtopic.php?t=2759&highlight=iphone

any suggestion please

ali.m.habib
Posts: 85
Joined: Sun, 2010-12-26, 17:34

#17 Post by ali.m.habib »

Michael Onken wrote:Hi,

that's an error on the mac caused by the CMake configuration.. You can ignore it and go ahead anyway,i.e. hit configure again and go on.

If you want to fix it instead, unselect any boxes on the screen where the description contains the word TIFF ;)

Best regards,
Michael
is there a bug in that I should fix in file dcdict.cc
I found that in

viewtopic.php?t=2759&highlight=iphone

omarelgazzar
Posts: 101
Joined: Wed, 2009-07-08, 16:06
Location: Oldenburg, Germany

#18 Post by omarelgazzar »

Hello,

If you don't need to convert DICOM images to TIFF , set the option for DCMTK_WITH_TIFF support OFF in the CMakeLists.txt file. Do the same for the other libraries such as PNG, OPENSSL and ZLIB.
If you need TIFF support, I recommend you to read the INSTALL file in the source package carefully.

ali.m.habib
Posts: 85
Joined: Sun, 2010-12-26, 17:34

#19 Post by ali.m.habib »

omarelgazzar wrote:Hello,

If you don't need to convert DICOM images to TIFF , set the option for DCMTK_WITH_TIFF support OFF in the CMakeLists.txt file. Do the same for the other libraries such as PNG, OPENSSL and ZLIB.
If you need TIFF support, I recommend you to read the INSTALL file in the source package carefully.
ok thanks a lot what about my previous question

is there a bug in that I should fix in file dcdict.cc
I found that in

viewtopic.php?t=2759&highlight=iphone

any suggestion please

ali.m.habib
Posts: 85
Joined: Sun, 2010-12-26, 17:34

#20 Post by ali.m.habib »

Michael Onken wrote:Hi,

that's an error on the mac caused by the CMake configuration.. You can ignore it and go ahead anyway,i.e. hit configure again and go on.

If you want to fix it instead, unselect any boxes on the screen where the description contains the word TIFF ;)

Best regards,
Michael

is there a bug in that I should fix in file dcdict.cc
I found that in

viewtopic.php?t=2759&highlight=iphone

ali.m.habib
Posts: 85
Joined: Sun, 2010-12-26, 17:34

#21 Post by ali.m.habib »

Michael Onken wrote:Hi,

that's an error on the mac caused by the CMake configuration.. You can ignore it and go ahead anyway,i.e. hit configure again and go on.

If you want to fix it instead, unselect any boxes on the screen where the description contains the word TIFF ;)

Best regards,
Michael
I got this error 57 times

Objective C: “_main”, referenced from: Start in crt1.3.1.o error

for each project any suggestion please

Michael Onken
DCMTK Developer
Posts: 2055
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

#22 Post by Michael Onken »

Hi,

My colleague Jörg already said in another thread that there is no bug in dcdict.cc we would know of.

Please be more specific with your problems, i.e. show the full error message (not all 43 or so, but 1 of them completely). Your problem with "main" does not look like a DCMTK-related problem, though. Maybe googling already helps.

Best regards,
Michael

ali.m.habib
Posts: 85
Joined: Sun, 2010-12-26, 17:34

#23 Post by ali.m.habib »

ali.m.habib wrote:
elzix88 wrote:Hi,

1. before install you should remember to fix bug with dicom dictionary (in file dcdict.cc). Fix can be find in this forum.

2. all you need to do is configure dcmtk with these options (64 bits for Mac OS X and 32 for iOS):

Code: Select all

env ARCH='-arch i386 -arch x86_64' CFLAGS='-D_DARWIN_C_SOURCE -arch i386 -arch x86_64' CXXFLAGS='-D_DARWIN_C_SOURCE -arch i386 -arch x86_64' ./configure --prefix=/Users/bartek/full-dcmtk --disable-threads --with-libzlibinc=/Users/bartek/Desktop/dcmtk-3.5.4/zlib-1.2.5
2.a)make all
2.b) make install, make install-lib

3. remember about library order (FAQ 27) and about zlib library into your project

I think thats all (i spend a lot of time on my project and i dont remember if i done something else)

------------------------------------
I hope that it will be usefull for someone. Cheers !
Hi all,

I 'm totally new to DCMTK and I need to do the following :

- build DCMTK for iphone
I read a question and answer at

viewtopic.php?t=2759&sid=d6704678b50813 ... ecc31ca0d1

but I didn't understand how to do that

read DICOM image and display it to uiimageviewer

your reply is highly appreciated
Best regards
I used the terminal code u provided , and while testing it on simulator it cause the simulator to terminate any suggestion

ali.m.habib
Posts: 85
Joined: Sun, 2010-12-26, 17:34

#24 Post by ali.m.habib »

Michael Onken wrote:Hi,

that's an error on the mac caused by the CMake configuration.. You can ignore it and go ahead anyway,i.e. hit configure again and go on.

If you want to fix it instead, unselect any boxes on the screen where the description contains the word TIFF ;)

Best regards,
Michael
when compile for ios 4.2 , the xcode project come from the cmake it give me error which is
/dcmtk-3.6.0/ofstd/include/dcmtk/ofstd/ofstdinc.h:335:0 /dcmtk-3.6.0/ofstd/include/dcmtk/ofstd/ofstdinc.h:335:18: error: libc.h: No such file or directory
and
target specifies product type 'com.apple.product-type.tool', but there's no such product type for the 'iphoneos' platform

any suggestion please

ali.m.habib
Posts: 85
Joined: Sun, 2010-12-26, 17:34

#25 Post by ali.m.habib »

elzix88 wrote:Hi,

1. before install you should remember to fix bug with dicom dictionary (in file dcdict.cc). Fix can be find in this forum.

2. all you need to do is configure dcmtk with these options (64 bits for Mac OS X and 32 for iOS):

Code: Select all

env ARCH='-arch i386 -arch x86_64' CFLAGS='-D_DARWIN_C_SOURCE -arch i386 -arch x86_64' CXXFLAGS='-D_DARWIN_C_SOURCE -arch i386 -arch x86_64' ./configure --prefix=/Users/bartek/full-dcmtk --disable-threads --with-libzlibinc=/Users/bartek/Desktop/dcmtk-3.5.4/zlib-1.2.5
2.a)make all
2.b) make install, make install-lib

3. remember about library order (FAQ 27) and about zlib library into your project

I think thats all (i spend a lot of time on my project and i dont remember if i done something else)

------------------------------------
I hope that it will be usefull for someone. Cheers !
I did all the steps but when I used it in project ( ipad device, debug) I got the following error
/DCMTK_BINARY/include/dcmtk/ofstd/ofstdinc.h:320:18: error: libc.h: No such file or directory

I added the following headers in my project

Code: Select all

#include <dcmtk/ofstd/ofstd.h>
#include <dcmtk/config/osconfig.h>
#include <dcmtk/dcmimgle/dcmimage.h> 
any suggestion please
it's DCMTK 3.6.0 , with macos X snow leopard 10.6.4

omarelgazzar
Posts: 101
Joined: Wed, 2009-07-08, 16:06
Location: Oldenburg, Germany

#26 Post by omarelgazzar »

You should include <dcmtk/config/osconfig.h> first before any other included files.

ali.m.habib
Posts: 85
Joined: Sun, 2010-12-26, 17:34

#27 Post by ali.m.habib »

omarelgazzar wrote:You should include <dcmtk/config/osconfig.h> first before any other included files.
the same error

ali.m.habib
Posts: 85
Joined: Sun, 2010-12-26, 17:34

#28 Post by ali.m.habib »

ali.m.habib wrote:
omarelgazzar wrote:You should include <dcmtk/config/osconfig.h> first before any other included files.
the same error
any help please

francois
Posts: 10
Joined: Sat, 2011-02-19, 15:30
Location: France
Contact:

#29 Post by francois »

HOW TO COMPILE DCMTK ON IPHONE (not fully checked)

It's simple,

1 - Download last dcmtk and extract
2 - go in the directory and create a folder "xcode"
3 - go to the new directory and type "ccmake -GXcode ../"
4 - for ccmake options

DOXYGEN : OFF
OPENSSL : ON (optional : you need to have openssl libs for IOS)
PNG: ON (optional)
PRIVATE_TAGS : ON (optional)
THREADS : ON (optional)
TIFF : ON (optional)
XML : ON (optional)
ZLIB : ON (optional)

configure, generate and take a coffee.

5 - Open the xcode project in the folder "xcode"
6 - Compile the project for testing if all things are good, take a coffee again.

If it's compile, go next step.

7 - go "project info" in xcode
8 - change "Base SDK for All Configuration" to "Latest IOS"
9 - Change "Architectures" for "Standart"
10 - check is "Valid Architectures" is "armv6 armv7"
11 - Build Active Architecture Only must be checked
12 - In Target list remove ALL executables, only Libraries must be compiled.
Optional(depend of your ccmake config):
13 - Add in yours project libssl.a libcrypto.a libz.dylib (and some include by yourself)

14 - Compile the project for IOS simulator first.
You will have a error (the only one) for a include, comment it.

15 - If it's good, compile for device.
Now, all libraries can work but must be tested.

ali.m.habib
Posts: 85
Joined: Sun, 2010-12-26, 17:34

#30 Post by ali.m.habib »

francois wrote:HOW TO COMPILE DCMTK ON IPHONE (not fully checked)

It's simple,

1 - Download last dcmtk and extract
2 - go in the directory and create a folder "xcode"
3 - go to the new directory and type "ccmake -GXcode ../"
4 - for ccmake options

DOXYGEN : OFF
OPENSSL : ON (optional : you need to have openssl libs for IOS)
PNG: ON (optional)
PRIVATE_TAGS : ON (optional)
THREADS : ON (optional)
TIFF : ON (optional)
XML : ON (optional)
ZLIB : ON (optional)

configure, generate and take a coffee.

5 - Open the xcode project in the folder "xcode"
6 - Compile the project for testing if all things are good, take a coffee again.

If it's compile, go next step.

7 - go "project info" in xcode
8 - change "Base SDK for All Configuration" to "Latest IOS"
9 - Change "Architectures" for "Standart"
10 - check is "Valid Architectures" is "armv6 armv7"
11 - Build Active Architecture Only must be checked
12 - In Target list remove ALL executables, only Libraries must be compiled.
Optional(depend of your ccmake config):
13 - Add in yours project libssl.a libcrypto.a libz.dylib (and some include by yourself)

14 - Compile the project for IOS simulator first.
You will have a error (the only one) for a include, comment it.

15 - If it's good, compile for device.
Now, all libraries can work but must be tested.
you saved my time and life ,
I have only one questions where's the output libraries , I builld the code as you told me , except I deleted the executable files (I kept the build all, install, and the other libraries) at the target list before change the building options (the latest ios,..)

could you help me in this

best regards

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest