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

macosx cocoa binaries bundled wrong by default eclipse build #4

Open
Xyrio opened this issue Feb 4, 2018 · 24 comments
Open

macosx cocoa binaries bundled wrong by default eclipse build #4

Xyrio opened this issue Feb 4, 2018 · 24 comments

Comments

@Xyrio
Copy link
Owner

Xyrio commented Feb 4, 2018

macosx.cocoa.x86_64.zip (original made by eclipse build)

does not seem to work: https://sourceforge.net/p/rssowl/discussion/296909/thread/ba367704/

macosx.cocoa.x86_64_bundled_b.zip

bundled like old 2.2.1 one should work

macosx.cocoa.x86_64_bundled_c.zip

experiement to have only one folder (see 2.4.0)

@Xyrio Xyrio added the bug label Feb 9, 2018
@apstanley
Copy link

I've never been able to get RSSOwlnix running on my Mac. I've tried all of the releases and bundles.

With the 2.5.5-beta release, the original build fails saying "The application “RSSOwlnix” can’t be opened." With bundled_b it says "The RSSOwlnix executable launcher was unable to locate its
companion shared library."

java version "1.8.0_181"
MacOS HighSierra Version 10.13.6 on a early 2016 MacBook.

@Xyrio
Copy link
Owner Author

Xyrio commented Aug 26, 2018

does the 32bit 2.2.1 zip work for you? how about the dmg 2.2.1?

@apstanley
Copy link

I've been using RSSOwl 2.2.1 since I got my mac in April 2016 with minimal problems. But I never gotten a version of RSSowlnix to run.

@Xyrio
Copy link
Owner Author

Xyrio commented Aug 26, 2018

did you use the mac zip or mac dmg file? try the 2.2.1 zip and tell me if it works too.

https://github.com/rssowl/RSSOwl/releases/download/2.2.1/RSSOwl.2.2.1.Mac.zip

@apstanley
Copy link

The zipped version of 2.2.1 didn't work. Two errors:

  • “RSSOwl” is not optimized for your Mac. This app needs to be updated by its developer to improve compatibility.
  • The RSSOwl executable launcher was unable to locate its companion shared library.

Does this help? I can keep trying things for you.

@Xyrio
Copy link
Owner Author

Xyrio commented Aug 28, 2018

yes it helps. i dont have a mac and never used one.

the files and folder structure of the successfully running 2.2.1 could maybe help. googling for "macos 10.13 show app folder content" shows stuff about a ~/Library folder so maybe you need to put stuff manually into the library folder? i have no idea how mac does things.

so unless i find a way to make a dmg file on windows or linux, this is gonna be for advanced mac users only. i will keep providing the default zip for those who know how to get it working.

@apstanley
Copy link

I did a little bit more research on "launcher was unable to locate its companion shared library" and found this article: https://stackoverflow.com/questions/7070968/eclipse-executable-launcher-error-unable-to-locate-companion-shared-library

Buried in there was

I have seen this in MacOS Sierra. Sometimes unzipping the app leaves extended attributes that seem to prevent the startup. The following command line removes extended attributes and seems to fix the problem:

xattr -c Eclipse.app

It also works for other applications that are built on the eclipse framework.

So I tried that on RSSOwlnix.app and it worked. Not sure how to get that into your build but there's other stuff about the zipping/unzipping process that may be useful to you.

Finally I can start testing. Thanks for help. I don't necessarily this that this issue should be closed, but it's probably worth writing a wiki page about.

@Xyrio
Copy link
Owner Author

Xyrio commented Sep 1, 2018

thanks, i have added it to the wiki

https://github.com/Xyrio/RSSOwlnix/wiki/FAQ#item_macxattrc

there is a way to run it on mac now so i close this for now.

@Xyrio Xyrio closed this as completed Sep 1, 2018
@wongfeihung1984
Copy link

Hi, I've downloaded RSSOwlnix on my macbook pro and entered the command xattr -c RSSOwlnix.app on my terminal but it says that "no such file exists".

Am I doing something wrong?

@Xyrio
Copy link
Owner Author

Xyrio commented Jun 2, 2019

you have to be in the right folder that contains the RSSOwlnix.app folder, or use absolute path. see the cd command for mac.
https://www.youtube.com/watch?v=IGmfU6QU5dI

@Ma35
Copy link

Ma35 commented Oct 15, 2019

you have to be in the right folder that contains the RSSOwlnix.app folder, or use absolute path. see the cd command for mac.
https://www.youtube.com/watch?v=IGmfU6QU5dI

