Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upHave a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Symbols not found for architecture x8664 MacOS Yosemite. This topic has been deleted. Only users with topic management privileges can see it. @error: symbol(s. Did not work on Mojave. Ld: warning: ignoring file obj/combined.NATIVE.a, file was built for archive which is not the architecture being linked (x8664): obj/combined.NATIVE.a ld: warning: ignoring file obj/combined.NATIVE.a, file was built for archive which is not the architecture being linked (x8664): obj/combined.NATIVE.a ld: warning: ignoring file obj/combined.NATIVE.a, file was built for. I am using Eclipse to create a C Project (not a C/C, Arduino, C, or Makefile project, but a C Project from the wizard) to research the logging capabilities of the Boost Library. I copied the code verbatim from one of Boost's examples for trivial logging, found here, but I. Dec 11, 2017 I have GCC 4.8.1 with x86, x8664 and PPC on Lion with ObjC, C/C11, Fortan, Ada Go support. And now I can compile PHP, WxWidgets, QT and many other source without problems like on Apple Clang vesion. In xcode too. Gcc builded with llvm-gcc-4.2. Yeah, I mean. 64-bit support was introduced in Snow Leopard 10.6 which was a LONG time ago and I believe that the minimum macOS required for openMSX is Mavericks 10.9 which is already full 64-bits with support for 32-bit software, so I can't see why you'd want to compile 32-bit software on macOS (especially openMSX).
Already on GitHub? Sign in to your account
Comments
commented Sep 19, 2018
ref libuv/libuv#1367 after install libuv by on macOS, to compile it throws with -v I can see uv.h under /usr/local/include/ |
commented Sep 19, 2018
resolve by gcc main.c -luv |
closed this Sep 19, 2018
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
Hi there!
I'm really new in all of this, and I don't know anything about terminal and stuff... I (think) installed openCV 2.4.10 and qtCreator 3.3.0 using terminal commands:
- cd /Users/Sergio/Downloads/opencv-2.4.9
- mkdir build
- cd build
- cmake -G 'Unix Makefiles' ..
- make -j8
- sudo make install
It seems ok, folders appear on usr/local/... I don't know how to use QtCreator so I create a console project and add this to the .pro:
@
#-------------------------------------------------
#-------------------------------------------------
#-------------------------------------------------
QT += core
QT -= gui
TARGET = cosa
CONFIG += console
CONFIG -= app_bundle
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.9
SOURCES += main.cpp
INCLUDEPATH += '/usr/local/include'
LIBS += -L'/usr/local/lib'
-lopencv_core
-lopencv_highgui
-lopencv_core
-lopencv_highgui
@
Then into the main.cpp added this (from an example i got online):
@
#include 'opencv2/opencv.hpp'
#include 'opencv2/highgui/highgui.hpp'
#include 'opencv2/opencv.hpp'
#include 'opencv2/highgui/highgui.hpp'
using namespace cv;
int main( int argc, char **argv)
{
Mat image = imread( argv[1], CV_LOAD_IMAGE_COLOR );
{
Mat image = imread( argv[1], CV_LOAD_IMAGE_COLOR );
namedWindow( 'Original', CV_WINDOW_NORMAL | CV_WINDOW_KEEPRATIO | CV_GUI_EXPANDED );
imshow( 'Original', image );
imshow( 'Original', image );
// Sobel example from http://docs.opencv.org/doc/user_guide/ug_mat.html#visualizing-images
Mat gray;
Mat gray;
cvtColor( image, gray, CV_BGR2GRAY );
Mat sobelx;
Sobel( gray, sobelx, CV_32F, 1, 0 );
double minVal = 0.0;
double maxVal = 0.0;
double maxVal = 0.0;
minMaxLoc( sobelx, &minVal, &maxVal ); //find minimum and maximum intensities
Mat draw;
sobelx.convertTo( draw, CV_8U, 255.0/(maxVal - minVal), -minVal * 255.0/(maxVal - minVal) );
namedWindow( 'Sobel', CV_WINDOW_NORMAL | CV_WINDOW_KEEPRATIO | CV_GUI_EXPANDED );
imshow( 'Sobel', draw );
imshow( 'Sobel', draw );
while ( waitKey( 33 ) != 27 )
;
;
return 0;
}
}
@
When I click on Run (is that the way I should do that?) in the issue section displays:
@error: symbol(s) not found for architecture x86_64
error: linker command failed with exit code 1 (use -v to see invocation)@
error: linker command failed with exit code 1 (use -v to see invocation)@
And the compile output shows this:
@09:59:55: Running steps for project cosa...
09:59:55: Configuration unchanged, skipping qmake step.
09:59:55: Starting: '/usr/bin/make'
/Users/Sergio/Qt5.4.0/5.4/clang_64/bin/qmake -spec macx-clang CONFIG+=debug CONFIG+=x86_64 -o Makefile ../cosa/cosa.pro
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -headerpad_max_install_names -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -mmacosx-version-min=10.9 -Wl,-rpath,/Users/Sergio/Qt5.4.0/5.4/clang_64/lib -o cosa main.o -F/Users/Sergio/Qt5.4.0/5.4/clang_64/lib -L/usr/local/lib -lopencv_core -lopencv_highgui -framework QtCore -framework DiskArbitration -framework IOKit
Undefined symbols for architecture x86_64:
'cv::namedWindow(std::string const&, int)', referenced from:
_main in main.o
'cv::Sobel(cv::_InputArray const&, cv::_OutputArray const&, int, int, int, int, double, double, int)', referenced from:
_main in main.o
'cv::imread(std::string const&, int)', referenced from:
_main in main.o
'cv::imshow(std::string const&, cv::_InputArray const&)', referenced from:
_main in main.o
'cv::cvtColor(cv::_InputArray const&, cv::_OutputArray const&, int, int)', referenced from:
_main in main.o
'std::allocator<char>::allocator()', referenced from:
_main in main.o
'std::allocator<char>::~allocator()', referenced from:
_main in main.o
'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)', referenced from:
_main in main.o
'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()', referenced from:
_main in main.o
'std::ios_base::Init::Init()', referenced from:
___cxx_global_var_init in main.o
'std::ios_base::Init::~Init()', referenced from:
___cxx_global_var_init in main.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: *** [cosa] Error 1
09:59:55: The process '/usr/bin/make' exited with code 2.
Error while building/deploying project cosa (kit: Desktop Qt 5.4.0 clang 64bit)
When executing step 'Make'
09:59:55: Elapsed time: 00:00.@
09:59:55: Configuration unchanged, skipping qmake step.
09:59:55: Starting: '/usr/bin/make'
/Users/Sergio/Qt5.4.0/5.4/clang_64/bin/qmake -spec macx-clang CONFIG+=debug CONFIG+=x86_64 -o Makefile ../cosa/cosa.pro
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -headerpad_max_install_names -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -mmacosx-version-min=10.9 -Wl,-rpath,/Users/Sergio/Qt5.4.0/5.4/clang_64/lib -o cosa main.o -F/Users/Sergio/Qt5.4.0/5.4/clang_64/lib -L/usr/local/lib -lopencv_core -lopencv_highgui -framework QtCore -framework DiskArbitration -framework IOKit
Undefined symbols for architecture x86_64:
'cv::namedWindow(std::string const&, int)', referenced from:
_main in main.o
'cv::Sobel(cv::_InputArray const&, cv::_OutputArray const&, int, int, int, int, double, double, int)', referenced from:
_main in main.o
'cv::imread(std::string const&, int)', referenced from:
_main in main.o
'cv::imshow(std::string const&, cv::_InputArray const&)', referenced from:
_main in main.o
'cv::cvtColor(cv::_InputArray const&, cv::_OutputArray const&, int, int)', referenced from:
_main in main.o
'std::allocator<char>::allocator()', referenced from:
_main in main.o
'std::allocator<char>::~allocator()', referenced from:
_main in main.o
'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)', referenced from:
_main in main.o
'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()', referenced from:
_main in main.o
'std::ios_base::Init::Init()', referenced from:
___cxx_global_var_init in main.o
'std::ios_base::Init::~Init()', referenced from:
___cxx_global_var_init in main.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: *** [cosa] Error 1
09:59:55: The process '/usr/bin/make' exited with code 2.
Error while building/deploying project cosa (kit: Desktop Qt 5.4.0 clang 64bit)
When executing step 'Make'
09:59:55: Elapsed time: 00:00.@
Why is that? can anybody help me, please? I read a lot about it but i can't understand a word :(
Architecture X64 X86
I need to start using this programs in a class and i don't have any idea about anything!!
Ld Symbol(s) Not Found For Architecture X86_64 Osx
Thank you :)