Comments (13)
If by
- open project in QT
you mean Qt Creator, you should actually be able to find/see that in the CMake configuration table:
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.
Here is the output, looks like I missed some part of Qt.
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.
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.
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 thepackage
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.
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.
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.
I did turn the option on
and also in the CMake file
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.
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 thepackage
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:
Then I get an installer in the build directory:
from gpt4all.
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?
from gpt4all.
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.
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.
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.
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)
- Updating on Linux not possible without removing entire folder first HOT 2
- GPT4All v3.1.1: Replies from an LLM sometimes contain framing tokens from its System Prompt or Prompt Template HOT 7
- [Feature] please add Gemma 2 2B
- [Feature] QoL Improvements
- Crashes in ucrtbase.dll as of v3.2.0 and v3.2.1 HOT 16
- Embed4All overrides model_name parameter and defaults to ggml-all-MiniLM-L6-v2-f16.bin HOT 2
- [Feature] Prevent the selection of another chat, while a reply is being generated (or, until it is completed)
- [Feature] LocalDocs-like wikimedia access HOT 1
- crash when launching Gemma-2-2b-it HOT 9
- Gibberish in Docs Response
- Running faster on CPU than GPU HOT 10
- Stuck processing
- Hailo-Support[Feature] Feature request title...
- Please add inkubaLM
- [Feature] please add Idefics 3 8B Llama 3
- CUDA 12.0 error while trying to run in CPU HOT 2
- [Python SDK] No Windows/Linux Release of 2.8.0 HOT 3
- Can't change GPU Layers setting for any model with a number larger than default
- Chats not retained if UI crash HOT 2
- Intel ARC device not listed as GPU HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gpt4all.