You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
FantasyVR
changed the title
Failed to make on linux
Failed to make on ubuntu 20.04
Mar 22, 2023
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.
When making the Peridynamics,
GlfwGUI/GlfwApp.cpp
couldn't findglew.h
. But if I add<GL/glew.h>
, theglad
would complain the redefinition problems.The error logs are as below:
The text was updated successfully, but these errors were encountered: