I believe you need to specify the "-fno-common" to your compiler.  You will have to do this for both your C and C++ builds.

- Wes

On 3/10/08, Sharif Jaghman <s.jaghman@qub.ac.uk> wrote:
Hi ALL,

I hope you are keeping well. I just have a quick question.

 Every time when I build it I get this error although I have tried a different releases of vxl i.e. 1.10, 1.8, 1.5. I have set the shared library option to ON because it is a requirement for the installation of another software (openGazer)

Linking C shared library ../../lib/libmpeg2.dylib
ld: common symbols not allowed with MH_DYLIB output format with the -multi_module option
CMakeFiles/mpeg2.dir/libmpeg2/idct.o definition of common _mpeg2_idct_add (size 16)
CMakeFiles/mpeg2.dir/libmpeg2/idct.o definition of common _mpeg2_idct_copy (size 16)
CMakeFiles/mpeg2.dir/libmpeg2/motion_comp.o definition of common _mpeg2_mc (size 64)
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/libtool: internal link edit command failed
make[2]: *** [lib/libmpeg2.dylib] Error 1
make[1]: *** [v3p/mpeg2/CMakeFiles/mpeg2.dir/all] Error 2
make: *** [all] Error 2


I really appreciate any help. Any idea why I am getting this error? 

How can I manage to install and build vxl in my mac?

Thank you very very much in advance.

Kind regards,
Sharif




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Vxl-users mailing list
Vxl-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vxl-users




--
Wesley D. Turner, Ph.D.
Kitware, Inc.
R&D Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x120