Giter Club home page Giter Club logo

python-tcod's Introduction

Introduction

libtcod is a free, fast, portable and uncomplicated API for roguelike developers providing a true color console, pathfinding, field-of-view, and a few other utilities frequently used in roguelikes.

Status

GitHub Workflow Status Documentation Status codecov GitHub commits since latest release (by date) Packaging status

How do I get set up?

Using Vcpkg

This is the easiest way to get the latest stable version of libtcod for any project.

Libtcod is included as a port in Vcpkg. You can install libtcod via Vcpkg and then link the library using a CMake script as you normally do for that package manager.

As a submodule

This is the best option for testing the development versions of libtcod.

You can include libtcod in a project by adding the libtcod repository as a submodule and then adding that directory to a CMake script. You will want to fork this template project if you plan on starting a project with this setup.

It is expected that Vcpkg will be used, but libtcod's CMake script can be configured to compile without using Vcpkg for dependencies. See CONTRIBUTING.md for details on configuring dependencies.

Using one of our downloads

This is not recommend as these releases are unwieldy, are more difficult to update, and are less cross-platform. Do not upload binary files to your projects source repository.

If you are programming in C or C++ then Windows and MacOS binaries are available from the GitHub Releases page.

Various C/C++ sample projects are included within the repository which can be used as examples of various features.

Keep in mind that as a C++ library, you may need to distribute the appropriate runtime with your program such as the Visual Studio 2015 runtimes or else the program will fail to run.

For those who wish to program in Python you can install python-tcod using this installation guide. Once installed you can follow the Python 3 tutorial or you can find Python example scripts on the python-tcod repository.

A alternative version of the Python library (libtcodpy) exists in the binary downloads, but you should avoid using this version as it is not as well maintained.

Compiling from source

This is only recommended for libtcod developers. See CONTRIBUTING.md.

Getting Started

The latest documentation is here. Currently it's very incomplete, so most people will want to read the 1.6.4 documentation instead. Python users should use the python-tcod documentation.

libtcod comes with a sample application, implementations of which are provided in each of C (samples_c.c), C++ (samples_cpp.cpp), and Python (samples_py.py). This provides a decent overview of the basic features, in an interactive fashion. Each should be identical for the most part, so if you are using Windows, downloading the pre-compiled binaries and running the included samples.exe which is compiled from the C source code, should be representative of the other versions.

Contact / Community

For reporting bugs or requesting features you should use the GitHub Issues page. For smaller questions or help with a tutorial or project you can join #libtcod on the Roguelikes Discord or on the Libera.​Chat IRC.

Sponsors

Sponsors donating $25 or more per month will have their names or logos listed here.

python-tcod's People

Contributors

00willo avatar 8bit-pixies avatar bengerman13 avatar ddw avatar dependabot[bot] avatar fuzzygwalchmei avatar hexdecimal avatar iswoqqe avatar joshgcampbell avatar marcinbarylka avatar nightblade9 avatar odidev avatar pale-phosphorescence avatar pre-commit-ci[bot] avatar pyup-bot avatar rex64 avatar sethmlarson avatar techtonik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

python-tcod's Issues

Add mention of PyPy performance?

I came across this discussion yesterday and decided to try PyPy with TDL. I was blown away by the performance boost. My application was easily 10x faster, which made some of my silly experiments (React-like diffing of widgets -> draw to screen) actually feasible.

Do you think it is worth adding a comment about this in the README? Would be a great pointer for new users to immediately consider PyPy if they're having performance concerns.

Small issue in documentation

Hello! First of all I'd like to thank you guys for making this, it's pretty awesome and even as a newcomer to python I haven't been having any trouble in starting to make a roguelike.
Second, and the actual issue (and forgive me if this isn't the right place), is that in the page:
http://pythonhosted.org/tdl/tdl.map.Map-class.html
Under Instance Variables and Instance Variable Details, it reads

transparent
Map transparency, access this attribute with map.transparency[x,y]

while the attribute is actually map.transparent[x,y].
Just caused me a tiny bit of confusion and though you'd like to clear it up.

new_struct events not firing in file parser

I'm using Python 3.7.2 and trying to use the file parser (I am porting from a C++ version of the same game and already have data files written in that format). I have defined my custom listener:

class CreatureParser:
    def __init__(self):
        self.temp = CreatureTemplate()

    def new_struct(self, struct, name):
        if tcod.struct_get_name(struct) == 'creature':
            print(f'New creature: {name}')
            self.temp = CreatureTemplate()
        return True

    def new_flag(self, name):
        return True

    def new_property(self, name, typ, value):
        stat_names = ['str', 'stam', 'spd', 'skl', 'sag', 'smt']
        if name == 'name':
            self.temp.name = value
        elif name == 'type':
            self.temp.type = value
        elif name == 'desc':
            self.temp.desc = value
        elif name == 'unarmed':
            self.temp.unarmed = value
        elif name == 'glyph':
            self.temp.glyph = value
        elif name in stat_names:
            self.temp.stats[name] = value
        elif name == 'col':
            self.temp.color = value
        elif name == 'tags':
            self.temp.tags = value
        elif name == 'startItems':
            self.temp.start_tems = value
        return True

    def end_struct(self, struct, name):
        CREATURE_TEMPLATES[name] = self.temp
        return True

    def error(self, msg):
        print(f'Error parsing creature file: {msg}')
        return False

My data file looks like this:

creature "wolf" {
	name="wolf"
	type="wolf"
	desc="A large, grey wolf."
	unarmed="fangs"
	glyph='W'
	col="127,101,63"
	stats {
		spd=15
		str=15
		vision=10
	}
	tags=["animal", "wolf"]
}

creature "zombie" {
	name="zombie"
	type="undead"
	desc="Once a man, now a shambling zombie."
	unarmed="hands"
	glyph='U'
	stats {
		str=20
		skl=5
		vision=4
	}
	tags=["undead"]
}

The new_struct function is not getting called, though everything else is.

Incomplete frame with SDL renderer

Hi.

Problem

I have a problem when drawing a frame with the SDL renderer: some parts are not drawn.

I force the renderer to be SDL because, otherwise, my custom fonts are not properly loaded (I might add another issue about this).

What I see (the yellow border is drawn by my OS):
screenshot

The same code works normally with the libtcod version of http://rogueliketutorials.com

Minimal example code

import time

import tcod


# Setup the font.
tcod.console_set_custom_font(
    'arial10x10.png',
    tcod.FONT_LAYOUT_TCOD,
    )
# Initialize the root console in a context.
with tcod.console_init_root(10, 10, 'title', renderer=tcod.RENDERER_SDL) as root_console:
    tcod.console_print_frame(root_console,0,0,10,10)
    tcod.console_print_frame(root_console,3,3,5,5)
    tcod.console_flush() # Show the console.
    time.sleep(3) # Wait 3 seconds.
# The window is closed here, after the above context exits.

Configuration

I use python 3.7.2+, python-tcod 8.3.2 and SDL 2.0.9 on Debian testing.
I got the same problem with another computer (Ubuntu 18.04) with SDL 2.0.8.

EDIT : add python version

Transparency in tdl.Console.blit()

Hi! Great module, thanks for all the hard work!
I'm "translating" Jotaf's python+libtcod tutorial to Python 3 with python-tdl. You can see what I've done here:
http://www.roguebasin.com/index.php?title=Roguelike_Tutorial,_using_python3%2Btdl
While working on part 8, I noticed this in the tdl code for the blit function:
598 # hardcode alpha settings for now
599 fgalpha=1.0
600 bgalpha=1.0
Would it be hard to implement this? Is it on your todo list? Anything I can do to help get this implemented?
Thanks a lot!

New Console.print method should use bg/fg=None as a default

Hey,

So, I'm looking on the new print method and I find the default bg behaviour weird.

Here is a simple example of what I would expect :

console = Console(width,height)
console.bg[:] = color1
console.print(x,y,value)
# I expect my value to be printed with bg=color1, not what is happening

Instead of having a value with bg=color1, I have a bg=(0,0,0). It's weird and forced me to do that for every print I want to use :

console = Console(width,height)
console.bg[:] = color1
console.print(x1,y1,value,bg=color1)
console.print(x2,y2,value,bg=color1)
console.print(x3,y3,value,bg=color1)

You have de facto a default color palette here which is white on black.
If you use None as default, you don't have this issue anymore.

In fact, the deprecated default_bg/fg could still exist, but would never interact with this print method.

also : see my comment here

Python 3.x wheel fails to install via PIP

I'm not sure which environmental factors may have contributed to this, but I get the following error running pip install tdl

tdl is in an unsupported or invalid wheel

I am on OSX in a virtualenv with python 3.4. This failure happens whether I download the wheel and attempt to install it manually or allow PIP to download it from pypi.

I examined the Wheel file and found a folder called tdl-1.4.0-py2.7.egg-info which does not exist in the 2.7 Wheel file. If I remove this folder from the wheel and install it manually from the command line, it installs successfully and appears to work (tested with the examples from this project).

I've created a gist of the terminal log showing the error installing the non-working wheel and the working one and showing their contents: https://gist.github.com/pmsanford/392c694e1bc98533b2cf

I don't know if this is a Wheel bug or a TDL bug but I thought I'd enter it here in case anyone else had the same problem.

Custom font not properly loaded with auto renderer

That's me again

Problem

When I load a custom non-square font with the auto renderer (GLSL), the font is not properly loaded. In this example, I try to print "Hello World!". It works fine with the SDL renderer.

What I expect (obtained with the SDL renderer):
screenshot3

What I see with the auto renderer (again, the yellow border is drawn by my OS):
screenshot2

Minimal example code

import time

import tcod


# Setup the font.
tcod.console_set_custom_font(
    'Andux_cp866ish.png',
    tcod.FONT_LAYOUT_ASCII_INROW,
    )

# Initialize the root console in a context.
with tcod.console_init_root(20, 10, 'title') as root_console:
    root_console.print_(x=0, y=0, string='Hello World!')
    tcod.console_flush() # Show the console.
    time.sleep(3) # Wait 3 seconds.
# The window is closed here, after the above context exits.

Configuration

I use python 3.7.2+, python-tcod 8.3.2 and SDL 2.0.9 on Debian testing.
I got the same problem with another computer (Ubuntu 18.04) with SDL 2.0.8.

Resource

The custom font can be downloaded here:
http://dwarffortresswiki.org/images/4/4a/Andux_cp866ish.png

Overhaul the event system.

SDL2 changed a lot about how events work but not much has been updated in libtcod.

Now that libtcod-cffi exposes SDL2 functions I could make something even closer to a pygame style event system.

I could also make another event dispatcher.

2 KEYDOWN events per push, no KEYUP

Just getting started so I may be doing something stupid. I was trying to use 
keyWait it get input and saw I was getting 2 events so I fired one was a 
KEYDOWN and the other was a KEYUP so I'd just test for it. But that didn't 
work. So I put in a print for debugging like:

  keypush = tdl.event.keyWait()   
  print keypush.type + ' ' + keypush.key 

and for a single press it prints out:
KEYDOWN ALT
KEYDOWN ALT

Is there something I'm overlooking here? tdl 1.1.3, python 2.7, running on Mac 
OS X 10.7.4.

Original issue reported on code.google.com by [email protected] on 10 Jan 2013 at 10:41

Installation failed on Windows 10

I installed TDL on Windows 10 by running pip install tdl from an elevated (administrator) command-prompt. This is necessary because I installed for all users, and presumably my current user doesn't have access to change C:\ProgramFiles\WhereverPythonLives.

After that, when I execute import tdl from Python 3.6.4, I get this error:

File "C:\Users\me\Code\furusiya\furusiya\io\adapters\tdl_adapter.py", line 2, in <module>
    import tdl
  File "C:\Program Files (x86)\Python36-32\lib\site-packages\tdl\__init__.py", line 65, in <module>
    from tcod import ffi as _ffi
  File "C:\Program Files (x86)\Python36-32\lib\site-packages\tcod\__init__.py", line 20, in <module>
    from tcod.libtcodpy import *
  File "C:\Program Files (x86)\Python36-32\lib\site-packages\tcod\libtcodpy.py", line 10, in <module>
    from tcod.libtcod import *
  File "C:\Program Files (x86)\Python36-32\lib\site-packages\tcod\libtcod.py", line 87, in <module>
    from tcod._libtcod import lib, ffi
ImportError: DLL load failed: The specified module could not be found.

Any idea what I'm doing wrong? I have a fresh install of Python 3.6.4, I didn't install anything other than TDL yet.

Map.FOV flips axis when re-built from Pickle.

Python: 3.6.4 x64
TDL 3.4.0

https://github.com/TStand90/roguelike_tutorial_revised_tdl
Took me quite a while before I decided I wasn't just doing something wrong. Was following the tutorial that goes with the above repo, and ran into this problem when finishing the save system. When sent to Pickle the map is fine, when it returns, the compute_fov function reveals that the FOV array is now [x, y] instead of [y, x] like Walkable and Transparency. I grabbed a fresh copy from that repo to make sure, and it had the same issue.

Installing/upgrading TCOD 8.0.0 fails on Xubuntu 16.04

All required packages are installed. Python version is 3.6.4. Currently installed tcod version is 6.0.6.

I have tried installing the latest version of tcod using both pip install --upgrade and installing within a fresh virtual environment.

In both cases I receive this error message (pasting only the last lines, I can provide a full log if necessary):

    libtcod/src/libtcod/sdl2/sdl2_alias.cpp: In member function ‘void tcod::sdl2::SDL2InternalTilesetAlias_::sync_alias()’:
    libtcod/src/libtcod/sdl2/sdl2_alias.cpp:98:38: error: ‘SDL_PIXELFORMAT_RGBA32’ was not declared in this scope
             SDL_CreateTexture(renderer_, SDL_PIXELFORMAT_RGBA32,
                                          ^
    error: command 'gcc' failed with exit status 1
    
    ----------------------------------------
  Rolling back uninstall of tcod
Command "/usr/local/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-n92anhvf/tcod/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-2w986ex5/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-n92anhvf/tcod/

1-Basic.py Fails on OSX 10.11

I have python 2.7 from MacPorts on OSX 10.11.
I created a virtualenv and did pip install libtcod-cffi and pip install tdl

When I try to run 1-Basic.py, I get this:

Traceback (most recent call last):
  File "1-Basics.py", line 13, in <module>
    import tdl
  File "/Users/jfcaron/Projects/roguelike/tdl/venv/lib/python2.7/site-packages/tdl/__init__.py", line 76, in <module>
    from tcod import ffi as _ffi
  File "/Users/jfcaron/Projects/roguelike/tdl/venv/lib/python2.7/site-packages/tcod/__init__.py", line 20, in <module>
    from .libtcod import lib, ffi, _lib, _ffi, _unpack_char_p
  File "/Users/jfcaron/Projects/roguelike/tdl/venv/lib/python2.7/site-packages/tcod/libtcod.py", line 48, in <module>
    from . import _libtcod
ImportError: dlopen(/Users/jfcaron/Projects/roguelike/tdl/venv/lib/python2.7/site-packages/tcod/_libtcod.so, 2): Library not loaded: libtcod.dylib
  Referenced from: /Users/jfcaron/Projects/roguelike/tdl/venv/lib/python2.7/site-packages/tcod/_libtcod.so
  Reason: image not found

Mac OS 10.12.4 isn't happy with SDL in tdl

adam@ixitxachitl:~$ mkvirtualenv -p $(which python3) tdl
Running virtualenv with interpreter /usr/local/bin/python3
Using base prefix '/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6'
New python executable in /Users/adam/Documents/src/Venvs/tdl/bin/python3.6
Also creating executable in /Users/adam/Documents/src/Venvs/tdl/bin/python
Installing setuptools, pip, wheel...done.
virtualenvwrapper.user_scripts creating /Users/adam/Documents/src/Venvs/tdl/bin/predeactivate
virtualenvwrapper.user_scripts creating /Users/adam/Documents/src/Venvs/tdl/bin/postdeactivate
virtualenvwrapper.user_scripts creating /Users/adam/Documents/src/Venvs/tdl/bin/preactivate
virtualenvwrapper.user_scripts creating /Users/adam/Documents/src/Venvs/tdl/bin/postactivate
virtualenvwrapper.user_scripts creating /Users/adam/Documents/src/Venvs/tdl/bin/get_env_details
(tdl) adam@ixitxachitl:~$ mkdir -p ~/Documents/src/tdl
(tdl) adam@ixitxachitl:~$ cd ~/Documents/src/tdl
(tdl) adam@ixitxachitl:~/Documents/src/tdl$ brew list sdl2
/usr/local/Cellar/sdl2/2.0.5/bin/sdl2-config
/usr/local/Cellar/sdl2/2.0.5/include/SDL2/ (70 files)
/usr/local/Cellar/sdl2/2.0.5/lib/libSDL2-2.0.0.dylib
/usr/local/Cellar/sdl2/2.0.5/lib/cmake/SDL2/sdl2-config.cmake
/usr/local/Cellar/sdl2/2.0.5/lib/pkgconfig/sdl2.pc
/usr/local/Cellar/sdl2/2.0.5/lib/ (4 other files)
/usr/local/Cellar/sdl2/2.0.5/share/aclocal/sdl2.m4
(tdl) adam@ixitxachitl:~/Documents/src/tdl$ pip install -U pip
Requirement already up-to-date: pip in /Users/adam/Documents/src/Venvs/tdl/lib/python3.6/site-packages
(tdl) adam@ixitxachitl:~/Documents/src/tdl$ pip install --no-cache-dir tdl
Collecting tdl
  Downloading tdl-3.0.1-py2.py3-none-any.whl
Collecting libtcod-cffi<3,>=2.3.0 (from tdl)
  Downloading libtcod_cffi-2.4.0-cp33-abi3-macosx_10_11_x86_64.whl (978kB)
    100% |################################| 983kB 1.7MB/s
Collecting cffi<2,>=1.8.1 (from libtcod-cffi<3,>=2.3.0->tdl)
  Downloading cffi-1.10.0-cp36-cp36m-macosx_10_6_intel.whl (227kB)
    100% |################################| 235kB 2.7MB/s
Collecting numpy<2,>=1.10 (from libtcod-cffi<3,>=2.3.0->tdl)
  Downloading numpy-1.12.1-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (4.4MB)
    100% |################################| 4.4MB 7.6MB/s
Collecting pycparser (from cffi<2,>=1.8.1->libtcod-cffi<3,>=2.3.0->tdl)
  Downloading pycparser-2.17.tar.gz (231kB)
    100% |################################| 235kB 4.5MB/s
Installing collected packages: pycparser, cffi, numpy, libtcod-cffi, tdl
  Running setup.py install for pycparser ... done
Successfully installed cffi-1.10.0 libtcod-cffi-2.4.0 numpy-1.12.1 pycparser-2.17 tdl-3.0.1
(tdl) adam@ixitxachitl:~/Documents/src/tdl$ cat > rl.py
#!/usr/bin/env python
import tdl

SCREEN_WIDTH = 80
SCREEN_HEIGHT = 24
LIMIT_FPS = 20

tdl.set_font('arial10x10.png', greyscale=True, altLayout=True)
console = tdl.init(SCREEN_WIDTH, SCREEN_HEIGHT, title="Crap Roguelike",
                   fullscreen=False)
while not tdl.event.is_window_closed():
    console.draw_char(1, 1, '@', bg=None, fg=(255, 255, 255))
    tdl.flush()
(tdl) adam@ixitxachitl:~/Documents/src/tdl$ python rl.py
Traceback (most recent call last):
  File "rl.py", line 2, in <module>
    import tdl
  File "/Users/adam/Documents/src/Venvs/tdl/lib/python3.6/site-packages/tdl/__init__.py", line 76, in <module>
    from tcod import ffi as _ffi
  File "/Users/adam/Documents/src/Venvs/tdl/lib/python3.6/site-packages/tcod/__init__.py", line 20, in <module>
    from tcod.libtcodpy import *
  File "/Users/adam/Documents/src/Venvs/tdl/lib/python3.6/site-packages/tcod/libtcodpy.py", line 10, in <module>
    from tcod.libtcod import *
  File "/Users/adam/Documents/src/Venvs/tdl/lib/python3.6/site-packages/tcod/libtcod.py", line 21, in <module>
    _ctypes.CDLL(_os.path.join(__path__[0], 'SDL2.framework/Versions/A/SDL2'))
  File "/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ctypes/__init__.py", line 348, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: dlopen(/Users/adam/Documents/src/Venvs/tdl/lib/python3.6/site-packages/tcod/SDL2.framework/Versions/A/SDL2, 6): no suitable image found.  Did find:
	/Users/adam/Documents/src/Venvs/tdl/lib/python3.6/site-packages/tcod/SDL2.framework/Versions/A/SDL2: code signature invalid for '/Users/adam/Documents/src/Venvs/tdl/lib/python3.6/site-packages/tcod/SDL2.framework/Versions/A/SDL2'

	/Users/adam/Documents/src/Venvs/tdl/lib/python3.6/site-packages/tcod/SDL2.framework/Versions/A/SDL2: code signature invalid for '/Users/adam/Documents/src/Venvs/tdl/lib/python3.6/site-packages/tcod/SDL2.framework/Versions/A/SDL2'

(tdl) adam@ixitxachitl:~/Documents/src/tdl$ # OK, so I can sign it....
(tdl) adam@ixitxachitl:~/Documents/src/tdl$ codesign -f -s - /Users/adam/Documents/src/Venvs/tdl/lib/python3.6/site-packages/tcod/SDL2.framework/Versions/A/SDL2
/Users/adam/Documents/src/Venvs/tdl/lib/python3.6/site-packages/tcod/SDL2.framework/Versions/A/SDL2: replacing existing signature
(tdl) adam@ixitxachitl:~/Documents/src/tdl$ python rl.py
Traceback (most recent call last):
  File "rl.py", line 2, in <module>
    import tdl
  File "/Users/adam/Documents/src/Venvs/tdl/lib/python3.6/site-packages/tdl/__init__.py", line 76, in <module>
    from tcod import ffi as _ffi
  File "/Users/adam/Documents/src/Venvs/tdl/lib/python3.6/site-packages/tcod/__init__.py", line 20, in <module>
    from tcod.libtcodpy import *
  File "/Users/adam/Documents/src/Venvs/tdl/lib/python3.6/site-packages/tcod/libtcodpy.py", line 10, in <module>
    from tcod.libtcod import *
  File "/Users/adam/Documents/src/Venvs/tdl/lib/python3.6/site-packages/tcod/libtcod.py", line 88, in <module>
    from tcod._libtcod import lib, ffi
ImportError: dlopen(/Users/adam/Documents/src/Venvs/tdl/lib/python3.6/site-packages/tcod/_libtcod.abi3.so, 2): Library not loaded: @rpath/libomp.dylib
  Referenced from: /Users/adam/Documents/src/Venvs/tdl/lib/python3.6/site-packages/tcod/_libtcod.abi3.so
  Reason: image not found

Mouse position (dx/dy,dcx,dcy) reset to 0 with a wheel event

Hello again,

I have a new problem, this time with the wheel event.
I have a handle_events() function that could look like this :

def handle_events(events):
    key = tcod.Key()
    mouse = tcod.Mouse()
    evnt_masks = tcod.EVENT_KEY_PRESS | tcod.EVENT_MOUSE
    while tcod.sys_check_for_event(evnt_masks, key, mouse):
        if key.vk == tcod.KEY_ESCAPE:
            raise SystemExit()
        print(mouse.cx,mouse.cy,mouse.x,mouse.y)

Everything is fine when I move my mouse around, but when I wheel up/down, the value printed are 0 (except the last one=1 for some reason)
So it seems to reset the mouse position whenever I wheel up/down.

tdl.shutdown() ?

Is there a way to stop tdl and then start it anew from the same Python script? Then can be useful to make an auxiliary console that is brought in only if needed.

Finish documentation update.

Turns out this was already halfway done, but it needs more work to finish.

  • Sphinx is setup.
  • ReadTheDocs is setup.
  • Check if the Sphinx files could be made better.
  • All docstrings changed to Google style.

Initial Update

The bot created this issue to inform you that pyup.io has been set up on this repo.
Once you have closed it, the bot will open pull requests for updates as soon as they are available.

Error Installing tcod on Xubuntu

So, I'm trying to install tcod on Xubuntu 18.04.1.

I've installed: gcc python-dev python3-dev libsdl2-dev libffi-dev libomp5.
I've installed several libraries using pip3 (vsh, numpy, ...) without issues.

But when I try with tcod I get the following error:

$ python3 --version
Python 3.6.6
$ pip3 install tcod
Collecting tcod
Using cached https://files.pythonhosted.org/packages/53/ee/af526111f4a1df5652304ddb4c9507a54601ab37f6a6ccf943281e2385b8/tcod-6.0.4.tar.gz
Complete output from command python setup.py egg_info:
warning: no previously-included files found matching 'setup.pyc'
warning: no previously-included files matching 'yacctab.' found under directory 'tests'
warning: no previously-included files matching 'lextab.
' found under directory 'tests'
warning: no previously-included files matching 'yacctab.' found under directory 'examples'
warning: no previously-included files matching 'lextab.
' found under directory 'examples'
zip_safe flag not set; analyzing archive contents...
pycparser.ply.pycache.lex.cpython-36: module references file
pycparser.ply.pycache.lex.cpython-36: module MAY be using inspect.getsourcefile
pycparser.ply.pycache.yacc.cpython-36: module references file
pycparser.ply.pycache.yacc.cpython-36: module MAY be using inspect.getsourcefile
pycparser.ply.pycache.yacc.cpython-36: module MAY be using inspect.stack
pycparser.ply.pycache.ygen.cpython-36: module references file

Installed /tmp/pip-build-qgbi7mlg/tcod/.eggs/pycparser-2.19-py3.6.egg
Searching for cffi<2,>=1.8.1
Reading https://pypi.org/simple/cffi/
Downloading https://files.pythonhosted.org/packages/6d/c0/47db8f624f3e4e2f3f27be03a93379d1ba16a1450a7b1aacfa0366e2c0dd/cffi-1.11.5-cp36-cp36m-manylinux1_x86_64.whl#sha256=770f3782b31f50b68627e22f91cb182c48c47c02eb405fd689472aa7b7aa16dc
Best match: cffi 1.11.5
Processing cffi-1.11.5-cp36-cp36m-manylinux1_x86_64.whl
Installing cffi-1.11.5-cp36-cp36m-manylinux1_x86_64.whl to /tmp/pip-build-qgbi7mlg/tcod/.eggs
writing requirements to /tmp/pip-build-qgbi7mlg/tcod/.eggs/cffi-1.11.5-py3.6-linux-x86_64.egg/EGG-INFO/requires.txt

Installed /tmp/pip-build-qgbi7mlg/tcod/.eggs/cffi-1.11.5-py3.6-linux-x86_64.egg
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-build-qgbi7mlg/tcod/setup.py", line 120, in <module>
    license='Simplified BSD License',
  File "/home/osboxes/.local/lib/python3.6/site-packages/setuptools/__init__.py", line 140, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib/python3.6/distutils/core.py", line 108, in setup
    _setup_distribution = dist = klass(attrs)
  File "/home/osboxes/.local/lib/python3.6/site-packages/setuptools/dist.py", line 370, in __init__
    k: v for k, v in attrs.items()
  File "/usr/lib/python3.6/distutils/dist.py", line 281, in __init__
    self.finalize_options()
  File "/home/osboxes/.local/lib/python3.6/site-packages/setuptools/dist.py", line 529, in finalize_options
    ep.load()(self, ep.name, value)
  File "/tmp/pip-build-qgbi7mlg/tcod/.eggs/cffi-1.11.5-py3.6-linux-x86_64.egg/cffi/setuptools_ext.py", line 204, in cffi_modules
    add_cffi_module(dist, cffi_module)
  File "/tmp/pip-build-qgbi7mlg/tcod/.eggs/cffi-1.11.5-py3.6-linux-x86_64.egg/cffi/setuptools_ext.py", line 49, in add_cffi_module
    execfile(build_file_name, mod_vars)
  File "/tmp/pip-build-qgbi7mlg/tcod/.eggs/cffi-1.11.5-py3.6-linux-x86_64.egg/cffi/setuptools_ext.py", line 25, in execfile
    exec(code, glob, glob)
  File "build_libtcod.py", line 288, in <module>
    ffi.cdef(get_cdef())
  File "/tmp/pip-build-qgbi7mlg/tcod/.eggs/cffi-1.11.5-py3.6-linux-x86_64.egg/cffi/api.py", line 107, in cdef
    self._cdef(csource, override=override, packed=packed)
  File "/tmp/pip-build-qgbi7mlg/tcod/.eggs/cffi-1.11.5-py3.6-linux-x86_64.egg/cffi/api.py", line 121, in _cdef
    self._parser.parse(csource, override=override, **options)
  File "/tmp/pip-build-qgbi7mlg/tcod/.eggs/cffi-1.11.5-py3.6-linux-x86_64.egg/cffi/cparser.py", line 315, in parse
    self._internal_parse(csource)
  File "/tmp/pip-build-qgbi7mlg/tcod/.eggs/cffi-1.11.5-py3.6-linux-x86_64.egg/cffi/cparser.py", line 362, in _internal_parse
    decl.__class__.__name__, decl)
cffi.error.CDefError: <cdef source string>:292: unexpected <FuncDef>: this construct is valid C but not valid in cdef()

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-qgbi7mlg/tcod/

Any Ideas?

Mock init for testing?

I'm writing a simple wrapper for python-tdl and for testing it would be handy to have a version of tdl.init that doesn't print to the console or open a window. If you don't have the desire or time to implement something like this then I would be willing to look into it if you pointed me in the right direction. I'm thinking something like

console = tdl.init(width, height, title, debug=False)

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb4 in position 0: invalid start byte

Hello. I trying to run examples/tutorial/2-Movement.py with no changes and get a error when I pressed numpad buttons.

24 bits font.
key color : 0 0 0
Traceback (most recent call last):
File "C:\Users\ilya_gorohov\Documents\tdltest\main.py", line 60, in <module> for event in tdl.event.get(): # Iterate over recent events.
File "C:\Users\ilya_gorohov\AppData\Local\Programs\Python\Python36-32\lib\site-packages\tdl\event.py", line 384, in get _processEvents()
File "C:\Users\ilya_gorohov\AppData\Local\Programs\Python\Python36-32\lib\site-packages\tdl\event.py", line 365, in _processEvents libkey.ralt, libkey.rctrl, libkey.shift))
File "C:\Users\ilya_gorohov\AppData\Local\Programs\Python\Python36-32\lib\site-packages\tdl\event.py", line 115, in __init__ char = char if isinstance(char, str) else char.decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc4 in position 0: unexpected end of data

