Git Product home page Git Product logo

Comments (21)

kovidgoyal avatar kovidgoyal commented on May 18, 2024

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.

kovidgoyal avatar kovidgoyal commented on May 18, 2024

What does

python3 -c "import sysconfig; print(sysconfig.get_config_var('LDLIBRARY'))"

output

from kitty.

samet avatar samet commented on May 18, 2024

I have the same issue. @kovidgoyal the output is:

Python.framework/Versions/3.5/Python

from kitty.

kovidgoyal avatar kovidgoyal commented on May 18, 2024

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.

samet avatar samet commented on May 18, 2024

@kovidgoyal I put sysconfig output here: http://samet.asopy.com/sysconfig.txt

from kitty.

kovidgoyal avatar kovidgoyal commented on May 18, 2024

I have made a commit that should fix this, although I currently dont have access to an OSX machine to test on

from kitty.

Addisonbean avatar Addisonbean commented on May 18, 2024

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.

kovidgoyal avatar kovidgoyal commented on May 18, 2024

Post the output of

python3 -m sysconfig

on your machine

from kitty.

Addisonbean avatar Addisonbean commented on May 18, 2024

Here is it: http://pastebin.com/X7M79WZm

from kitty.

kovidgoyal avatar kovidgoyal commented on May 18, 2024

Ah you are running under pyenv -- I added some code for that, try it again.

from kitty.

Addisonbean avatar Addisonbean commented on May 18, 2024

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.

kovidgoyal avatar kovidgoyal commented on May 18, 2024

Does Python.framework not exist in /Users/addisonbean/.pyenv/versions/3.5.2?

from kitty.

kovidgoyal avatar kovidgoyal commented on May 18, 2024

This commit might also make a difference 0cd0a9f

from kitty.

Addisonbean avatar Addisonbean commented on May 18, 2024

That last commit now gives me this error: http://pastebin.com/BCmibFGY

from kitty.

kovidgoyal avatar kovidgoyal commented on May 18, 2024

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.

Addisonbean avatar Addisonbean commented on May 18, 2024

It returns -L/usr/local/lib -lglfw3.

from kitty.

kovidgoyal avatar kovidgoyal commented on May 18, 2024

This should do the trick: 192ce1d

from kitty.

Addisonbean avatar Addisonbean commented on May 18, 2024

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.

kovidgoyal avatar kovidgoyal commented on May 18, 2024

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.

kovidgoyal avatar kovidgoyal commented on May 18, 2024

Maybe try: -framework OpenGL

from kitty.

kovidgoyal avatar kovidgoyal commented on May 18, 2024

I have now got kitty building on OS X see #5 for details. Now to actually make it work :)

from kitty.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.