Help with compile...
-
@insec404
The code has been modified, where did you get the source from?main.mm
isn't part of the official source code, nor is the line.arg(c.readData.isEmpty() ? "<empty>" : QString::fromUtf8(c.readData));
,It does not compile because casting from 8-bit C strings
char*
toQString
(UTF-16) has been disabled in strawberry (QT_NO_CAST_FROM_ASCII
). So you need to useu"string"_s
orQStringLiteral("string")
.So it needs to be modified to be:
.arg(c.readData.isEmpty() ? u"<empty>"_s : QString::fromUtf8(c.readData));
But I have no idea where that line comes from.
-
@jonas Okay I fixed all that and kdsinglesingleapplicationstuff etc etc now I am faced with two that i cannot get passed
fatal error: 'qtsparkle-qt6/Updater' file not found
include <qtsparkle-qt6/Updater>
ld: library not found for -lintl
clang: error: linker command failed with exit code 1 (use -v to see invocation) -
@insec404 said in Help with compile...:
qtsparkle
Please share the exact commands you used to build. If you modify the source code, check that it actually builds with a unmodified source first.
It's hard for me to understand how you got to to where you have these errors, QtSparkle shouldn't even be there on macOS, it's used for Windows only.The linker error should be easy to fix by setting LIBRARY_PATH to where the intl library is.
-
@jonas I got tired of trying to compile it so i bought it but omg it wont work.. the app opens and then closes..
please tell me how to fix this. -
@insec404 nevermind i ran it with this command and it opened
sudo /Applications/Strawberry.app/Contents/MacOS/Strawberry
any way to get it to open without that?
-
@insec404 /Applications/Strawberry.app/Contents/MacOS/Strawberry
01:57:55.178 WARN unknown KDSingleApplication: unable to make the primary instance listen on kdsingleapp-luziferischerordendesdunklenundbosenhollenfeuerclubs-Strawberry: QLocalServer::listen: Name error
01:57:55.180 INFO main:166 Strawberry is already running - activating existing window (1)
01:58:00.181 WARN unknown Connection timed out
01:58:00.181 ERROR main:169 Could not send message to primary instance. -
A reboot of the mac should probably fix that error.
Run the following command to make sure Strawberry is unblocked:
sudo xattr -d com.apple.quarantine /Applications/strawberry.app
The first time you start, right click on Strawberry in Finder, and click open.
If you get the "Apple can’t check app for malicious software" error, unblock the app in System settings:
https://support.apple.com/en-gu/guide/mac-help/mchleab3a043/mac
-
@jonas I've rebooted a lot...
I deleted reinstalled, got rid of all the compiling stuff leftovers etcthe command you gave me returns this
sudo xattr -d com.apple.quarantine /Applications/strawberry.appxattr: /Applications/strawberry.app: No such xattr: com.apple.quarantine
I don't get it, its the same issue
/Applications/Strawberry.app/Contents/MacOS/Strawberry
02:18:23.497 WARN unknown KDSingleApplication: unable to make the primary instance listen on kdsingleapp-luziferischerordendesdunklenundbosenhollenfeuerclubs-Strawberry: QLocalServer::listen: Name error
02:18:23.497 INFO main:166 Strawberry is already running - activating existing window (1)
02:18:28.498 WARN unknown Connection timed out
02:18:28.498 ERROR main:169 Could not send message to primary instance. -
@insec404
Tryrm $TMPDIR/kdsingleapp-*
-
@jonas rm $TMPDIR/kdsingleapp-*
zsh: no matches found: /var/folders/_7/cf6d1xpx2l5cnfl3kw0kr8l40000gn/T//kdsingleapp-*
-
@insec404 I've been working with a.i. to try and figure it out too but so far no luck..
-
@insec404
The issue occurs because of the length of the username, on macOS the max socket name length is 46 characters, 23 characters is used for "kdsingleapp-" and "-Strawberry", so that leaves the username size to max 23 characters. Your username is 52 characters.
I'll have to create a new release to fix this, probably exclude the username when it's too long and use only the UID. -
@jonas yeah i made a new account and it worked flawlessly.. if i changed my username would it work? I think i can not sure
-
@insec404 oh nvm i cant change my username, thanks for taking the time to respond.
I hope the new build comes out soon.
Thanks again! -
@insec404 oh if you can release the beta build to me that would be great also, keep me updated.
-
-
@jonas Issue Resolved, sorry to post on all three but just in case anyone else was wondering
This fixed the issue with the long username!
Thanks again Jonas!