Thank you for everything you do.
I can not run RSSOwlnix on the mac. And I tried everything.
Tell me - did you have a positive feedback from other Mac users?

@Xyrio
Copy link
Owner Author

Xyrio commented Oct 15, 2019

i dont know anything else since i have never used mac.

@alesants
Copy link

Hi! Thanks for all your help! I find all these comments super helpful. The problem is I have no idea of coding and I was unable to do this:

_I have seen this in MacOS Sierra. Sometimes unzipping the app leaves extended attributes that seem to prevent the startup. The following command line removes extended attributes and seems to fix the problem:

xattr -c Eclipse.app

It also works for other applications that are built on the eclipse framework._

Is there a way to attach the zip without those unnecessary attributes? Or what is my best shot here? I really love RSSOWL. I really hope I can still use it on my new computer.

Thanks so much again!

@Xyrio
Copy link
Owner Author

Xyrio commented Dec 17, 2019

first i would need to know what attribute is the problem. the -c switch removes all extended attributes on mac (as ive read online). so i dont know where those attributes come from. is it really from creating the files on my windows system or are they added on extraction on mac systems?

@hajo62
Copy link

hajo62 commented Jan 8, 2020

You might want to try to add the +x attribut to the executable.

chmod +x RSSOwlnix.app/Contents/MacOS/RSSOwlnix

Thanks for the fork!!!

@Xyrio
Copy link
Owner Author

Xyrio commented Jan 9, 2020

well im creating it on windows so i dont have a chmod command. but when opening the zip with 7zip it shows in the attribute column D drwxr-xr-x not sure what all mean but execute seems to be set. the zipping is done by the eclipse builder and should be right. someone with this problem needs to test this and see if the extended attributes are added when unpacking or how the attributes are when repacking. also finding out which extended attribute is the actual problem by removing each one separately and testing as xattr -c removes all.

@hajo62
Copy link

hajo62 commented Jan 9, 2020

If it shows a d at the beginning of the attributes, it's a directory. Did you check the RSSOwlnix or the RSSOwlnix.app?
I downloaded again and checked the original attribute of the file RSSOwlnix, and that did not have the x attribute (for execute) set.

ls -l /tmp/RSSOwlnix.app/Contents/MacOS/RSSOwlnix
-rw-r--r--@ 1 user  staff  27156 Aug  8 21:25 /tmp/RSSOwlnix.app/Contents/MacOS/RSSOwlnix

@Xyrio
Copy link
Owner Author

Xyrio commented Jan 9, 2020

RSSOwlnix.app. however all folders inside the zip have those attributes D drwxr-xr-x shown by 7zip. when i compress a folder in windows with 7z to zip then 7z shows only attribute D.

since xattr -c RSSOwlnix.app fixes the problem for ppl it seems to not matter if the RSSOwlnix file has execute attribute or not.

are you using macos or linux?

@hajo62
Copy link

hajo62 commented Jan 9, 2020

Every folder in linux or OSX has the d attribute. The extension .app is typical for OSX applications.

I'm NOT talking about folders. I'm talking about the executable and setting the x on that FILE solved the problem for me on my macos.

@Xyrio
Copy link
Owner Author

Xyrio commented Jan 9, 2020

weird that it is not set by the build tool. so i have to figure out how to set it then with the build tool.

@Xyrio Xyrio reopened this Jan 9, 2020
@hajo62
Copy link

hajo62 commented Jan 9, 2020

how to set it then with the build tool

Meanwhile, I could try to create a zip-archive from my installation with the x set and attach it here.

@Xyrio
Copy link
Owner Author

Xyrio commented Jan 9, 2020

no i try to find a way to do it myself. until then ill add some information to the release page. just tell me the right command: xattr -w -x RSSOwlnix.app/Contents/MacOS/RSSOwlnix

@hajo62
Copy link

hajo62 commented Jan 9, 2020

Goto your download directory and than fire that command:
chmod +x RSSOwlnix.app/Contents/MacOS/RSSOwlnix

chmod: Change file mode bit (set file permission)
+x: Set execute bit for current user (works for me. If not, try chmod a+x, to set for all users)
RSSOwlnix.app/Contents/MacOS/RSSOwlnix: Path to executable

@Xyrio
Copy link
Owner Author

Xyrio commented Jan 9, 2020

ok thanks, i added it to release page for now.
https://github.com/Xyrio/RSSOwlnix/releases/tag/2.7.1

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

No branches or pull requests

6 participants