Windows 10, Python 3.6, tdl 2.0.1

tdl.screenshot not working?

Trying to do a simple screenshot test. No bug but nothing happens. Do I need to initialized differently to get it to work?

import tdl

def handle_keys(user_input):
    # Movement keys
    if user_input.key == 'UP':
        return {'move': (0, -1)}
    elif user_input.key == 'DOWN':
        return {'move': (0, 1)}
    elif user_input.key == 'LEFT':
        return {'move': (-1, 0)}
    elif user_input.key == 'RIGHT':
        return {'move': (1, 0)}

    if user_input.key == 'ENTER' and user_input.alt:
        # Alt+Enter: toggle full screen
        return {'fullscreen': True}
    elif user_input.key == 'ESCAPE':
        # Exit the game
        return {'exit': True}

    # No key was pressed
    return {}

def main():
    screen_width = 80
    screen_height = 50
    player_x = int(screen_width / 2)
    player_y = int(screen_height / 2)

    tdl.set_font('arial10x10.png', greyscale=True, altLayout=True)

    root_console = tdl.init(screen_width, screen_height, title='Roguelike Tutorial Revised', fullscreen=True)

    while not tdl.event.is_window_closed():
        root_console.draw_char(player_x, player_y, '@', bg=None, fg=(255, 255, 255))
        tdl.flush()

        root_console.draw_char(player_x, player_y, ' ', bg=None)

        for event in tdl.event.get():
            if event.type == 'KEYDOWN':
                user_input = event
                break
        else:
            user_input = None

        if not user_input:
            continue
        action = handle_keys(user_input)

        move = action.get('move')
        exit = action.get('exit')
        fullscreen = action.get('fullscreen')

        if move:
            tdl.screenshot() ###############################
            dx, dy = move
            player_x += dx
            player_y += dy

        if exit:
            return True

        if fullscreen:
            tdl.set_fullscreen(not tdl.get_fullscreen())
            return True


if __name__ == "__main__":
    main()

Can't install tdl on Mac OS 10.12.3

Hi!

I can't install tdl on the latest Mac OS Sierra, Python 3.6, Pip3:

