Installing Dionysus OS X 10.11 - boost-python

I tried to install Dionysus on OS X 10.11, having previously installed boost, boost-python using homebrew. Everything works until the very end of the make process, when there's a linking failure:
Undefined symbols for architecture x86_64:
"boost::python::detail::init_module(PyModuleDef&, void (*)())", referenced from:
_PyInit__dionysus in dionysus.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]: *** [bindings/python/lib_dionysus.dylib] Error 1
make[1]: *** [bindings/python/CMakeFiles/_dionysus.dir/all] Error 2
make: *** [all] Error 2
I tried various different ways of installing boost, they all resulted in this error. Does anyone know how to overcome this?

Related

clang: error: linker command failed with exit code 1 (use -v to see invocation) in Visual Studio Code

I want to run a c++ code in Visual Studio Code but every time I get this error
Undefined symbols for architecture x86_64:
"_main", referenced from:
implicit entry/start for main executable
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I tried several methods with editing the main function but non worked

How to fix "undefined symbols" for compiling mplayer

When I try to compile mplayer on MacOS (12.4) I get an error
Undefined symbols for architecture x86_64:
"_x264_encoder_open_163", referenced from:
_X264_init in libavcodec.a(libx264.o)
Undefined symbols for architecture x86_64:
"_x264_encoder_open_163", referenced from:
_X264_init in libavcodec.a(libx264.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: *** [mencoder] Error 1
make: *** Waiting for unfinished jobs....
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [mplayer] Error 1
Any ideas how to fix this?
The issue seem to have been with the x264 library.
And for some reasons a first reinstall of x264 did not work. But when (after some other attempts to install what is missing) I did again
brew reinstall x264
something was compiled. But then I did run the following three commands in exactly this order:
./configure
make clean
make
And to my total surprise it did compile finally mplayer. And it works (and fixes a bug only I seem to have).

VS code error : exited with code 1 in mac os

Running] cd "/Users/abhiaryan/Desktop/c+++/" && g++ demo.cpp -o demo && "/Users/abhiaryan/Desktop/c+++/"demo
Undefined symbols for architecture arm64:
"_main", referenced from:
implicit entry/start for main executable
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[Done] exited with code=1 in 0.052 seconds
the screen shots are here
go to settings > search for run > select save file before run
It resolved my same issue.

pjsip building for arm7 / iOS 4.3 - symbols not found in mips_test.o

I actually posted this question to pjsip mailing list, but did not get any response yet. So I thought it would try my luck here.
This is a pretty simple issue I assume, I am trying to compile pjsip (latest from trunk) for iPhone sdk 4.3 on mac 10.6.2
I am following this instruction
http://trac.pjsip.org/repos/wiki/Getting-Started/iPhone :
checked out latest code from svn
export CFLAGS+=" -march=armv7 -mcpu=arm1176jzf-s -mcpu=cortex-a8"
export LDFLAGS+=" -march=armv7 -mcpu=arm1176jzf-s -mcpu=cortex-a8"
./configure-iphone
make dep && make clean && make
It has this following error:
undefined symbols for architecture armv7: "_pjmedia_codec_g722_init",
referenced from: _g722_encode_decode in mips_test.o
_create_stream_g722 in mips_test.o "_pjmedia_codec_g722_deinit",
referenced from: _g722_encode_decode in mips_test.o
_create_stream_g722 in mips_test.o ld: symbol(s) not found for
architecture armv7 collect2: ld returned 1 exit status make[2]: ***
[../bin/pjmedia-test-arm-apple-darwin9] Error 1 make[1]: ***
[pjmedia-test] Error 2 make: *** [all] Error 1
Does anyone have any idea how to go around this?
May be disable the pjmedia test?
(I also tried patching the mips_test.c using the file from http://code.google.com/p/siphon/downloads/detail?name=patch-mips_test.txt&can=2&q= , same issue)
codec g722 is disabled for iPhoneOS build.
But unfortunately they have forgotten to exclude g722_encode_decode() from the build.
You can simple edit mips_test.c and surround g722_encode_decode() and create_stream_g722() with
# if PJMEDIA_HAS_G722_CODEC
..
#endif
Hope this helps.

How to install Cairo using Homebrew on Lion?

I am trying to install Cairo using Homebrew on Mac OS X Lion, but I get the following error:
Undefined symbols for architecture x86_64:
"_png_set_longjmp_fn", referenced from:
_read_png in cairo-png.o
_png_simple_error_callback in cairo-png.o
_write_png in cairo-png.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[3]: *** [libcairo.la] Error 1
I thought it might be that libpng was missing, and it's included with X11 in Lion, so I added ENV.x11 to Cairo's formula, this didn't fix it.
What's the next place I should look? Should I post more of the error/log?
I reinstalled libpng using this package: http://ethan.tira-thompson.com/Mac_OS_X_Ports.html, that solved the problem.