使用 qt 编译 Maya(3D 应用程序)

发布于 2024-08-15 06:48:20 字数 592 浏览 6 评论 0原文

在qt程序中包含maya(3d应用程序)类会产生很多错误......我已经添加了所有必需的包含路径和库......同样的问题仍然存在......

这是我的qt项目的pro文件

TARGET = FileCon
TEMPLATE = app
SOURCES += main.cpp \
    dialog.cpp
HEADERS += dialog.h \
    ConvertFunction.h
FORMS += dialog.ui
LIBS += "C:/Program Files/Autodesk/Maya2008/lib" \
        -lOpenMaya.lib  \
        -lFoundation.lib \
        -lOpenMayalib

INCLUDEPATH += "C:/Program Files/Autodesk/Maya2008/include"

DEFINES = _BOOL \
         WIN32 \
        REQUIRE_IOSTREAM

// /////////////////////////////////////////////////

如何使用 Maya 类qt。

including the maya ( 3d application ) classes in qt program gives lot of errors..... i have added all required include paths and libs...the same problem persists ....

this is pro file for my qt project

TARGET = FileCon
TEMPLATE = app
SOURCES += main.cpp \
    dialog.cpp
HEADERS += dialog.h \
    ConvertFunction.h
FORMS += dialog.ui
LIBS += "C:/Program Files/Autodesk/Maya2008/lib" \
        -lOpenMaya.lib  \
        -lFoundation.lib \
        -lOpenMayalib

INCLUDEPATH += "C:/Program Files/Autodesk/Maya2008/include"

DEFINES = _BOOL \
         WIN32 \
        REQUIRE_IOSTREAM

///////////////////////////////////////////

How is it possible to use maya classes with qt.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

流绪微梦 2024-08-22 06:48:20

尝试这样的

LIBS += $quote(-LC:/Program Files/Autodesk/Maya2008/lib) \
        -lOpenMaya \
        -lFoundation

qmake LIBS变量

Try something like this

LIBS += $quote(-LC:/Program Files/Autodesk/Maya2008/lib) \
        -lOpenMaya \
        -lFoundation

qmake LIBS variable

秉烛思 2024-08-22 06:48:20

如果您在 Windows 上使用带有编译器的 QtCreator,则它需要“.a”样式库,而不是 Visual Studio“.lib”样式库。

您仍然没有提供足够的信息来说明您正在做什么。 (你是如何构建的,什么编译器等)或出了什么问题(确切的错误消息)以确定这是否是问题所在。但是,如果我的水晶球今天运行良好,我建议检查库格式。

If you are using QtCreator with the included compiler on Windows, it expects ".a" style libraries, rather than Visual Studio ".lib" style libraries.

You still haven't given enough infromation about eaxctly what you are doing. (How are you building, what compiler, etc.) or what is going wrong (exact error messages) to know for sure if that's the issue. But, if my crystal ball is working well today, I'd recommend checking the library format.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文