Computer:~ user$ pip3 install tdl
Collecting tdl
Using cached tdl-1.6.0-py2.py3-none-any.whl
Collecting libtcod-cffi<2,>=0.2.8 (from tdl)
Using cached libtcod-cffi-1.0.zip
Collecting cffi<2,>=1.8.1 (from libtcod-cffi<2,>=0.2.8->tdl)
Using cached cffi-1.9.1-cp36-cp36m-macosx_10_6_intel.whl
Requirement already satisfied: pycparser in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from cffi<2,>=1.8.1->libtcod-cffi<2,>=0.2.8->tdl)
Building wheels for collected packages: libtcod-cffi
Running setup.py bdist_wheel for libtcod-cffi ... error
Complete output from command /Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 -u -c "import setuptools, tokenize;file='/private/var/folders/w2/tmz_cp5n2lq4pn9h795xxk9shb_lx9/T/pip-build-6kt7hhqi/libtcod-cffi/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /var/folders/w2/tmz_cp5n2lq4pn9h795xxk9shb_lx9/T/tmplmxydngrpip-wheel- --python-tag cp36:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.6-intel-3.6
creating build/lib.macosx-10.6-intel-3.6/tcod
copying src/init.py -> build/lib.macosx-10.6-intel-3.6/tcod
copying src/_bsp.py -> build/lib.macosx-10.6-intel-3.6/tcod
copying src/_color.py -> build/lib.macosx-10.6-intel-3.6/tcod
copying src/_console.py -> build/lib.macosx-10.6-intel-3.6/tcod
copying src/_dijkstra.py -> build/lib.macosx-10.6-intel-3.6/tcod
copying src/_heightmap.py -> build/lib.macosx-10.6-intel-3.6/tcod
copying src/_image.py -> build/lib.macosx-10.6-intel-3.6/tcod
copying src/_line.py -> build/lib.macosx-10.6-intel-3.6/tcod
copying src/_map.py -> build/lib.macosx-10.6-intel-3.6/tcod
copying src/_mouse.py -> build/lib.macosx-10.6-intel-3.6/tcod
copying src/_namegen.py -> build/lib.macosx-10.6-intel-3.6/tcod
copying src/_noise.py -> build/lib.macosx-10.6-intel-3.6/tcod
copying src/_parser.py -> build/lib.macosx-10.6-intel-3.6/tcod
copying src/_path.py -> build/lib.macosx-10.6-intel-3.6/tcod
copying src/_random.py -> build/lib.macosx-10.6-intel-3.6/tcod
copying src/_sys.py -> build/lib.macosx-10.6-intel-3.6/tcod
copying src/libtcod.py -> build/lib.macosx-10.6-intel-3.6/tcod
copying src/version.txt -> build/lib.macosx-10.6-intel-3.6/tcod
creating build/lib.macosx-10.6-intel-3.6/tcod/lib
copying src/lib/LIBTCOD-CREDITS.txt -> build/lib.macosx-10.6-intel-3.6/tcod/lib
copying src/lib/LIBTCOD-LICENSE.txt -> build/lib.macosx-10.6-intel-3.6/tcod/lib
copying src/lib/README-SDL.txt -> build/lib.macosx-10.6-intel-3.6/tcod/lib
running build_ext
generating cffi module 'build/temp.macosx-10.6-intel-3.6/tcod._libtcod.c'
creating build/temp.macosx-10.6-intel-3.6
building 'tcod._libtcod' extension
creating build/temp.macosx-10.6-intel-3.6/build
creating build/temp.macosx-10.6-intel-3.6/build/temp.macosx-10.6-intel-3.6
creating build/temp.macosx-10.6-intel-3.6/dependencies
creating build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1
creating build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src
creating build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/png
creating build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c build/temp.macosx-10.6-intel-3.6/tcod._libtcod.c -o build/temp.macosx-10.6-intel-3.6/build/temp.macosx-10.6-intel-3.6/tcod._libtcod.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/bresenham_c.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/bresenham_c.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/bsp_c.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/bsp_c.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/color_c.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/color_c.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/console_c.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/console_c.o
dependencies/libtcod-1.5.1/src/console_c.c:1966:20: warning: comparison of integers of different signs: 'int' and 'uint32' (aka 'unsigned int') [-Wsign-compare]
if ( con->w != data.details.width || con->h != data.details.height ) {
~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
dependencies/libtcod-1.5.1/src/console_c.c:1966:52: warning: comparison of integers of different signs: 'int' and 'uint32' (aka 'unsigned int') [-Wsign-compare]
if ( con->w != data.details.width || con->h != data.details.height ) {
~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~
2 warnings generated.
dependencies/libtcod-1.5.1/src/console_c.c:1966:20: warning: comparison of integers of different signs: 'int' and 'uint32' (aka 'unsigned int') [-Wsign-compare]
if ( con->w != data.details.width || con->h != data.details.height ) {
~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
dependencies/libtcod-1.5.1/src/console_c.c:1966:52: warning: comparison of integers of different signs: 'int' and 'uint32' (aka 'unsigned int') [-Wsign-compare]
if ( con->w != data.details.width || con->h != data.details.height ) {
~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~
2 warnings generated.
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/fov_c.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/fov_c.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/fov_circular_raycasting.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/fov_circular_raycasting.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/fov_diamond_raycasting.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/fov_diamond_raycasting.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/fov_digital.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/fov_digital.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/fov_permissive.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/fov_permissive.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/fov_permissive2.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/fov_permissive2.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/fov_recursive_shadowcasting.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/fov_recursive_shadowcasting.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/fov_restrictive.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/fov_restrictive.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/heightmap_c.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/heightmap_c.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/image_c.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/image_c.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/lex_c.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/lex_c.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/list_c.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/list_c.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/mersenne_c.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/mersenne_c.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/namegen_c.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/namegen_c.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/noise_c.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/noise_c.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/parser_c.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/parser_c.o
dependencies/libtcod-1.5.1/src/parser_c.c:179:12: warning: variable 'ret' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
else if ( strcmp(lex->tok,"false") == 0 ) ret.b=false;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dependencies/libtcod-1.5.1/src/parser_c.c:181:9: note: uninitialized use occurs here
return ret;
^~~
dependencies/libtcod-1.5.1/src/parser_c.c:179:7: note: remove the 'if' if its condition is always true
else if ( strcmp(lex->tok,"false") == 0 ) ret.b=false;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~
dependencies/libtcod-1.5.1/src/parser_c.c:177:2: note: variable 'ret' is declared here
TCOD_value_t ret;
^
dependencies/libtcod-1.5.1/src/parser_c.c:276:7: warning: variable 'ret' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
if (! end) ok=false;
^~~~~
dependencies/libtcod-1.5.1/src/parser_c.c:292:9: note: uninitialized use occurs here
return ret;
^~~
dependencies/libtcod-1.5.1/src/parser_c.c:276:3: note: remove the 'if' if its condition is always false
if (! end) ok=false;
^~~~~~~~~~~~~~~~~~~~
dependencies/libtcod-1.5.1/src/parser_c.c:239:2: note: variable 'ret' is declared here
TCOD_value_t ret;
^
2 warnings generated.
dependencies/libtcod-1.5.1/src/parser_c.c:179:12: warning: variable 'ret' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
else if ( strcmp(lex->tok,"false") == 0 ) ret.b=false;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dependencies/libtcod-1.5.1/src/parser_c.c:181:9: note: uninitialized use occurs here
return ret;
^~~
dependencies/libtcod-1.5.1/src/parser_c.c:179:7: note: remove the 'if' if its condition is always true
else if ( strcmp(lex->tok,"false") == 0 ) ret.b=false;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~
dependencies/libtcod-1.5.1/src/parser_c.c:177:2: note: variable 'ret' is declared here
TCOD_value_t ret;
^
dependencies/libtcod-1.5.1/src/parser_c.c:276:7: warning: variable 'ret' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
if (! end) ok=false;
^~~~~
dependencies/libtcod-1.5.1/src/parser_c.c:292:9: note: uninitialized use occurs here
return ret;
^~~
dependencies/libtcod-1.5.1/src/parser_c.c:276:3: note: remove the 'if' if its condition is always false
if (! end) ok=false;
^~~~~~~~~~~~~~~~~~~~
dependencies/libtcod-1.5.1/src/parser_c.c:239:2: note: variable 'ret' is declared here
TCOD_value_t ret;
^
2 warnings generated.
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/path_c.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/path_c.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/sys_c.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/sys_c.o
dependencies/libtcod-1.5.1/src/sys_c.c:378:13: warning: 'sem_init' is deprecated [-Wdeprecated-declarations]
if ( ret ) sem_init(ret,0,initVal);
^
/usr/include/sys/semaphore.h:55:5: note: 'sem_init' has been explicitly marked deprecated here
int sem_init(sem_t *, int, unsigned int) __deprecated;
^
dependencies/libtcod-1.5.1/src/sys_c.c:408:3: warning: 'sem_destroy' is deprecated [-Wdeprecated-declarations]
sem_destroy((sem_t *)sem);
^
/usr/include/sys/semaphore.h:53:5: note: 'sem_destroy' has been explicitly marked deprecated here
int sem_destroy(sem_t *) __deprecated;
^
dependencies/libtcod-1.5.1/src/sys_c.c:573:75: warning: null passed to a callee that requires a non-null argument [-Wnonnull]
err = PasteboardPutItemFlavor(clipboard, NULL, kUTTypePlainText, data, 0);
~~~~ ^
3 warnings generated.
dependencies/libtcod-1.5.1/src/sys_c.c:378:13: warning: 'sem_init' is deprecated [-Wdeprecated-declarations]
if ( ret ) sem_init(ret,0,initVal);
^
/usr/include/sys/semaphore.h:55:5: note: 'sem_init' has been explicitly marked deprecated here
int sem_init(sem_t *, int, unsigned int) __deprecated;
^
dependencies/libtcod-1.5.1/src/sys_c.c:408:3: warning: 'sem_destroy' is deprecated [-Wdeprecated-declarations]
sem_destroy((sem_t *)sem);
^
/usr/include/sys/semaphore.h:53:5: note: 'sem_destroy' has been explicitly marked deprecated here
int sem_destroy(sem_t *) __deprecated;
^
dependencies/libtcod-1.5.1/src/sys_c.c:573:75: warning: null passed to a callee that requires a non-null argument [-Wnonnull]
err = PasteboardPutItemFlavor(clipboard, NULL, kUTTypePlainText, data, 0);
~~~~ ^
3 warnings generated.
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/sys_opengl_c.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/sys_opengl_c.o
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:295:9: warning: incompatible pointer to integer conversion initializing 'GLuint' (aka 'unsigned int') with an expression of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
GLuint v = glCreateShaderObjectARB(type);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:296:20: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glShaderSourceARB(v, 1, &txt, 0);
^
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:297:21: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glCompileShaderARB(v);
^
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:299:28: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glGetObjectParameterivARB(v, GL_COMPILE_STATUS, &success);
^
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:303:29: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glGetObjectParameterivARB(v, GL_INFO_LOG_LENGTH,&infologLength);
^
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:307:20: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glGetInfoLogARB(v, infologLength, &charsWritten, infoLog);
^
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:321:8: warning: incompatible pointer to integer conversion assigning to 'GLuint' (aka 'unsigned int') from 'GLhandleARB' (aka 'void *') [-Wint-conversion]
*prog = DBGCHECKGL(glCreateProgramObjectARB());
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:325:20: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glAttachObjectARB(*prog, *vertShader);
^~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:325:27: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glAttachObjectARB(*prog, *vertShader);
^~~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:329:20: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glAttachObjectARB(*prog, *fragShader);
^~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:329:27: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glAttachObjectARB(*prog, *fragShader);
^~~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:331:19: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glLinkProgramARB(*prog);
^~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:333:28: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glGetObjectParameterivARB(*prog, GL_LINK_STATUS, &success);
^~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:340:29: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glGetObjectParameterivARB(*prog, GL_INFO_LOG_LENGTH,&infologLength);
^~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:344:26: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glGetInfoLogARB(*prog, infologLength, &charsWritten, infoLog);
^~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:555:39: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
DBGCHECKGL(glUseProgramObjectARB(conProgram));
^~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:44:28: note: expanded from macro 'DBGCHECKGL'
#define DBGCHECKGL(GLcall) GLcall
^~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:560:56: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
DBGCHECKGL(glUniform2fARB(glGetUniformLocationARB(conProgram,"termsize"), (float) conwidth, (float) conheight));
^~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:44:28: note: expanded from macro 'DBGCHECKGL'
#define DBGCHECKGL(GLcall) GLcall
^~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:561:53: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
DBGCHECKGL(glUniform2fARB(glGetUniformLocationARB(conProgram,"termcoef"), 1.0f/POTconwidth, 1.0f/POTconheight));
^~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:44:28: note: expanded from macro 'DBGCHECKGL'
#define DBGCHECKGL(GLcall) GLcall
^~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:562:56: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void ') [-Wint-conversion]
DBGCHECKGL(glUniform1fARB(glGetUniformLocationARB(conProgram,"fontw"), (float)TCOD_ctx.fontNbCharHoriz));
^~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:44:28: note: expanded from macro 'DBGCHECKGL'
#define DBGCHECKGL(GLcall) GLcall
^~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:563:56: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void ') [-Wint-conversion]
DBGCHECKGL(glUniform2fARB(glGetUniformLocationARB(conProgram,"fontcoef"), (float)(fontwidth)/(POTfontwidth
TCOD_ctx.fontNbCharHoriz), (float)(fontheight)/(POTfontheight
TCOD_ctx.fontNbCharVertic)));
^~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:44:28: note: expanded from macro 'DBGCHECKGL'
#define DBGCHECKGL(GLcall) GLcall
^~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:568:56: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
DBGCHECKGL(glUniform1iARB(glGetUniformLocationARB(conProgram,"font"),0));
^~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:44:28: note: expanded from macro 'DBGCHECKGL'
#define DBGCHECKGL(GLcall) GLcall
^~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:572:56: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
DBGCHECKGL(glUniform1iARB(glGetUniformLocationARB(conProgram,"term"),1));
^~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:44:28: note: expanded from macro 'DBGCHECKGL'
#define DBGCHECKGL(GLcall) GLcall
^~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:576:56: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
DBGCHECKGL(glUniform1iARB(glGetUniformLocationARB(conProgram,"termfcol"),2));
^~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:44:28: note: expanded from macro 'DBGCHECKGL'
#define DBGCHECKGL(GLcall) GLcall
^~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:580:56: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
DBGCHECKGL(glUniform1iARB(glGetUniformLocationARB(conProgram,"termbcol"),3));
^~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:44:28: note: expanded from macro 'DBGCHECKGL'
#define DBGCHECKGL(GLcall) GLcall
^~~~~~
24 warnings generated.
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:295:9: warning: incompatible pointer to integer conversion initializing 'GLuint' (aka 'unsigned int') with an expression of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
GLuint v = glCreateShaderObjectARB(type);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:296:20: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glShaderSourceARB(v, 1, &txt, 0);
^
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:297:21: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glCompileShaderARB(v);
^
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:299:28: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glGetObjectParameterivARB(v, GL_COMPILE_STATUS, &success);
^
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:303:29: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glGetObjectParameterivARB(v, GL_INFO_LOG_LENGTH,&infologLength);
^
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:307:20: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glGetInfoLogARB(v, infologLength, &charsWritten, infoLog);
^
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:321:8: warning: incompatible pointer to integer conversion assigning to 'GLuint' (aka 'unsigned int') from 'GLhandleARB' (aka 'void *') [-Wint-conversion]
*prog = DBGCHECKGL(glCreateProgramObjectARB());
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:325:20: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glAttachObjectARB(*prog, *vertShader);
^~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:325:27: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glAttachObjectARB(*prog, *vertShader);
^~~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:329:20: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glAttachObjectARB(*prog, *fragShader);
^~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:329:27: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glAttachObjectARB(*prog, *fragShader);
^~~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:331:19: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glLinkProgramARB(*prog);
^~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:333:28: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glGetObjectParameterivARB(*prog, GL_LINK_STATUS, &success);
^~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:340:29: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glGetObjectParameterivARB(*prog, GL_INFO_LOG_LENGTH,&infologLength);
^~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:344:26: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glGetInfoLogARB(*prog, infologLength, &charsWritten, infoLog);
^~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:555:39: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
DBGCHECKGL(glUseProgramObjectARB(conProgram));
^~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:44:28: note: expanded from macro 'DBGCHECKGL'
#define DBGCHECKGL(GLcall) GLcall
^~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:560:56: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
DBGCHECKGL(glUniform2fARB(glGetUniformLocationARB(conProgram,"termsize"), (float) conwidth, (float) conheight));
^~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:44:28: note: expanded from macro 'DBGCHECKGL'
#define DBGCHECKGL(GLcall) GLcall
^~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:561:53: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
DBGCHECKGL(glUniform2fARB(glGetUniformLocationARB(conProgram,"termcoef"), 1.0f/POTconwidth, 1.0f/POTconheight));
^~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:44:28: note: expanded from macro 'DBGCHECKGL'
#define DBGCHECKGL(GLcall) GLcall
^~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:562:56: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void ') [-Wint-conversion]
DBGCHECKGL(glUniform1fARB(glGetUniformLocationARB(conProgram,"fontw"), (float)TCOD_ctx.fontNbCharHoriz));
^~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:44:28: note: expanded from macro 'DBGCHECKGL'
#define DBGCHECKGL(GLcall) GLcall
^~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:563:56: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void ') [-Wint-conversion]
DBGCHECKGL(glUniform2fARB(glGetUniformLocationARB(conProgram,"fontcoef"), (float)(fontwidth)/(POTfontwidth
TCOD_ctx.fontNbCharHoriz), (float)(fontheight)/(POTfontheight
TCOD_ctx.fontNbCharVertic)));
^~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:44:28: note: expanded from macro 'DBGCHECKGL'
#define DBGCHECKGL(GLcall) GLcall
^~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:568:56: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
DBGCHECKGL(glUniform1iARB(glGetUniformLocationARB(conProgram,"font"),0));
^~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:44:28: note: expanded from macro 'DBGCHECKGL'
#define DBGCHECKGL(GLcall) GLcall
^~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:572:56: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
DBGCHECKGL(glUniform1iARB(glGetUniformLocationARB(conProgram,"term"),1));
^~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:44:28: note: expanded from macro 'DBGCHECKGL'
#define DBGCHECKGL(GLcall) GLcall
^~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:576:56: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
DBGCHECKGL(glUniform1iARB(glGetUniformLocationARB(conProgram,"termfcol"),2));
^~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:44:28: note: expanded from macro 'DBGCHECKGL'
#define DBGCHECKGL(GLcall) GLcall
^~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:580:56: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
DBGCHECKGL(glUniform1iARB(glGetUniformLocationARB(conProgram,"termbcol"),3));
^~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:44:28: note: expanded from macro 'DBGCHECKGL'
#define DBGCHECKGL(GLcall) GLcall
^~~~~~
24 warnings generated.
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/sys_sdl_c.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/sys_sdl_c.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/sys_sdl_img_bmp.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/sys_sdl_img_bmp.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/sys_sdl_img_png.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/sys_sdl_img_png.o
dependencies/libtcod-1.5.1/src/sys_sdl_img_png.c:57:40: warning: incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'uint32 *' (aka 'unsigned int *') [-Wincompatible-pointer-types]
if (!TCOD_sys_read_file(filename,&png,&pngsize)) return NULL;
^~~~~~~~
dependencies/libtcod-1.5.1/include/sys.h:66:88: note: passing argument to parameter 'size' here
TCODLIB_API bool TCOD_sys_read_file(const char *filename, unsigned char **buf, uint32 *size);
^
1 warning generated.
dependencies/libtcod-1.5.1/src/sys_sdl_img_png.c:57:40: warning: incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'uint32 *' (aka 'unsigned int *') [-Wincompatible-pointer-types]
if (!TCOD_sys_read_file(filename,&png,&pngsize)) return NULL;
^~~~~~~~
dependencies/libtcod-1.5.1/include/sys.h:66:88: note: passing argument to parameter 'size' here
TCODLIB_API bool TCOD_sys_read_file(const char *filename, unsigned char **buf, uint32 *size);
^
1 warning generated.
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/tree_c.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/tree_c.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/txtfield_c.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/txtfield_c.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/wrappers.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/wrappers.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/zip_c.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/zip_c.o
dependencies/libtcod-1.5.1/src/zip_c.c:87:30: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast]
TCOD_list_push(zip->buffer,(void *)val);
^
1 warning generated.
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/png/lodepng.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/png/lodepng.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/zlib-1.2.8/adler32.c -o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/adler32.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/zlib-1.2.8/compress.c -o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/compress.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/zlib-1.2.8/crc32.c -o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/crc32.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/zlib-1.2.8/deflate.c -o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/deflate.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/zlib-1.2.8/gzclose.c -o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/gzclose.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/zlib-1.2.8/gzlib.c -o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/gzlib.o
dependencies/zlib-1.2.8/gzlib.c:256:24: warning: implicit declaration of function 'lseek' is invalid in C99 [-Wimplicit-function-declaration]
state->start = LSEEK(state->fd, 0, SEEK_CUR);
^
dependencies/zlib-1.2.8/gzlib.c:14:17: note: expanded from macro 'LSEEK'

define LSEEK lseek

              ^

1 warning generated.
dependencies/zlib-1.2.8/gzlib.c:256:24: warning: implicit declaration of function 'lseek' is invalid in C99 [-Wimplicit-function-declaration]
state->start = LSEEK(state->fd, 0, SEEK_CUR);
^
dependencies/zlib-1.2.8/gzlib.c:14:17: note: expanded from macro 'LSEEK'

define LSEEK lseek

              ^

1 warning generated.
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/zlib-1.2.8/gzread.c -o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/gzread.o
dependencies/zlib-1.2.8/gzread.c:30:15: warning: implicit declaration of function 'read' is invalid in C99 [-Wimplicit-function-declaration]
ret = read(state->fd, buf + *have, len - *have);
^
dependencies/zlib-1.2.8/gzread.c:591:11: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration]
ret = close(state->fd);
^
2 warnings generated.
dependencies/zlib-1.2.8/gzread.c:30:15: warning: implicit declaration of function 'read' is invalid in C99 [-Wimplicit-function-declaration]
ret = read(state->fd, buf + *have, len - *have);
^
dependencies/zlib-1.2.8/gzread.c:591:11: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration]
ret = close(state->fd);
^
2 warnings generated.
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/zlib-1.2.8/gzwrite.c -o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/gzwrite.o
dependencies/zlib-1.2.8/gzwrite.c:84:15: warning: implicit declaration of function 'write' is invalid in C99 [-Wimplicit-function-declaration]
got = write(state->fd, strm->next_in, strm->avail_in);
^
dependencies/zlib-1.2.8/gzwrite.c:573:9: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration]
if (close(state->fd) == -1)
^
2 warnings generated.
dependencies/zlib-1.2.8/gzwrite.c:84:15: warning: implicit declaration of function 'write' is invalid in C99 [-Wimplicit-function-declaration]
got = write(state->fd, strm->next_in, strm->avail_in);
^
dependencies/zlib-1.2.8/gzwrite.c:573:9: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration]
if (close(state->fd) == -1)
^
2 warnings generated.
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/zlib-1.2.8/infback.c -o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/infback.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/zlib-1.2.8/inffast.c -o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/inffast.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/zlib-1.2.8/inflate.c -o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/inflate.o
dependencies/zlib-1.2.8/inflate.c:1507:61: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
if (strm == Z_NULL || strm->state == Z_NULL) return -1L << 16;
~~~ ^
1 warning generated.
dependencies/zlib-1.2.8/inflate.c:1507:61: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
if (strm == Z_NULL || strm->state == Z_NULL) return -1L << 16;
~~~ ^
1 warning generated.
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/zlib-1.2.8/inftrees.c -o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/inftrees.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/zlib-1.2.8/trees.c -o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/trees.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/zlib-1.2.8/uncompr.c -o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/uncompr.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/zlib-1.2.8/zutil.c -o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/zutil.o
/usr/bin/clang -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -g build/temp.macosx-10.6-intel-3.6/build/temp.macosx-10.6-intel-3.6/tcod._libtcod.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/bresenham_c.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/bsp_c.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/color_c.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/console_c.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/fov_c.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/fov_circular_raycasting.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/fov_diamond_raycasting.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/fov_digital.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/fov_permissive.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/fov_permissive2.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/fov_recursive_shadowcasting.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/fov_restrictive.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/heightmap_c.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/image_c.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/lex_c.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/list_c.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/mersenne_c.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/namegen_c.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/noise_c.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/parser_c.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/path_c.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/sys_c.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/sys_opengl_c.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/sys_sdl_c.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/sys_sdl_img_bmp.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/sys_sdl_img_png.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/tree_c.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/txtfield_c.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/wrappers.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/zip_c.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/png/lodepng.o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/adler32.o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/compress.o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/crc32.o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/deflate.o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/gzclose.o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/gzlib.o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/gzread.o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/gzwrite.o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/infback.o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/inffast.o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/inflate.o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/inftrees.o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/trees.o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/uncompr.o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/zutil.o -L/private/var/folders/w2/tmz_cp5n2lq4pn9h795xxk9shb_lx9/T/pip-build-6kt7hhqi/libtcod-cffi/dependencies/SDL-1.2.15/lib/x64 -lSDL -o build/lib.macosx-10.6-intel-3.6/tcod/_libtcod.abi3.so -framework OpenGL
ld: library not found for -lSDL
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command '/usr/bin/clang' failed with exit status 1


