I am attempting to compile this library on mac os x Mavericks 10.9.3 64-bit: http://www.openfec.org/downloads.html
I followed the README exactly, and got this error:
Linking C shared library ../../bin/Release/libopenfec.dylib
Undefined symbols for architecture x86_64:
"_of_add_from_multiple_symbols", referenced from:
_of_linear_binary_code_backward_substitution in of_ml_tool.c.o
"_of_add_to_symbol", referenced from:
_of_linear_binary_code_decode_with_new_symbol in of_it_decoding.c.o
_of_linear_binary_code_simplify_linear_system in of_ml_decoding.c.o
_of_linear_binary_code_col_forward_elimination_pivot_reordering in of_ml_tool.c.o
_of_linear_binary_code_apply_gauss_pivoting in of_ml_tool_2.c.o
_of_linear_binary_code_inject_symbol_in_triangular_system in of_ml_tool_2.c.o
_of_linear_binary_code_solve_triangular_system in of_ml_tool_2.c.o
_of_linear_binary_code_invert_dense_system in of_ml_tool_2.c.o
...
"_of_calloc", referenced from...:
...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: * [../bin/Release/libopenfec.dylib] Error 1
make[1]: * [src/CMakeFiles/openfec.dir/all] Error 2
make: *** [all] Error 2
I simply followed the README for OpenFEC's distro (found at http://www.openfec.org/downloads.html). When attempting to make, this error arises.
I have no idea what the problem is.
This is what I did after untarring the distribution:
(1.): mkdir build
(2.): cd build
(3.): cmake .. -DDEBUG:STRING=OFF
(4.): make
Any ideas?
Edit: Attempted to force cmake to use 64-bit, still didn't work.
(Tried to force it into 32-bit just for kicks, also didn't work)
FYI, if this wasn't resolved. Check that you're linking to your libraries properly.
FIND_LIBRARY(LIB_NAME_LIB lib)
TARGET_LINK_LIBRARIES(my_executable ${LIB_NAME_LIB})
In your CMakeLists.txt file.
Related
I'm building a GitHub Pages site and trying to install Ruby for my Mac as described here. When I run ruby-install ruby , I get the following:
linking shared-object -test-/arith_seq/extract.bundle
Undefined symbols for architecture arm64:
"_rb_arithmetic_sequence_extract", referenced from:
_arith_seq_s_extract in extract.o
"_rb_ary_new_capa", referenced from:
_arith_seq_s_extract in extract.o
"_rb_ary_store", referenced from:
_arith_seq_s_extract in extract.o
"_rb_define_singleton_method", referenced from:
_Init_extract in extract.o
"_rb_path2class", referenced from:
_Init_extract in extract.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [../../../../.ext/arm64-darwin22/-test-/arith_seq/extract.bundle] Error 1
make[1]: *** [ext/-test-/arith_seq/extract/all] Error 2
make: *** [build-ext] Error 2
!!! Compiling ruby 3.1.2 failed!
I'm totally unfamiliar with Ruby and don't know how to make any sense of this. Any ideas? Thanks
I was running into same issue as you after following the Jekyll guide.
Christian from your comments supplied a very detailed solution and explanation as to what's caused it.
After updating to macOS 12.6 or 13.0, you might still be able to install 2.7.x and 3.x versions of Ruby with rbenv or asdf. With ruby-install, you’ll need to add the --enable-shared flag. Once 2.7.7 and 3.1.3 are released, you should no longer need to add any flags.
Install for me on Mac OS 12.6 worked with ruby-install 3.1.2 -- --enable-shared
I cloned the latest version of the Poco libraries source code on to my Mac and attempted to build it per the instructions using CMake. Everything proceeded fine until it reached a point where it was trying to link the libPocoCrypt.dylib library. Even though the C++ compilation worked with out error, the link resulted in the following output
ld: cannot link directly with dylib/framework, your binary is not an allowed client of /usr/lib/libcrypto.dylib for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libPocoCrypto.80.dylib] Error 1
make[1]: *** [Crypto/CMakeFiles/Crypto.dir/all] Error 2
make: *** [all] Error 2
Doing some research, I discovered that Apple doesn't want applications linking against its libcrypto library and thus, the resulting error messages. The question then is, what do I need to do here to make this work?
I uploaded my unity game into Xcode and when I run it I get an error that I have never seen.
I have tried looking up solutions but none of them make it clear what to do.
duplicate symbol _OBJC_CLASS_$_UnityAdsUnityWrapperDelegate in:
/Users/zach/Library/Developer/Xcode/DerivedData/Unity-iPhone-cpaqfqemlogukibygwijfynyrkvk/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/arm64/UnityAdsUnityWrapper-58c342c17ccae78c42910554aa7fcfdcf0004ed65ee5ff27c27446ef2b86d435.o
/Users/zach/Library/Developer/Xcode/DerivedData/Unity-iPhone-cpaqfqemlogukibygwijfynyrkvk/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/arm64/UnityAdsUnityWrapper-58c342c17ccae78c42910554aa7fcfdc5bc1aa913d6c823342728edabfe58322.o
duplicate symbol _OBJC_METACLASS_$_UnityAdsUnityWrapperDelegate in:
/Users/zach/Library/Developer/Xcode/DerivedData/Unity-iPhone-cpaqfqemlogukibygwijfynyrkvk/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/arm64/UnityAdsUnityWrapper-58c342c17ccae78c42910554aa7fcfdcf0004ed65ee5ff27c27446ef2b86d435.o
/Users/zach/Library/Developer/Xcode/DerivedData/Unity-iPhone-cpaqfqemlogukibygwijfynyrkvk/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/arm64/UnityAdsUnityWrapper-58c342c17ccae78c42910554aa7fcfdc5bc1aa913d6c823342728edabfe58322.o
ld: 2 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I'm trying to install libgd on my mac OSX 10.9 following the instructions here (https://mikewest.org/2007/04/installing-libgd-from-source-on-os-x) and peaking on some more info here (Installing GD library for perl on MacOSX 10.6).
the main goal is to be able to install and use Circos.
i followed all the steps to install the various libraries libpgn, pibjpeg and freetype using mainly ./configure && make && make sudo install...however
1) the ./congigure command from libgd does not find the libraries that I just installed and what I get is the following:
** Configuration summary for libgd 2.1.0:
Support for Zlib: yes
Support for PNG library: no
Support for JPEG library: no
Support for VPX library: no
Support for TIFF library: no
Support for Freetype 2.x library: no
Support for Fontconfig library: no
Support for Xpm library: no
Support for pthreads: yes
i read the README file (yeeee) suggesting to use --with-png=myDirectory --with-freetype=myDir etc..i did that (not sure if it made a difference) but when I get to the make command I get the following error
Undefined symbols for architecture x86_64:
"___sincos_stret", referenced from:
_gdImageCopyRotated in gd.o
_gdAffineRotate in gd_matrix.o
_gdImageRotateNearestNeighbour in gd_interpolation.o
_gdImageRotateGeneric in gd_interpolation.o
_gdImageRotateBilinear in gd_interpolation.o
_gdImageRotateBicubicFixed in gd_interpolation.o
_filter_bessel in gd_interpolation.o
...
"_iconv", referenced from:
_do_convert in gdkanji.o
"_iconv_close", referenced from:
_do_convert in gdkanji.o
"_iconv_open", referenced from:
_do_convert in gdkanji.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libgd.la] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1
...more extensive in pastie: http://pastebin.com/BuvskMPe
so I'm stuck, I'm reading online and it looks like it has to do with Xcode and gcc but I can't find out how to troubleshoot this.
any help would be awesome!!
I successfully installed it using homebrew. It was as simple as:
brew install gd
This installed lib-gd version 2.1.0_1.
I am trying to compile PJSip for iPhoneSDK 5.1. I am running Lion 1.7.3 and Xcode 4.3.3. I did not find any helpful information about compiling it. I am not even sure it's got support for the iphonesdk 5.1. I didn't get any information about it on the project's website. I am not sure if something changed in the compiler from the last iPhoneSDK release but these are the errors i'm getting
I followed the steps on the project's website I change the config_site.h added the lines
#define PJ_CONFIG_IPHONE 1
#include <pj/config_site_sample.h>
Then moved the header to the location pjlib/include/pj/
I the configure-iphone file i've change the line
./aconfigure --host=arm-apple-darwin9 --disable-floating-point --disable-sdl $*
to
./aconfigure --host=arm-apple-darwin10 --disable-floating-point --disable-sdl $*
sow it would compile for iPhoneSDK 5.1
when i rune the configure-iphone everything i get no errors but when i run make sep i get this errors at samples.mak
make -f Samples.mak depend
make[2]: Nothing to be done for `depend'.
and while running make
"_pjsua_aud_subsys_start", referenced from:
_pjsua_media_subsys_start in libpjsua-arm-apple-darwin10.a(pjsua_media.o)
"_pjsua_vid_subsys_start", referenced from:
_pjsua_media_subsys_start in libpjsua-arm-apple-darwin10.a(pjsua_media.o)
ld: symbol(s) not found for architecture armv7
collect2: ld returned 1 exit status
make[2]: * [../bin/pjsua-arm-apple-darwin10] Error 1
make[1]: * [pjsua] Error 2
make: * [all] Error 1
Did anybody solve this problem , or can provide a solution to compile Pjsip for iphonesdk5.1 whit Xcode 4.3.3.
type ./configure-iphone in terminal at your pjsip directory
remember to install command-line tool via Xcode
when configure is done
try to make dep && make clean && make