[Insight-developers] Mac OSX Mavericks build configuration
MathildeM
nais_merle at hotmail.com
Fri Nov 29 10:43:05 EST 2013
Johnson, Hans J <hans-johnson at ...> 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
More information about the Insight-developers
mailing list