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

Compile OSX #36

Open
ghost opened this issue May 13, 2016 · 3 comments
Open

Compile OSX #36

ghost opened this issue May 13, 2016 · 3 comments

Comments

@ghost
Copy link

ghost commented May 13, 2016

My Question was how to compile it under osx but I almost already answered that myself.

Stuck with the init patch and the other one...

Hi! how do I compile this under OSX (and I mean fork 0.8 https://github.com/kounch/ComicStreamer)

Update It runs!

I followed the two hints there where resulting in:
osx 10.11
xcode 7.3 & brew

brew install git
brew install webp
brew install pyqt
brew install unrar
brew install homebrew/python/pillow
brew install libyaml
pip install PyPDF2
pip install configobj
pip install configparser
pip install python-dateutil
pip install watchdog
pip install tornado
pip install sqlalchemy
pip install pybonjour --allow-external pybonjour --allow-unverified pybonjour
pip install natsort
pip install pyinstaller
pip install pillow
pip install unrar
pip install pyobjc-core
pip install pyobjc

-- PDF stuff (should probably be included in the OSX version)
brew install mupdf-tools
brew unlink mupdf-tools
brew install homebrew/x11/mupdf

Download 3.2 and developer version from http://www.pyinstaller.org
Unzip in same parent folder as the ComicsStreamer folder (not "in" the ComicStreamer folder)
Rename developer folder to pyinstaller-develop
Patch mac/Makefile replace pyinstaller-2.0 with pyinstaller-3.2
Patch mac/Makefile replace 'which rar' with '-a ../libunrar' thus making/reading cp -a ../libunrar $(APP_BUNDLE)/Contents/MacOS
Download http://www.rarlab.com/rar_add.htm unrar source http://www.rarlab.com/rar/unrarsrc-5.3.11.tar.gz (or newer)
Compile libunrar.so with make lib -f makefile
Move libunrar.so to libunrar folder in the ComicStreamer source

Goto: mac/Makefile folder run make...

I did nothing with the init or rumps whatever... runs when I start it from within the Contents/MacOSX folder :-)
Ow I get it... the icon is not hidden and the package will not start but.. unless you run it from the terminal... and it does not contain the mudraw tool...

So now what? how do i fix that...

Maybe somebody add this to a readme!

@davide-romanini
Copy link

All library requirements should be handled with pip install -r requirements.txt. After that, you should use paver libunrar to activate rar support. I don't know about Mac specific requirements (pybonjour, pyobjc, pyinstaller), I really do not have a Mac :-)
I'm curious if we can totally avoid multiplatform complications using docker..

@Nataschrist
Copy link

Thank you kindly for the update, and to be honest I have no idea. I'm regrettably teaching myself how to do all this stuff from scratch at 42. I'm a biochemical, comic book, neurological geek, and now I'm trying to add even another level of coolness by learning to code/program, whatever the cool kids are calling it now. Once I figure something out you'll be the first to know. Thank you sincerely.

@ghost
Copy link
Author

ghost commented Sep 10, 2016

pyinstaller/pyinstaller#1917

if you ever wonder what line it is... to remove the icon in the bar... going to finish the web in the winter... and add mysql in some way... its getting way to slow, now it indexes pdf... and it's soo smooth reading in chunky ;-)

Used much of the concepts in:

https://github.com/Tristan79/iBrew

So I know now what I am doing (well ahum) instead of patching and fumbling in a foreign language... still I have mayor problems with css styles and positioning. If someone wants to help... I start in december...

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

No branches or pull requests

2 participants