GithubHelp home page GithubHelp logo

Build Error about mayo HOT 9 CLOSED

fougue avatar fougue commented on August 23, 2024
Build Error

from mayo.

Comments (9)

SudatiSimone avatar SudatiSimone commented on August 23, 2024

Maybe I run the qmake command in the wrong way.
This is my command:
qmake "CASCADE_INC_DIR=C:\Users\susim\Desktop\Tirocinio\OpenCascadeTechnology_OCCT\opencascade-7.5.0\inc" "CASCADE_LIB_DIR=C:\Users\susim\Desktop\Tirocinio\OpenCascadeTechnology_OCCT\opencascade-7.5.0\win64\vc14\lib"

Are there the correct folders in opencascade?

from mayo.

HuguesDelorme avatar HuguesDelorme commented on August 23, 2024

Hello,
"(n)make" is a name to refer to the make utility the developer is using. It should be nmake with Visual C++ and make for UNIX-like toolchains.
Maybe there's a problem with the compiler identification of qmake. Can you give more details about your build environment ? What compiler are you using, version of Qt and OpenCascade.

from mayo.

HuguesDelorme avatar HuguesDelorme commented on August 23, 2024

Have a look at appveyor.yml file, it might help figure out how to build.
I recommend running OpenCascade's env.bat script before compiling Mayo.
If you are using Visual C++ also make sure you run the "x64 Native Tools Command Prompt" so the Visual C++ tools are in the PATH.

from mayo.

SudatiSimone avatar SudatiSimone commented on August 23, 2024
  • I'm on Windows 10.
  • Open cascade 7.5.0
  • qt5.11.2-vc14-64 (that it is inside open cascade technology) --> qmake
    (C:\Users\susim\Desktop\Tirocinio\OpenCascadeTechnology_OCCT\qt5.11.2-vc14-64\bin\qmake.exe)
  • Microsoft Visual Studio 2019 --> nmake
    (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\Hostx86\x86\nmake.exe)
  • MingGw --> make
    "C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\mingw32-make.exe"

from mayo.

SudatiSimone avatar SudatiSimone commented on August 23, 2024

Now build correctly.
There is an error during run

Capture

from mayo.

HuguesDelorme avatar HuguesDelorme commented on August 23, 2024

Hello,
that's clever to reuse Qt binaries packaged with OpenCascade (then you don't need to get Qt installer).
I tried your approach and reproduced the problem.
After qmake type "nmake release"
Then in ...\OpenCascadeTechnology_OCCT\qt5.11.2-vc14-64 copy the folders plugins\imageformats and plugins\platforms and paste them into the folder where is located mayo.exe
You should have :

...\release\
        mayo.exe
        platforms\
                DLL files
        imageformats\
                DLL files        

Finally you should run Mayo without further problems !

PS: the error you got may be caused by the fact Qt packaged with OpenCascade is not relocatable (see this doc)

from mayo.

SudatiSimone avatar SudatiSimone commented on August 23, 2024

Uff, I don't know why but now on build there is this error: "LINK : fatal error LNK1104: cannot open file 'C:\Users\susim\Desktop\Tirocinio\OpenCascadeTechnology_OCCT\qt5.11.2-vc14-64\lib\Qt5WinExtrasd.lib'".
This file doesn't exist, there is one similar in this repository named "Qt5WinExtras.lib" so without "d"

from mayo.

HuguesDelorme avatar HuguesDelorme commented on August 23, 2024

Yes OpenCascade seems to have forgotten to package this Qt5WinExtrasd.lib file, so with the Qt bundled in OpenCascade avoid debug builds and stick to release builds instead : nmake release
Or preferrably install Qt5 latest version if you want also debug builds (see https://www.qt.io/download-qt-installer)

from mayo.

SudatiSimone avatar SudatiSimone commented on August 23, 2024

It was my fault now it works
What a great 3d visualizer! It is very similar to cad assistant of open cascade
The only feature is missing is to color the objects

Thanks

from mayo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.