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

Undefined symbols #1

Closed
sonnyhu opened this issue Nov 11, 2016 · 3 comments
Closed

Undefined symbols #1

sonnyhu opened this issue Nov 11, 2016 · 3 comments

Comments

@sonnyhu
Copy link

sonnyhu commented Nov 11, 2016

Hi,

great work, thanks!

When I tried to run make in lib, I ran into following errors:

First couple lines of error message:

Undefined symbols for architecture x86_64:
  "tensorflow::DEVICE_CPU", referenced from:
      ___cxx_global_var_init.15 in roi_pooling_op-442fdc.o
      ___cxx_global_var_init.18 in roi_pooling_op-442fdc.o
  "tensorflow::DEVICE_GPU", referenced from:
      ___cxx_global_var_init.20 in roi_pooling_op-442fdc.o
      ___cxx_global_var_init.22 in roi_pooling_op-442fdc.o
 "tensorflow::GetNodeAttr(tensorflow::AttrSlice const&, tensorflow::StringPiece, float*)", referenced from:
      tensorflow::Status tensorflow::OpKernelConstruction::GetAttr<float>(tensorflow::StringPiece, float*) const in roi_pooling_op-be4c40.o
  "tensorflow::GetNodeAttr(tensorflow::AttrSlice const&, tensorflow::StringPiece, int*)", referenced from:
      tensorflow::Status tensorflow::OpKernelConstruction::GetAttr<int>(tensorflow::StringPiece, int*) const in roi_pooling_op-be4c40.o
  "tensorflow::TensorShape::SlowCopyFrom(tensorflow::TensorShape const&)", referenced from:
      tensorflow::TensorShape::TensorShape(tensorflow::TensorShape const&) in roi_pooling_op-be4c40.o
  "tensorflow::TensorShape::DestructorOutOfLine()", referenced from:
      tensorflow::TensorShape::~TensorShape() in roi_pooling_op-be4c40.o
  "tensorflow::TensorShape::TensorShape()", referenced from:
      RoiPoolOp<Eigen::ThreadPoolDevice, float>::Compute(tensorflow::OpKernelContext*) in roi_pooling_op-be4c40.o
      RoiPoolOp<Eigen::ThreadPoolDevice, double>::Compute(tensorflow::OpKernelContext*) in roi_pooling_op-be4c40.o
      RoiPoolOp<Eigen::GpuDevice, float>::Compute(tensorflow::OpKernelContext*) in roi_pooling_op-be4c40.o

Is this related to version of tensorflow I am using or something else? Thanks.

@sonnyhu
Copy link
Author

sonnyhu commented Nov 11, 2016

Do I need tensorflow from this repo: https://github.com/zplizzi/tensorflow-fast-rcnn?

@sonnyhu
Copy link
Author

sonnyhu commented Nov 11, 2016

I figured it out. Since I am running on Mac, g++ needs this flag -undefined dynamic_lookup

@sonnyhu sonnyhu closed this as completed Nov 11, 2016
@CharlesShang
Copy link
Owner

Sorry for my delayed reply.
Very glad to know your problem has been solved!

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

2 participants