-
Notifications
You must be signed in to change notification settings - Fork 109
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
osg3.6.5 mingw32 build osgQt osgqopenglwidget not declared #56
Comments
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:
Here is the start of my moc_OSGRenderer.cpp on windows:
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? |
Thanks for your reply. I have found the problem. My OSG library should point to the wrong path
太阳公公
***@***.***
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2022年12月19日(星期一) 上午9:10
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [openscenegraph/osgQt] osg3.6.5 mingw32 build osgQt osgqopenglwidget not declared (Issue #56)
Qt bug
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
When I compile osgqt, the system prompts that the string atmoic cannot be found. It is not a complete type. Maybe the case of the file name cannot be correctly distinguished under Windows. After manually modifying the file name, it seems to work (is there any way to distinguish the file name). Then, there is an error osgQOpenGL__\include\osgQOpenGL\moc_osgQOpenGLWidget.cpp:64:6: error: 'osgQOpenGLWidget' has not been declared. How to modify the reference path with CMAKE-GUI?

The text was updated successfully, but these errors were encountered: