Skip to content
New issue

Have 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.

Already on GitHub? Sign in to your account

Problem with "undefined symbols for architechture x86_64" #43

Open
DongwonU opened this issue Jun 17, 2020 · 0 comments
Open

Problem with "undefined symbols for architechture x86_64" #43

DongwonU opened this issue Jun 17, 2020 · 0 comments

Comments

@DongwonU
Copy link

Hi there,
I am trying to run the convnetRegression one and everything was set up according to the readme file. However, it comes up with "Apple Mach-O Linker Error, which is sort of same problem when I tried the ofxMSATensorflow made by Memo. Is that a problem related to my build setting of anything else? I am new in the coding world, Is there anyone who has the same problem?
I am running with OF:v0.10.1, Xcode:v10.0, and following is the errors showed.
Thanks inadvace!
Sincerely,

Undefined symbols for architecture x86_64:
"typeinfo for GRT::GestureRecognitionPipeline", referenced from:
typeinfo for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::GestureRecognitionPipeline::train_(GRT::ClassificationData&)", referenced from:
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::MLBase::train(GRT::RegressionData)", referenced from:
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::GestureRecognitionPipeline::train_(GRT::RegressionData&)", referenced from:
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::MLBase::train(GRT::RegressionData, GRT::RegressionData)", referenced from:
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::GestureRecognitionPipeline::train_(GRT::RegressionData&, GRT::RegressionData&)", referenced from:
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::MLBase::train(GRT::MatrixFloat)", referenced from:
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::GestureRecognitionPipeline::train_(GRT::ClassificationDataStream&)", referenced from:
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::MLBase::train_(GRT::MatrixFloat&)", referenced from:
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::GestureRecognitionPipeline::predict_(GRT::MatrixFloat&)", referenced from:
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::MLBase::map(GRT::VectorFloat)", referenced from:
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::MLBase::train(GRT::TimeSeriesClassificationData)", referenced from:
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::GestureRecognitionPipeline::map_(GRT::VectorFloat&)", referenced from:
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::GestureRecognitionPipeline::reset()", referenced from:
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::MLBase::print() const", referenced from:
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::MLBase::train(GRT::ClassificationData)", referenced from:
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::GestureRecognitionPipeline::save(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) const", referenced from:
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::MLBase::save(std::__1::basic_fstream<char, std::__1::char_traits >&) const", referenced from:
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::MLBase::saveModelToFile(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) const", referenced from:
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::MLBase::loadModelFromFile(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)", referenced from:
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::MLBase::predict(GRT::VectorFloat)", referenced from:
ofApp::update() in ofApp.o
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::MLBase::loadModelFromFile(std::__1::basic_fstream<char, std::__1::char_traits >&)", referenced from:
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::GestureRecognitionPipeline::train(GRT::TimeSeriesClassificationData const&, unsigned int, bool)", referenced from:
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::GestureRecognitionPipeline::load(std::__1::basic_string<char, std::__1::char_traits, std::1::allocator > const&)", referenced from:
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::RegressionData::~RegressionData()", referenced from:
ofApp::ofApp() in main.o
GestureRecognitionPipelineThreaded::threadedFunction() in ofApp.o
ofApp::~ofApp() in ofApp.o
"GRT::MLBase::setRandomiseTrainingOrder(bool)", referenced from:
ofApp::setupRegressor() in ofApp.o
"GRT::GestureRecognitionPipeline::train(GRT::TimeSeriesClassificationData&, unsigned int, bool)", referenced from:
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::GestureRecognitionPipeline::train(GRT::ClassificationData&, unsigned int, bool)", referenced from:
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::GestureRecognitionPipeline::test(GRT::ClassificationData const&)", referenced from:
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::GestureRecognitionPipeline::test(GRT::TimeSeriesClassificationData const&)", referenced from:
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::GestureRecognitionPipeline::test(GRT::ClassificationDataStream const&)", referenced from:
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::RegressionData::RegressionData(unsigned int, unsigned int, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, std::__1::basic_string<char, std::__1::char_traits, std::1::allocator >)", referenced from:
ofApp::ofApp() in main.o
"GRT::MultidimensionalRegression::~MultidimensionalRegression()", referenced from:
ofApp::setupRegressor() in ofApp.o
"GRT::GestureRecognitionPipeline::train(GRT::RegressionData&, unsigned int)", referenced from:
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::MLBase::train(GRT::ClassificationDataStream)", referenced from:
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::GestureRecognitionPipeline::clearModel()", referenced from:
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::VectorFloat::VectorFloat(unsigned long)", referenced from:
ofApp::update() in ofApp.o
"GRT::GestureRecognitionPipeline::predict(GRT::VectorFloat&)", referenced from:
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::RegressionData::addSample(GRT::VectorFloat const&, GRT::VectorFloat const&)", referenced from:
ofApp::update() in ofApp.o
"GRT::VectorFloat::VectorFloat(GRT::VectorFloat const&)", referenced from:
ofApp::update() in ofApp.o
"GRT::MLBase::saveModelToFile(std::__1::basic_fstream<char, std::_1::char_traits >&) const", referenced from:
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::MLP::MLP()", referenced from:
ofApp::setupRegressor() in ofApp.o
"GRT::GestureRecognitionPipeline::train(GRT::TimeSeriesClassificationData&)", referenced from:
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::MLBase::setMinChange(double)", referenced from:
ofApp::setupRegressor() in ofApp.o
"GRT::GestureRecognitionPipeline::getIsInitialized() const", referenced from:
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::MLBase::load(std::__1::basic_fstream<char, std::_1::char_traits >&)", referenced from:
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::MultidimensionalRegression::MultidimensionalRegression(GRT::Regressifier const&, bool)", referenced from:
ofApp::setupRegressor() in ofApp.o
"GRT::MLP::setNumRandomTrainingIterations(unsigned int)", referenced from:
ofApp::setupRegressor() in ofApp.o
"GRT::MLBase::predict(GRT::MatrixFloat)", referenced from:
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::MLBase::setUseValidationSet(bool)", referenced from:
ofApp::setupRegressor() in ofApp.o
"GRT::GestureRecognitionPipeline::operator<<(GRT::Regressifier const&)", referenced from:
ofApp::setupRegressor() in ofApp.o
"GRT::MLBase::setLearningRate(double)", referenced from:
ofApp::setupRegressor() in ofApp.o
"GRT::GestureRecognitionPipeline::test(GRT::RegressionData const&)", referenced from:
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::GestureRecognitionPipeline::GestureRecognitionPipeline()", referenced from:
GestureRecognitionPipelineThreaded::GestureRecognitionPipelineThreaded() in main.o
"GRT::MLBase::setValidationSetSize(unsigned int)", referenced from:
ofApp::setupRegressor() in ofApp.o
"GRT::MLP::init(unsigned int, unsigned int, unsigned int, GRT::Neuron::Type, GRT::Neuron::Type, GRT::Neuron::Type)", referenced from:
ofApp::setupRegressor() in ofApp.o
"GRT::GestureRecognitionPipeline::getNumTrainingSamples() const", referenced from:
ofApp::addSlider() in ofApp.o
"GRT::GestureRecognitionPipeline::train(GRT::UnlabelledData&)", referenced from:
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::MLBase::setMaxNumEpochs(unsigned int)", referenced from:
ofApp::setupRegressor() in ofApp.o
"GRT::RegressionData::setInputAndTargetDimensions(unsigned int, unsigned int)", referenced from:
ofApp::addSlider() in ofApp.o
"GRT::RegressionData::clear()", referenced from:
ofApp::clear() in ofApp.o
"GRT::RegressionData::save(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) const", referenced from:
ofApp::save() in ofApp.o
"GRT::RegressionData::load(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)", referenced from:
ofApp::load() in ofApp.o
"GRT::GestureRecognitionPipeline::clear()", referenced from:
ofApp::clear() in ofApp.o
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::GestureRecognitionPipeline::train(GRT::ClassificationData const&, unsigned int, bool)", referenced from:
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::GestureRecognitionPipeline::getModelAsString() const", referenced from:
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::MLBase::enableScaling(bool)", referenced from:
ofApp::setupRegressor() in ofApp.o
"GRT::GestureRecognitionPipeline::~GestureRecognitionPipeline()", referenced from:
GestureRecognitionPipelineThreaded::~GestureRecognitionPipelineThreaded() in main.o
"GRT::GestureRecognitionPipeline::train(GRT::RegressionData const&, unsigned int)", referenced from:
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::GestureRecognitionPipeline::getRegressionData() const", referenced from:
ofApp::update() in ofApp.o
"GRT::MLBase::train(GRT::UnlabelledData)", referenced from:
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::VectorFloat::VectorFloat()", referenced from:
ofApp::ofApp() in main.o
"GRT::VectorFloat::~VectorFloat()", referenced from:
ofApp::ofApp() in main.o
ofApp::update() in ofApp.o
ofApp::~ofApp() in ofApp.o
"GRT::MLBase::getModel(std::__1::basic_ostream<char, std::__1::char_traits >&) const", referenced from:
vtable for GestureRecognitionPipelineThreaded in ofApp.o
"GRT::RegressionData::RegressionData(GRT::RegressionData const&)", referenced from:
GestureRecognitionPipelineThreaded::threadedFunction() in ofApp.o
"GRT::MLP::~MLP()", referenced from:
ofApp::setupRegressor() in ofApp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant