Giter Club home page Giter Club logo

Comments (5)

HexDecimal avatar HexDecimal commented on May 22, 2024

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.

lee2sman avatar lee2sman commented on May 22, 2024

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=nothat 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.

HexDecimal avatar HexDecimal commented on May 22, 2024

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.

Wolfenswan avatar Wolfenswan commented on May 22, 2024

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.

Wolfenswan avatar Wolfenswan commented on May 22, 2024

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)

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.