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

Failed to make on ubuntu 20.04 #27

Closed
FantasyVR opened this issue Mar 22, 2023 · 1 comment
Closed

Failed to make on ubuntu 20.04 #27

FantasyVR opened this issue Mar 22, 2023 · 1 comment

Comments

@FantasyVR
Copy link

FantasyVR commented Mar 22, 2023

When making the Peridynamics, GlfwGUI/GlfwApp.cpp couldn't find glew.h. But if I add <GL/glew.h>, the glad would complain the redefinition problems.
The error logs are as below:

[ 81%] Built target ParticleSystem
Consolidate compiler generated dependencies of target Peridynamics
[ 85%] Built target Peridynamics
In file included from /home/py/code/peridyno/src/Framework/Module.h:25,
                 from /home/py/code/peridyno/src/Framework/Module/TopologyModule.h:18,
                 from /home/py/code/peridyno/src/Framework/Node.h:23,
                 from /home/py/code/peridyno/src/Framework/SceneGraph.h:18,
                 from /home/py/code/peridyno/src/Rendering/GUI/GlfwGUI/GlfwApp.cpp:9:
/home/py/code/peridyno/src/Framework/DeclareEnum.h:61:61: warning: backslash-newline at end of file
   61 | #define DEF_ENUM(enum_type, enum_name, enum_value, desc)    \
      |                                                              
In file included from /home/py/code/peridyno/src/Framework/Node.h:21,
                 from /home/py/code/peridyno/src/Framework/SceneGraph.h:18,
                 from /home/py/code/peridyno/src/Rendering/GUI/GlfwGUI/GlfwApp.cpp:9:
/home/py/code/peridyno/src/Framework/NodePort.h: In destructor ‘dyno::SingleNodePort<T>::~SingleNodePort()’:
/home/py/code/peridyno/src/Framework/NodePort.h:91:15: warning: invalid use of incomplete type ‘class dyno::Node’
   91 |     m_nodes[0]->disconnect(this);
      |               ^~
/home/py/code/peridyno/src/Framework/NodePort.h:23:8: note: forward declaration of ‘class dyno::Node’
   23 |  class Node;
      |        ^~~~
/home/py/code/peridyno/src/Framework/NodePort.h: In destructor ‘dyno::MultipleNodePort<T>::~MultipleNodePort()’:
/home/py/code/peridyno/src/Framework/NodePort.h:180:9: warning: invalid use of incomplete type ‘class dyno::Node’
  180 |     node->disconnect(this);
      |         ^~
/home/py/code/peridyno/src/Framework/NodePort.h:23:8: note: forward declaration of ‘class dyno::Node’
   23 |  class Node;
      |        ^~~~
/home/py/code/peridyno/src/Rendering/GUI/GlfwGUI/GlfwApp.cpp: In member function ‘virtual void dyno::GlfwApp::createWindow(int, int)’:
/home/py/code/peridyno/src/Rendering/GUI/GlfwGUI/GlfwApp.cpp:115:14: error: ‘glewInit’ was not declared in this scope; did you mean ‘glfwInit’?
  115 |   bool err = glewInit() != GLEW_OK;
      |              ^~~~~~~~
      |              glfwInit
/home/py/code/peridyno/src/Rendering/GUI/GlfwGUI/GlfwApp.cpp:115:28: error: ‘GLEW_OK’ was not declared in this scope
  115 |   bool err = glewInit() != GLEW_OK;
      |                            ^~~~~~~
make[2]: *** [src/Rendering/GUI/GlfwGUI/CMakeFiles/GlfwGUI.dir/build.make:76: src/Rendering/GUI/GlfwGUI/CMakeFiles/GlfwGUI.dir/GlfwApp.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2311: src/Rendering/GUI/GlfwGUI/CMakeFiles/GlfwGUI.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
@FantasyVR FantasyVR changed the title Failed to make on linux Failed to make on ubuntu 20.04 Mar 22, 2023
@hanxingyixue
Copy link
Contributor

Hello, we are updating the code for the Linux platform. Please download https://gitee.com/peridyno/peridyno The Linux repository code in. Thank you for your attention.

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

3 participants