Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement FreeBSD support #2007

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Implement FreeBSD support #2007

wants to merge 2 commits into from

Conversation

rxkes
Copy link

@rxkes rxkes commented Feb 23, 2024

Describe your changes

Some minor additions.

@rxkes rxkes mentioned this pull request Feb 23, 2024
@cebtenzzre cebtenzzre linked an issue Feb 23, 2024 that may be closed by this pull request
@cebtenzzre cebtenzzre changed the title Issue #1986 Implement FreeBSD support Feb 23, 2024
@manyoso
Copy link
Collaborator

manyoso commented Mar 9, 2024

Is this still a draft? I'm looking to clear up our PR issue list and so would appreciate it if you either publish the final PR or keep the drafts in your own fork until they are ready for inclusion. Thank you!

If the purpose is just feedback, then I'm not sure what you get from commenting out the maintenance tool.

@@ -67,6 +67,8 @@ bool LLM::checkForUpdates() const
QString tool("maintenancetool.exe");
#elif defined(Q_OS_DARWIN)
QString tool("../../../maintenancetool.app/Contents/MacOS/maintenancetool");
#elif defined(Q_OS_FREEBSD)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, this is not necessary. You don't have an actual installer built from Qt installer framework with FREEBSD so this does nothing.

@@ -41,6 +43,10 @@ static long long getSystemTotalRAMInBytes()
memoryStatus.dwLength = sizeof(memoryStatus);
GlobalMemoryStatusEx(&memoryStatus);
totalRAM = memoryStatus.ullTotalPhys;
#elif defined(__FreeBSD__)
int mib[2] = {CTL_HW, HW_PHYSMEM};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine with me, but I have no way of testing it. If you verify this works for you I'm happy to add it, but you have to remove the draft, verify it works, and remove the maintenance tool change.

@rxkes
Copy link
Author

rxkes commented Mar 10, 2024

The two lines about maintenancetool were added just to fix a compile error.

I don't know if this PR should be merged... I verified it, but it doesn't seem needed because the main function (chat) is not working in FreeBSD.

@cebtenzzre
Copy link
Member

cebtenzzre commented Mar 10, 2024

Is this still a draft?

I told rxkes to open a draft PR so I could see their progress on FreeBSD support (#1986). It seems like the dlopen is not working as expected on FreeBSD and/or the backend is not getting built correctly, and I haven't had time to look into this - but I do have a FreeBSD VM handy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for FreeBSD
3 participants