nsf / termbox

Library for writing text-based user interfaces
http://code.google.com/p/termbox
MIT License
1.96k stars 185 forks source link

Python.h: No such file or directory #113

Closed quenbyako closed 4 years ago

quenbyako commented 6 years ago

what i did:

./waf configure --prefix=/usr
./waf
./waf install --destdir=DESTDIR 
python3 ./setup.py install

what i get:

running install
running build
running build_ext
skipping 'src/python/termboxmodule.c' Cython extension (up-to-date)
building 'termbox' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -c src/python/termboxmodule.c -o build/temp.linux-x86_64-3.5/src/python/termboxmodule.o -D_XOPEN_SOURCE -Wno-error=declaration-after-statement
src/python/termboxmodule.c:4:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

is this normal? where i can find/build Python.h file?

shayneoneill commented 6 years ago

You'd have to give us some sort of idea what your building on. Macs, Debian, Redhat, etc all have quite different places to put these things. I'm assuming from the x86_64-linux-gnu-gcc bit its a 64 bit linux flavor of some sort. So I guess I'd suggest looking to see if theres some sort of python-dev package that includes the python headers.

Try typing python-config --includes and see what happens

quenbyako commented 6 years ago

ow, sorry, system is Ubuntu 16.04 LTS, don't know what else i can share with you about my problem

rofl0r commented 6 years ago

you need to install python-dev or however the devel pkg is called on ubuntu. it ship's the developer's headers and static libs.

quenbyako commented 4 years ago

i'll close issue, cause problem is solved, like a two years ago, lol