Johnson, Hans J <hans-johnson@...> writes:

> 
> Hello All,
> 
> I¹ve been fighting to get a build of ITK on the newest version of MacOSX
> (with their clang only compilers).
> 
> One incantation that I¹ve been able to make work is the following:
> 
> cmake -DCMAKE_CXX_FLAGS:STRING='-stdlib=libstdc++ -std=c++03 Œ  ../ITK
> 
> I can say that the git master from today with these flags compiled and all
> tests passed.
> 
> Hans
> 
> ________________________________
> Notice: This UI Health Care e-mail (including attachments) is covered by
the Electronic Communications
> Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally
privileged.  If you are not the
> intended recipient, you are hereby notified that any retention,
dissemination, distribution, or
> copying of this communication is strictly prohibited.  Please reply to the
sender that you have received
> the message in error, then delete it.  Thank you.
> 

Hello, 

I upgraded my mac to Mavericks 10.9.

I tryed to compile ITK 4.4.2 with :

cmake -DCMAKE_CXX_FLAGS:STRING='-stdlib=libstdc++ -std=c++03'  ..
and 
cmake -DCMAKE_CXX_FLAGS:STRING='-stdlib=libstdc++ -std=c++11'  ..

Some previous errors disappeared. However I have still :

[ 43%] Building C object
Modules/ThirdParty/TIFF/src/itktiff/CMakeFiles/itktiff.dir/tif_fax3sm.c.o
Linking C shared library ../../../../../lib/libitktiff-4.4.dylib
duplicate symbol ___sputc in:
    CMakeFiles/itktiff.dir/tif_aux.c.o
    CMakeFiles/itktiff.dir/tif_close.c.o
duplicate symbol ___sputc in:
    CMakeFiles/itktiff.dir/tif_aux.c.o
    CMakeFiles/itktiff.dir/tif_codec.c.o
duplicate symbol ___sputc in:
    CMakeFiles/itktiff.dir/tif_aux.c.o
    CMakeFiles/itktiff.dir/tif_compress.c.o
duplicate symbol ___sputc in:
    CMakeFiles/itktiff.dir/tif_aux.c.o
    CMakeFiles/itktiff.dir/tif_color.c.o

[....]

duplicate symbol ___sputc in:
    CMakeFiles/itktiff.dir/tif_aux.c.o
    CMakeFiles/itktiff.dir/tif_zip.c.o
duplicate symbol ___sputc in:
    CMakeFiles/itktiff.dir/tif_aux.c.o
    CMakeFiles/itktiff.dir/tif_unix.c.o
duplicate symbol ___sputc in:
    CMakeFiles/itktiff.dir/tif_aux.c.o
    CMakeFiles/itktiff.dir/tif_jpeg.c.o
ld: 71 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libitktiff-4.4.1.dylib] Error 1
make[1]: ***
[Modules/ThirdParty/TIFF/src/itktiff/CMakeFiles/itktiff.dir/all] Error 2
make: *** [all] Error 2 

Is everyone have an answer for me ? Thanks by advance.
Mathilde


_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-developers

Reply via email to