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

ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 #27

Open
OP-ACE opened this issue Oct 5, 2022 · 0 comments

Comments

@OP-ACE
Copy link

OP-ACE commented Oct 5, 2022

我的系统时 mac high sierra,我完全按照说明来的,但是发现编译错误。

这是错误提示:

36 warnings generated.
g++ -shared -L. -o cp4vasp.so cp4vasp_wrap.o -lp4vasp -L../odpdom -lODP python2 fltk-config.py --use-gl --ldstaticflags -lpthread -L/opt/local/lib python2-config --ldflags
sh: ../ext/bin/fltk-config: No such file or directory
Undefined symbols for architecture x86_64:
"Fl_Gl_Window::draw_overlay()", referenced from:
vtable for VisFLWindow in libp4vasp.a(VisFLWindow.o)
"Fl_Gl_Window::hide()", referenced from:
vtable for VisFLWindow in libp4vasp.a(VisFLWindow.o)
"Fl_Gl_Window::init()", referenced from:
Fl_Gl_Window::Fl_Gl_Window(int, int, int, int, char const*) in libp4vasp.a(VisFLWindow.o)
"Fl_Gl_Window::mode(int, int const*)", referenced from:
Fl_Gl_Window::mode(int) in libp4vasp.a(VisFLWindow.o)
"Fl_Gl_Window::show()", referenced from:
vtable for VisFLWindow in libp4vasp.a(VisFLWindow.o)
"Fl_Gl_Window::flush()", referenced from:
vtable for VisFLWindow in libp4vasp.a(VisFLWindow.o)
"Fl_Gl_Window::handle(int)", referenced from:
VisFLWindow::handle(int) in libp4vasp.a(VisFLWindow.o)
"Fl_Gl_Window::resize(int, int, int, int)", referenced from:
vtable for VisFLWindow in libp4vasp.a(VisFLWindow.o)
"Fl_Gl_Window::~Fl_Gl_Window()", referenced from:
VisFLWindow::~VisFLWindow() in libp4vasp.a(VisFLWindow.o)
VisFLWindow::VisFLWindow(int, int, int, int, char const*) in libp4vasp.a(VisFLWindow.o)
"Fl::e_x", referenced from:
Fl::event_x() in libp4vasp.a(VisFLWindow.o)
"Fl::e_y", referenced from:
Fl::event_y() in libp4vasp.a(VisFLWindow.o)
"Fl::idle", referenced from:
Fl::set_idle(void (*)()) in libp4vasp.a(VisMain.o)
"Fl::wait()", referenced from:
VisMainLoop() in libp4vasp.a(VisMain.o)
"Fl::check()", referenced from:
VisCheck() in libp4vasp.a(VisMain.o)
"Fl::visual(int)", referenced from:
VisInit() in libp4vasp.a(VisMain.o)
"Fl::e_state", referenced from:
Fl::event_state() in libp4vasp.a(VisNavDrawer.o)
Fl::event_button1() in libp4vasp.a(VisFLWindow.o)
Fl::event_button2() in libp4vasp.a(VisFLWindow.o)
Fl::event_button3() in libp4vasp.a(VisFLWindow.o)
"Fl::e_keysym", referenced from:
Fl::event_button() in libp4vasp.a(VisFLWindow.o)
Fl::event_key() in libp4vasp.a(VisFLWindow.o)
"Fl_Group::end()", referenced from:
VisHandleWindowEvents() in libp4vasp.a(VisMain.o)
"Fl_Widget::redraw()", referenced from:
VisHandleWindowEvents() in libp4vasp.a(VisMain.o)
"Fl_Window::size_range
()", referenced from:
Fl_Window::size_range(int, int, int, int, int, int, int) in libp4vasp.a(VisFLWindow.o)
"Fl_Window::label(char const*)", referenced from:
VisHandleWindowEvents() in libp4vasp.a(VisMain.o)
"Fl_Window::Fl_Window(int, int, int, int, char const*)", referenced from:
Fl_Gl_Window::Fl_Gl_Window(int, int, int, int, char const*) in libp4vasp.a(VisFLWindow.o)
"Fl_Window::~Fl_Window()", referenced from:
Fl_Gl_Window::Fl_Gl_Window(int, int, int, int, char const*) in libp4vasp.a(VisFLWindow.o)
"typeinfo for Fl_Gl_Window", referenced from:
typeinfo for VisFLWindow in libp4vasp.a(VisFLWindow.o)
"vtable for Fl_Gl_Window", referenced from:
Fl_Gl_Window::Fl_Gl_Window(int, int, int, int, char const*) in libp4vasp.a(VisFLWindow.o)
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
"_glBegin", referenced from:
VisPrimitiveDrawer::line(double, double, double, double, double, double) in libp4vasp.a(VisPrimitiveDrawer.o)
VisSlideDrawer::draw() in libp4vasp.a(VisSlideDrawer.o)
VisStructureDrawer::drawCell() in libp4vasp.a(VisStructureDrawer.o)
VisStructureDrawer::selectObject(double, double, double, double, double) in libp4vasp.a(VisStructureDrawer.o)
VisIsosurfaceDrawer::draw() in libp4vasp.a(VisIsosurfaceDrawer.o)
"_glCallList", referenced from:
VisPrimitiveDrawer::sphere(double, double, double, double) in libp4vasp.a(VisPrimitiveDrawer.o)
VisPrimitiveDrawer::cone(double, double, double, double, double, double, double) in libp4vasp.a(VisPrimitiveDrawer.o)
VisPrimitiveDrawer::cylinder(double, double, double, double, double, double, double) in libp4vasp.a(VisPrimitiveDrawer.o)
VisIsosurfaceDrawer::draw() in libp4vasp.a(VisIsosurfaceDrawer.o)
"_glClear", referenced from:
VisPrimitiveDrawer::draw() in libp4vasp.a(VisPrimitiveDrawer.o)
VisNavDrawer::draw() in libp4vasp.a(VisNavDrawer.o)
VisWindow::draw() in libp4vasp.a(VisWindow.o)
VisFLWindow::draw() in libp4vasp.a(VisFLWindow.o)
"_glClearColor", referenced from:
VisPrimitiveDrawer::draw() in libp4vasp.a(VisPrimitiveDrawer.o)
VisNavDrawer::init() in libp4vasp.a(VisNavDrawer.o)
VisNavDrawer::draw() in libp4vasp.a(VisNavDrawer.o)
VisWindow::draw() in libp4vasp.a(VisWindow.o)
VisFLWindow::draw() in libp4vasp.a(VisFLWindow.o)
"_glColor3d", referenced from:
VisPrimitiveDrawer::draw() in libp4vasp.a(VisPrimitiveDrawer.o)
VisPrimitiveDrawer::color(double, double, double) in libp4vasp.a(VisPrimitiveDrawer.o)
VisStructureArrowsDrawer::draw() in libp4vasp.a(VisStructureArrowsDrawer.o)
"_glColor3f", referenced from:
VisNavDrawer::draw() in libp4vasp.a(VisNavDrawer.o)
VisStructureDrawer::draw() in libp4vasp.a(VisStructureDrawer.o)
VisStructureDrawer::drawCell() in libp4vasp.a(VisStructureDrawer.o)
VisStructureDrawer::drawSpheres() in libp4vasp.a(VisStructureDrawer.o)
VisStructureDrawer::drawBonds() in libp4vasp.a(VisStructureDrawer.o)
VisIsosurfaceDrawer::draw() in libp4vasp.a(VisIsosurfaceDrawer.o)
"_glColor3fv", referenced from:
ColorGradient::glcolor(double) in libp4vasp.a(VisSlideDrawer.o)
"_glColorMaterial", referenced from:
VisNavDrawer::init() in libp4vasp.a(VisNavDrawer.o)
"_glDeleteLists", referenced from:
VisPrimitiveDrawer::~VisPrimitiveDrawer() in libp4vasp.a(VisPrimitiveDrawer.o)
VisIsosurfaceDrawer::~VisIsosurfaceDrawer() in libp4vasp.a(VisIsosurfaceDrawer.o)
"_glDisable", referenced from:
VisSlideDrawer::draw() in libp4vasp.a(VisSlideDrawer.o)
VisStructureDrawer::drawCell() in libp4vasp.a(VisStructureDrawer.o)
"_glEnable", referenced from:
VisNavDrawer::init() in libp4vasp.a(VisNavDrawer.o)
VisNavDrawer::_antialiasing() in libp4vasp.a(VisNavDrawer.o)
VisSlideDrawer::draw() in libp4vasp.a(VisSlideDrawer.o)
VisStructureDrawer::drawCell() in libp4vasp.a(VisStructureDrawer.o)
VisIsosurfaceDrawer::draw() in libp4vasp.a(VisIsosurfaceDrawer.o)
"_glEnd", referenced from:
VisPrimitiveDrawer::line(double, double, double, double, double, double) in libp4vasp.a(VisPrimitiveDrawer.o)
VisSlideDrawer::draw() in libp4vasp.a(VisSlideDrawer.o)
VisStructureDrawer::drawCell() in libp4vasp.a(VisStructureDrawer.o)
VisStructureDrawer::selectObject(double, double, double, double, double) in libp4vasp.a(VisStructureDrawer.o)
VisIsosurfaceDrawer::draw() in libp4vasp.a(VisIsosurfaceDrawer.o)
"_glEndList", referenced from:
VisPrimitiveDrawer::initPrimitives() in libp4vasp.a(VisPrimitiveDrawer.o)
VisIsosurfaceDrawer::updateList() in libp4vasp.a(VisIsosurfaceDrawer.o)
"_glFinish", referenced from:
VisWindow::draw() in libp4vasp.a(VisWindow.o)
"_glFrustum", referenced from:
VisNavDrawer::draw() in libp4vasp.a(VisNavDrawer.o)
"_glGenLists", referenced from:
VisPrimitiveDrawer::initPrimitives() in libp4vasp.a(VisPrimitiveDrawer.o)
VisIsosurfaceDrawer::init() in libp4vasp.a(VisIsosurfaceDrawer.o)
"_glGetDoublev", referenced from:
VisStructureDrawer::switchSelectionByPick(int, int) in libp4vasp.a(VisStructureDrawer.o)
"_glGetIntegerv", referenced from:
VisStructureDrawer::switchSelectionByPick(int, int) in libp4vasp.a(VisStructureDrawer.o)
VisWindow::saveScreenshot(char*) in libp4vasp.a(VisWindow.o)
"_glHint", referenced from:
VisNavDrawer::_antialiasing() in libp4vasp.a(VisNavDrawer.o)
"_glIsEnabled", referenced from:
VisSlideDrawer::draw() in libp4vasp.a(VisSlideDrawer.o)
VisStructureDrawer::drawCell() in libp4vasp.a(VisStructureDrawer.o)
"_glIsList", referenced from:
VisPrimitiveDrawer::~VisPrimitiveDrawer() in libp4vasp.a(VisPrimitiveDrawer.o)
VisIsosurfaceDrawer::~VisIsosurfaceDrawer() in libp4vasp.a(VisIsosurfaceDrawer.o)
"_glLightfv", referenced from:
VisNavDrawer::draw() in libp4vasp.a(VisNavDrawer.o)
"_glLineWidth", referenced from:
VisStructureDrawer::drawCell() in libp4vasp.a(VisStructureDrawer.o)
"_glLoadIdentity", referenced from:
VisNavDrawer::draw() in libp4vasp.a(VisNavDrawer.o)
"_glLoadMatrixd", referenced from:
VisNavDrawer::draw() in libp4vasp.a(VisNavDrawer.o)
"_glMaterialfv", referenced from:
VisNavDrawer::init() in libp4vasp.a(VisNavDrawer.o)
"_glMatrixMode", referenced from:
VisNavDrawer::draw() in libp4vasp.a(VisNavDrawer.o)
"_glMultMatrixd", referenced from:
VisSlideDrawer::draw() in libp4vasp.a(VisSlideDrawer.o)
"_glNewList", referenced from:
VisPrimitiveDrawer::initPrimitives() in libp4vasp.a(VisPrimitiveDrawer.o)
VisIsosurfaceDrawer::updateList() in libp4vasp.a(VisIsosurfaceDrawer.o)
"_glNormal3d", referenced from:
VisSlideDrawer::vertex(int, int, double*) in libp4vasp.a(VisSlideDrawer.o)
VisIsosurfaceDrawer::handle_type1(double*, double*, double*, double*, double*, double*, double*, double*, double, double, double, double) in libp4vasp.a(VisIsosurfaceDrawer.o)
VisIsosurfaceDrawer::handle_type2(double*, double*, double*, double*, double*, double*, double*, double*, double, double, double, double) in libp4vasp.a(VisIsosurfaceDrawer.o)
"_glOrtho", referenced from:
VisNavDrawer::draw() in libp4vasp.a(VisNavDrawer.o)
"_glPointSize", referenced from:
VisIsosurfaceDrawer::draw() in libp4vasp.a(VisIsosurfaceDrawer.o)
"_glPolygonMode", referenced from:
VisNavDrawer::init() in libp4vasp.a(VisNavDrawer.o)
VisIsosurfaceDrawer::draw() in libp4vasp.a(VisIsosurfaceDrawer.o)
"_glPopMatrix", referenced from:
VisPrimitiveDrawer::sphere(double, double, double, double) in libp4vasp.a(VisPrimitiveDrawer.o)
VisPrimitiveDrawer::cone(double, double, double, double, double, double, double) in libp4vasp.a(VisPrimitiveDrawer.o)
VisPrimitiveDrawer::cylinder(double, double, double, double, double, double, double) in libp4vasp.a(VisPrimitiveDrawer.o)
VisSlideDrawer::draw() in libp4vasp.a(VisSlideDrawer.o)
VisStructureDrawer::draw() in libp4vasp.a(VisStructureDrawer.o)
VisStructureDrawer::selectObject(double, double, double, double, double) in libp4vasp.a(VisStructureDrawer.o)
VisIsosurfaceDrawer::draw() in libp4vasp.a(VisIsosurfaceDrawer.o)
...
"_glPushMatrix", referenced from:
VisPrimitiveDrawer::sphere(double, double, double, double) in libp4vasp.a(VisPrimitiveDrawer.o)
VisPrimitiveDrawer::cone(double, double, double, double, double, double, double) in libp4vasp.a(VisPrimitiveDrawer.o)
VisPrimitiveDrawer::cylinder(double, double, double, double, double, double, double) in libp4vasp.a(VisPrimitiveDrawer.o)
VisSlideDrawer::draw() in libp4vasp.a(VisSlideDrawer.o)
VisStructureDrawer::draw() in libp4vasp.a(VisStructureDrawer.o)
VisStructureDrawer::selectObject(double, double, double, double, double) in libp4vasp.a(VisStructureDrawer.o)
VisIsosurfaceDrawer::draw() in libp4vasp.a(VisIsosurfaceDrawer.o)
...
"_glReadPixels", referenced from:
VisWindow::saveScreenshot(char*) in libp4vasp.a(VisWindow.o)
"_glRotated", referenced from:
VisStructureDrawer::selectObject(double, double, double, double, double) in libp4vasp.a(VisStructureDrawer.o)
"_glRotatef", referenced from:
VisPrimitiveDrawer::cone(double, double, double, double, double, double, double) in libp4vasp.a(VisPrimitiveDrawer.o)
VisPrimitiveDrawer::cylinder(double, double, double, double, double, double, double) in libp4vasp.a(VisPrimitiveDrawer.o)
"_glScalef", referenced from:
VisPrimitiveDrawer::sphere(double, double, double, double) in libp4vasp.a(VisPrimitiveDrawer.o)
VisPrimitiveDrawer::cone(double, double, double, double, double, double, double) in libp4vasp.a(VisPrimitiveDrawer.o)
VisPrimitiveDrawer::cylinder(double, double, double, double, double, double, double) in libp4vasp.a(VisPrimitiveDrawer.o)
VisNavDrawer::draw() in libp4vasp.a(VisNavDrawer.o)
VisStructureDrawer::selectObject(double, double, double, double, double) in libp4vasp.a(VisStructureDrawer.o)
"_glShadeModel", referenced from:
VisPrimitiveDrawer::draw() in libp4vasp.a(VisPrimitiveDrawer.o)
VisNavDrawer::init() in libp4vasp.a(VisNavDrawer.o)
VisIsosurfaceDrawer::draw() in libp4vasp.a(VisIsosurfaceDrawer.o)
VisWindow::draw() in libp4vasp.a(VisWindow.o)
VisFLWindow::draw() in libp4vasp.a(VisFLWindow.o)
"_glTranslatef", referenced from:
VisPrimitiveDrawer::sphere(double, double, double, double) in libp4vasp.a(VisPrimitiveDrawer.o)
VisPrimitiveDrawer::cone(double, double, double, double, double, double, double) in libp4vasp.a(VisPrimitiveDrawer.o)
VisPrimitiveDrawer::cylinder(double, double, double, double, double, double, double) in libp4vasp.a(VisPrimitiveDrawer.o)
VisNavDrawer::draw() in libp4vasp.a(VisNavDrawer.o)
VisStructureDrawer::draw() in libp4vasp.a(VisStructureDrawer.o)
VisStructureDrawer::selectObject(double, double, double, double, double) in libp4vasp.a(VisStructureDrawer.o)
VisIsosurfaceDrawer::draw() in libp4vasp.a(VisIsosurfaceDrawer.o)
...
"_glVertex3d", referenced from:
VisPrimitiveDrawer::line(double, double, double, double, double, double) in libp4vasp.a(VisPrimitiveDrawer.o)
VisSlideDrawer::vertex(int, int, double*) in libp4vasp.a(VisSlideDrawer.o)
VisStructureDrawer::drawCell() in libp4vasp.a(VisStructureDrawer.o)
VisStructureDrawer::selectObject(double, double, double, double, double) in libp4vasp.a(VisStructureDrawer.o)
VisIsosurfaceDrawer::handle_type1(double*, double*, double*, double*, double*, double*, double*, double*, double, double, double, double) in libp4vasp.a(VisIsosurfaceDrawer.o)
VisIsosurfaceDrawer::handle_type2(double*, double*, double*, double*, double*, double*, double*, double*, double, double, double, double) in libp4vasp.a(VisIsosurfaceDrawer.o)
"_glViewport", referenced from:
VisNavDrawer::init() in libp4vasp.a(VisNavDrawer.o)
VisNavDrawer::draw() in libp4vasp.a(VisNavDrawer.o)
VisFLWindow::draw() in libp4vasp.a(VisFLWindow.o)
"_gluCylinder", referenced from:
VisPrimitiveDrawer::initPrimitives() in libp4vasp.a(VisPrimitiveDrawer.o)
"_gluDeleteQuadric", referenced from:
VisPrimitiveDrawer::~VisPrimitiveDrawer() in libp4vasp.a(VisPrimitiveDrawer.o)
"_gluNewQuadric", referenced from:
VisPrimitiveDrawer::initPrimitives() in libp4vasp.a(VisPrimitiveDrawer.o)
VisPrimitiveDrawer::init() in libp4vasp.a(VisPrimitiveDrawer.o)
VisStructureDrawer::init() in libp4vasp.a(VisStructureDrawer.o)
"_gluSphere", referenced from:
VisPrimitiveDrawer::initPrimitives() in libp4vasp.a(VisPrimitiveDrawer.o)
"_gluUnProject", referenced from:
VisStructureDrawer::switchSelectionByPick(int, int) in libp4vasp.a(VisStructureDrawer.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[1]: *** [_cp4vasp.so] Error 1
make: *** [p4vasp] Error 2

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