Has anyone had any luck using Panda3D in the Qt Creator IDE? I’m having issues setting up the .pro file. This is what I have thus far:
Hello_World.pro
TEMPLATE = app
CONFIG += console c++11
CONFIG -= app_bundle
CONFIG -= qt
SOURCES += \
main.cpp
LIBS += -L"/usr/include/eigen3"
LIBS += -L"/usr/lib/x86_64-linux-gnu/panda3d"
LIBS += -lp3framework -lpanda -lpandafx -lpandaexpress -lp3dtoolconfig -lp3dtool -lp3pystub -lp3direct
main.cpp
#include "panda3d/pandaFramework.h"
#include "panda3d/pandaSystem.h"
int main(int argc, char *argv[]) {
//open a new window framework
PandaFramework framework;
framework.open_framework(argc, argv);
//set the window title to My Panda3D Window
framework.set_window_title("My Panda3D Window");
//open the window
WindowFramework *window = framework.open_window();
//here is room for your own code
//do the main loop, equal to run() in python
framework.main_loop();
//close the window framework
framework.close_framework();
return (0);
}
The error messages:
/usr/include/panda3d/config_linmath.h:20: In file included from /usr/include/panda3d/config_linmath.h:20,
/usr/include/panda3d/lvecBase2.h:18: from /usr/include/panda3d/lvecBase2.h:18,
/usr/include/panda3d/lpoint2.h:19: from /usr/include/panda3d/lpoint2.h:19,
/usr/include/panda3d/windowProperties.h:21: from /usr/include/panda3d/windowProperties.h:21,
/usr/include/panda3d/config_framework.h:19: from /usr/include/panda3d/config_framework.h:19,
/usr/include/panda3d/pandaFramework.h:18: from /usr/include/panda3d/pandaFramework.h:18,
/home/jean-jacques/Qt_Projects/Panda3D/Hello_World/main.cpp:1: from ../Hello_World/main.cpp:1:
/usr/include/panda3d/lsimpleMatrix.h:20: error: Eigen/Dense: No such file or directory
#include <Eigen/Dense>
^~~~~~~~~~~~~
/home/jean-jacques/Qt_Projects/Panda3D/Hello_World/main.cpp:11: error: unknown type name 'WindowFramework'
Thanks for your help…