Git Product home page Git Product logo

Comments (13)

cosmic-snow avatar cosmic-snow commented on September 25, 2024 2

If by

  1. open project in QT

you mean Qt Creator, you should actually be able to find/see that in the CMake configuration table:
image

Or I guess you could add it manually in that string form mentioned above (not tried myself).

Don't forget to regenerate (Run CMake) and then rebuild, though. CMake is is creating your build configuration.

However, if you just want to run it from inside Qt Creator, that's possible, too, and you don't need to change anything for that. Do:

Build > Run Without Deployment

(near the bottom of the menu)

from gpt4all.

wowliuzj avatar wowliuzj commented on September 25, 2024 1

Here is the output, looks like I missed some part of Qt.
image

I removed the build folder, re-run the CMake file and re-build the project. Even if it failed. I run the macdeployqt command, and copy the bundle to a new created virtual machine. It is running! Real thanks for your help!
Let me fixed the QtIFW compiler "binarycreator", to see if whether it could generate a install package or not.

from gpt4all.

cebtenzzre avatar cebtenzzre commented on September 25, 2024

The main supported way of installing GPT4All from source is to build an offline installer by adding GPT4ALL_OFFLINE_INSTALLER=ON to the CMake definitions, and running the package target. If you do anything else, I wouldn't expect it to work.

from gpt4all.

wowliuzj avatar wowliuzj commented on September 25, 2024

The main supported way of installing GPT4All from source is to build an offline installer by adding GPT4ALL_OFFLINE_INSTALLER=ON to the CMake definitions, and running the package target. If you do anything else, I wouldn't expect it to work.

Sorry, I am new to CMake, where should I add this ?

from gpt4all.

wowliuzj avatar wowliuzj commented on September 25, 2024

Here is my steps:
1, I turend option GPT4ALL_OFFLINE_INSTALLER ON in CMake configuration table,
2, rerun/regenerate CMake file
3, rebuild the project.
4, Open a new terminal and run "/Qt/6.8.0/macos/bin/macdeployqt /gpt4all/build-gpt4all-chat-Qt_6_8_0_for_macOS-Release/bin/gpt4all.app/Content/Macos/gpt4all -qmldir=/gpt4all/gpt4all-chat"
5, The program runs perfect in this Mac with Qt installed,
6, Copy the bundle to another Mac to run it but failed.
If I want to build in Mac and run it on other Macs, how should I do it?

from gpt4all.

cosmic-snow avatar cosmic-snow commented on September 25, 2024

Not sure because I don't have a Mac, but with GPT4ALL_OFFLINE_INSTALLER ON you should actually produce an installer similar to the one that is offered through the website.

You would copy that to the other Macs and run it to start the installation.

To me, it doesn't look like that is what you did there in your steps. The installer should have bundled the Qt dependencies.

from gpt4all.

wowliuzj avatar wowliuzj commented on September 25, 2024

I did turn the option on
image
and also in the CMake file
image
But no matter I turn it on or off, the building result doesn't have much different.
I am using Qt 6.8.0 for macOS. But I didn't install XCode on my Mac, Should I install it?

from gpt4all.

cosmic-snow avatar cosmic-snow commented on September 25, 2024

I was assuming you were also following the instructions of cebtenzzre:

... build an offline installer by adding GPT4ALL_OFFLINE_INSTALLER=ON to the CMake definitions, and running the package target.

But your latest comment makes me think that maybe you're only setting that option, but you aren't running the target package.

If that's the case, go to your build settings. Under the CMake options you can add a Build Step. Select CMake Build in the dropdown and you should see a new list with checkboxes ('Targets:'), one of them labelled PACKAGE. Activate that, then build again.

Here's how that checkbox looks on my end:
image
Then I get an installer in the build directory:
image

from gpt4all.

wowliuzj avatar wowliuzj commented on September 25, 2024

Yes, thanks for your remind. I missed the target part. But after I added build step and select target as package, the build failed with "ninja: build stopped: subcommand failed."
Is this correct?
image

from gpt4all.

cosmic-snow avatar cosmic-snow commented on September 25, 2024

If the first build step (whose command line is cut off in your screenshot) is actually compiling, then that should be fine, yes.

Can you open the 'Compile Output' View at the bottom and see if you can figure out what exactly has failed?

from gpt4all.

cosmic-snow avatar cosmic-snow commented on September 25, 2024

Good. But I'm not sure about that error. QtIFW is the Installer FrameWork and should be part of the Qt installation, if you've checked the right boxes when installing. Which I'm assuming you did because you were able to run deploy commands, but I'm not entirely sure whether those are part of QtIFW or not. Maybe make sure it's part of your installation?

from gpt4all.

wowliuzj avatar wowliuzj commented on September 25, 2024

This is the first time that I am using Qt. Just followed the instruction here to installed the Qt.
Not sure whether it related with XCode or not, since I didn't have it in my system. I will reinstall the Qt and try it again.
Thanks again for your help!

from gpt4all.

cosmic-snow avatar cosmic-snow commented on September 25, 2024

Ah right, one thing I've just noticed is that if you check build_and_run.md, the Qt Installer Framework isn't checked in that screenshot. See 'Developer and Designer Tools'. Maybe that's it.

Other than that I can't say more because I don't have a Mac anywhere.

from gpt4all.

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.