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)
- Bramhic script support in kitty HOT 1
- option to disable comprehensive keyboard (kitty.conf) HOT 1
- Ability to change keybinds inside of start_resizing_window mode? HOT 5
- macOS: Kitty opened from a file explorer only opens in new window, rather than new tab HOT 1
- Nerd Font Symbols mapping HOT 2
- `background_opacity` not working in fullscreen under Sway HOT 3
- symbol_map not working? HOT 1
- reload config on sighup HOT 1
- --temporary option from kitty command set-window-title throws TypeError
- DBus; "the name is not activatable" error on startup HOT 1
- Floating tabs/panes HOT 1
- glfw/wl_init.c:640:18: error: variable has incomplete type struct ucred HOT 3
- Kitty Windows Locked Up On Certain Shell Completions When Spawn from VSCodium HOT 2
- 0.34.0: Ubuntu 22.04 Gnome buttons are not rendered HOT 2
- Kitty 0.34 window titlebar icon not shown HOT 10
- Not sure background_blur for KDE (kitty 0.34.0) is working correctly. HOT 4
- Copy & paste stops working in Kitty sporadically HOT 3
- Gnome Wayland button's icon not visible HOT 1
- `kitten ssh` doesn't show a shell prompt after login HOT 4
- Running kitten ssh in zellij doesn't work 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.