Sharif,

I'm cc'ing this back to the VXL list for archival and to offer the possibility of enagaging more of the community.  It looks like you are using CMake, so it should be as simple as running "ccmake ." in your build directory and hitting the "t" key to get access to advanced variables.  At that point you should be able to find the fields CMAKE_C_FLAGS and CMAKE_CXX_FLAGS.  Add "-fno-common" to both of those fields and recompile.  You might need to clean out your binary directory, but I am not certain.  Note that I did not run into this on vxl, but on a different project, so I am not completely confident this is the correct solution. 

- Wes

On 3/11/08, Sharif Jaghman <s.jaghman@qub.ac.uk> wrote:
Thank you very much for your reply. 

I wonder if you could kindly give me more details. I mean how can I specify the "-fno-common" to your compiler. I have been searching for more than two hours but as I am new to all this I don't understand most of the stuff online. 

Are there any detailed online resource or could you please provide me with the instructions on how to do that? I really appreciate your help. 

Thanks in advance.

Sharif


On 11 Mar 2008, at 12:40, Wes Turner wrote:

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






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