Comments (3)
Currently in this fight. The source of this problem is the combination of: Header files not having a header extension (.h, hxx), Qt moc, windows. I was using OSGRenderer as my test.
Here is the start of my moc_OSGRenderer.cpp on linux:
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.15.6)
#include <memory>
#include "../../../../../subprojects/osgQt/include/osgQOpenGL/OSGRenderer"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
Here is the start of my moc_OSGRenderer.cpp on windows:
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.15.7)
#include <memory>
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
You can see the missing include which results in a compile error. Looking at moc doc you can force the needed include with the -f option. I did this manually as a test on windows and it added the appropriate include. How to incorporate that into the build system? ... I have no idea. Why is moc recognizing the file as a header on linux and not on windows? ... I have no idea. As another test, I added '.h' to the header file on windows and then manually ran moc again and it added the appropriate include. osgQt isn't very big so I have it as a meson subproject and git submodule inside of my application. Meaning I don't build it and install it separate. I am thinking about just adding the '.h' to the header files inside my git repo of osgQt. I would be curious to hear from somebody on windows not having this problem? Any thoughts?
from osgqt.
from osgqt.
from osgqt.
Related Issues (20)
- osgViewer::CompositeViewer missing? HOT 4
- example of Render To Texture when using QOpenGLWidget
- Will Qt QML/Quick programming be supported after osgQT? HOT 1
- What's the problem I change OSGRenderer inheritance osgViewer: : CompositeViewer to modify? HOT 1
- OsgQOpenGLWidget will not start properly after it is placed in the QT layout and setContentsMargins is set.
- how to make multithread work HOT 1
- new osgQt version HOT 2
- osgviewerQt crashed when press key F HOT 1
- Compiling with Visual Studio 2019 (16.10.0)
- Why use OSGEarth on OSGQt to display the earth will be black screen when the system switch back to the use of Win10 dormant state?
- osgViewer::ScreenCaptureHandler not working with osgQt
- Why is the scene black when using AMD Radeon R5 240 ?
- How to resolve the application crash when OSG integrates Silverlining on OsgQT?
- Qt 6 support HOT 13
- Question on the pkg-config file and its Libs field.
- hellow,how to support other threadmodel,not SingleThreaded
- `setViewpoint` doesn't work
- How to import osgQt into project via vcpkg + cmake? HOT 1
- qt modules and the new qt opengl interface
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osgqt.