Comments (21)
Are you doing this on OSX? kitty does not currently support OS X, although it should be relatively easy to port. This particular error occurs because of line 73 in setup.py It probably needs to be adjusted for OS X.
from kitty.
What does
python3 -c "import sysconfig; print(sysconfig.get_config_var('LDLIBRARY'))"
output
from kitty.
I have the same issue. @kovidgoyal the output is:
Python.framework/Versions/3.5/Python
from kitty.
Hmm, so we need some way to get the full path to the python framework on OS X. Can somebody post the output of
python3 -m sysconfig
on OS X? That should hopefully have enough info to get the full path.
from kitty.
@kovidgoyal I put sysconfig output here: http://samet.asopy.com/sysconfig.txt
from kitty.
I have made a commit that should fix this, although I currently dont have access to an OSX machine to test on
from kitty.
After that commit, I am now getting this error from python:
Traceback (most recent call last):
File "setup.py", line 161, in <module>
main()
File "setup.py", line 154, in main
init_env(args.debug, args.asan)
File "setup.py", line 76, in init_env
fd = fd[:fd.index('/Python.framework')]
ValueError: substring not found
from kitty.
Post the output of
python3 -m sysconfig
on your machine
from kitty.
Here is it: http://pastebin.com/X7M79WZm
from kitty.
Ah you are running under pyenv -- I added some code for that, try it again.
from kitty.
It seems closer, now I got this error:
ld: framework not found Python.framework
That was on this command:
gcc -Wall -O3 -shared /Users/addisonbean/misc/software/kitty/build/fast_data_types-glfw.c.o /Users/addisonbean/misc/software/kitty/build/fast_data_types-charsets.c.o /Users/addisonbean/misc/software/kitty/build/fast_data_types-colors.c.o /Users/addisonbean/misc/software/kitty/build/fast_data_types-cursor.c.o /Users/addisonbean/misc/software/kitty/build/fast_data_types-data-types.c.o /Users/addisonbean/misc/software/kitty/build/fast_data_types-freetype.c.o /Users/addisonbean/misc/software/kitty/build/fast_data_types-history.c.o /Users/addisonbean/misc/software/kitty/build/fast_data_types-line-buf.c.o /Users/addisonbean/misc/software/kitty/build/fast_data_types-line.c.o /Users/addisonbean/misc/software/kitty/build/fast_data_types-parser.c.o /Users/addisonbean/misc/software/kitty/build/fast_data_types-screen.c.o /Users/addisonbean/misc/software/kitty/build/fast_data_types-sprites.c.o /Users/addisonbean/misc/software/kitty/build/fast_data_types-tracker.c.o /Users/addisonbean/misc/software/kitty/build/fast_data_types-parser_dump.c.o -F /Users/addisonbean/.pyenv/versions/3.5.2 -framework Python.framework -L/usr/local/Cellar/glew/2.0.0/lib -lGLEW -L/usr/local/opt/freetype/lib -lfreetype -L/usr/local/lib -lglfw3 -o /Users/addisonbean/misc/software/kitty/kitty/fast_data_types.so
from kitty.
Does Python.framework not exist in /Users/addisonbean/.pyenv/versions/3.5.2?
from kitty.
This commit might also make a difference 0cd0a9f
from kitty.
That last commit now gives me this error: http://pastebin.com/BCmibFGY
from kitty.
Ah looks like one more missing -framework arguments in the linker command. These should have been returned by pkg_config('glfw3', '--libs'). What does
pkg-config --libs glfw3
return on your system?
from kitty.
It returns -L/usr/local/lib -lglfw3
.
from kitty.
This should do the trick: 192ce1d
from kitty.
That's closer, now I got this error:
Undefined symbols for architecture x86_64:
"_glBindTexture", referenced from:
_BindTexture in fast_data_types-data-types.c.o
"_glBlendFunc", referenced from:
_BlendFunc in fast_data_types-data-types.c.o
"_glClear", referenced from:
_Clear in fast_data_types-data-types.c.o
"_glClearColor", referenced from:
_ClearColor in fast_data_types-data-types.c.o
"_glDeleteTextures", referenced from:
_DeleteTexture in fast_data_types-data-types.c.o
"_glDisable", referenced from:
_Disable in fast_data_types-data-types.c.o
"_glDrawArrays", referenced from:
_DrawArrays in fast_data_types-data-types.c.o
"_glEnable", referenced from:
_Enable in fast_data_types-data-types.c.o
"_glGenTextures", referenced from:
_GenTextures in fast_data_types-data-types.c.o
"_glGetError", referenced from:
_Viewport in fast_data_types-data-types.c.o
_CheckError in fast_data_types-data-types.c.o
_ClearColor in fast_data_types-data-types.c.o
_GetProgramiv in fast_data_types-data-types.c.o
_GetShaderiv in fast_data_types-data-types.c.o
_Uniform2ui in fast_data_types-data-types.c.o
_Uniform1i in fast_data_types-data-types.c.o
...
"_glGetIntegerv", referenced from:
_GetIntegerv in fast_data_types-data-types.c.o
"_glGetString", referenced from:
_GetString in fast_data_types-data-types.c.o
"_glPixelStorei", referenced from:
_PixelStorei in fast_data_types-data-types.c.o
"_glTexParameteri", referenced from:
_TexParameteri in fast_data_types-data-types.c.o
"_glViewport", referenced from:
_Viewport in fast_data_types-data-types.c.o
from kitty.
That means the OpenGL libraries are not linked against. UNfortunately, I have no experience with OpenGL on OSX, so trying to figure out that the link flags for it should be is going to take some experimentation/googling.
from kitty.
Maybe try: -framework OpenGL
from kitty.
I have now got kitty building on OS X see #5 for details. Now to actually make it work :)
from kitty.
Related Issues (20)
- Kitty's pushing random keys HOT 1
- Font "Berkeley Mono Trial" behaving as "auto" HOT 2
- macOS window movement using held key broken for main Kitty window HOT 6
- icat for audio (+over ssh) HOT 1
- Issues With Pasting Query in MySQL CLI Interface HOT 1
- Improve error message from kitten ssh when login_shell is not found HOT 1
- kitty sends notification irrespective of time taken by command (notify_on_cmd_finish has a bug)
- Kitten theme HOT 4
- kitty not showing thumbnails HOT 4
- PragmataPro symbols are rendered smaller than they should HOT 23
- 0.36.0 causes all OS windows to be anchored at northwest corner of screen HOT 1
- error why loading shared libraries: libpython3.12.so.1.0: cannot open shared object file: No such file or directory HOT 8
- Tab title truncation point should be configurable HOT 1
- [macOS Intel] choose-fonts segfault on viewing several different fonts HOT 16
- New release does not render ligatures fonts HOT 2
- 0.36 version is crashing on macOS after installation HOT 1
- Kitty Auto Highlights When I Type HOT 1
- `.local` folder not created during install
- Multi-chunk direct uploading doesn't work for animations HOT 2
- Reading the clipboard (OSC52) followed by a DA1 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kitty.