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.
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.SharifOn 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.
- WesOn 3/10/08, Sharif Jaghman <firstname.lastname@example.org> 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.dylibld: common symbols not allowed with MH_DYLIB output format with the -multi_module optionCMakeFiles/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 failedmake: *** [lib/libmpeg2.dylib] Error 1make: *** [v3p/mpeg2/CMakeFiles/mpeg2.dir/all] Error 2make: *** [all] Error 2I 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.
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
Vxl-users mailing list
Wesley D. Turner, Ph.D.
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x120