Comments (8)
Hi
Make sure you have installed g++, git and cmake via apt.
Clone this repository to somewhere:
mkdir ~/repositories && cd ~/repositories
git clone https://github.com/fallahn/tmxlite.git
Then use cmake to build/install the library
cd tmxlite/tmxlite && mkdir build && cd build
cmake ..
sudo make install
More info can be found on the quickstart guide: https://github.com/fallahn/tmxlite/wiki/Quick-Start
from tmxlite.
Hi
Make sure you have installed g++, git and cmake via apt.Clone this repository to somewhere:
mkdir ~/repositories && cd ~/repositories git clone https://github.com/fallahn/tmxlite.git
Then use cmake to build/install the library
cd tmxlite/tmxlite && mkdir build && cd build cmake .. sudo make install
More info can be found on the quickstart guide: https://github.com/fallahn/tmxlite/wiki/Quick-Start
hi dear fallahn
I did the steps as you said, nowadays when I install https://github.com/connorkuehl/sdl2-tiled-example,
I don't know why?
thank you
Best Regards
William
from tmxlite.
This looks to be a problem with the cmake configuration in the sdl2 example. Try copying the updated FindTMXLITE.cmake file from the tmxlite/cmake/modules directory to the sdl2-tiled-example/cmake directory.
from tmxlite.
This looks to be a problem with the cmake configuration in the sdl2 example. Try copying the updated FindTMXLITE.cmake file from the tmxlite/cmake/modules directory to the sdl2-tiled-example/cmake directory.
thank you dear
I have another question which is how to set "cmake multi-thread disabled" in cmake building?
thank you
Best Regards
Wiiliam
from tmxlite.
This looks to be a problem with the cmake configuration in the sdl2 example. Try copying the updated FindTMXLITE.cmake file from the tmxlite/cmake/modules directory to the sdl2-tiled-example/cmake directory.
thank you dear expert
I have followed your advice which still reports the problem,
maybe it is the problem of sdl2-example, I have reported to them but no reply until now
connorkuehl/sdl2-tiled-example#2 (comment)
thank you for your kindness :)
by the way, do you know how to disable multi-thread when using cmake?
thank you again
best regards
William
from tmxlite.
This looks like a mis-configuration of CMAKE_MODULE_PATH in the cmake file provided with the sdl2 example. Check that this is set to the correct directory.
Alternatively try the OpenGL example included with TMXLite as this also uses SDL2.
I don't know what the multi-thread option is. If it is a cmake option then you will need to check the cmake documentation.
from tmxlite.
This looks like a mis-configuration of CMAKE_MODULE_PATH in the cmake file provided with the sdl2 example. Check that this is set to the correct directory.
hi dear fallahn @fallahn
The CMAKE_MODULE_PATH in the sdl2 example is here, how can we correct? I have included the tmxlite-master in the main directory of the sdl2 example.
Alternatively try the OpenGL example included with TMXLite as this also uses SDL2.
Could you give me the linking of OpenGL example? the reason why I use sdl2 example is that sdl2 example uses rendering method.I don't know what the multi-thread option is. If it is a cmake option then you will need to check the cmake documentation.
I found just now, which was defined in CMakeLists.txt using CMAKE_FLAGS( -pthread )
thank you for your kindness
Best Regards
William
from tmxlite.
I have also run into the same issue.
Seems that the original author of https://github.com/connorkuehl/sdl2-tiled-example did a Rename of cmake_modules folder, but forgot about updating it in CMakeLists.txt
.
As the repository is now read-only, here's the needed patch that builds the repository successfully.
This issue can be closed.
from tmxlite.
Related Issues (20)
- Problem with getLayerAs for const pointers HOT 6
- Can't find package when installing using vcpkg HOT 1
- CAN SOMEONE JUST EXPLAIN HOW TO USE THIS HOT 9
- Problem with "std::localtime" in Log.hpp line 145 HOT 1
- meson.build version doesn't match git tags HOT 1
- Enough with the unsigned integers
- Find tmxlite on Windows HOT 4
- Feature Request: Allow independent parse of tsx to TileMap. HOT 2
- How hard would it be to adapt the library to render an isometric map? HOT 2
- map.load() not getting any path HOT 10
- Unable to start program. libtmxlite-s-d.lib is not a valid win32 application HOT 6
- When the camera zooms out, the animation speeds up HOT 1
- Not orthogonal and will not be shown HOT 3
- How to use tmxlite on Windows and CLion HOT 3
- Not a valid orthogonal layer, nothing will be drawn. HOT 3
- Failed opening tsx file for tile set
- I can't load every tsx file HOT 1
- test colission HOT 1
- i cant find example for rendering tilemap inSDL2 c++ HOT 1
- Anything against making MapLayer::Chunk public? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tmxlite.