Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 01-21-2020, 01:41 PM   #1
rossmoody
Junior Member
rossmoody began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2020
Device: Kindle Paperwhite
Red face 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.
rossmoody is offline   Reply With Quote
Old 01-21-2020, 09:01 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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
kovidgoyal is offline   Reply With Quote
Old 01-24-2020, 02:16 AM   #3
rossmoody
Junior Member
rossmoody began at the beginning.
 
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.
rossmoody is offline   Reply With Quote
Old 01-24-2020, 02:17 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,866
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
What does

env | grep CALIBRE

get you?
kovidgoyal is offline   Reply With Quote
Old 01-24-2020, 01:33 PM   #5
rossmoody
Junior Member
rossmoody began at the beginning.
 
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

~ ❯
rossmoody is offline   Reply With Quote
Old 01-24-2020, 09:35 PM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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'))"
kovidgoyal is offline   Reply With Quote
Old 01-25-2020, 02:07 PM   #7
rossmoody
Junior Member
rossmoody began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2020
Device: Kindle Paperwhite
I get:

Code:
False Users/rmoody/Repos/calibre/src
rossmoody is offline   Reply With Quote
Old 01-25-2020, 04:04 PM   #8
rossmoody
Junior Member
rossmoody began at the beginning.
 
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.
rossmoody is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 06:18 AM.


MobileRead.com is a privately owned, operated and funded community.