Failed building wheel for libtcod-cffi
Running setup.py clean for libtcod-cffi
Failed to build libtcod-cffi
Installing collected packages: cffi, libtcod-cffi, tdl
Running setup.py install for libtcod-cffi ... error
Complete output from command /Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 -u -c "import setuptools, tokenize;file='/private/var/folders/w2/tmz_cp5n2lq4pn9h795xxk9shb_lx9/T/pip-build-6kt7hhqi/libtcod-cffi/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /var/folders/w2/tmz_cp5n2lq4pn9h795xxk9shb_lx9/T/pip-lxplbb1y-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.macosx-10.6-intel-3.6
creating build/lib.macosx-10.6-intel-3.6/tcod
copying src/init.py -> build/lib.macosx-10.6-intel-3.6/tcod
copying src/_bsp.py -> build/lib.macosx-10.6-intel-3.6/tcod
copying src/_color.py -> build/lib.macosx-10.6-intel-3.6/tcod
copying src/_console.py -> build/lib.macosx-10.6-intel-3.6/tcod
copying src/_dijkstra.py -> build/lib.macosx-10.6-intel-3.6/tcod
copying src/_heightmap.py -> build/lib.macosx-10.6-intel-3.6/tcod
copying src/_image.py -> build/lib.macosx-10.6-intel-3.6/tcod
copying src/_line.py -> build/lib.macosx-10.6-intel-3.6/tcod
copying src/_map.py -> build/lib.macosx-10.6-intel-3.6/tcod
copying src/_mouse.py -> build/lib.macosx-10.6-intel-3.6/tcod
copying src/_namegen.py -> build/lib.macosx-10.6-intel-3.6/tcod
copying src/_noise.py -> build/lib.macosx-10.6-intel-3.6/tcod
copying src/_parser.py -> build/lib.macosx-10.6-intel-3.6/tcod
copying src/_path.py -> build/lib.macosx-10.6-intel-3.6/tcod
copying src/_random.py -> build/lib.macosx-10.6-intel-3.6/tcod
copying src/_sys.py -> build/lib.macosx-10.6-intel-3.6/tcod
copying src/libtcod.py -> build/lib.macosx-10.6-intel-3.6/tcod
copying src/version.txt -> build/lib.macosx-10.6-intel-3.6/tcod
creating build/lib.macosx-10.6-intel-3.6/tcod/lib
copying src/lib/LIBTCOD-CREDITS.txt -> build/lib.macosx-10.6-intel-3.6/tcod/lib
copying src/lib/LIBTCOD-LICENSE.txt -> build/lib.macosx-10.6-intel-3.6/tcod/lib
copying src/lib/README-SDL.txt -> build/lib.macosx-10.6-intel-3.6/tcod/lib
running build_ext
generating cffi module 'build/temp.macosx-10.6-intel-3.6/tcod._libtcod.c'
creating build/temp.macosx-10.6-intel-3.6
building 'tcod._libtcod' extension
creating build/temp.macosx-10.6-intel-3.6/build
creating build/temp.macosx-10.6-intel-3.6/build/temp.macosx-10.6-intel-3.6
creating build/temp.macosx-10.6-intel-3.6/dependencies
creating build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1
creating build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src
creating build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/png
creating build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c build/temp.macosx-10.6-intel-3.6/tcod._libtcod.c -o build/temp.macosx-10.6-intel-3.6/build/temp.macosx-10.6-intel-3.6/tcod._libtcod.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/bresenham_c.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/bresenham_c.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/bsp_c.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/bsp_c.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/color_c.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/color_c.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/console_c.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/console_c.o
dependencies/libtcod-1.5.1/src/console_c.c:1966:20: warning: comparison of integers of different signs: 'int' and 'uint32' (aka 'unsigned int') [-Wsign-compare]
if ( con->w != data.details.width || con->h != data.details.height ) {
~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
dependencies/libtcod-1.5.1/src/console_c.c:1966:52: warning: comparison of integers of different signs: 'int' and 'uint32' (aka 'unsigned int') [-Wsign-compare]
if ( con->w != data.details.width || con->h != data.details.height ) {
~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~
2 warnings generated.
dependencies/libtcod-1.5.1/src/console_c.c:1966:20: warning: comparison of integers of different signs: 'int' and 'uint32' (aka 'unsigned int') [-Wsign-compare]
if ( con->w != data.details.width || con->h != data.details.height ) {
~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
dependencies/libtcod-1.5.1/src/console_c.c:1966:52: warning: comparison of integers of different signs: 'int' and 'uint32' (aka 'unsigned int') [-Wsign-compare]
if ( con->w != data.details.width || con->h != data.details.height ) {
~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~
2 warnings generated.
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/fov_c.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/fov_c.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/fov_circular_raycasting.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/fov_circular_raycasting.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/fov_diamond_raycasting.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/fov_diamond_raycasting.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/fov_digital.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/fov_digital.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/fov_permissive.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/fov_permissive.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/fov_permissive2.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/fov_permissive2.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/fov_recursive_shadowcasting.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/fov_recursive_shadowcasting.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/fov_restrictive.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/fov_restrictive.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/heightmap_c.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/heightmap_c.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/image_c.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/image_c.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/lex_c.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/lex_c.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/list_c.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/list_c.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/mersenne_c.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/mersenne_c.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/namegen_c.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/namegen_c.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/noise_c.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/noise_c.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/parser_c.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/parser_c.o
dependencies/libtcod-1.5.1/src/parser_c.c:179:12: warning: variable 'ret' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
else if ( strcmp(lex->tok,"false") == 0 ) ret.b=false;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dependencies/libtcod-1.5.1/src/parser_c.c:181:9: note: uninitialized use occurs here
return ret;
^~~
dependencies/libtcod-1.5.1/src/parser_c.c:179:7: note: remove the 'if' if its condition is always true
else if ( strcmp(lex->tok,"false") == 0 ) ret.b=false;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~
dependencies/libtcod-1.5.1/src/parser_c.c:177:2: note: variable 'ret' is declared here
TCOD_value_t ret;
^
dependencies/libtcod-1.5.1/src/parser_c.c:276:7: warning: variable 'ret' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
if (! end) ok=false;
^~~~~
dependencies/libtcod-1.5.1/src/parser_c.c:292:9: note: uninitialized use occurs here
return ret;
^~~
dependencies/libtcod-1.5.1/src/parser_c.c:276:3: note: remove the 'if' if its condition is always false
if (! end) ok=false;
^~~~~~~~~~~~~~~~~~~~
dependencies/libtcod-1.5.1/src/parser_c.c:239:2: note: variable 'ret' is declared here
TCOD_value_t ret;
^
2 warnings generated.
dependencies/libtcod-1.5.1/src/parser_c.c:179:12: warning: variable 'ret' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
else if ( strcmp(lex->tok,"false") == 0 ) ret.b=false;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dependencies/libtcod-1.5.1/src/parser_c.c:181:9: note: uninitialized use occurs here
return ret;
^~~
dependencies/libtcod-1.5.1/src/parser_c.c:179:7: note: remove the 'if' if its condition is always true
else if ( strcmp(lex->tok,"false") == 0 ) ret.b=false;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~
dependencies/libtcod-1.5.1/src/parser_c.c:177:2: note: variable 'ret' is declared here
TCOD_value_t ret;
^
dependencies/libtcod-1.5.1/src/parser_c.c:276:7: warning: variable 'ret' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
if (! end) ok=false;
^~~~~
dependencies/libtcod-1.5.1/src/parser_c.c:292:9: note: uninitialized use occurs here
return ret;
^~~
dependencies/libtcod-1.5.1/src/parser_c.c:276:3: note: remove the 'if' if its condition is always false
if (! end) ok=false;
^~~~~~~~~~~~~~~~~~~~
dependencies/libtcod-1.5.1/src/parser_c.c:239:2: note: variable 'ret' is declared here
TCOD_value_t ret;
^
2 warnings generated.
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/path_c.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/path_c.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/sys_c.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/sys_c.o
dependencies/libtcod-1.5.1/src/sys_c.c:378:13: warning: 'sem_init' is deprecated [-Wdeprecated-declarations]
if ( ret ) sem_init(ret,0,initVal);
^
/usr/include/sys/semaphore.h:55:5: note: 'sem_init' has been explicitly marked deprecated here
int sem_init(sem_t *, int, unsigned int) __deprecated;
^
dependencies/libtcod-1.5.1/src/sys_c.c:408:3: warning: 'sem_destroy' is deprecated [-Wdeprecated-declarations]
sem_destroy((sem_t *)sem);
^
/usr/include/sys/semaphore.h:53:5: note: 'sem_destroy' has been explicitly marked deprecated here
int sem_destroy(sem_t *) __deprecated;
^
dependencies/libtcod-1.5.1/src/sys_c.c:573:75: warning: null passed to a callee that requires a non-null argument [-Wnonnull]
err = PasteboardPutItemFlavor(clipboard, NULL, kUTTypePlainText, data, 0);
~~~~ ^
3 warnings generated.
dependencies/libtcod-1.5.1/src/sys_c.c:378:13: warning: 'sem_init' is deprecated [-Wdeprecated-declarations]
if ( ret ) sem_init(ret,0,initVal);
^
/usr/include/sys/semaphore.h:55:5: note: 'sem_init' has been explicitly marked deprecated here
int sem_init(sem_t *, int, unsigned int) __deprecated;
^
dependencies/libtcod-1.5.1/src/sys_c.c:408:3: warning: 'sem_destroy' is deprecated [-Wdeprecated-declarations]
sem_destroy((sem_t *)sem);
^
/usr/include/sys/semaphore.h:53:5: note: 'sem_destroy' has been explicitly marked deprecated here
int sem_destroy(sem_t *) __deprecated;
^
dependencies/libtcod-1.5.1/src/sys_c.c:573:75: warning: null passed to a callee that requires a non-null argument [-Wnonnull]
err = PasteboardPutItemFlavor(clipboard, NULL, kUTTypePlainText, data, 0);
~~~~ ^
3 warnings generated.
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/sys_opengl_c.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/sys_opengl_c.o
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:295:9: warning: incompatible pointer to integer conversion initializing 'GLuint' (aka 'unsigned int') with an expression of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
GLuint v = glCreateShaderObjectARB(type);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:296:20: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glShaderSourceARB(v, 1, &txt, 0);
^
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:297:21: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glCompileShaderARB(v);
^
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:299:28: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glGetObjectParameterivARB(v, GL_COMPILE_STATUS, &success);
^
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:303:29: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glGetObjectParameterivARB(v, GL_INFO_LOG_LENGTH,&infologLength);
^
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:307:20: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glGetInfoLogARB(v, infologLength, &charsWritten, infoLog);
^
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:321:8: warning: incompatible pointer to integer conversion assigning to 'GLuint' (aka 'unsigned int') from 'GLhandleARB' (aka 'void *') [-Wint-conversion]
*prog = DBGCHECKGL(glCreateProgramObjectARB());
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:325:20: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glAttachObjectARB(*prog, *vertShader);
^~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:325:27: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glAttachObjectARB(*prog, *vertShader);
^~~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:329:20: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glAttachObjectARB(*prog, *fragShader);
^~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:329:27: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glAttachObjectARB(*prog, *fragShader);
^~~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:331:19: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glLinkProgramARB(*prog);
^~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:333:28: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glGetObjectParameterivARB(*prog, GL_LINK_STATUS, &success);
^~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:340:29: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glGetObjectParameterivARB(*prog, GL_INFO_LOG_LENGTH,&infologLength);
^~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:344:26: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glGetInfoLogARB(*prog, infologLength, &charsWritten, infoLog);
^~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:555:39: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
DBGCHECKGL(glUseProgramObjectARB(conProgram));
^~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:44:28: note: expanded from macro 'DBGCHECKGL'
#define DBGCHECKGL(GLcall) GLcall
^~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:560:56: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
DBGCHECKGL(glUniform2fARB(glGetUniformLocationARB(conProgram,"termsize"), (float) conwidth, (float) conheight));
^~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:44:28: note: expanded from macro 'DBGCHECKGL'
#define DBGCHECKGL(GLcall) GLcall
^~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:561:53: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
DBGCHECKGL(glUniform2fARB(glGetUniformLocationARB(conProgram,"termcoef"), 1.0f/POTconwidth, 1.0f/POTconheight));
^~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:44:28: note: expanded from macro 'DBGCHECKGL'
#define DBGCHECKGL(GLcall) GLcall
^~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:562:56: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void ') [-Wint-conversion]
DBGCHECKGL(glUniform1fARB(glGetUniformLocationARB(conProgram,"fontw"), (float)TCOD_ctx.fontNbCharHoriz));
^~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:44:28: note: expanded from macro 'DBGCHECKGL'
#define DBGCHECKGL(GLcall) GLcall
^~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:563:56: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void ') [-Wint-conversion]
DBGCHECKGL(glUniform2fARB(glGetUniformLocationARB(conProgram,"fontcoef"), (float)(fontwidth)/(POTfontwidth
TCOD_ctx.fontNbCharHoriz), (float)(fontheight)/(POTfontheight
TCOD_ctx.fontNbCharVertic)));
^~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:44:28: note: expanded from macro 'DBGCHECKGL'
#define DBGCHECKGL(GLcall) GLcall
^~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:568:56: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
DBGCHECKGL(glUniform1iARB(glGetUniformLocationARB(conProgram,"font"),0));
^~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:44:28: note: expanded from macro 'DBGCHECKGL'
#define DBGCHECKGL(GLcall) GLcall
^~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:572:56: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
DBGCHECKGL(glUniform1iARB(glGetUniformLocationARB(conProgram,"term"),1));
^~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:44:28: note: expanded from macro 'DBGCHECKGL'
#define DBGCHECKGL(GLcall) GLcall
^~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:576:56: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
DBGCHECKGL(glUniform1iARB(glGetUniformLocationARB(conProgram,"termfcol"),2));
^~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:44:28: note: expanded from macro 'DBGCHECKGL'
#define DBGCHECKGL(GLcall) GLcall
^~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:580:56: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
DBGCHECKGL(glUniform1iARB(glGetUniformLocationARB(conProgram,"termbcol"),3));
^~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:44:28: note: expanded from macro 'DBGCHECKGL'
#define DBGCHECKGL(GLcall) GLcall
^~~~~~
24 warnings generated.
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:295:9: warning: incompatible pointer to integer conversion initializing 'GLuint' (aka 'unsigned int') with an expression of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
GLuint v = glCreateShaderObjectARB(type);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:296:20: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glShaderSourceARB(v, 1, &txt, 0);
^
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:297:21: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glCompileShaderARB(v);
^
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:299:28: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glGetObjectParameterivARB(v, GL_COMPILE_STATUS, &success);
^
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:303:29: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glGetObjectParameterivARB(v, GL_INFO_LOG_LENGTH,&infologLength);
^
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:307:20: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glGetInfoLogARB(v, infologLength, &charsWritten, infoLog);
^
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:321:8: warning: incompatible pointer to integer conversion assigning to 'GLuint' (aka 'unsigned int') from 'GLhandleARB' (aka 'void *') [-Wint-conversion]
*prog = DBGCHECKGL(glCreateProgramObjectARB());
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:325:20: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glAttachObjectARB(*prog, *vertShader);
^~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:325:27: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glAttachObjectARB(*prog, *vertShader);
^~~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:329:20: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glAttachObjectARB(*prog, *fragShader);
^~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:329:27: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glAttachObjectARB(*prog, *fragShader);
^~~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:331:19: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glLinkProgramARB(*prog);
^~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:333:28: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glGetObjectParameterivARB(*prog, GL_LINK_STATUS, &success);
^~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:340:29: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glGetObjectParameterivARB(*prog, GL_INFO_LOG_LENGTH,&infologLength);
^~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:344:26: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
glGetInfoLogARB(*prog, infologLength, &charsWritten, infoLog);
^~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:555:39: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
DBGCHECKGL(glUseProgramObjectARB(conProgram));
^~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:44:28: note: expanded from macro 'DBGCHECKGL'
#define DBGCHECKGL(GLcall) GLcall
^~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:560:56: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
DBGCHECKGL(glUniform2fARB(glGetUniformLocationARB(conProgram,"termsize"), (float) conwidth, (float) conheight));
^~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:44:28: note: expanded from macro 'DBGCHECKGL'
#define DBGCHECKGL(GLcall) GLcall
^~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:561:53: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
DBGCHECKGL(glUniform2fARB(glGetUniformLocationARB(conProgram,"termcoef"), 1.0f/POTconwidth, 1.0f/POTconheight));
^~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:44:28: note: expanded from macro 'DBGCHECKGL'
#define DBGCHECKGL(GLcall) GLcall
^~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:562:56: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void ') [-Wint-conversion]
DBGCHECKGL(glUniform1fARB(glGetUniformLocationARB(conProgram,"fontw"), (float)TCOD_ctx.fontNbCharHoriz));
^~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:44:28: note: expanded from macro 'DBGCHECKGL'
#define DBGCHECKGL(GLcall) GLcall
^~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:563:56: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void ') [-Wint-conversion]
DBGCHECKGL(glUniform2fARB(glGetUniformLocationARB(conProgram,"fontcoef"), (float)(fontwidth)/(POTfontwidth
TCOD_ctx.fontNbCharHoriz), (float)(fontheight)/(POTfontheight
TCOD_ctx.fontNbCharVertic)));
^~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:44:28: note: expanded from macro 'DBGCHECKGL'
#define DBGCHECKGL(GLcall) GLcall
^~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:568:56: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
DBGCHECKGL(glUniform1iARB(glGetUniformLocationARB(conProgram,"font"),0));
^~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:44:28: note: expanded from macro 'DBGCHECKGL'
#define DBGCHECKGL(GLcall) GLcall
^~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:572:56: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
DBGCHECKGL(glUniform1iARB(glGetUniformLocationARB(conProgram,"term"),1));
^~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:44:28: note: expanded from macro 'DBGCHECKGL'
#define DBGCHECKGL(GLcall) GLcall
^~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:576:56: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
DBGCHECKGL(glUniform1iARB(glGetUniformLocationARB(conProgram,"termfcol"),2));
^~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:44:28: note: expanded from macro 'DBGCHECKGL'
#define DBGCHECKGL(GLcall) GLcall
^~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:580:56: warning: incompatible integer to pointer conversion passing 'GLuint' (aka 'unsigned int') to parameter of type 'GLhandleARB' (aka 'void *') [-Wint-conversion]
DBGCHECKGL(glUniform1iARB(glGetUniformLocationARB(conProgram,"termbcol"),3));
^~~~~~~~~~
dependencies/libtcod-1.5.1/src/sys_opengl_c.c:44:28: note: expanded from macro 'DBGCHECKGL'
#define DBGCHECKGL(GLcall) GLcall
^~~~~~
24 warnings generated.
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/sys_sdl_c.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/sys_sdl_c.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/sys_sdl_img_bmp.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/sys_sdl_img_bmp.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/sys_sdl_img_png.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/sys_sdl_img_png.o
dependencies/libtcod-1.5.1/src/sys_sdl_img_png.c:57:40: warning: incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'uint32 *' (aka 'unsigned int *') [-Wincompatible-pointer-types]
if (!TCOD_sys_read_file(filename,&png,&pngsize)) return NULL;
^~~~~~~~
dependencies/libtcod-1.5.1/include/sys.h:66:88: note: passing argument to parameter 'size' here
TCODLIB_API bool TCOD_sys_read_file(const char *filename, unsigned char **buf, uint32 *size);
^
1 warning generated.
dependencies/libtcod-1.5.1/src/sys_sdl_img_png.c:57:40: warning: incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'uint32 *' (aka 'unsigned int *') [-Wincompatible-pointer-types]
if (!TCOD_sys_read_file(filename,&png,&pngsize)) return NULL;
^~~~~~~~
dependencies/libtcod-1.5.1/include/sys.h:66:88: note: passing argument to parameter 'size' here
TCODLIB_API bool TCOD_sys_read_file(const char *filename, unsigned char **buf, uint32 *size);
^
1 warning generated.
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/tree_c.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/tree_c.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/txtfield_c.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/txtfield_c.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/wrappers.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/wrappers.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/zip_c.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/zip_c.o
dependencies/libtcod-1.5.1/src/zip_c.c:87:30: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast]
TCOD_list_push(zip->buffer,(void *)val);
^
1 warning generated.
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/libtcod-1.5.1/src/png/lodepng.c -o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/png/lodepng.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/zlib-1.2.8/adler32.c -o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/adler32.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/zlib-1.2.8/compress.c -o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/compress.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/zlib-1.2.8/crc32.c -o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/crc32.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/zlib-1.2.8/deflate.c -o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/deflate.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/zlib-1.2.8/gzclose.c -o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/gzclose.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/zlib-1.2.8/gzlib.c -o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/gzlib.o
dependencies/zlib-1.2.8/gzlib.c:256:24: warning: implicit declaration of function 'lseek' is invalid in C99 [-Wimplicit-function-declaration]
state->start = LSEEK(state->fd, 0, SEEK_CUR);
^
dependencies/zlib-1.2.8/gzlib.c:14:17: note: expanded from macro 'LSEEK'
# define LSEEK lseek
^
1 warning generated.
dependencies/zlib-1.2.8/gzlib.c:256:24: warning: implicit declaration of function 'lseek' is invalid in C99 [-Wimplicit-function-declaration]
state->start = LSEEK(state->fd, 0, SEEK_CUR);
^
dependencies/zlib-1.2.8/gzlib.c:14:17: note: expanded from macro 'LSEEK'
# define LSEEK lseek
^
1 warning generated.
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/zlib-1.2.8/gzread.c -o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/gzread.o
dependencies/zlib-1.2.8/gzread.c:30:15: warning: implicit declaration of function 'read' is invalid in C99 [-Wimplicit-function-declaration]
ret = read(state->fd, buf + *have, len - *have);
^
dependencies/zlib-1.2.8/gzread.c:591:11: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration]
ret = close(state->fd);
^
2 warnings generated.
dependencies/zlib-1.2.8/gzread.c:30:15: warning: implicit declaration of function 'read' is invalid in C99 [-Wimplicit-function-declaration]
ret = read(state->fd, buf + *have, len - *have);
^
dependencies/zlib-1.2.8/gzread.c:591:11: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration]
ret = close(state->fd);
^
2 warnings generated.
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/zlib-1.2.8/gzwrite.c -o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/gzwrite.o
dependencies/zlib-1.2.8/gzwrite.c:84:15: warning: implicit declaration of function 'write' is invalid in C99 [-Wimplicit-function-declaration]
got = write(state->fd, strm->next_in, strm->avail_in);
^
dependencies/zlib-1.2.8/gzwrite.c:573:9: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration]
if (close(state->fd) == -1)
^
2 warnings generated.
dependencies/zlib-1.2.8/gzwrite.c:84:15: warning: implicit declaration of function 'write' is invalid in C99 [-Wimplicit-function-declaration]
got = write(state->fd, strm->next_in, strm->avail_in);
^
dependencies/zlib-1.2.8/gzwrite.c:573:9: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration]
if (close(state->fd) == -1)
^
2 warnings generated.
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/zlib-1.2.8/infback.c -o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/infback.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/zlib-1.2.8/inffast.c -o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/inffast.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/zlib-1.2.8/inflate.c -o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/inflate.o
dependencies/zlib-1.2.8/inflate.c:1507:61: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
if (strm == Z_NULL || strm->state == Z_NULL) return -1L << 16;
~~~ ^
1 warning generated.
dependencies/zlib-1.2.8/inflate.c:1507:61: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
if (strm == Z_NULL || strm->state == Z_NULL) return -1L << 16;
~~~ ^
1 warning generated.
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/zlib-1.2.8/inftrees.c -o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/inftrees.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/zlib-1.2.8/trees.c -o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/trees.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/zlib-1.2.8/uncompr.c -o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/uncompr.o
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DLIBTCOD_EXPORTS -IRelease/tcod/ -Idependencies/libtcod-1.5.1/include/ -Idependencies/libtcod-1.5.1/src/png/ -Idependencies/SDL-1.2.15/include -Idependencies/zlib-1.2.8/ -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dependencies/zlib-1.2.8/zutil.c -o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/zutil.o
/usr/bin/clang -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -g build/temp.macosx-10.6-intel-3.6/build/temp.macosx-10.6-intel-3.6/tcod._libtcod.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/bresenham_c.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/bsp_c.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/color_c.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/console_c.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/fov_c.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/fov_circular_raycasting.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/fov_diamond_raycasting.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/fov_digital.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/fov_permissive.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/fov_permissive2.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/fov_recursive_shadowcasting.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/fov_restrictive.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/heightmap_c.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/image_c.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/lex_c.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/list_c.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/mersenne_c.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/namegen_c.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/noise_c.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/parser_c.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/path_c.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/sys_c.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/sys_opengl_c.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/sys_sdl_c.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/sys_sdl_img_bmp.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/sys_sdl_img_png.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/tree_c.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/txtfield_c.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/wrappers.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/zip_c.o build/temp.macosx-10.6-intel-3.6/dependencies/libtcod-1.5.1/src/png/lodepng.o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/adler32.o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/compress.o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/crc32.o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/deflate.o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/gzclose.o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/gzlib.o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/gzread.o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/gzwrite.o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/infback.o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/inffast.o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/inflate.o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/inftrees.o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/trees.o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/uncompr.o build/temp.macosx-10.6-intel-3.6/dependencies/zlib-1.2.8/zutil.o -L/private/var/folders/w2/tmz_cp5n2lq4pn9h795xxk9shb_lx9/T/pip-build-6kt7hhqi/libtcod-cffi/dependencies/SDL-1.2.15/lib/x64 -lSDL -o build/lib.macosx-10.6-intel-3.6/tcod/_libtcod.abi3.so -framework OpenGL
ld: library not found for -lSDL
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command '/usr/bin/clang' failed with exit status 1

