schell / odin

High level 2d game engine written in Haskell.
http://zyghost.com/series/odin
MIT License
31 stars 4 forks source link

build failures (using lts-8.17) #5

Closed chuckadams closed 7 years ago

chuckadams commented 7 years ago

After fixing the issues with building the gl dependency, it looks like the Tiled support is broken:

[18 of 23] Compiling Odin.Engine.Tiled ( src/Odin/Engine/Tiled.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Odin/Engine/Tiled.o )

/Users/chuck/proj/hs/odin/odin-engine/src/Odin/Engine/Tiled.hs:31:30: error:
    Not in scope: type constructor or class ‘TileIndex’

/Users/chuck/proj/hs/odin/odin-engine/src/Odin/Engine/Tiled.hs:81:63: error:
    Not in scope: type constructor or class ‘TileIndex’

/Users/chuck/proj/hs/odin/odin-engine/src/Odin/Engine/Tiled.hs:85:5: error:
    Not in scope: data constructor ‘LayerContentsTiles’

/Users/chuck/proj/hs/odin/odin-engine/src/Odin/Engine/Tiled.hs:88:44: error:
    Not in scope: type constructor or class ‘TileIndex’

/Users/chuck/proj/hs/odin/odin-engine/src/Odin/Engine/Tiled.hs:97:10: error:
    Not in scope: data constructor ‘TileIndex’

/Users/chuck/proj/hs/odin/odin-engine/src/Odin/Engine/Tiled.hs:97:21: error: Not in scope: ‘tileIndexGid’

/Users/chuck/proj/hs/odin/odin-engine/src/Odin/Engine/Tiled.hs:98:21: error:
    Not in scope: ‘tileIndexIsDiagFlipped’
    Perhaps you meant ‘tileIsDiagFlipped’ (imported from Data.Tiled)

/Users/chuck/proj/hs/odin/odin-engine/src/Odin/Engine/Tiled.hs:99:21: error:
    Not in scope: ‘tileIndexIsHFlipped’
    Perhaps you meant ‘tileIsHFlipped’ (imported from Data.Tiled)

/Users/chuck/proj/hs/odin/odin-engine/src/Odin/Engine/Tiled.hs:100:21: error:
    Not in scope: ‘tileIndexIsVFlipped’
    Perhaps you meant ‘tileIsVFlipped’ (imported from Data.Tiled)

/Users/chuck/proj/hs/odin/odin-engine/src/Odin/Engine/Tiled.hs:103:40: error:
    Not in scope: type constructor or class ‘TileIndex’

/Users/chuck/proj/hs/odin/odin-engine/src/Odin/Engine/Tiled.hs:111:38: error:
    Not in scope: type constructor or class ‘TileIndex’

/Users/chuck/proj/hs/odin/odin-engine/src/Odin/Engine/Tiled.hs:130:48: error:
    Not in scope: type constructor or class ‘Animation’

/Users/chuck/proj/hs/odin/odin-engine/src/Odin/Engine/Tiled.hs:150:35: error:
    Not in scope: type constructor or class ‘TileIndex’

/Users/chuck/proj/hs/odin/odin-engine/src/Odin/Engine/Tiled.hs:151:33: error:
    Not in scope: data constructor ‘TileIndex’

/Users/chuck/proj/hs/odin/odin-engine/src/Odin/Engine/Tiled.hs:156:33: error:
    Not in scope: type constructor or class ‘TileIndex’

/Users/chuck/proj/hs/odin/odin-engine/src/Odin/Engine/Tiled.hs:160:37: error:
    Not in scope: type constructor or class ‘TileIndex’

/Users/chuck/proj/hs/odin/odin-engine/src/Odin/Engine/Tiled.hs:174:6: error:
    Not in scope: type constructor or class ‘TileIndex’

/Users/chuck/proj/hs/odin/odin-engine/src/Odin/Engine/Tiled.hs:249:6: error:
    Not in scope: type constructor or class ‘Animation’

/Users/chuck/proj/hs/odin/odin-engine/src/Odin/Engine/Tiled.hs:251:51: error:
    Not in scope: data constructor ‘Animation’

/Users/chuck/proj/hs/odin/odin-engine/src/Odin/Engine/Tiled.hs:252:16: error:
    Not in scope: data constructor ‘Frame’
schell commented 7 years ago

Thanks for this - I'll look into it asap.

schell commented 7 years ago

Are these errors (and the other ticket) on branch master or develop?

schell commented 7 years ago

@chuckadams please check out the odin-5 branch and see if this fixes your issue. I'm running into a separate issue with the MapMaker.hs executable, which I'll deal with later.

andersk commented 7 years ago

On the odin-5 branch you added ../htiled to stack.yaml, so stack won’t even attempt to build it unless you clone an unspecified commit of htiled to the parent directory—is that really what you meant?

schell commented 7 years ago

The project is under heavy flux - I'm currently working on the using-reflex-sdl2 branch. I'd say if you get anything to build, you're lucky. Watch this repo for changes if you'd like to follow along. I'm currently using odin-engine as a test bed for reflex-sdl2 and am writing a small widget library.