Comments (5)
I'm familiar with this problem. Currently libtcod requires SDL 2.0.5, the version of SDL on Ubuntu 16.04 is too old and is missing the enum symbol SDL_PIXELFORMAT_RGBA32
.
The installer uses sdl2-config
so it's possible to build and install the latest version of SDL manually and that will be linked when you install from pip. Otherwise you can upgrade Ubuntu to a later version such as 18.04 LTS, which will have an up-to-date package of SDL.
from python-tcod.
Hi, I had the exact same error. I'm on Ubuntu 16.04 LTS so also must have SDL 2.0.4.
I found this thread and followed along faithfully, even trying the --enable-mir-shared=no
that is mentioned lower in the thread. Didn't work for me.
Someone more knowledgeable than I can hopefully use that thread to fix this install method correctly or to update python-tcod.
Ok, but I did get things to work using an 'untrustworthy' PPA build. Info on building SDL 2.0.8 from a dev's source is here. Looks like this is working for me.
from python-tcod.
The break specifically happened in python-tcod 7.0.0, when libtcod was updated to 1.9.0. If you're unable to upgrade SDL then you could potentially stick with python-tcod 6.0.7.
from python-tcod.
Thanks to the help! As per @lee2sman's suggestion Libsdl2-2.0.8 installed fine, though now the tcod installation is unable to find the sdl2-config file, while I'm unable to install libsdl2-dev. Technically my question has been answered however, so feel free to close the issue @HexDecimal.
from python-tcod.
Scratch the last one, after fiddling with my package manager and getting libsdl2-dev to install, tcod 8.0.0 also installed successfully.
from python-tcod.
Related Issues (20)
- Since version 1.16.0 context.present with integer_scaling = True is ignored HOT 9
- Not installing from git on python 3.9 anaconda HOT 1
- Can't build wheels from source on MacOS.
- No module named 'tcod._libtcod' when importing tcod HOT 9
- tcod 12.7.2 fails to install on arch linux HOT 5
- Add support to release linux aarch64 wheels
- win stop responding when there is no `tcod.event.get()` HOT 4
- Issue with libtcod importing NDArray from numpy.typing when it should just be importing ndarray from numpy. HOT 3
- Odd behavior when changing cell background color from (x,z,z) to (y,z,z) HOT 4
- TCOD throws a deprecation warning HOT 1
- No event on scrolling with mouse wheel HOT 4
- Request: Support for SDL2's game controller / joystick API HOT 2
- Request: Add access to the Atlas and Tileset used by SDLConsoleRender HOT 4
- Unable to print ascii 127 (del) HOT 2
- Investigate building Python-tcod on Pyodide.
- Refactoring event attributes.
- Add 'order' argument to tcod.noise.grid HOT 3
- TypeError: '_AudioCallbackUserdata' object is not callable HOT 3
- SDL_DestroyTexture called with invalid textures
- SDL failed to get a vertex buffer for this Direct3D 9 rendering batch! 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 python-tcod.