----------------------------------------

Command "/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 -u -c "import setuptools, tokenize;file='/private/var/folders/w2/tmz_cp5n2lq4pn9h795xxk9shb_lx9/T/pip-build-6kt7hhqi/libtcod-cffi/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /var/folders/w2/tmz_cp5n2lq4pn9h795xxk9shb_lx9/T/pip-lxplbb1y-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/w2/tmz_cp5n2lq4pn9h795xxk9shb_lx9/T/pip-build-6kt7hhqi/libtcod-cffi/

Array must have a 2D shape, shape is ()

Coming from a version of libtcod a few months ago. Isolated a memory leak that was caused when calling compute map. I wanted to try upgrading to the latest version before reporting a bug. So I tried pip installing the latest and importing that in my code. Now, this line fails:

     path = libtcod.path_new_using_map(self.FOV, 1)
  File "/root/wizard-wars/lib/rlengine/avatar/ais/ai.py", line 170, in getStandardIntent
    target = self.updatePathToNearestTarget(x, y, worldMap, self.allTargets())
  File "/root/wizard-wars/lib/rlengine/avatar/ais/ai.py", line 135, in updatePathToNearestTarget
    path = libtcod.path_new_using_map(self.FOV, 1)
  File "/usr/local/lib/python2.7/dist-packages/tcod/libtcodpy.py", line 1264, in path_new_using_map
    return tcod.path.AStar(m, dcost)
  File "/usr/local/lib/python2.7/dist-packages/tcod/path.py", line 201, in __init__
    self.cost.get_tcod_path_ffi()
  File "/usr/local/lib/python2.7/dist-packages/tcod/path.py", line 162, in get_tcod_path_ffi
    (self.shape,))
ValueError: Array must have a 2d shape, shape is ()

This is expecting a nested array, is that this means?

tdl.mar.quickFOV failed with type error

I tried to call quickFOV in this way:

visible_area = quickFOV(playerX, playerY, is_transparent, radius=5.5, 
lightWalls=False)

but it failed with argument error:

Traceback (most recent call last):
  File "test2.py", line 104, in <module>
    visible_area = quickFOV(playerX, playerY, is_transparent, radius=5, lightWalls=False)
  File "/home/angru/Temp/tdl-test/local/lib/python2.7/site-packages/tdl/map.py", line 172, in quickFOV
    tcodMap = _lib.TCOD_map_new(mapSize, mapSize)
ctypes.ArgumentError: argument 1: <type 'exceptions.TypeError'>: wrong type

In fact it failed with:

Traceback (most recent call last):
  File "test2.py", line 104, in <module>
    visible_area = quickFOV(playerX, playerY, is_transparent, radius=5, lightWalls=False)
  File "/home/angru/Temp/tdl-test/local/lib/python2.7/site-packages/tdl/map.py", line 192, in quickFOV
    _lib.TCOD_map_delete(tcodMap)
UnboundLocalError: local variable 'tcodMap' referenced before assignment

but I commented try...finally statement to see actual error.


But it works fine when I commented "radius = math.ceil(radius)" line in 
tdl.map.py and use integer for radius.


Original issue reported on code.google.com by [email protected] on 27 Jun 2014 at 7:54

Using get_height_rect without an existing console

So, I'm having a case where I'd like to use get_height_rect without an existing console, or at least, with a console of (width=0, height=0).
This console is basically use to hold the content of a print_box function, and that's it. This is a console dedicated to the content of a tooltip with variable value.

But if I want to use print_box, I'd need to know and set the height of the console before using the print_box function. Get_height_rect would be perfect here but if we use it on a Console(0,0), the only value we'd get is 0.

Any Idea how I could work around that ? I could implement my own print_box function in python, but it would not be as efficient as print_box I guess.

Subpanels problem

Hello dear sir!

Before I post my problem I must thank you for this great library, it has really made libtcod available to me. Secondly I must apologize because this is not really a bug-report, but I couldn't find your contact information otherwise and I'm so sorry.

Anyways, I want to make Python 3 version of the tutorial from RogueBasin, called "Complete Roguelike Tutorial, using python+libtcod". The tutorial is great, but outdated if you consider Python 3.0 and requires too much tinkering with C-libraries, unlike your dtl-library.

In order to do new tutorial, I of course want to complete the original as faithful as I can with your library. Unfortunately I can't figure out how to do specific feature in your library, when comparing to libtcod. I'm trying to add statusbar to my tutorial-roguelike, as described in here: http://www.roguebasin.com/index.php?title=Complete_Roguelike_Tutorial,_using_python%2Blibtcod,_part_7

Full example-code after the exercise, using original libtcod library should look like this:
http://www.roguebasin.com/index.php?title=Complete_Roguelike_Tutorial,_using_python%2Blibtcod,_part_7_code

I got it working, kinda but not quite. Here's my version of the one-file project so far:
https://github.com/Krypticdator/Complete-Roguelike-Tutorial--using-python-3-libtcod-tdl-/

I'm trying to create statusbar according to the tutorial on codelines: 429-451. I saved the tutorials code in comments for reference.

If you could help me with this I would very much appreciate it, and so would probably those others who love python 3 and would want to go trought this amazing tutorial in the future.

With best regards
Toni Nurmi
[email protected]

Transparency support when blitting

Does TDL support transparency when blitting from one console to another?

console.clear() seems to fill with black, and no option to set all cells to transparent.

Unexpected behaviour for print_box / print_rect alignment

Hey,

I hope your week was good ;)

So, I'm trying to use print_box, and I'm having an unexpected result with alignment for print_box / print_rect.
So I'm just checking if this is the expected behaviour.

When using print_box with a non-default alignment, the text origin coordinate changes to either x - width//2 for alignment CENTER or x - width for alignment RIGHT.

What I was expecting was that the string stayed contained inside the box formed by (x,y, x+width,y+height), but only changed the alignment, e.g., be pushed to the middle evenly or to the right of the box.

Both print_box and print_rect have this behaviour, so I'm not sure if this is to be expected or not, but if it is, the documentation is ambiguous on that :

Print a string constrained to a rectangle and return the height.

Print a string constrained to a rectangle.

mouse.dcx,mouse.dx not working ?

Hi there,

I just started to experiment with tcod and I noted that the mouse properties dx/dy, dcx/dcy seem to not do much.

Here is the description for dcx :

dcx int - Movement since last update in console cells.

However, the value seem to stay the same (0) no matter how fast I move my mouse. I even tried to make my program sleep between 2 frames to see if the value would change but it does not.

Is this a bug ?
If not, could you clarify how to use it properly ?

Thanks !

while not tdl.event.isWindowClosed() hangs the console window

This code makes the windows freeze.

import tdl

SCREEN_WIDTH = 80
SCREEN_HEIGHT = 50
LIMIT_FPS = 20

if __name__ == '__main__':
    tdl.setFont("arial10x10.png", None, None, False, False, False)
    tdl.setFPS(LIMIT_FPS)
    con = tdl.init(SCREEN_WIDTH, SCREEN_HEIGHT, "Test", False, "SDL")
    while not tdl.event.isWindowClosed():
        tdl.Console.drawChar(con, 1,1, '@', None, None )
        tdl.flush()


Is setFPS in tdl works not the same way as in libcod?

Windows XP, Python 3.3.2 win32, tdl 1.1.6r84

Original issue reported on code.google.com by [email protected] on 4 Mar 2015 at 8:35

Compilation Fails on Linux (Ubuntu 17.10)

I'm trying to set up tdl on Ubuntu 17.10. I installed all the pre-requisites specified here (sudo apt install gcc libsdl2-dev libffi-dev python-dev libomp-dev)

When I run pip3 install tdl, it errors out. Sorry, I can't make much sense out of this output, so here's the entire stack dump. Any ideas what I can try to get this to work? (This is a subsequent attempt so it uses a cached version of the tdl 4.1 .tar.gz file.)

Collecting tdl
  Using cached tdl-4.1.1.tar.gzCollecting cffi<2,>=1.8.1 (from tdl)
  Using cached cffi-1.11.2-cp36-cp36m-manylinux1_x86_64.whl
Collecting numpy<2,>=1.10 (from tdl)
  Using cached numpy-1.13.3-cp36-cp36m-manylinux1_x86_64.whl
Collecting pycparser (from cffi<2,>=1.8.1->tdl)
Building wheels for collected packages: tdl
  Running setup.py bdist_wheel for tdl ... error  Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-r7rzoomn/tdl/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpvwm1cepipip-wheel- --python-tag cp36:
  running bdist_wheel
  error: error in setup.cfg: command 'bdist_wheel' has no such option 'py_limited_api'

  ----------------------------------------
  Failed building wheel for tdl
  Running setup.py clean for tdl
