Giter Club home page Giter Club logo

libtmx-parser's People

Contributors

creepsky avatar georgesofianosgr avatar halsafar avatar robo-corg 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

Watchers

 avatar  avatar  avatar  avatar

libtmx-parser's Issues

I'm getting an undefined reference error

undefined reference to `tmxparser::parseFromFile(std::string const&, tmxparser::TmxMap*, std::string const&)'|

I get that error with this line of code:
tmxparser::TmxMap tilemap;
error = tmxparser::parseFromFile("resources/map/map.tmx", &tilemap, "resources/tilemap/");

TmxUtil.obj : error LNK2019

I try to build it on Win32 (C++) but I met some errors, I searched on google and try so much suggestion such as: #Define ZLIB_WINAPI, rebuild zlib, ...etc. But it still has error:

1>TmxTileLayer.obj : error LNK2019: unresolved external symbol _uncompress referenced in function "private: void __thiscall Tmx::TileLayer::ParseBase64(class std::basic_string<char,struct std::char_traits,class std::allocator > const &)" (?ParseBase64@TileLayer@Tmx@@AAEXABV?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@@z)

1>TmxUtil.obj : error LNK2019: unresolved external symbol _inflate@8 referenced in function "public: static char * __cdecl Tmx::Util::DecompressGZIP(char const *,int,int)" (?DecompressGZIP@Util@Tmx@@SAPADPBDHH@Z)

1>TmxUtil.obj : error LNK2019: unresolved external symbol _inflateEnd@4 referenced in function "public: static char * __cdecl Tmx::Util::DecompressGZIP(char const *,int,int)" (?DecompressGZIP@Util@Tmx@@SAPADPBDHH@Z)

1>TmxUtil.obj : error LNK2019: unresolved external symbol inflateInit2@16 referenced in function "public: static char * __cdecl Tmx::Util::DecompressGZIP(char const *,int,int)" (?DecompressGZIP@Util@Tmx@@SAPADPBDHH@Z)

Compile error using Android NDK

I'm getting a compile error when trying to compile libtmxparser using the android ndk.

The compile output is as follows:
[armeabi-v7a] Compile++ thumb: GameRenderer <= tinyxml2.cpp
[armeabi-v7a] Compile++ thumb: GameRenderer <= tmxparser.cpp
jni/libtmx-parser/src/tmxparser.cpp: In function 'tmxparser::TmxReturn tmxparser::parseMapNode(tinyxml2::XMLElement, tmxparser::TmxMap_)':
jni/libtmx-parser/src/tmxparser.cpp:217:2: error: expected ';' before 'return'
jni/libtmx-parser/src/tmxparser.cpp:218:2: error: expected ';' before 'return'
jni/libtmx-parser/src/tmxparser.cpp:219:2: error: expected ';' before 'return'
jni/libtmx-parser/src/tmxparser.cpp:220:2: error: expected ';' before 'return'
jni/libtmx-parser/src/tmxparser.cpp: In function 'tmxparser::TmxReturn tmxparser::parseImageNode(tinyxml2::XMLElement, tmxparser::TmxImage_)':
jni/libtmx-parser/src/tmxparser.cpp:305:2: error: expected ';' before 'return'
jni/libtmx-parser/src/tmxparser.cpp: In function 'tmxparser::TmxReturn tmxparser::parseTilesetNode(tinyxml2::XMLElement, tmxparser::TmxTileset_)':
jni/libtmx-parser/src/tmxparser.cpp:321:3: error: expected ';' before 'return'
jni/libtmx-parser/src/tmxparser.cpp:323:3: error: expected ';' before 'return'
jni/libtmx-parser/src/tmxparser.cpp:324:3: error: expected ';' before 'return'
make: *** [obj/local/armeabi-v7a/objs-debug/GameRenderer/libtmx-parser/src/tmxparser.o] Error 1

Process finished with exit code 2

Compile using NDK 10c and 10d results in the same output.

My Android.mk looks as follows:

LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := GameRenderer
LOCAL_SRC_FILES := libtmx-parser/libs/tinyxml2/tinyxml2.cpp libtmx-parser/src/tmxparser.cpp
LOCAL_C_INCLUDES := $(LOCAL_PATH)/libtmx-parser/libs/tinyxml2
LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -llog -lGLESv2 -lOpenSLES
LOCAL_CPPFLAGS := -DANDROID -frtti -fexceptions -Wno-error=format-security -std=c++11
include $(BUILD_SHARED_LIBRARY)

I'm using version 3b98e1f on branch master of libtmx-parser.

Any ideas on what might be the problem?

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.