01-21-2020, 01:41 PM | #1 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jan 2020
Device: Kindle Paperwhite
|
Help setting up Dev environment on Mac
I'd really love to contribute to calibre but I'm having a hard time getting up and running locally. I was hoping someone could help me out as my python is very rudimentary (usually poking around in JS repos).
I'm on 10.14.6. I've reviewed: https://manual.calibre-ebook.com/dev...nt-environment It doesn't seem comprehensive enough to get me started though. I have my `launcher.c` file setup with my paths: https://share.getcloudapp.com/p9u52RN9 I get this error when trying to run the calibre-develop file: https://share.getcloudapp.com/2Nur8dlR Any additional help would be appreciated. |
01-21-2020, 09:01 PM | #2 |
creator of calibre
Posts: 43,866
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You dont need to do anything with .c files. Simply set
CALIBRE_DEVELOP_FROM to point to the src folder in your calibre source checkout. Then run any calibre binary from /Applications/calibre.app/Contents/MacOS |
01-24-2020, 02:16 AM | #3 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jan 2020
Device: Kindle Paperwhite
|
Thanks for the help. I imagine I might be a lost cause since I don't have the basic python skills to get this going.
1. I added the export path to my zsh file: https://share.getcloudapp.com/12uDdEG1 2. I navigate to my /Applications/calibre.app/Contents/MacOS/calibre and launch it from iTerm2 but it still doesn't seem to be launching from the src folder. I just updated to 4.9.1. If there is anything else I can try please let me know. I was going to try assisting on icons and graphic design related help. |
01-24-2020, 02:17 AM | #4 |
creator of calibre
Posts: 43,866
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
What does
env | grep CALIBRE get you? |
01-24-2020, 01:33 PM | #5 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jan 2020
Device: Kindle Paperwhite
|
Last login: Thu Jan 23 23:13:21 on ttys001
~ ❯ env | grep CALIBRE CALIBRE_DEVELOP_FROM=/Users/rmoody/Repos/calibre/src ~ ❯ |
01-24-2020, 09:35 PM | #6 |
creator of calibre
Posts: 43,866
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Code:
/Applications/calibre.app/Contents/MacOS/calibre-debug -c "from calibre.constants import os, is_running_from_develop; print(is_running_from_develop, os.environ.get('CALIBRE_DEVELOP_FROM'))" |
01-25-2020, 02:07 PM | #7 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jan 2020
Device: Kindle Paperwhite
|
I get:
Code:
False Users/rmoody/Repos/calibre/src |
01-25-2020, 04:04 PM | #8 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jan 2020
Device: Kindle Paperwhite
|
I got it! Hot damn! Silly mistake. I was missing a leading / in my path before Users. Thank you for the commands to help me trouble shoot though.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Setting environment variable | dator | Server | 2 | 09-08-2018 08:57 AM |
Setting up a development environment ... | BWinmill | Kobo Developer's Corner | 27 | 06-16-2014 08:21 AM |
Installing dev environment | bran | iRex Developer's Corner | 13 | 09-28-2010 05:43 PM |
Updating modules without a full dev environment? | ldolse | Calibre | 2 | 08-20-2010 01:29 PM |
Setting up Mac Calibre development environment? | pdurrant | Calibre | 2 | 01-06-2009 07:10 AM |