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).
Related
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
I am facing this error in compiling a project. Basically its showing error for Material components pod. Here is the detail error:
ld: warning: ignoring file /Users/rj/Library/Developer/Xcode/DerivedData/ProjectName/Build/Products/Stage-iphonesimulator/MDFInternationalization/MDFInternationalization.framework/MDFInternationalization, missing required architecture i386 in file /Users/rj/Library/Developer/Xcode/DerivedData/ProjectName/Build/Products/Stage-iphonesimulator/MDFInternationalization/MDFInternationalization.framework/MDFInternationalization (2 slices)
Undefined symbols for architecture i386:
"_MDFInsetsMakeWithLayoutDirection", referenced from:
-[MDCCollectionViewTextCell contentWrapperFrame] in MDCCollectionViewTextCell.o
-[MDCNavigationBar layoutSubviews] in MDCNavigationBar.o
"_MDFTrailingMarginAutoresizingMaskForLayoutDirection", referenced from:
-[MDCCollectionViewCell updateInterfaceForEditing] in MDCCollectionViewCell.o
-[MDCCollectionViewTextCell commonMDCCollectionViewTextCellInit] in MDCCollectionViewTextCell.o
"_MDFInsetsFlippedHorizontally", referenced from:
-[MDCFloatingButton insetBoundsForBounds:] in MDCFloatingButton.o
"_MDFLeadingMarginAutoresizingMaskForLayoutDirection", referenced from:
-[MDCCollectionViewCell updateInterfaceForEditing] in MDCCollectionViewCell.o
"_MDFRectFlippedHorizontally", referenced from:
-[MDCAlertControllerView layoutHorizontalButtons:actionSize:] in MDCAlertControllerView+Private.o
-[MDCAlertControllerView layoutVerticalButtons:] in MDCAlertControllerView+Private.o
-[MDCChipFieldTextField textRectForBounds:] in MDCChipField.o
-[MDCChipField layoutSubviews] in MDCChipField.o
-[MDCChipView layoutSubviews] in MDCChipView.o
-[MDCCollectionViewCell layoutForegroundSubviews] in MDCCollectionViewCell.o
-[MDCCollectionViewCell drawSeparatorIfNeeded] in MDCCollectionViewCell.o
...
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
As a solution i tried removing and reinstalling pods, clearing derive data and some other solutions from google. Still facing this same error.
Any help is appreciated.
Xcode 13.2, Swift
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.
when trying to build my app it keeps failing due to this error.
Does anyone know how to perhaps fix this?
Thank you,
Nick
Undefined symbols for architecture x86_64:
"___isOSVersionAtLeast", referenced from:
-[AbstractActionSheetPicker createToolbarLabelWithTitle:titleTextAttributes:andAttributedTitle:] in AbstractActionSheetPicker.o
-[AbstractActionSheetPicker configureAndPresentPopoverForView:] in AbstractActionSheetPicker.o
-[SWActionSheet window] in SWActionSheet.o
-[SWActionSheet initWithView:windowLevel:] in SWActionSheet.o
ld: symbol(s) not found for architecture x86_64
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
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?