Failed to build tdl
Installing collected packages: pycparser, cffi, numpy, tdl
  Running setup.py install for tdl ... error
    Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-r7rzoomn/tdl/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-d7j55i9m-record/install-record.txt --single-version-externally-managed --compile --user --prefix=:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.6
    creating build/lib.linux-x86_64-3.6/tdl
    copying tdl/version.py -> build/lib.linux-x86_64-3.6/tdl
    copying tdl/event.py -> build/lib.linux-x86_64-3.6/tdl
    copying tdl/__init__.py -> build/lib.linux-x86_64-3.6/tdl
    copying tdl/noise.py -> build/lib.linux-x86_64-3.6/tdl
    copying tdl/style.py -> build/lib.linux-x86_64-3.6/tdl
    copying tdl/map.py -> build/lib.linux-x86_64-3.6/tdl
    creating build/lib.linux-x86_64-3.6/tcod
    copying tcod/bsp.py -> build/lib.linux-x86_64-3.6/tcod
    copying tcod/version.py -> build/lib.linux-x86_64-3.6/tcod
    copying tcod/image.py -> build/lib.linux-x86_64-3.6/tcod
    copying tcod/path.py -> build/lib.linux-x86_64-3.6/tcod
    copying tcod/__init__.py -> build/lib.linux-x86_64-3.6/tcod
    copying tcod/noise.py -> build/lib.linux-x86_64-3.6/tcod
    copying tcod/color.py -> build/lib.linux-x86_64-3.6/tcod
    copying tcod/random.py -> build/lib.linux-x86_64-3.6/tcod
    copying tcod/map.py -> build/lib.linux-x86_64-3.6/tcod
    copying tcod/tcod.py -> build/lib.linux-x86_64-3.6/tcod
    copying tcod/libtcod.py -> build/lib.linux-x86_64-3.6/tcod
    copying tcod/libtcodpy.py -> build/lib.linux-x86_64-3.6/tcod
    copying tcod/console.py -> build/lib.linux-x86_64-3.6/tcod
    copying tdl/terminal8x8.png -> build/lib.linux-x86_64-3.6/tdl
    running build_ext
    generating cffi module 'build/temp.linux-x86_64-3.6/tcod._libtcod.c'
    creating build/temp.linux-x86_64-3.6
    building 'tcod._libtcod' extension
    creating build/temp.linux-x86_64-3.6/build
    creating build/temp.linux-x86_64-3.6/build/temp.linux-x86_64-3.6
    creating build/temp.linux-x86_64-3.6/libtcod
    creating build/temp.linux-x86_64-3.6/libtcod/src
    creating build/temp.linux-x86_64-3.6/libtcod/src/zlib
    creating build/temp.linux-x86_64-3.6/libtcod/src/png
    creating build/temp.linux-x86_64-3.6/tcod
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c build/temp.linux-x86_64-3.6/tcod._libtcod.c -o build/temp.linux-x86_64-3.6/build/temp.linux-x86_64-3.6/tcod._libtcod.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    build/temp.linux-x86_64-3.6/tcod._libtcod.c: In function ‘_cffi_d_SDL_RWFromFP’:
    build/temp.linux-x86_64-3.6/tcod._libtcod.c:28879:23: warning: passing argument 1 of ‘SDL_RWFromFP’ from incompatible pointer type [-Wincompatible-pointer-types]
       return SDL_RWFromFP(x0, x1);
                           ^~
    In file included from /usr/include/SDL2/SDL_audio.h:36:0,
                     from /usr/include/SDL2/SDL.h:36,
                     from ./tcod/cffi.h:5,
                     from build/temp.linux-x86_64-3.6/tcod._libtcod.c:482:
    /usr/include/SDL2/SDL_rwops.h:157:36: note: expected ‘FILE * {aka struct _IO_FILE *}’ but argument is of type ‘int *’
     extern DECLSPEC SDL_RWops *SDLCALL SDL_RWFromFP(FILE * fp,
                                        ^~~~~~~~~~~~
    build/temp.linux-x86_64-3.6/tcod._libtcod.c: In function ‘_cffi_f_SDL_RWFromFP’:
    build/temp.linux-x86_64-3.6/tcod._libtcod.c:28911:27: warning: passing argument 1 of ‘SDL_RWFromFP’ from incompatible pointer type [-Wincompatible-pointer-types]
       { result = SDL_RWFromFP(x0, x1); }
                               ^~
    In file included from /usr/include/SDL2/SDL_audio.h:36:0,
                     from /usr/include/SDL2/SDL.h:36,
                     from ./tcod/cffi.h:5,
                     from build/temp.linux-x86_64-3.6/tcod._libtcod.c:482:
    /usr/include/SDL2/SDL_rwops.h:157:36: note: expected ‘FILE * {aka struct _IO_FILE *}’ but argument is of type ‘int *’
     extern DECLSPEC SDL_RWops *SDLCALL SDL_RWFromFP(FILE * fp,
                                        ^~~~~~~~~~~~
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/sys_sdl_img_png.c -o build/temp.linux-x86_64-3.6/libtcod/src/sys_sdl_img_png.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/list_c.c -o build/temp.linux-x86_64-3.6/libtcod/src/list_c.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/sys_sdl_img_bmp.c -o build/temp.linux-x86_64-3.6/libtcod/src/sys_sdl_img_bmp.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/tree_c.c -o build/temp.linux-x86_64-3.6/libtcod/src/tree_c.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/fov_recursive_shadowcasting.c -o build/temp.linux-x86_64-3.6/libtcod/src/fov_recursive_shadowcasting.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/console_rexpaint.c -o build/temp.linux-x86_64-3.6/libtcod/src/console_rexpaint.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/heightmap_c.c -o build/temp.linux-x86_64-3.6/libtcod/src/heightmap_c.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/sys_sdl_c.c -o build/temp.linux-x86_64-3.6/libtcod/src/sys_sdl_c.o-I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    libtcod/src/sys_sdl_c.c: In function ‘TCOD_sys_save_bitmap’:
    libtcod/src/sys_sdl_c.c:788:36: warning: implicit declaration of function ‘strcasestr’; did you mean ‘strcasecmp’? [-Wimplicit-function-declaration]
      while ( img->extension != NULL && strcasestr(filename,img->extension) == NULL ) img++;
                                        ^~~~~~~~~~
                                        strcasecmp
    libtcod/src/sys_sdl_c.c:788:72: warning: comparison between pointer and integer
      while ( img->extension != NULL && strcasestr(filename,img->extension) == NULL ) img++;
                                                                            ^~
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/bresenham_c.c -o build/temp.linux-x86_64-3.6/libtcod/src/bresenham_c.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/bsp_c.c -o build/temp.linux-x86_64-3.6/libtcod/src/bsp_c.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/console_c.c -o build/temp.linux-x86_64-3.6/libtcod/src/console_c.o-I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/color_c.c -o build/temp.linux-x86_64-3.6/libtcod/src/color_c.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/txtfield_c.c -o build/temp.linux-x86_64-3.6/libtcod/src/txtfield_c.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/wrappers.c -o build/temp.linux-x86_64-3.6/libtcod/src/wrappers.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/sys_c.c -o build/temp.linux-x86_64-3.6/libtcod/src/sys_c.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/noise_c.c -o build/temp.linux-x86_64-3.6/libtcod/src/noise_c.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/fov_diamond_raycasting.c -o build/temp.linux-x86_64-3.6/libtcod/src/fov_diamond_raycasting.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/fov_c.c -o build/temp.linux-x86_64-3.6/libtcod/src/fov_c.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/parser_c.c -o build/temp.linux-x86_64-3.6/libtcod/src/parser_c.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/sys_opengl_c.c -o build/temp.linux-x86_64-3.6/libtcod/src/sys_opengl_c.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/namegen_c.c -o build/temp.linux-x86_64-3.6/libtcod/src/namegen_c.o-I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/lex_c.c -o build/temp.linux-x86_64-3.6/libtcod/src/lex_c.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    libtcod/src/lex_c.c: In function ‘TCOD_lex_parse_until_token_type’:
    libtcod/src/lex_c.c:650:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
             if ( token == tokenType )
             ^~
    libtcod/src/lex_c.c:652:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
          token = TCOD_lex_parse(lex);
          ^~~~~
    libtcod/src/lex_c.c: In function ‘TCOD_lex_parse_until_token_value’:
    libtcod/src/lex_c.c:665:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
             if ( strcmp( lex->tok, tokenValue ) == 0
             ^~
    libtcod/src/lex_c.c:668:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
          token = TCOD_lex_parse(lex);
          ^~~~~
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/path_c.c -o build/temp.linux-x86_64-3.6/libtcod/src/path_c.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/sys_sdl2_c.c -o build/temp.linux-x86_64-3.6/libtcod/src/sys_sdl2_c.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/image_c.c -o build/temp.linux-x86_64-3.6/libtcod/src/image_c.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/fov_permissive2.c -o build/temp.linux-x86_64-3.6/libtcod/src/fov_permissive2.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/fov_restrictive.c -o build/temp.linux-x86_64-3.6/libtcod/src/fov_restrictive.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/fov_circular_raycasting.c -o build/temp.linux-x86_64-3.6/libtcod/src/fov_circular_raycasting.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/mersenne_c.c -o build/temp.linux-x86_64-3.6/libtcod/src/mersenne_c.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/zip_c.c -o build/temp.linux-x86_64-3.6/libtcod/src/zip_c.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    libtcod/src/zip_c.c: In function ‘TCOD_zip_put_int’:
    libtcod/src/zip_c.c:92:30: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
       TCOD_list_push(zip->buffer,(void *)val);
                                  ^
    libtcod/src/zip_c.c: In function ‘TCOD_zip_put_float’:
    libtcod/src/zip_c.c:107:2: warning: dereferencing type-punned pointer will break strict-aliasing rules[-Wstrict-aliasing]
      TCOD_zip_put_int(pzip,* (int *)(&val) );
      ^~~~~~~~~~~~~~~~
    libtcod/src/zip_c.c: In function ‘TCOD_zip_get_int’:
    libtcod/src/zip_c.c:260:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
       int i=(int)TCOD_list_get(zip->buffer,zip->offset);
             ^
    libtcod/src/zip_c.c: In function ‘TCOD_zip_get_float’:
    libtcod/src/zip_c.c:279:2: warning: dereferencing type-punned pointer will break strict-aliasing rules[-Wstrict-aliasing]
      return *(float *)(&i);
      ^~~~~~
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/zlib/gzread.c -o build/temp.linux-x86_64-3.6/libtcod/src/zlib/gzread.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    libtcod/src/zlib/gzread.c: In function ‘gz_load’:
    libtcod/src/zlib/gzread.c:30:15: warning: implicit declaration of function ‘read’; did you mean ‘fread’? [-Wimplicit-function-declaration]
             ret = read(state->fd, buf + *have, len - *have);
                   ^~~~
                   fread
    libtcod/src/zlib/gzread.c: In function ‘gzclose_r’:
    libtcod/src/zlib/gzread.c:591:11: warning: implicit declaration of function ‘close’; did you mean ‘pclose’? [-Wimplicit-function-declaration]
         ret = close(state->fd);
               ^~~~~
               pclose
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/zlib/inflate.c -o build/temp.linux-x86_64-3.6/libtcod/src/zlib/inflate.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/zlib/trees.c -o build/temp.linux-x86_64-3.6/libtcod/src/zlib/trees.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/zlib/adler32.c -o build/temp.linux-x86_64-3.6/libtcod/src/zlib/adler32.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/zlib/inffast.c -o build/temp.linux-x86_64-3.6/libtcod/src/zlib/inffast.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/zlib/gzwrite.c -o build/temp.linux-x86_64-3.6/libtcod/src/zlib/gzwrite.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    libtcod/src/zlib/gzwrite.c: In function ‘gz_comp’:
    libtcod/src/zlib/gzwrite.c:84:15: warning: implicit declaration of function ‘write’; did you mean ‘fwrite’? [-Wimplicit-function-declaration]
             got = write(state->fd, strm->next_in, strm->avail_in);
                   ^~~~~
                   fwrite
    libtcod/src/zlib/gzwrite.c: In function ‘gzclose_w’:
    libtcod/src/zlib/gzwrite.c:573:9: warning: implicit declaration of function ‘close’; did you mean ‘pclose’? [-Wimplicit-function-declaration]
         if (close(state->fd) == -1)
             ^~~~~
             pclose
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/zlib/compress.c -o build/temp.linux-x86_64-3.6/libtcod/src/zlib/compress.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/zlib/uncompr.c -o build/temp.linux-x86_64-3.6/libtcod/src/zlib/uncompr.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/zlib/infback.c -o build/temp.linux-x86_64-3.6/libtcod/src/zlib/infback.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/zlib/crc32.c -o build/temp.linux-x86_64-3.6/libtcod/src/zlib/crc32.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/zlib/gzlib.c -o build/temp.linux-x86_64-3.6/libtcod/src/zlib/gzlib.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    libtcod/src/zlib/gzlib.c: In function ‘gz_open’:
    libtcod/src/zlib/gzlib.c:14:17: warning: implicit declaration of function ‘lseek’; did you mean ‘fseek’? [-Wimplicit-function-declaration]
     #  define LSEEK lseek
                     ^
    libtcod/src/zlib/gzlib.c:256:24: note: in expansion of macro ‘LSEEK’
             state->start = LSEEK(state->fd, 0, SEEK_CUR);
                            ^~~~~
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/zlib/zutil.c -o build/temp.linux-x86_64-3.6/libtcod/src/zlib/zutil.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/zlib/inftrees.c -o build/temp.linux-x86_64-3.6/libtcod/src/zlib/inftrees.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/zlib/gzclose.c -o build/temp.linux-x86_64-3.6/libtcod/src/zlib/gzclose.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/zlib/deflate.c -o build/temp.linux-x86_64-3.6/libtcod/src/zlib/deflate.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/png/lodepng.c -o build/temp.linux-x86_64-3.6/libtcod/src/png/lodepng.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c tcod/tdl.c -o build/temp.linux-x86_64-3.6/tcod/tdl.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c tcod/noise.c -o build/temp.linux-x86_64-3.6/tcod/noise.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c tcod/path.c -o build/temp.linux-x86_64-3.6/tcod/path.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -specs=/usr/share/dpkg/no-pie-link.specs -Wl,-z,relro -Wl,-Bsymbolic-functions -specs=/usr/share/dpkg/no-pie-link.specs -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.6/build/temp.linux-x86_64-3.6/tcod._libtcod.o build/temp.linux-x86_64-3.6/libtcod/src/sys_sdl_img_png.o build/temp.linux-x86_64-3.6/libtcod/src/list_c.o build/temp.linux-x86_64-3.6/libtcod/src/sys_sdl_img_bmp.o build/temp.linux-x86_64-3.6/libtcod/src/tree_c.o build/temp.linux-x86_64-3.6/libtcod/src/fov_recursive_shadowcasting.o build/temp.linux-x86_64-3.6/libtcod/src/console_rexpaint.o build/temp.linux-x86_64-3.6/libtcod/src/heightmap_c.o build/temp.linux-x86_64-3.6/libtcod/src/sys_sdl_c.o build/temp.linux-x86_64-3.6/libtcod/src/bresenham_c.o build/temp.linux-x86_64-3.6/libtcod/src/bsp_c.o build/temp.linux-x86_64-3.6/libtcod/src/console_c.o build/temp.linux-x86_64-3.6/libtcod/src/color_c.o build/temp.linux-x86_64-3.6/libtcod/src/txtfield_c.o build/temp.linux-x86_64-3.6/libtcod/src/wrappers.o build/temp.linux-x86_64-3.6/libtcod/src/sys_c.o build/temp.linux-x86_64-3.6/libtcod/src/noise_c.o build/temp.linux-x86_64-3.6/libtcod/src/fov_diamond_raycasting.o build/temp.linux-x86_64-3.6/libtcod/src/fov_c.o build/temp.linux-x86_64-3.6/libtcod/src/parser_c.o build/temp.linux-x86_64-3.6/libtcod/src/sys_opengl_c.o build/temp.linux-x86_64-3.6/libtcod/src/namegen_c.o build/temp.linux-x86_64-3.6/libtcod/src/lex_c.o build/temp.linux-x86_64-3.6/libtcod/src/path_c.o build/temp.linux-x86_64-3.6/libtcod/src/sys_sdl2_c.o build/temp.linux-x86_64-3.6/libtcod/src/image_c.o build/temp.linux-x86_64-3.6/libtcod/src/fov_permissive2.o build/temp.linux-x86_64-3.6/libtcod/src/fov_restrictive.o build/temp.linux-x86_64-3.6/libtcod/src/fov_circular_raycasting.o build/temp.linux-x86_64-3.6/libtcod/src/mersenne_c.o build/temp.linux-x86_64-3.6/libtcod/src/zip_c.o build/temp.linux-x86_64-3.6/libtcod/src/zlib/gzread.o build/temp.linux-x86_64-3.6/libtcod/src/zlib/inflate.o build/temp.linux-x86_64-3.6/libtcod/src/zlib/trees.o build/temp.linux-x86_64-3.6/libtcod/src/zlib/adler32.o build/temp.linux-x86_64-3.6/libtcod/src/zlib/inffast.o build/temp.linux-x86_64-3.6/libtcod/src/zlib/gzwrite.o build/temp.linux-x86_64-3.6/libtcod/src/zlib/compress.o build/temp.linux-x86_64-3.6/libtcod/src/zlib/uncompr.o build/temp.linux-x86_64-3.6/libtcod/src/zlib/infback.o build/temp.linux-x86_64-3.6/libtcod/src/zlib/crc32.o build/temp.linux-x86_64-3.6/libtcod/src/zlib/gzlib.o build/temp.linux-x86_64-3.6/libtcod/src/zlib/zutil.o build/temp.linux-x86_64-3.6/libtcod/src/zlib/inftrees.o build/temp.linux-x86_64-3.6/libtcod/src/zlib/gzclose.o build/temp.linux-x86_64-3.6/libtcod/src/zlib/deflate.o build/temp.linux-x86_64-3.6/libtcod/src/png/lodepng.o build/temp.linux-x86_64-3.6/tcod/tdl.o build/temp.linux-x86_64-3.6/tcod/noise.o build/temp.linux-x86_64-3.6/tcod/path.o -lGL -lSDL2 -o build/lib.linux-x86_64-3.6/tcod/_libtcod.abi3.so -lSDL2 -flto -O3 -fopenmp
    /usr/include/SDL2/SDL_main.h:110:31: warning: type of ‘SDL_main’ does not match original declaration [-Wlto-type-mismatch]
     extern C_LINKAGE DECLSPEC int SDL_main(int argc, char *argv[]);
                                   ^
    tcod/tdl.c:7:6: note: return value type mismatch
     void SDL_main(void){};
          ^
    tcod/tdl.c:7:6: note: type ‘void’ should match type ‘int’
    tcod/tdl.c:7:6: note: ‘SDL_main’ was previously declared here
    /usr/bin/ld: /tmp/ccdDYZmH.ltrans0.ltrans.o: relocation R_X86_64_32S against symbol `SDL_sscanf' can not be used when making a shared object; recompile with -fPIC
    /usr/bin/ld: /tmp/ccdDYZmH.ltrans1.ltrans.o: relocation R_X86_64_32S against symbol `SDL_SetError' cannot be used when making a shared object; recompile with -fPIC
    /usr/bin/ld: /tmp/ccdDYZmH.ltrans2.ltrans.o: relocation R_X86_64_32S against hidden symbol `TCOD_LEX_names.lto_priv.3524' can not be used when making a shared object
    /usr/bin/ld: /tmp/ccdDYZmH.ltrans3.ltrans.o: relocation R_X86_64_32S against hidden symbol `key_status.lto_priv.40' can not be used when making a shared object
    /usr/bin/ld: /tmp/ccdDYZmH.ltrans4.ltrans.o: relocation R_X86_64_32S against symbol `SDL_LogInfo' can not be used when making a shared object; recompile with -fPIC
    /usr/bin/ld: /tmp/ccdDYZmH.ltrans5.ltrans.o: relocation R_X86_64_32S against symbol `TCOD_fatal' can not be used when making a shared object; recompile with -fPIC
    /usr/bin/ld: /tmp/ccdDYZmH.ltrans6.ltrans.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
    /usr/bin/ld: /tmp/ccdDYZmH.ltrans7.ltrans.o: relocation R_X86_64_32S against `.rodata' can not be usedwhen making a shared object; recompile with -fPIC
    /usr/bin/ld: /tmp/ccdDYZmH.ltrans8.ltrans.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
    /usr/bin/ld: /tmp/ccdDYZmH.ltrans9.ltrans.o: relocation R_X86_64_32 against hidden symbol `_cffi_externpy___pycall_sdl_hook.lto_priv.3527' can not be used when making a shared object
    /usr/bin/ld: /tmp/ccdDYZmH.ltrans10.ltrans.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
    /usr/bin/ld: /tmp/ccdDYZmH.ltrans11.ltrans.o: relocation R_X86_64_32S against symbol `_length_code' can not be used when making a shared object; recompile with -fPIC
    /usr/bin/ld: /tmp/ccdDYZmH.ltrans12.ltrans.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
    /usr/bin/ld: /tmp/ccdDYZmH.ltrans13.ltrans.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
    /usr/bin/ld: final link failed: Nonrepresentable section on output
    collect2: error: ld returned 1 exit status
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-r7rzoomn/tdl/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-d7j55i9m-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-r7rzoomn/tdl/

Create wheel for windows

>pip install tdl -U
Collecting tdl
  Downloading tdl-1.2.0.zip (4.1MB)
    100% |################################| 4.1MB 11kB/s
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 20, in <module>
      File "c:\users\user\appdata\local\temp2\pip-build-qovvzv\tdl\setup.py", line 17, in <module>
        open('CHANGELOG.rst', 'r').read()]),
    IOError: [Errno 2] No such file or directory: 'CHANGELOG.rst'

I see there is .exe file uploaded for Windows, but it will be easier to install using http://pythonwheels.com/

Problem loading SDL2 on Mac OS

Trying to install tcod for python 3 on mac os, but failing on import. I believe this is similar to the issue mentioned on reddit.

$ brew list sdl2
/usr/local/Cellar/sdl2/2.0.8/bin/sdl2-config
/usr/local/Cellar/sdl2/2.0.8/include/SDL2/ (72 files)
/usr/local/Cellar/sdl2/2.0.8/lib/libSDL2-2.0.0.dylib
/usr/local/Cellar/sdl2/2.0.8/lib/cmake/SDL2/sdl2-config.cmake
/usr/local/Cellar/sdl2/2.0.8/lib/pkgconfig/sdl2.pc
/usr/local/Cellar/sdl2/2.0.8/lib/ (4 other files)
/usr/local/Cellar/sdl2/2.0.8/share/aclocal/sdl2.m4

$ virtualenv -p $(which python3) tcod
Running virtualenv with interpreter /usr/local/bin/python3
Using base prefix '/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7'
/usr/local/lib/python3.7/site-packages/virtualenv.py:1041: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import imp
New python executable in /Users/maarten/tcod/bin/python3.7
Also creating executable in /Users/maarten/tcod/bin/python
Installing setuptools, pip, wheel...done.

$ source tcod/bin/activate

$ (tcod) pip3 install --no-cache-dir tcod
Collecting tcod
  Downloading https://files.pythonhosted.org/packages/21/ba/bde12211eb6911fa75a4eee418a9b2eaa91c3fa8fde9f935830255c7807e/tcod-6.0.5.tar.gz (687kB)
    100% |████████████████████████████████| 696kB 10.8MB/s
Collecting cffi<2,>=1.8.1 (from tcod)
  Downloading https://files.pythonhosted.org/packages/0b/ba/32835c9965d8a0090723e1d0b47373365525c4bd08c807b5efdc9fecbc99/cffi-1.11.5-cp37-cp37m-macosx_10_9_x86_64.whl (163kB)
    100% |████████████████████████████████| 163kB 11.7MB/s
Collecting numpy<2,>=1.10 (from tcod)
  Downloading https://files.pythonhosted.org/packages/f9/64/f47c172c2d2ee8907b5918ff7af7e52207f6bf4a57983e4474fcda728112/numpy-1.15.2-cp37-cp37m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (24.5MB)
    100% |████████████████████████████████| 24.5MB 17.0MB/s
Collecting pycparser (from cffi<2,>=1.8.1->tcod)
  Downloading https://files.pythonhosted.org/packages/68/9e/49196946aee219aead1290e00d1e7fdeab8567783e83e1b9ab5585e6206a/pycparser-2.19.tar.gz (158kB)
    100% |████████████████████████████████| 163kB 17.4MB/s
Installing collected packages: pycparser, cffi, numpy, tcod
  Running setup.py install for pycparser ... done
  Running setup.py install for tcod ... done
Successfully installed cffi-1.11.5 numpy-1.15.2 pycparser-2.19 tcod-6.0.5

$ (tcod) python3 -c "import tcod"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/maarten/tcod/lib/python3.7/site-packages/tcod/__init__.py", line 24, in <module>
    from tcod.libtcodpy import *
  File "/Users/maarten/tcod/lib/python3.7/site-packages/tcod/libtcodpy.py", line 14, in <module>
    from tcod.libtcod import *
  File "/Users/maarten/tcod/lib/python3.7/site-packages/tcod/libtcod.py", line 61, in <module>
    from tcod._libtcod import lib, ffi
ImportError: dlopen(/Users/maarten/tcod/lib/python3.7/site-packages/tcod/_libtcod.abi3.so, 2): Library not loaded: @rpath/SDL2.framework/Versions/A/SDL2
  Referenced from: /Users/maarten/tcod/lib/python3.7/site-packages/tcod/_libtcod.abi3.so
  Reason: image not found

$ (tcod) ls ~/tcod/lib/python3.7/site-packages/tcod/.dylibs
ls: /Users/maarten/tcod/lib/python3.7/site-packages/tcod/.dylibs: No such file or directory

Question: Is TDL now abandoned?

The new documentation linked in this repo states TDL is now a legacy API. Meanwhile some of the examples still use import tdl

Packaging with PyInstaller

I recently tried to package my TDL game with PyInstaller, and ran into several issues. Has anyone managed to get this working? I found some PyInstaller+Libtcod tutorials, but they don't seem to work with TDL.

If not, maybe this issue can capture some of the problems and solutions to get this to work. Or does this issue belong on the PyInstaller repo? It seems like it should be here, because it's a question of "how to make this work with PyInstaller." Let me know if I should close it.

  1. SDL2.dll is not automatically included in the package; you get this output: WARNING: lib not found: SDL2.dll dependency of d:\python\python36-32\lib\site-packages\tcod\_libtcod.cp36-win32.pyd.

When you run the executable, you get a runtime error: ImportError: DLL load failed: The specified module could not be found.

This can be remedied by adding it to the binaries section of the spec file: ('C:\path\to\tdl\sdl2.dll', '')

I seem to be running into encoding issues with my spec file right now, so I'll edit in the second issue once I can again get this to work.

Can't Get TDL Setup on Travis for Unit Testing

I have a project running here that I built with TDL. I recently wrote some unit tests that execute TDL code (including mocking out some of the calls).

Everything works fine when I run the tests locally (other than a TDL window popping up and disappearing a few times, which I can live with). The problem is, I can't get these tests to run in Travis.

You can see my Travis builds here. I first tried installing SDL from source, and got errors like this:

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libsdl2-dev : Depends: libegl1-mesa-dev
Depends: libgles2-mesa-dev
E: Unable to correct problems, you have held broken packages.

I spent a lot of time looking for solutions, and eventually abandoned this approach. I then found these instructions on the TDL repo on GitHub, which suggest using binaries like so:

$ sudo add-apt-repository ppa:4b796c65/ppa
$ sudo apt-get update
$ sudo apt-get install python-tdl python3-tdl

I added these to my build, but I now get an error about the PPA uses a weak digest (SHA-1) (see this build):

Reading package lists... Done
W: The repository 'http://ppa.launchpad.net/4b796c65/ppa/ubuntu trusty Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: http://ppa.launchpad.net/couchdb/stable/ubuntu/dists/trusty/Release.gpg: Signature by key 15866BAFD9BCC4F3C1E0DFC7D69548E1C17EAB57 uses weak digest algorithm (SHA1)
E: Failed to fetch http://ppa.launchpad.net/4b796c65/ppa/ubuntu/dists/trusty/main/binary-amd64/Packages 404 Not Found
E: Failed to fetch http://ppa.launchpad.net/4b796c65/ppa/ubuntu/dists/trusty/main/binary-i386/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
The command "sudo apt-get update" failed and exited with 100 during .

It doesn't seem like there's a way to force it to install.

Is there a way to get this to run on Travis-CI? Will my unit tests run if they exercise TDL code? Or should I abandon this approach and simply exclude all TDL code from my unit tests?

Failed building wheel for tdl (ubuntu 16.04)

When I run the 'pip3 install tdl' command I get an error of 'Failed building wheel for tdl (ubuntu 16.04)'

Failed building wheel for tdl (ubuntu 16.04)

pip 9.0.1 from /usr/local/lib/python3.5/dist-packages (python 3.5)
tim@tim-Galago-UltraPro:~$ pip3 install tdl
Collecting tdl
Using cached tdl-4.1.1.tar.gz
Requirement already satisfied: cffi<2,>=1.8.1 in ./.local/lib/python3.5/site-packages (from tdl)
Requirement already satisfied: numpy<2,>=1.10 in ./.local/lib/python3.5/site-packages (from tdl)
Requirement already satisfied: pycparser in ./.local/lib/python3.5/site-packages (from cffi<2,>=1.8.1->tdl)
Building wheels for collected packages: tdl
Running setup.py bdist_wheel for tdl ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-ucu9poc_/tdl/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/tmpqd1hw3cgpip-wheel- --python-tag cp35:
running bdist_wheel
error: error in setup.cfg: command 'bdist_wheel' has no such option 'py_limited_api'


Failed building wheel for tdl
Running setup.py clean for tdl
Failed to build tdl
Installing collected packages: tdl
Running setup.py install for tdl ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-ucu9poc_/tdl/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-0uvs6i9d-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.5
creating build/lib.linux-x86_64-3.5/tdl
copying tdl/event.py -> build/lib.linux-x86_64-3.5/tdl
copying tdl/map.py -> build/lib.linux-x86_64-3.5/tdl
copying tdl/version.py -> build/lib.linux-x86_64-3.5/tdl
copying tdl/init.py -> build/lib.linux-x86_64-3.5/tdl
copying tdl/noise.py -> build/lib.linux-x86_64-3.5/tdl
copying tdl/style.py -> build/lib.linux-x86_64-3.5/tdl
creating build/lib.linux-x86_64-3.5/tcod
copying tcod/map.py -> build/lib.linux-x86_64-3.5/tcod
copying tcod/libtcodpy.py -> build/lib.linux-x86_64-3.5/tcod
copying tcod/libtcod.py -> build/lib.linux-x86_64-3.5/tcod
copying tcod/version.py -> build/lib.linux-x86_64-3.5/tcod
copying tcod/init.py -> build/lib.linux-x86_64-3.5/tcod
copying tcod/tcod.py -> build/lib.linux-x86_64-3.5/tcod
copying tcod/noise.py -> build/lib.linux-x86_64-3.5/tcod
copying tcod/path.py -> build/lib.linux-x86_64-3.5/tcod
copying tcod/bsp.py -> build/lib.linux-x86_64-3.5/tcod
copying tcod/random.py -> build/lib.linux-x86_64-3.5/tcod
copying tcod/color.py -> build/lib.linux-x86_64-3.5/tcod
copying tcod/console.py -> build/lib.linux-x86_64-3.5/tcod
copying tcod/image.py -> build/lib.linux-x86_64-3.5/tcod
copying tdl/terminal8x8.png -> build/lib.linux-x86_64-3.5/tdl
running build_ext
generating cffi module 'build/temp.linux-x86_64-3.5/tcod._libtcod.c'
creating build/temp.linux-x86_64-3.5
building 'tcod._libtcod' extension
creating build/temp.linux-x86_64-3.5/build
creating build/temp.linux-x86_64-3.5/build/temp.linux-x86_64-3.5
creating build/temp.linux-x86_64-3.5/libtcod
creating build/temp.linux-x86_64-3.5/libtcod/src
creating build/temp.linux-x86_64-3.5/libtcod/src/png
creating build/temp.linux-x86_64-3.5/libtcod/src/zlib
creating build/temp.linux-x86_64-3.5/tcod
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 -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.5m -c build/temp.linux-x86_64-3.5/tcod._libtcod.c -o build/temp.linux-x86_64-3.5/build/temp.linux-x86_64-3.5/tcod._libtcod.o -I/usr/local/include/SDL2 -D_REENTRANT -flto -fopenmp
build/temp.linux-x86_64-3.5/tcod._libtcod.c: In function ‘_cffi_const_SDL_PIXELFORMAT_RGBA32’:
build/temp.linux-x86_64-3.5/tcod._libtcod.c:3824:12: error: ‘SDL_PIXELFORMAT_RGBA32’ undeclared (first use in this function)
int n = (SDL_PIXELFORMAT_RGBA32) <= 0;
^
build/temp.linux-x86_64-3.5/tcod._libtcod.c:3824:12: note: each undeclared identifier is reported only once for each function it appears in
build/temp.linux-x86_64-3.5/tcod._libtcod.c: In function ‘_cffi_const_SDL_PIXELFORMAT_ARGB32’:
build/temp.linux-x86_64-3.5/tcod._libtcod.c:3831:12: error: ‘SDL_PIXELFORMAT_ARGB32’ undeclared (first use in this function)
int n = (SDL_PIXELFORMAT_ARGB32) <= 0;
^
build/temp.linux-x86_64-3.5/tcod._libtcod.c: In function ‘_cffi_const_SDL_PIXELFORMAT_BGRA32’:
build/temp.linux-x86_64-3.5/tcod._libtcod.c:3838:12: error: ‘SDL_PIXELFORMAT_BGRA32’ undeclared (first use in this function)
int n = (SDL_PIXELFORMAT_BGRA32) <= 0;
^
build/temp.linux-x86_64-3.5/tcod._libtcod.c: In function ‘_cffi_const_SDL_PIXELFORMAT_ABGR32’:
build/temp.linux-x86_64-3.5/tcod._libtcod.c:3845:12: error: ‘SDL_PIXELFORMAT_ABGR32’ undeclared (first use in this function)
int n = (SDL_PIXELFORMAT_ABGR32) <= 0;
^
build/temp.linux-x86_64-3.5/tcod._libtcod.c: In function ‘_cffi_const_SDL_DROPTEXT’:
build/temp.linux-x86_64-3.5/tcod._libtcod.c:6577:12: error: ‘SDL_DROPTEXT’ undeclared (first use in this function)
int n = (SDL_DROPTEXT) <= 0;
^
build/temp.linux-x86_64-3.5/tcod._libtcod.c: In function ‘_cffi_const_SDL_DROPBEGIN’:
build/temp.linux-x86_64-3.5/tcod._libtcod.c:6584:12: error: ‘SDL_DROPBEGIN’ undeclared (first use in this function)
int n = (SDL_DROPBEGIN) <= 0;
^
build/temp.linux-x86_64-3.5/tcod._libtcod.c: In function ‘_cffi_const_SDL_DROPCOMPLETE’:
build/temp.linux-x86_64-3.5/tcod._libtcod.c:6591:12: error: ‘SDL_DROPCOMPLETE’ undeclared (first use in this function)
int n = (SDL_DROPCOMPLETE) <= 0;
^
build/temp.linux-x86_64-3.5/tcod._libtcod.c: In function ‘_cffi_const_SDL_WINDOWEVENT_TAKE_FOCUS’:
build/temp.linux-x86_64-3.5/tcod._libtcod.c:9523:12: error: ‘SDL_WINDOWEVENT_TAKE_FOCUS’ undeclared (first use in this function)
int n = (SDL_WINDOWEVENT_TAKE_FOCUS) <= 0;
^
build/temp.linux-x86_64-3.5/tcod._libtcod.c: In function ‘_cffi_const_SDL_WINDOWEVENT_HIT_TEST’:
build/temp.linux-x86_64-3.5/tcod._libtcod.c:9530:12: error: ‘SDL_WINDOWEVENT_HIT_TEST’ undeclared (first use in this function)
int n = (SDL_WINDOWEVENT_HIT_TEST) <= 0;
^
build/temp.linux-x86_64-3.5/tcod._libtcod.c: In function ‘_cffi_const_SDL_WINDOW_ALWAYS_ON_TOP’:
build/temp.linux-x86_64-3.5/tcod._libtcod.c:9642:12: error: ‘SDL_WINDOW_ALWAYS_ON_TOP’ undeclared (first use in this function)
int n = (SDL_WINDOW_ALWAYS_ON_TOP) <= 0;
^
build/temp.linux-x86_64-3.5/tcod._libtcod.c: In function ‘_cffi_const_SDL_WINDOW_SKIP_TASKBAR’:
build/temp.linux-x86_64-3.5/tcod._libtcod.c:9649:12: error: ‘SDL_WINDOW_SKIP_TASKBAR’ undeclared (first use in this function)
int n = (SDL_WINDOW_SKIP_TASKBAR) <= 0;
^
build/temp.linux-x86_64-3.5/tcod._libtcod.c: In function ‘_cffi_const_SDL_WINDOW_UTILITY’:
build/temp.linux-x86_64-3.5/tcod._libtcod.c:9656:12: error: ‘SDL_WINDOW_UTILITY’ undeclared (first use in this function)
int n = (SDL_WINDOW_UTILITY) <= 0;
^
build/temp.linux-x86_64-3.5/tcod._libtcod.c: In function ‘_cffi_const_SDL_WINDOW_TOOLTIP’:
build/temp.linux-x86_64-3.5/tcod._libtcod.c:9663:12: error: ‘SDL_WINDOW_TOOLTIP’ undeclared (first use in this function)
int n = (SDL_WINDOW_TOOLTIP) <= 0;
^
build/temp.linux-x86_64-3.5/tcod._libtcod.c: In function ‘_cffi_const_SDL_WINDOW_POPUP_MENU’:
build/temp.linux-x86_64-3.5/tcod._libtcod.c:9670:12: error: ‘SDL_WINDOW_POPUP_MENU’ undeclared (first use in this function)
int n = (SDL_WINDOW_POPUP_MENU) <= 0;
^
build/temp.linux-x86_64-3.5/tcod._libtcod.c: In function ‘_cffi_d_SDL_CreateRGBSurfaceWithFormat’:
build/temp.linux-x86_64-3.5/tcod._libtcod.c:15569:10: warning: implicit declaration of function ‘SDL_CreateRGBSurfaceWithFormat’ [-Wimplicit-function-declaration]
return SDL_CreateRGBSurfaceWithFormat(x0, x1, x2, x3, x4);
^
build/temp.linux-x86_64-3.5/tcod._libtcod.c:15569:10: warning: return makes pointer from integer without a cast [-Wint-conversion]
build/temp.linux-x86_64-3.5/tcod._libtcod.c: In function ‘_cffi_f_SDL_CreateRGBSurfaceWithFormat’:
build/temp.linux-x86_64-3.5/tcod._libtcod.c:15612:12: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
{ result = SDL_CreateRGBSurfaceWithFormat(x0, x1, x2, x3, x4); }
^
build/temp.linux-x86_64-3.5/tcod._libtcod.c: In function ‘_cffi_d_SDL_CreateRGBSurfaceWithFormatFrom’:
build/temp.linux-x86_64-3.5/tcod._libtcod.c:15625:10: warning: implicit declaration of function ‘SDL_CreateRGBSurfaceWithFormatFrom’ [-Wimplicit-function-declaration]
return SDL_CreateRGBSurfaceWithFormatFrom(x0, x1, x2, x3, x4, x5);
^
build/temp.linux-x86_64-3.5/tcod._libtcod.c:15625:10: warning: return makes pointer from integer without a cast [-Wint-conversion]
build/temp.linux-x86_64-3.5/tcod._libtcod.c: In function ‘_cffi_f_SDL_CreateRGBSurfaceWithFormatFrom’:
build/temp.linux-x86_64-3.5/tcod._libtcod.c:15682:12: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
{ result = SDL_CreateRGBSurfaceWithFormatFrom(x0, x1, x2, x3, x4, x5); }
^
build/temp.linux-x86_64-3.5/tcod._libtcod.c: In function ‘_cffi_d_SDL_DequeueAudio’:
build/temp.linux-x86_64-3.5/tcod._libtcod.c:16265:10: warning: implicit declaration of function ‘SDL_DequeueAudio’ [-Wimplicit-function-declaration]
return SDL_DequeueAudio(x0, x1, x2);
^
build/temp.linux-x86_64-3.5/tcod._libtcod.c: In function ‘_cffi_d_SDL_GetDisplayUsableBounds’:
build/temp.linux-x86_64-3.5/tcod._libtcod.c:19428:10: warning: implicit declaration of function ‘SDL_GetDisplayUsableBounds’ [-Wimplicit-function-declaration]
return SDL_GetDisplayUsableBounds(x0, x1);
^
build/temp.linux-x86_64-3.5/tcod._libtcod.c: In function ‘_cffi_d_SDL_GetHintBoolean’:
build/temp.linux-x86_64-3.5/tcod._libtcod.c:19664:10: warning: implicit declaration of function ‘SDL_GetHintBoolean’ [-Wimplicit-function-declaration]
return SDL_GetHintBoolean(x0, x1);
^
build/temp.linux-x86_64-3.5/tcod._libtcod.c: In function ‘_cffi_d_SDL_GetWindowBordersSize’:
build/temp.linux-x86_64-3.5/tcod._libtcod.c:21728:10: warning: implicit declaration of function ‘SDL_GetWindowBordersSize’ [-Wimplicit-function-declaration]
return SDL_GetWindowBordersSize(x0, x1, x2, x3, x4);
^
build/temp.linux-x86_64-3.5/tcod._libtcod.c: In function ‘_cffi_d_SDL_GetWindowOpacity’:
build/temp.linux-x86_64-3.5/tcod._libtcod.c:22345:10: warning: implicit declaration of function ‘SDL_GetWindowOpacity’ [-Wimplicit-function-declaration]
return SDL_GetWindowOpacity(x0, x1);
^
build/temp.linux-x86_64-3.5/tcod._libtcod.c: In function ‘_cffi_d_SDL_RWFromFP’:
build/temp.linux-x86_64-3.5/tcod._libtcod.c:27411:23: warning: passing argument 1 of ‘SDL_RWFromFP’ from incompatible pointer type [-Wincompatible-pointer-types]
return SDL_RWFromFP(x0, x1);
^
In file included from /usr/include/SDL2/SDL_audio.h:36:0,
from /usr/include/SDL2/SDL.h:36,
from ./tcod/cffi.h:5,
from build/temp.linux-x86_64-3.5/tcod._libtcod.c:482:
/usr/include/SDL2/SDL_rwops.h:157:36: note: expected ‘FILE * {aka struct _IO_FILE *}’ but argument is of type ‘int *’
extern DECLSPEC SDL_RWops *SDLCALL SDL_RWFromFP(FILE * fp,
^
build/temp.linux-x86_64-3.5/tcod._libtcod.c: In function ‘_cffi_f_SDL_RWFromFP’:
build/temp.linux-x86_64-3.5/tcod._libtcod.c:27443:27: warning: passing argument 1 of ‘SDL_RWFromFP’ from incompatible pointer type [-Wincompatible-pointer-types]
{ result = SDL_RWFromFP(x0, x1); }
^
In file included from /usr/include/SDL2/SDL_audio.h:36:0,
from /usr/include/SDL2/SDL.h:36,
from ./tcod/cffi.h:5,
from build/temp.linux-x86_64-3.5/tcod._libtcod.c:482:
/usr/include/SDL2/SDL_rwops.h:157:36: note: expected ‘FILE * {aka struct _IO_FILE *}’ but argument is of type ‘int *’
extern DECLSPEC SDL_RWops SDLCALL SDL_RWFromFP(FILE * fp,
^
build/temp.linux-x86_64-3.5/tcod._libtcod.c: In function ‘_cffi_d_SDL_RenderGetIntegerScale’:
build/temp.linux-x86_64-3.5/tcod._libtcod.c:28656:10: warning: implicit declaration of function ‘SDL_RenderGetIntegerScale’ [-Wimplicit-function-declaration]
return SDL_RenderGetIntegerScale(x0);
^
build/temp.linux-x86_64-3.5/tcod._libtcod.c: In function ‘_cffi_d_SDL_RenderSetIntegerScale’:
build/temp.linux-x86_64-3.5/tcod._libtcod.c:29080:10: warning: implicit declaration of function ‘SDL_RenderSetIntegerScale’ [-Wimplicit-function-declaration]
return SDL_RenderSetIntegerScale(x0, x1);
^
build/temp.linux-x86_64-3.5/tcod._libtcod.c: In function ‘_cffi_d_SDL_SetWindowInputFocus’:
build/temp.linux-x86_64-3.5/tcod._libtcod.c:31449:10: warning: implicit declaration of function ‘SDL_SetWindowInputFocus’ [-Wimplicit-function-declaration]
return SDL_SetWindowInputFocus(x0);
^
build/temp.linux-x86_64-3.5/tcod._libtcod.c: In function ‘_cffi_d_SDL_SetWindowModalFor’:
build/temp.linux-x86_64-3.5/tcod._libtcod.c:31589:10: warning: implicit declaration of function ‘SDL_SetWindowModalFor’ [-Wimplicit-function-declaration]
return SDL_SetWindowModalFor(x0, x1);
^
build/temp.linux-x86_64-3.5/tcod._libtcod.c: In function ‘_cffi_d_SDL_SetWindowOpacity’:
build/temp.linux-x86_64-3.5/tcod._libtcod.c:31642:10: warning: implicit declaration of function ‘SDL_SetWindowOpacity’ [-Wimplicit-function-declaration]
return SDL_SetWindowOpacity(x0, x1);
^
build/temp.linux-x86_64-3.5/tcod._libtcod.c: In function ‘_cffi_d_SDL_SetWindowResizable’:
build/temp.linux-x86_64-3.5/tcod._libtcod.c:31740:3: warning: implicit declaration of function ‘SDL_SetWindowResizable’ [-Wimplicit-function-declaration]
SDL_SetWindowResizable(x0, x1);
^
build/temp.linux-x86_64-3.5/tcod._libtcod.c: In function ‘_cffi_checkfld__SDL_DropEvent’:
build/temp.linux-x86_64-3.5/tcod._libtcod.c:61601:12: error: ‘SDL_DropEvent {aka struct SDL_DropEvent}’ has no member named ‘windowID’
(void)((p->windowID) | 0); /
check that 'SDL_DropEvent.windowID' is an integer */
^
In file included from /usr/include/iconv.h:23:0,
from /usr/include/SDL2/SDL_stdinc.h:87,
from /usr/include/SDL2/SDL_main.h:25,
from /usr/include/SDL2/SDL.h:32,
from ./tcod/cffi.h:5,
from build/temp.linux-x86_64-3.5/tcod._libtcod.c:482:
build/temp.linux-x86_64-3.5/tcod._libtcod.c: At top level:
build/temp.linux-x86_64-3.5/tcod._libtcod.c:65598:17: error: ‘SDL_DropEvent {aka struct SDL_DropEvent}’ has no member named ‘windowID’
{ "windowID", offsetof(SDL_DropEvent, windowID),
^
build/temp.linux-x86_64-3.5/tcod._libtcod.c:65599:44: error: ‘SDL_DropEvent {aka struct SDL_DropEvent}’ has no member named ‘windowID’
sizeof(((SDL_DropEvent *)0)->windowID),
^
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

----------------------------------------

Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-ucu9poc_/tdl/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-0uvs6i9d-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-ucu9poc_/tdl/

Pip Installation Fails When Numpy is Missing

When I run python -m pip install tdl on Arch Linux, the install fails with

Collecting tdl
  Using cached https://files.pythonhosted.org/packages/e1/72/15182d49482ea264fae6344aec13a2b0a6859b36d950de470e3f05fce42f/tdl-4.4.0.tar.gz
    Complete output from command python setup.py egg_info:
    fatal: not a git repository (or any parent up to mount point /)
    Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
    warning: no previously-included files matching 'yacctab.*' found under directory 'tests'
    warning: no previously-included files matching 'lextab.*' found under directory 'tests'
    warning: no previously-included files matching 'yacctab.*' found under directory 'examples'
    warning: no previously-included files matching 'lextab.*' found under directory 'examples'
    zip_safe flag not set; analyzing archive contents...
    pycparser.ply.__pycache__.lex.cpython-36: module references __file__
    pycparser.ply.__pycache__.lex.cpython-36: module MAY be using inspect.getsourcefile
    pycparser.ply.__pycache__.yacc.cpython-36: module references __file__
    pycparser.ply.__pycache__.yacc.cpython-36: module MAY be using inspect.getsourcefile
    pycparser.ply.__pycache__.yacc.cpython-36: module MAY be using inspect.stack
    pycparser.ply.__pycache__.ygen.cpython-36: module references __file__
    
    Installed /tmp/pip-install-17t1mqqt/tdl/.eggs/pycparser-2.18-py3.6.egg
    Searching for cffi<2,>=1.8.1
    Reading https://pypi.org/simple/cffi/
    Downloading https://files.pythonhosted.org/packages/6d/c0/47db8f624f3e4e2f3f27be03a93379d1ba16a1450a7b1aacfa0366e2c0dd/cffi-1.11.5-cp36-cp36m-manylinux1_x86_64.whl#sha256=770f3782b31f50b68627e22f91cb182c48c47c02eb405fd689472aa7b7aa16dc
    Best match: cffi 1.11.5
    Processing cffi-1.11.5-cp36-cp36m-manylinux1_x86_64.whl
    Installing cffi-1.11.5-cp36-cp36m-manylinux1_x86_64.whl to /tmp/pip-install-17t1mqqt/tdl/.eggs
    writing requirements to /tmp/pip-install-17t1mqqt/tdl/.eggs/cffi-1.11.5-py3.6-linux-x86_64.egg/EGG-INFO/requires.txt
    
    Installed /tmp/pip-install-17t1mqqt/tdl/.eggs/cffi-1.11.5-py3.6-linux-x86_64.egg
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-17t1mqqt/tdl/setup.py", line 113, in <module>
        license='Simplified BSD License',
      File "/usr/lib/python3.6/site-packages/setuptools/__init__.py", line 129, in setup
        return distutils.core.setup(**attrs)
      File "/usr/lib/python3.6/distutils/core.py", line 108, in setup
        _setup_distribution = dist = klass(attrs)
      File "/usr/lib/python3.6/site-packages/setuptools/dist.py", line 370, in __init__
        k: v for k, v in attrs.items()
      File "/usr/lib/python3.6/distutils/dist.py", line 281, in __init__
        self.finalize_options()
      File "/usr/lib/python3.6/site-packages/setuptools/dist.py", line 529, in finalize_options
        ep.load()(self, ep.name, value)
      File "/tmp/pip-install-17t1mqqt/tdl/.eggs/cffi-1.11.5-py3.6-linux-x86_64.egg/cffi/setuptools_ext.py", line 204, in cffi_modules
        add_cffi_module(dist, cffi_module)
      File "/tmp/pip-install-17t1mqqt/tdl/.eggs/cffi-1.11.5-py3.6-linux-x86_64.egg/cffi/setuptools_ext.py", line 49, in add_cffi_module
        execfile(build_file_name, mod_vars)
      File "/tmp/pip-install-17t1mqqt/tdl/.eggs/cffi-1.11.5-py3.6-linux-x86_64.egg/cffi/setuptools_ext.py", line 25, in execfile
        exec(code, glob, glob)
      File "build_libtcod.py", line 8, in <module>
        import numpy
    ModuleNotFoundError: No module named 'numpy'
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-17t1mqqt/tdl/

Installing numpy through pacman allows tdl to be installed through pip.

User issue

Hi,

I use PyCharm on Windows 10 and I try to use TDL and got this error :

Traceback (most recent call last):
File "C:/Users/GigSim/Documents/Python/RLFood/engine.py", line 1, in
import tdl
File "C:\Users\GigSim\Documents\Python\RLFood\venv\lib\site-packages\tdl_init_.py", line 65, in
from tcod import ffi as ffi
File "C:\Users\GigSim\Documents\Python\RLFood\venv\lib\site-packages\tcod_init
.py", line 20, in
from tcod.libtcodpy import *
File "C:\Users\GigSim\Documents\Python\RLFood\venv\lib\site-packages\tcod\libtcodpy.py", line 13, in
from tcod.libtcod import *
File "C:\Users\GigSim\Documents\Python\RLFood\venv\lib\site-packages\tcod\libtcod.py", line 89, in
from tcod._libtcod import lib, ffi
ImportError: DLL load failed: Le module spécifié est introuvable.

I try to run it in Linux = no issue.
I try to run it on another Windows machine = no issue.
I sure it is on my side (PyCharm), but cannot find the issue.
Can you put me on the right track?

Thank in advance.

Benchmark

I've tried to build cross-platform shim for OS console services, but failed. This module could save me days if not weeks. =) Is it possible to provide some benchmarks to see how fast is the wrapper compared to C library?

I am thinking about drawing some demo effect, or just filling the screen with colored pattern and scrolling top to bottom (waterfall). Maybe http://svn.python.org/projects/python/trunk/Demo/curses/README with FPS or similar metric. Characters per second?

TDL causing Python 3.6.1 crash on exit

I wrote a simple program to test out TDL but it causes Python to crash at the end of execution. It won't crash unless I've imported and initialized TDL, and the TDL functions all work just fine, it will just crash once it's finished executing. Here's the bare minimum required to reproduce it.

import tdl #this alone doesn't crash it
console = tdl.init(5, 5, title=None, fullscreen=False) # this causes the eventual crash
print("Exited main loop, closing game") #this prints successfully
# end of execution; crash occurs here

This is a fresh install of Python 3.6.1 and the only thing I have done to it is pip install tdl. This is on Windows 10 64-bit. I tried using all three available renderers (GLSL, SDL, and OPENGL), but it didn't make any difference. I researched it a bit and found this person who had the exact same issue, however I am not using (nor have ever used) IDLE; I'm using Notepad++ and tried running the Python script both from cmd.exe and directly from explorer by double-clicking the file.

Export libtcod constants at build-time.

Currently constants are exported at run-time. This is messing up several static analysis tools like pylint, and some autocomplete tools.

build_libtcod.py can be updated to write these constants to a module.

StopIteration is a Runtime Exception in Python 3.7

This line causes a problem in Python 3.7:
https://github.com/libtcod/python-tcod/blob/master/tdl/event.py#L426

PEP 479 changed the behavior. As a consequence, this bit of code needs to be refactored.

Traceback (most recent call last):
  File "C:\Python37\lib\site-packages\tdl\event.py", line 426, in _event_generator
    raise StopIteration()
StopIteration

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "engine.py", line 54, in <module>
    main()
  File "engine.py", line 25, in main
    for event in tdl.event.get():
RuntimeError: generator raised StopIteration

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.