• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            eryar

            PipeCAD - Plant Piping Design Software.
            RvmTranslator - Translate AVEVA RVM to OBJ, glTF, etc.
            posts - 603, comments - 590, trackbacks - 0, articles - 0

            Use Qt in Debian for OpenCASCADE

            Posted on 2015-05-21 22:10 eryar 閱讀(2008) 評(píng)論(0)  編輯 收藏 引用 所屬分類: 2.OpenCASCADE

            Use Qt in Debian for OpenCASCADE

            eryar@163.com

            Recently several OpenCASCADE enthusiasts want to build my simple Qt demo about OpenCASCADE on ubuntu system, but could not compile it successfully. Because I only compiled the occQt in Windows system, do not try it in Linux system. I try to build it on Debian system, also have the same errors as follows:

            wps_clip_image-9806

            Figure 1. Compile errors of Building occQt on Debian

            In order to use Qt5 in Debian7, you can input the following commands:

            1. Get Qt5 on Debian:

            sudo apt-get install qt5-default qt5-qmake qtbase5-dev-tools qtchooser

            2. Download the newest version of QtCreator from Qt website:

            http://www.qt.io/download-open-source/#section-6

            You can get the following file:

            qt-creator-opensource-linux-x86_64-3.4.0.run

            wps_clip_image-22633

            Figure 2. Download Qt Creator for Linux

            3. Install QtCreator manually:

            Install Qt Creator manually by the following commands:

            chmod u+./qt-creator-opensource-linux-x86_64-3.4.0.run

            ./qt-creator-opensource-linux-x86_64-3.4.0.run

            wps_clip_image-16257

            Figure 3. Qt Creator Setup

            wps_clip_image-3440

            Figure 4. Qt Creator Setup

            4. It is succeed When the Qt Creator Icon appears in the Applications.

            wps_clip_image-26540

            Figure 5. Qt Creator in Applications

            5. I tried the math_Vector, it runs correctly, the code list as follows:

            #include <math_Vector.hxx>

            void TestVector(void)
            {
                math_Vector aVector(
            13);

                aVector.Init(
            1.0);
                aVector.Dump(std::cout);

                aVector 
            = -aVector;
                aVector.Dump(std::cout);

                aVector 
            = aVector.Opposite();
                aVector.Dump(std::cout);

            }

            int main()
            {
                TestVector();

                
            return 0;
            }

            The configuration of the test project as follows:

            TEMPLATE = app

            CONFIG 
            += console

            CONFIG 
            -= app_bundle

            CONFIG 
            -= qt

            SOURCES 
            += main.cpp

            include(deployment
            .pri)

            qtcAddDeployment()

            INCLUDEPATH 
            += /home/eryar/opencascade-6.8.0/inc

            DEPENDPATH 
            += /home/eryar/opencascade-6.8.0

            LIBS 
            += -L/home/eryar/opencascade-6.8.0/lib/ -lTKernel -lTKMath

            The result shows:

            wps_clip_image-25550

            Figure 6. Test math_Vector in Qt on Debian

            It can compile and run correctly, the compile error in occQt do not appear in the test program. you can also debug the code in Qt Creator. So use Qt Creator to program on Linux is very convenient.

            www.久久热.com| 2020久久精品国产免费| 国产精品中文久久久久久久| 国产精品久久久久久久人人看 | 久久发布国产伦子伦精品| 中文字幕亚洲综合久久2| 久久婷婷国产剧情内射白浆| 久久精品亚洲日本波多野结衣| 久久精品国内一区二区三区| 国产精品久久久久久久久软件| 久久久无码精品亚洲日韩按摩| 国产精品熟女福利久久AV| 久久久无码精品亚洲日韩按摩| 久久久久噜噜噜亚洲熟女综合| 日韩乱码人妻无码中文字幕久久| 色综合久久久久| 99久久精品日本一区二区免费| 久久国内免费视频| 久久人人爽人人澡人人高潮AV| 久久99国产综合精品免费| 伊人色综合久久天天人手人婷| 久久久精品无码专区不卡| 色综合久久中文综合网| 精品蜜臀久久久久99网站| 午夜精品久久久久久毛片| 99精品久久精品一区二区| 国产一区二区久久久| 久久精品综合网| 亚洲午夜久久久影院| 久久99热这里只有精品国产| 久久亚洲精品无码VA大香大香| 久久综合色之久久综合| 色8激情欧美成人久久综合电| 91久久精品视频| 久久综合成人网| 久久精品国产清自在天天线| 囯产极品美女高潮无套久久久| 99久久国产综合精品女同图片| 国产A三级久久精品| 久久精品国产亚洲77777| 99麻豆久久久国产精品免费|