Code Monkey home page Code Monkey logo

tmxl's Introduction

TMXL

Build

Project uses CMake to generate platform and compiler-specific build files.

Dependencies

CMake options

Options Description Default
BUILD_EXAMPLES Build example projects ON
BUILD_TESTS Build all test existing in project OFF
BUILD_TMXL_TEST_ONLY Build test only for TMXL lib OFF
BUILD_USE_PUGIXML Build lib with pugixml support ON
BUILD_SHARED_LIBS Build shared libs OFF

Building on Linux (Unix Makefiles)

  1. Clone repository, enter to TMXL directory: git clone https://github.com/eSkry/TMXL && cd ./TMXL
  2. Run init submodules script: chmod +x ./initsubmodules.sh && ./initsubmodules.sh
  3. Build TMXL:
    • Run script: chmod +x ./build.sh && ./build.sh or create build dir: mkdir build && cd build and generate Makefile and build: cmake -G "Unix Makefiles" .. -DCMAKE_BUILD_TYPE=Release && cmake --build .
  4. For install lib and include files run: make install

Building on Window (Visual Studio)

  1. CMake build list:
    • Visual Studio 2019: cmake .. -G "Visual Studio 16 2019"
    • Visual Studio 2017: cmake .. -G "Visual Studio 15 2017 Win64"
    • Visual Studio 2015: cmake .. -G "Visual Studio 14 2015 Win64"
  2. Open TMXL.sln project
  3. Run build

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Badges

Badge_status Badge_score

tmxl's People

Contributors

eskry avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

sysfce2

tmxl's Issues

Remove TMXLType

Лучше использовать преобразование типов с помощью функций из TypeConvert.h

Travis not building

The command "cmake -G "Unix Makefiles" .. -DCMAKE_BUILD_TYPE=Debug -DTMXL_BUILD_TESTS=ON -DBUILD_EXAMPLES=ON" exited with 0.
21.62s$ cmake --build .
Scanning dependencies of target pugixml
[ 4%] Building CXX object extlibs/pugixml/CMakeFiles/pugixml.dir/src/pugixml.cpp.o
[ 9%] Linking CXX static library libpugixmld.a
[ 9%] Built target pugixml
Scanning dependencies of target TMXL
[ 13%] Building CXX object CMakeFiles/TMXL.dir/TMXL/src/Parsers/IParser.cpp.o
[ 18%] Building CXX object CMakeFiles/TMXL.dir/TMXL/src/Parsers/TMXParser.cpp.o
[ 22%] Building CXX object CMakeFiles/TMXL.dir/TMXL/src/TMXLType.cpp.o
[ 27%] Linking CXX static library libTMXLd.a
[ 27%] Built target TMXL
Scanning dependencies of target gtest
[ 31%] Building CXX object tests/lib/googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o
[ 36%] Linking CXX static library ../../../../lib/libgtestd.a
[ 36%] Built target gtest
Scanning dependencies of target gmock
[ 40%] Building CXX object tests/lib/googletest/googlemock/CMakeFiles/gmock.dir/src/gmock-all.cc.o
[ 45%] Linking CXX static library ../../../../lib/libgmockd.a
[ 45%] Built target gmock
Scanning dependencies of target gmock_main
[ 50%] Building CXX object tests/lib/googletest/googlemock/CMakeFiles/gmock_main.dir/src/gmock_main.cc.o
[ 54%] Linking CXX static library ../../../../lib/libgmock_maind.a
[ 54%] Built target gmock_main
Scanning dependencies of target gtest_main
[ 59%] Building CXX object tests/lib/googletest/googletest/CMakeFiles/gtest_main.dir/src/gtest_main.cc.o
[ 63%] Linking CXX static library ../../../../lib/libgtest_maind.a
[ 63%] Built target gtest_main
Scanning dependencies of target tmxl_basic_test
[ 68%] Building CXX object tests/basic_tests/CMakeFiles/tmxl_basic_test.dir/tools_check.cpp.o
[ 72%] Building CXX object tests/basic_tests/CMakeFiles/tmxl_basic_test.dir/sfml_sugar_check.cpp.o
[ 77%] Building CXX object tests/basic_tests/CMakeFiles/tmxl_basic_test.dir/xmlparser_check.cpp.o
[ 81%] Building CXX object tests/basic_tests/CMakeFiles/tmxl_basic_test.dir/type_convert_check.cpp.o
[ 86%] Building CXX object tests/basic_tests/CMakeFiles/tmxl_basic_test.dir/string_tools_check.cpp.o
[ 90%] Linking CXX executable tmxl_basic_test
[ 90%] Built target tmxl_basic_test
Scanning dependencies of target BaseExample
[ 95%] Building CXX object examples/Base/CMakeFiles/BaseExample.dir/main.cpp.o
[100%] Linking CXX executable BaseExample
../../libTMXLd.a(TMXParser.cpp.o): In function TMXL::TMXParser::parseImage(pugi::xml_node*, std::shared_ptr<TMXL::TMEMap>)': /home/travis/build/eSkry/TMXL/TMXL/src/Parsers/TMXParser.cpp:148: undefined reference to sf::String::operator std::__cxx11::basic_string<char, std::char_traits, std::allocator >() const'
collect2: error: ld returned 1 exit status
examples/Base/CMakeFiles/BaseExample.dir/build.make:88: recipe for target 'examples/Base/BaseExample' failed
make[2]: *** [examples/Base/BaseExample] Error 1
CMakeFiles/Makefile2:471: recipe for target 'examples/Base/CMakeFiles/BaseExample.dir/all' failed
make[1]: *** [examples/Base/CMakeFiles/BaseExample.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
The command "cmake --build ." exited with 2.

remove it or replace

void NodeObject::dump() const { // TODO: remove it or replace
using namespace std;
cout << name.toAnsiString() << endl;
cout << "---------" << endl;
for (auto it : attributes) {


This issue was generated by todo based on a TODO comment in 02b8490. It's been assigned to @eSkry because they committed the code.

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.