• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

error building otcv8 for android - last errors help

johnsamir

Advanced OT User
Joined
Oct 13, 2009
Messages
965
Solutions
6
Reaction score
164
Location
Nowhere
can somebody help me with this?i've change libraries path
im trying to build otcv8 x86 for android using msvc 2019 with arm and arm64 just build this otclientv8.apk.recipe and otclientv8.apk.recipe.merged

i've searched through stackoverflow among other platforms

1>clang : error : no such file or directory: 'C:\Users\pasturryx\OneDrive\Documentos\GitHub\otclientv8\android\otclientv8_lib\pch.h'
1>clang : error : no input files
in vc++ dorectories
C:\Users\pasturryx\OneDrive\Documentos\GitHub\otclientv8\src\android
C:\Android\android-ndk-r21d\toolchains\llvm\prebuilt\windows-x86_64\bin
C:\Android\Android-test
C:\Android\android-ndk-r21d
and in tools properties, crossplatform
android sdk
C:\Program Files (x86)\Android\android-sdk
android ndk
C:\Android\Android-test
which contains android-ndk-r21d and android libraries lib, include and lib64 folders
java se development kit
C:\Program Files\Android\jdk\jdk-8.0.302.8-hotspot\jdk8u302-b08
apache ant
C:\Android\apache-ant-1.9.7\bin
 
Did you download official OTCv8 or otacademy?
I've tested otacademy NOT LATEST commit:

Created data.zip with:
1698705711831.png
and placed in android/assets/data.zip.

Tested ARM and ARM64 with Visual Studio 2019. Both .apk worked on my phone.

Lastest otacademy commit (master) compiles only in Visual Studio 2022, but you cannot build .apk for Android using VS2022, as there is no longer 'Ant' plugin available [MS site states it's available in their VS2022 marketing materials, but it's not].
C:\Users\pasturryx\OneDrive\Documentos\GitHub\otclientv8\android\otclientv8_lib\pch.h
I saw this error. Idk what fixed it. I've closed VS, ran ./vcpkg integrate install in folder with vcpkg with commit for OTCv8 and started it again. Probably I had wrong version of vcpkg integrated (canary or TFS one).

Error:
C:\Users\pasturryx\OneDrive\Documentos\GitHub\otclientv8\android\otclientv8_lib\pch.h
probably isn't first message in error window. Real reason is above. It probably failed to run some other command, so in next step it could not find that file, where it expected.
 
with msvc and the otcv8 thbat you posted here i get this error
Lua:
Severity    Code    Description    Project    File    Line    Suppression State
Error    TRK0005    Failed to locate: "clang.exe". The system cannot find the file specified.    otclientv8_lib    C:\Users\pasturry\OneDrive\Documentos\GitHub\otclientv8\android\otclientv8_lib\TRACKER    1
Severity    Code    Description    Project    File    Line    Suppression State
Error        Unable to open file C:\Users\pasturryx\OneDrive\Documentos\GitHub\otclientv8\android\ARM\Release\libotclientv8.so.recipe because 2    otclientv8 (otclientv8\otclientv8)    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\MDD\Android\V150\Android.Common.targets    269

if i add the clang.exe path manually in vc++ directories
Code:
C:\Android\Android-test\android-ndk-r21d\toolchains\llvm\prebuilt\windows-x86_64\bin\
get this error


Code:
Severity    Code    Description    Project    File    Line    Suppression State
Error        'jni.h' file not found    otclientv8_lib    C:\Users\felip\OneDrive\Documentos\GitHub\otclientv8\src\android\pch.h    10

then if i add jni.h add
which is
Code:
C:\Android\Android-test\android-ndk-r21d\toolchains\llvm\prebuilt\windows-x86_64\sysroot\usr\include
multiple errors appears, im using msvc2019 have changed vcpkg folder with the one you told me
./vcpkg integrate install aplied this,
Severity Code Description Project File Line Suppression State
Error TRK0005 Failed to locate: "clang.exe". The system cannot find the file specified. otclientv8_lib C:\Users\felip\OneDrive\Documentos\GitHub\otclientv8\android\otclientv8_lib\TRACKER 1
get this error
@Gesior.pl
Post automatically merged:

EDIT THREAD

have redownloaded everything vcpkg msvc2019 used command vcpkg integrate install
reveted things at vc++ directories


2.png

this is my platformtoolsset

1.png

in C:\Android\Android-test

i have extracted the folder android-ndk-r21d and it containers otcv9libs too so lib/lib64 and include fodler are in there

3.png
@Gesior.pl
Lua:
ted...
1>------ Rebuild All started: Project: otclientv8_lib, Configuration: Release ARM ------
1>ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk
1>ANT_HOME=C:\Android\apache-ant-1.9.7\bin
1>JAVA_HOME=C:\Program Files\Android\jdk\jdk-8.0.302.8-hotspot\jdk8u302-b08
1>NDK_ROOT=C:\Android\Android-test
1>pch.h
1>android_native_app_glue.cpp
1>dependencies.cpp
1>animatedtext.cpp
1>animator.cpp
1>client.cpp
1>container.cpp
1>In file included from ..\..\src\client\animator.cpp:29:
1>C:\Users\felip\OneDrive\Documentos\GitHub\otclientv8\android\..\src\framework/stdext/fastrand.h(5,12): warning : unused function 'fastrand' [-Wunused-function]
1>static int fastrand()
1>           ^
1>1 warning generated.
1>creature.cpp
1>creatures.cpp
1>effect.cpp
1>game.cpp
1>healthbars.cpp
1>houses.cpp
1>item.cpp
1>itemtype.cpp
1>lightview.cpp
1>localplayer.cpp
1>luafunctions_client.cpp
1>luavaluecasts_client.cpp
1>map.cpp
1>mapio.cpp
1>mapview.cpp
1>minimap.cpp
1>missile.cpp
1>outfit.cpp
1>..\..\src\client\minimap.cpp(427,21): warning : unused variable 'ret' [-Wunused-variable]
1>                int ret = compress2(compressBuffer.data(), &len, (uchar*)&block.getTiles(), blockSize, COMPRESS_LEVEL);
1>                    ^
1>player.cpp
1>protocolcodes.cpp
1>1 warning generated.
1>protocolgame.cpp
1>protocolgameparse.cpp
1>protocolgamesend.cpp
1>..\..\src\client\protocolgameparse.cpp(1812,22): warning : comparison of two values with different enumeration types ('Otc::PreyState_t' and 'Otc::PreyAction_t') [-Wenum-compare]
1>    } else if (state == Otc::PREY_ACTION_CHANGE_FROM_ALL) {
1>               ~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1>..\..\src\client\protocolgameparse.cpp(2943,13): warning : unused variable 'count' [-Wunused-variable]
1>    uint8_t count = msg->getU8(); // state
1>            ^
1>spritemanager.cpp
1>statictext.cpp
1>2 warnings generated.
1>..\..\src\client\spritemanager.cpp(364,24): warning : moving a temporary object prevents copy elision [-Wpessimizing-move]
1>        m_cachedData = std::move(PngUnpacker::unpack(spritesFile));
1>                       ^
1>..\..\src\client\spritemanager.cpp(364,24): note: remove std::move call here
1>        m_cachedData = std::move(PngUnpacker::unpack(spritesFile));
1>                       ^~~~~~~~~~                                ~
1>1 warning generated.
1>thing.cpp
1>thingtype.cpp
1>thingtypemanager.cpp
1>tile.cpp
1>towns.cpp
1>uicreature.cpp
1>uigraph.cpp
1>uiitem.cpp
1>uimap.cpp
1>uimapanchorlayout.cpp
1>uiminimap.cpp
1>uiprogressrect.cpp
1>uisprite.cpp
1>adaptiverenderer.cpp
1>application.cpp
1>asyncdispatcher.cpp
1>binarytree.cpp
1>clock.cpp
1>config.cpp
1>configmanager.cpp
1>In file included from ..\..\src\framework\core\config.cpp:1:
1>In file included from C:\Users\felip\OneDrive\Documentos\GitHub\otclientv8\src\android\pch.h:20:
1>In file included from C:\Android\Android-test\toolchains\llvm\prebuilt\windows-x86_64\sysroot\usr\include\android\sensor.h:52:
1>In file included from C:\Android\Android-test\sources\cxx-stl\llvm-libc++\include\math.h:311:
1>C:\Android\Android-test\sources\cxx-stl\llvm-libc++\include\type_traits(1404,59): error : incomplete type 'UIWidget' used in type trait expression
1>    : public integral_constant<bool, __is_base_of(_Bp, _Dp)> {};
1>                                                          ^
1>C:\Users\felip\OneDrive\Documentos\GitHub\otclientv8\android\..\src\framework/stdext/shared_object.h(62,28): note: in instantiation of template class 'std::__ndk1::is_base_of<stdext::shared_object, UIWidget>' requested here
1>        static_assert(std::is_base_of<shared_object, T>::value, "classes using shared_object_ptr must be a derived of stdext::shared_object");
1>                           ^
1>C:\Users\felip\OneDrive\Documentos\GitHub\otclientv8\android\..\src\framework/ui/uimanager.h(119,62): note: in instantiation of member function 'stdext::shared_object_ptr<UIWidget>::shared_object_ptr' requested here
1>    UIWidgetPtr m_pressedWidget[Fw::MouseButtonLast + 1] = { nullptr };
1>                                                             ^
1>C:\Users\felip\OneDrive\Documentos\GitHub\otclientv8\android\..\src\framework/util/stats.h(46,7): note: forward declaration of 'UIWidget'
1>class UIWidget;
1>      ^
1>In file included from ..\..\src\framework\core\config.cpp:23:
1>In file included from ..\..\src\framework\core/config.h:26:
1>In file included from ..\..\src\framework\core/declarations.h:26:
1>In file included from ..\..\src\framework\core/../global.h:44:
1>In file included from C:\Users\felip\OneDrive\Documentos\GitHub\otclientv8\android\..\src\framework/stdext/stdext.h:36:
1>C:\Users\felip\OneDrive\Documentos\GitHub\otclientv8\android\..\src\framework/stdext/shared_object.h(62,9): error : static_assert failed due to requirement 'std::is_base_of<stdext::shared_object, UIWidget>::value' "classes using shared_object_ptr must be a derived of stdext::shared_object"
1>        static_assert(std::is_base_of<shared_object, T>::value, "classes using shared_object_ptr must be a derived of stdext::shared_object");
1>        ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1>C:\Users\felip\OneDrive\Documentos\GitHub\otclientv8\android\..\src\framework/ui/uimanager.h(119,62): note: in instantiation of member function 'stdext::shared_object_ptr<UIWidget>::shared_object_ptr' requested here
1>    UIWidgetPtr m_pressedWidget[Fw::MouseButtonLast + 1] = { nullptr };
1>                                                             ^
1>event.cpp
1>eventdispatcher.cpp
1>filestream.cpp
1>graphicalapplication.cpp
1>logger.cpp
1>2 errors generated.
1>Done building project "otclientv8_lib.vcxproj" -- FAILED.
2>------ Rebuild All started: Project: otclientv8 (otclientv8\otclientv8), Configuration: Release ARM ------
2>ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk
2>ANT_HOME=C:\Android\apache-ant-1.9.7\bin
2>JAVA_HOME=C:\Program Files\Android\jdk\jdk-8.0.302.8-hotspot\jdk8u302-b08
2>NDK_ROOT=C:\Android\Android-test
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\MDD\Android\V150\Android.Common.targets(269,5): error : Unable to open file C:\Users\pasturryx\OneDrive\Documentos\GitHub\otclientv8\android\ARM\Release\libotclientv8.so.recipe because 2
2>Done building project "otclientv8.androidproj" -- FAILED.
========== Rebuild All: 0 succeeded, 2 failed, 0 skipped ==========
EDIT THREAD

seccond edit i did downlaoded otcv8from rar instead from github desktip rebuilded and succed

but i didnt get any otclient.apk
it generated this

otclientv8_armv7a.apk.recipe and otclientv8_armv7a.apk.recipe.merged

build with msvc2019
 
Last edited:
1>C:\Android\Android-test\sources\cxx-stl\llvm-libc++\include\type_traits(1404,59): error : incomplete type 'UIWidget' used in type trait expression 1> : public integral_constant<bool, __is_base_of(_Bp, _Dp)> {};
This error you get when you try to compile latest commit of OTCv8 from otacademy in VS2019. It compiles only in 2022.
seccond edit i did downlaoded otcv8from rar instead from github desktip rebuilded and succed

but i didnt get any otclient.apk
Post build log when it compiled.
 
This error you get when you try to compile latest commit of OTCv8 from otacademy in VS2019. It compiles only in 2022.

Post build log when it compiled.
Hi @Gesior.pl, thanks for your time, this i what i get while recompiling

Lua:
Rebuild started...
1>------ Rebuild All started: Project: otclientv8_lib, Configuration: Release ARM ------
1>ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk
1>ANT_HOME=C:\Android\apache-ant-1.9.7\bin
1>JAVA_HOME=C:\Program Files\Android\jdk\jdk-8.0.302.8-hotspot\jdk8u302-b08
1>NDK_ROOT=C:\Android\Android-test
1>pch.h
1>android_native_app_glue.cpp
1>dependencies.cpp
1>animatedtext.cpp
1>animator.cpp
1>client.cpp
1>container.cpp
1>In file included from ..\..\src\client\animator.cpp:29:
1>C:\Users\pastturyx\OneDrive\Escritorio\otclientv8-491c12b40382ca4190ec9d871302866c04ef9c9f\android\..\src\framework/stdext/fastrand.h(5,12): warning : unused function 'fastrand' [-Wunused-function]
1>static int fastrand()
1>           ^
1>1 warning generated.
1>creature.cpp
1>creatures.cpp
1>effect.cpp
1>game.cpp
1>healthbars.cpp
1>houses.cpp
1>item.cpp
1>itemtype.cpp
1>lightview.cpp
1>localplayer.cpp
1>luafunctions_client.cpp
1>luavaluecasts_client.cpp
1>map.cpp
1>mapio.cpp
1>mapview.cpp
1>minimap.cpp
1>missile.cpp
1>outfit.cpp
1>..\..\src\client\minimap.cpp(427,21): warning : unused variable 'ret' [-Wunused-variable]
1>                int ret = compress2(compressBuffer.data(), &len, (uchar*)&block.getTiles(), blockSize, COMPRESS_LEVEL);
1>                    ^
1>1 warning generated.
1>player.cpp
1>protocolcodes.cpp
1>protocolgame.cpp
1>protocolgameparse.cpp
1>protocolgamesend.cpp
1>spritemanager.cpp
1>..\..\src\client\protocolgameparse.cpp(1812,22): warning : comparison of two values with different enumeration types ('Otc::PreyState_t' and 'Otc::PreyAction_t') [-Wenum-compare]
1>    } else if (state == Otc::PREY_ACTION_CHANGE_FROM_ALL) {
1>               ~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1>..\..\src\client\protocolgameparse.cpp(2943,13): warning : unused variable 'count' [-Wunused-variable]
1>    uint8_t count = msg->getU8(); // state
1>            ^
1>..\..\src\client\spritemanager.cpp(364,24): warning : moving a temporary object prevents copy elision [-Wpessimizing-move]
1>        m_cachedData = std::move(PngUnpacker::unpack(spritesFile));
1>                       ^
1>..\..\src\client\spritemanager.cpp(364,24): note: remove std::move call here
1>        m_cachedData = std::move(PngUnpacker::unpack(spritesFile));
1>                       ^~~~~~~~~~                                ~
1>1 warning generated.
1>statictext.cpp
1>thing.cpp
1>thingtype.cpp
1>thingtypemanager.cpp
1>2 warnings generated.
1>tile.cpp
1>towns.cpp
1>uicreature.cpp
1>uigraph.cpp
1>uiitem.cpp
1>uimap.cpp
1>uimapanchorlayout.cpp
1>uiminimap.cpp
1>uiprogressrect.cpp
1>uisprite.cpp
1>adaptiverenderer.cpp
1>application.cpp
1>asyncdispatcher.cpp
1>binarytree.cpp
1>clock.cpp
1>config.cpp
1>configmanager.cpp
1>event.cpp
1>eventdispatcher.cpp
1>filestream.cpp
1>graphicalapplication.cpp
1>logger.cpp
1>module.cpp
1>modulemanager.cpp
1>resourcemanager.cpp
1>scheduledevent.cpp
1>timer.cpp
1>animatedtexture.cpp
1>apngloader.cpp
1>atlas.cpp
1>bitmapfont.cpp
1>cachedtext.cpp
1>coordsbuffer.cpp
1>drawcache.cpp
1>drawqueue.cpp
1>fontmanager.cpp
1>framebuffer.cpp
1>framebuffermanager.cpp
1>graph.cpp
1>graphics.cpp
1>hardwarebuffer.cpp
1>image.cpp
1>painter.cpp
1>paintershaderprogram.cpp
1>shader.cpp
1>shadermanager.cpp
1>shaderprogram.cpp
1>textrender.cpp
1>texture.cpp
1>texturemanager.cpp
1>http.cpp
1>session.cpp
1>websocket.cpp
1>mouse.cpp
1>lbitlib.cpp
1>luaexception.cpp
1>luainterface.cpp
1>luaobject.cpp
1>luavaluecasts.cpp
1>luafunctions.cpp
1>connection.cpp
1>inputmessage.cpp
1>outputmessage.cpp
1>packet_player.cpp
1>packet_recorder.cpp
1>..\..\src\framework\net\packet_player.cpp(14,21): warning : unused variable 'sessionId' [-Wunused-variable]
1>    static uint32_t sessionId = 1;
1>                    ^
1>1 warning generated.
1>protocol.cpp
1>server.cpp
1>otmldocument.cpp
1>otmlemitter.cpp
1>otmlexception.cpp
1>otmlnode.cpp
1>otmlparser.cpp
1>androidplatform.cpp
1>androidwindow.cpp
1>platform.cpp
1>platformwindow.cpp
1>proxy.cpp
1>proxy_client.cpp
1>combinedsoundsource.cpp
1>oggsoundfile.cpp
1>soundbuffer.cpp
1>soundchannel.cpp
1>soundfile.cpp
1>soundmanager.cpp
1>soundsource.cpp
1>streamsoundsource.cpp
1>demangle.cpp
1>math.cpp
1>net.cpp
1>string.cpp
1>time.cpp
1>uri.cpp
1>uianchorlayout.cpp
1>uiboxlayout.cpp
1>uigridlayout.cpp
1>uihorizontallayout.cpp
1>uilayout.cpp
1>uimanager.cpp
1>uitextedit.cpp
1>uitranslator.cpp
1>uiverticallayout.cpp
1>uiwidget.cpp
1>uiwidgetbasestyle.cpp
1>uiwidgetimage.cpp
1>uiwidgettext.cpp
1>color.cpp
1>crypt.cpp
1>extras.cpp
1>pngunpacker.cpp
1>qrcodegen.c
1>stats.cpp
1>tinystr.cpp
1>tinyxml.cpp
1>tinyxmlerror.cpp
1>tinyxmlparser.cpp
1>main.cpp
1>otclientv8_lib.vcxproj -> C:\Users\pastturyx\OneDrive\Escritorio\otclientv8-491c12b40382ca4190ec9d871302866c04ef9c9f\android\ARM\Release\libotclientv8.so
1>Done building project "otclientv8_lib.vcxproj".
2>------ Rebuild All started: Project: otclientv8 (otclientv8\otclientv8), Configuration: Release ARM ------
2>ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk
2>ANT_HOME=C:\Android\apache-ant-1.9.7\bin
2>JAVA_HOME=C:\Program Files\Android\jdk\jdk-8.0.302.8-hotspot\jdk8u302-b08
2>NDK_ROOT=C:\Android\Android-test
2>ANT_HOME is set incorrectly or ant could not be located. Please set ANT_HOME.
2>ANDROID_NDK_HOME=C:\Android\Android-test
2>ANT_HOME is set incorrectly or ant could not be located. Please set ANT_HOME.
========== Rebuild All: 2 succeeded, 0 failed, 0 skipped ==========

warnings
4.png
Post automatically merged:

This error you get when you try to compile latest commit of OTCv8 from otacademy in VS2019. It compiles only in 2022.

Post build log when it compiled.
I have downloaded the otcv8 academy that you posted not using the one with the last commit
also changed vcpkg package too and im using msvc2019
 
@johnsamir
ANT_HOME is set incorrectly or ant could not be located. Please set ANT_HOME.
Apache Ant is required to build OTCv8 for Android. Your is set to ANT_HOME=C:\Android\apache-ant-1.9.7\bin

If you installed it yourself for VS2022 and configured wrong - like I did -, it will look like this [these Options are in "Debug -> Options.."]:
1698785057376.png

It's invalid config. It must be C:\android\apache-ant-1.9.16 WITHOUT \bin. VS will add bin\ant.bat itself.

I found it, because when I've unchecked Apache Ant in VS2019 it was set to Ant installed by VS2019 package manager and there was no \bin at end:
1698785561252.png

Configuration of external libraries is shared between VS2019 and VS2022 in separate projects 🤣

EDIT:
Remember to put 4 directories into data.zip - in layouts is mobile layout that makes OTCv8 usable on phones.
Some tutorials only mention 'data' and 'modules':
1698785987106.png
 
Last edited:
did everything as you said, and it worked, changed path to the ones that you have in ant and sdk and it succed
thank you very much
Lua:
ild started...
1>------ Rebuild All started: Project: otclientv8_lib, Configuration: Release ARM ------
1>ANDROID_HOME=C:\Microsoft\AndroidSDK\25
1>ANT_HOME=c:\program files (x86)\microsoft visual studio\2019\community\Apps\apache-ant-1.9.3
1>JAVA_HOME=C:\Program Files\Android\jdk\jdk-8.0.302.8-hotspot\jdk8u302-b08
1>NDK_ROOT=C:\Android\Android-test
1>pch.h
1>android_native_app_glue.cpp
1>dependencies.cpp
1>animatedtext.cpp
1>animator.cpp
1>client.cpp
1>container.cpp
1>In file included from ..\..\src\client\animator.cpp:29:
1>C:\Users\pastturyx\OneDrive\Escritorio\otclientv8-491c12b40382ca4190ec9d871302866c04ef9c9f\android\..\src\framework/stdext/fastrand.h(5,12): warning : unused function 'fastrand' [-Wunused-function]
1>static int fastrand()
1>           ^
1>1 warning generated.
1>creature.cpp
1>creatures.cpp
1>effect.cpp
1>game.cpp
1>healthbars.cpp
1>houses.cpp
1>item.cpp
1>itemtype.cpp
1>lightview.cpp
1>localplayer.cpp
1>luafunctions_client.cpp
1>luavaluecasts_client.cpp
1>map.cpp
1>mapio.cpp
1>mapview.cpp
1>minimap.cpp
1>missile.cpp
1>outfit.cpp
1>..\..\src\client\minimap.cpp(427,21): warning : unused variable 'ret' [-Wunused-variable]
1>                int ret = compress2(compressBuffer.data(), &len, (uchar*)&block.getTiles(), blockSize, COMPRESS_LEVEL);
1>                    ^
1>1 warning generated.
1>player.cpp
1>protocolcodes.cpp
1>protocolgame.cpp
1>protocolgameparse.cpp
1>protocolgamesend.cpp
1>spritemanager.cpp
1>..\..\src\client\protocolgameparse.cpp(1812,22): warning : comparison of two values with different enumeration types ('Otc::PreyState_t' and 'Otc::PreyAction_t') [-Wenum-compare]
1>    } else if (state == Otc::PREY_ACTION_CHANGE_FROM_ALL) {
1>               ~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1>..\..\src\client\protocolgameparse.cpp(2943,13): warning : unused variable 'count' [-Wunused-variable]
1>    uint8_t count = msg->getU8(); // state
1>            ^
1>..\..\src\client\spritemanager.cpp(364,24): warning : moving a temporary object prevents copy elision [-Wpessimizing-move]
1>        m_cachedData = std::move(PngUnpacker::unpack(spritesFile));
1>                       ^
1>..\..\src\client\spritemanager.cpp(364,24): note: remove std::move call here
1>        m_cachedData = std::move(PngUnpacker::unpack(spritesFile));
1>                       ^~~~~~~~~~                                ~
1>1 warning generated.
1>statictext.cpp
1>thing.cpp
1>2 warnings generated.
1>thingtype.cpp
1>thingtypemanager.cpp
1>tile.cpp
1>towns.cpp
1>uicreature.cpp
1>uigraph.cpp
1>uiitem.cpp
1>uimap.cpp
1>uimapanchorlayout.cpp
1>uiminimap.cpp
1>uiprogressrect.cpp
1>uisprite.cpp
1>adaptiverenderer.cpp
1>application.cpp
1>asyncdispatcher.cpp
1>binarytree.cpp
1>clock.cpp
1>config.cpp
1>configmanager.cpp
1>event.cpp
1>eventdispatcher.cpp
1>filestream.cpp
1>graphicalapplication.cpp
1>logger.cpp
1>module.cpp
1>modulemanager.cpp
1>resourcemanager.cpp
1>scheduledevent.cpp
1>timer.cpp
1>animatedtexture.cpp
1>apngloader.cpp
1>atlas.cpp
1>bitmapfont.cpp
1>cachedtext.cpp
1>coordsbuffer.cpp
1>drawcache.cpp
1>drawqueue.cpp
1>fontmanager.cpp
1>framebuffer.cpp
1>framebuffermanager.cpp
1>graph.cpp
1>graphics.cpp
1>hardwarebuffer.cpp
1>image.cpp
1>painter.cpp
1>paintershaderprogram.cpp
1>shader.cpp
1>shadermanager.cpp
1>shaderprogram.cpp
1>textrender.cpp
1>texture.cpp
1>texturemanager.cpp
1>http.cpp
1>session.cpp
1>websocket.cpp
1>mouse.cpp
1>lbitlib.cpp
1>luaexception.cpp
1>luainterface.cpp
1>luaobject.cpp
1>luavaluecasts.cpp
1>luafunctions.cpp
1>connection.cpp
1>inputmessage.cpp
1>outputmessage.cpp
1>packet_player.cpp
1>packet_recorder.cpp
1>..\..\src\framework\net\packet_player.cpp(14,21): warning : unused variable 'sessionId' [-Wunused-variable]
1>    static uint32_t sessionId = 1;
1>                    ^
1>1 warning generated.
1>protocol.cpp
1>server.cpp
1>otmldocument.cpp
1>otmlemitter.cpp
1>otmlexception.cpp
1>otmlnode.cpp
1>otmlparser.cpp
1>androidplatform.cpp
1>androidwindow.cpp
1>platform.cpp
1>platformwindow.cpp
1>proxy.cpp
1>proxy_client.cpp
1>combinedsoundsource.cpp
1>oggsoundfile.cpp
1>soundbuffer.cpp
1>soundchannel.cpp
1>soundfile.cpp
1>soundmanager.cpp
1>soundsource.cpp
1>streamsoundsource.cpp
1>demangle.cpp
1>math.cpp
1>net.cpp
1>string.cpp
1>time.cpp
1>uri.cpp
1>uianchorlayout.cpp
1>uiboxlayout.cpp
1>uigridlayout.cpp
1>uihorizontallayout.cpp
1>uilayout.cpp
1>uimanager.cpp
1>uitextedit.cpp
1>uitranslator.cpp
1>uiverticallayout.cpp
1>uiwidget.cpp
1>uiwidgetbasestyle.cpp
1>uiwidgetimage.cpp
1>uiwidgettext.cpp
1>color.cpp
1>crypt.cpp
1>extras.cpp
1>pngunpacker.cpp
1>qrcodegen.c
1>stats.cpp
1>tinystr.cpp
1>tinyxml.cpp
1>tinyxmlerror.cpp
1>tinyxmlparser.cpp
1>main.cpp
1>otclientv8_lib.vcxproj -> C:\Users\pastturyx\OneDrive\Escritorio\otclientv8-491c12b40382ca4190ec9d871302866c04ef9c9f\android\ARM\Release\libotclientv8.so
1>Done building project "otclientv8_lib.vcxproj".
2>------ Rebuild All started: Project: otclientv8 (otclientv8\otclientv8), Configuration: Release ARM ------
2>ANDROID_HOME=C:\Microsoft\AndroidSDK\25
2>ANT_HOME=c:\program files (x86)\microsoft visual studio\2019\community\Apps\apache-ant-1.9.3
2>JAVA_HOME=C:\Program Files\Android\jdk\jdk-8.0.302.8-hotspot\jdk8u302-b08
2>NDK_ROOT=C:\Android\Android-test
2>ANDROID_NDK_HOME=C:\Android\Android-test
2>Buildfile: C:\Users\pastturyx\OneDrive\Escritorio\otclientv8-491c12b40382ca4190ec9d871302866c04ef9c9f\android\otclientv8\ARM\Release\Package\build.xml
2>
2>-set-mode-check:
2>
2>-set-debug-files:
2>
2>-check-env:
2> [checkenv] Android SDK Tools Revision 25.2.5
2> [checkenv] Installed at C:\Microsoft\AndroidSDK\25
2>
2>-setup:
2>     [echo] Project Name: otclientv8
2>  [gettype] Project Type: Application
2>
2>-set-debug-mode:
2>
2>-debug-obfuscation-check:
2>
2>-pre-build:
2>
2>-build-setup:
2>[getbuildtools] Using latest Build Tools: 25.0.3
2>     [echo] Resolving Build Target for otclientv8...
2>[gettarget] Project Target:   Android 7.1.1
2>[gettarget] API level:        25
2>     [echo] ----------
2>     [echo] Creating output directories if needed...
2>    [mkdir] Created dir: C:\Users\pastturyx\OneDrive\Escritorio\otclientv8-491c12b40382ca4190ec9d871302866c04ef9c9f\android\otclientv8\ARM\Release\Package\bin
2>    [mkdir] Created dir: C:\Users\pastturyx\OneDrive\Escritorio\otclientv8-491c12b40382ca4190ec9d871302866c04ef9c9f\android\otclientv8\ARM\Release\Package\bin\res
2>    [mkdir] Created dir: C:\Users\pastturyx\OneDrive\Escritorio\otclientv8-491c12b40382ca4190ec9d871302866c04ef9c9f\android\otclientv8\ARM\Release\Package\bin\rsObj
2>    [mkdir] Created dir: C:\Users\pastturyx\OneDrive\Escritorio\otclientv8-491c12b40382ca4190ec9d871302866c04ef9c9f\android\otclientv8\ARM\Release\Package\bin\rsLibs
2>    [mkdir] Created dir: C:\Users\pastturyx\OneDrive\Escritorio\otclientv8-491c12b40382ca4190ec9d871302866c04ef9c9f\android\otclientv8\ARM\Release\Package\gen
2>    [mkdir] Created dir: C:\Users\pastturyx\OneDrive\Escritorio\otclientv8-491c12b40382ca4190ec9d871302866c04ef9c9f\android\otclientv8\ARM\Release\Package\bin\classes
2>    [mkdir] Created dir: C:\Users\pastturyx\OneDrive\Escritorio\otclientv8-491c12b40382ca4190ec9d871302866c04ef9c9f\android\otclientv8\ARM\Release\Package\bin\dexedLibs
2>     [echo] ----------
2>     [echo] Resolving Dependencies for otclientv8...
2>[dependency] Library dependencies:
2>[dependency] No Libraries
2>[dependency]
2>[dependency] ------------------
2>     [echo] ----------
2>     [echo] Building Libraries with 'debug'...
2>   [subant] No sub-builds to iterate on
2>
2>-code-gen:
2>[mergemanifest] Merging AndroidManifest files into one.
2>[mergemanifest] Manifest merger disabled. Using project manifest only.
2>     [echo] Handling aidl files...
2>     [aidl] No AIDL files to compile.
2>     [echo] ----------
2>     [echo] Handling RenderScript files...
2>     [echo] ----------
2>     [echo] Handling Resources...
2>     [aapt] Generating resource IDs...
2>     [echo] ----------
2>     [echo] Handling BuildConfig class...
2>[buildconfig] Generating BuildConfig class.
2>
2>-pre-compile:
2>
2>-compile:
2>    [javac] Compiling 3 source files to C:\Users\pastturyx\OneDrive\Escritorio\otclientv8-491c12b40382ca4190ec9d871302866c04ef9c9f\android\otclientv8\ARM\Release\Package\bin\classes
2>EXEC : [javac] warning : [options] source value 1.5 is obsolete and will be removed in a future release
2>EXEC : [javac] warning : [options] target value 1.5 is obsolete and will be removed in a future release
2>EXEC : [javac] warning : [options] To suppress warnings about obsolete options, use -Xlint:-options.
2>    [javac] Note: C:\Users\pastturyx\OneDrive\Escritorio\otclientv8-491c12b40382ca4190ec9d871302866c04ef9c9f\android\otclientv8\ARM\Release\Package\src\com\otclientv8\OTClientV8.java uses or overrides a deprecated API.
2>    [javac] Note: Recompile with -Xlint:deprecation for details.
2>    [javac] 3 warnings
2>
2>-post-compile:
2>
2>-obfuscate:
2>
2>-dex:
2>      [dex] input: C:\Users\pastturyx\OneDrive\Escritorio\otclientv8-491c12b40382ca4190ec9d871302866c04ef9c9f\android\otclientv8\ARM\Release\Package\bin\classes
2>      [dex] Converting compiled files and external libraries into C:\Users\pastturyx\OneDrive\Escritorio\otclientv8-491c12b40382ca4190ec9d871302866c04ef9c9f\android\otclientv8\ARM\Release\Package\bin\classes.dex...
2>
2>-crunch:
2>   [crunch] Crunching PNG Files in source dir: C:\Users\pastturyx\OneDrive\Escritorio\otclientv8-491c12b40382ca4190ec9d871302866c04ef9c9f\android\otclientv8\ARM\Release\Package\res
2>   [crunch] To destination dir: C:\Users\pastturyx\OneDrive\Escritorio\otclientv8-491c12b40382ca4190ec9d871302866c04ef9c9f\android\otclientv8\ARM\Release\Package\bin\res
2>   [crunch] Processing image to cache: C:\Users\pastturyx\OneDrive\Escritorio\otclientv8-491c12b40382ca4190ec9d871302866c04ef9c9f\android\otclientv8\ARM\Release\Package\res\mipmap-hdpi\ic_launcher.png => C:\Users\pastturyx\OneDrive\Escritorio\otclientv8-491c12b40382ca4190ec9d871302866c04ef9c9f\android\otclientv8\ARM\Release\Package\bin\res\mipmap-hdpi\ic_launcher.png
2>   [crunch]   (processed image to cache entry C:\Users\pastturyx\OneDrive\Escritorio\otclientv8-491c12b40382ca4190ec9d871302866c04ef9c9f\android\otclientv8\ARM\Release\Package\bin\res\mipmap-hdpi\ic_launcher.png: 0% size of source)
2>   [crunch] Processing image to cache: C:\Users\pastturyx\OneDrive\Escritorio\otclientv8-491c12b40382ca4190ec9d871302866c04ef9c9f\android\otclientv8\ARM\Release\Package\res\mipmap-mdpi\ic_launcher.png => C:\Users\pastturyx\OneDrive\Escritorio\otclientv8-491c12b40382ca4190ec9d871302866c04ef9c9f\android\otclientv8\ARM\Release\Package\bin\res\mipmap-mdpi\ic_launcher.png
2>   [crunch]   (processed image to cache entry C:\Users\pastturyx\OneDrive\Escritorio\otclientv8-491c12b40382ca4190ec9d871302866c04ef9c9f\android\otclientv8\ARM\Release\Package\bin\res\mipmap-mdpi\ic_launcher.png: 0% size of source)
2>   [crunch] Processing image to cache: C:\Users\pastturyx\OneDrive\Escritorio\otclientv8-491c12b40382ca4190ec9d871302866c04ef9c9f\android\otclientv8\ARM\Release\Package\res\mipmap-xhdpi\ic_launcher.png => C:\Users\pastturyx\OneDrive\Escritorio\otclientv8-491c12b40382ca4190ec9d871302866c04ef9c9f\android\otclientv8\ARM\Release\Package\bin\res\mipmap-xhdpi\ic_launcher.png
2>   [crunch]   (processed image to cache entry C:\Users\pastturyx\OneDrive\Escritorio\otclientv8-491c12b40382ca4190ec9d871302866c04ef9c9f\android\otclientv8\ARM\Release\Package\bin\res\mipmap-xhdpi\ic_launcher.png: 0% size of source)
2>   [crunch] Processing image to cache: C:\Users\pastturyx\OneDrive\Escritorio\otclientv8-491c12b40382ca4190ec9d871302866c04ef9c9f\android\otclientv8\ARM\Release\Package\res\mipmap-xxhdpi\ic_launcher.png => C:\Users\pastturyx\OneDrive\Escritorio\otclientv8-491c12b40382ca4190ec9d871302866c04ef9c9f\android\otclientv8\ARM\Release\Package\bin\res\mipmap-xxhdpi\ic_launcher.png
2>   [crunch]   (processed image to cache entry C:\Users\pastturyx\OneDrive\Escritorio\otclientv8-491c12b40382ca4190ec9d871302866c04ef9c9f\android\otclientv8\ARM\Release\Package\bin\res\mipmap-xxhdpi\ic_launcher.png: 54% size of source)
2>   [crunch] Processing image to cache: C:\Users\pastturyx\OneDrive\Escritorio\otclientv8-491c12b40382ca4190ec9d871302866c04ef9c9f\android\otclientv8\ARM\Release\Package\res\mipmap-xxxhdpi\ic_launcher.png => C:\Users\pastturyx\OneDrive\Escritorio\otclientv8-491c12b40382ca4190ec9d871302866c04ef9c9f\android\otclientv8\ARM\Release\Package\bin\res\mipmap-xxxhdpi\ic_launcher.png
2>   [crunch]   (processed image to cache entry C:\Users\pastturyx\OneDrive\Escritorio\otclientv8-491c12b40382ca4190ec9d871302866c04ef9c9f\android\otclientv8\ARM\Release\Package\bin\res\mipmap-xxxhdpi\ic_launcher.png: 41% size of source)
2>   [crunch] Crunched 5 PNG files to update cache
2>
2>-package-resources:
2>     [aapt] Creating full resource package...
2>
2>-package:
2>[apkbuilder] Current build type is different than previous build: forced apkbuilder run.
2>[apkbuilder] Creating otclientv8-debug-unaligned.apk and signing it with a debug key...
2>[apkbuilder]
2>EXEC : [apkbuilder] warning :
2>[apkbuilder] The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore C:\Users\pastturyx\.android\debug.keystore -destkeystore C:\Users\pastturyx\.android\debug.keystore -deststoretype pkcs12".
2>
2>-post-package:
2>
2>-do-debug:
2> [zipalign] Running zip align on final apk...
2>     [echo] Debug Package: C:\Users\pastturyx\OneDrive\Escritorio\otclientv8-491c12b40382ca4190ec9d871302866c04ef9c9f\android\otclientv8\ARM\Release\..\..\..\..\otclientv8_armv7a.apk
2>[propertyfile] Creating new property file: C:\Users\pastturyx\OneDrive\Escritorio\otclientv8-491c12b40382ca4190ec9d871302866c04ef9c9f\android\otclientv8\ARM\Release\Package\bin\build.prop
2>[propertyfile] Updating property file: C:\Users\pastturyx\OneDrive\Escritorio\otclientv8-491c12b40382ca4190ec9d871302866c04ef9c9f\android\otclientv8\ARM\Release\Package\bin\build.prop
2>[propertyfile] Updating property file: C:\Users\pastturyx\OneDrive\Escritorio\otclientv8-491c12b40382ca4190ec9d871302866c04ef9c9f\android\otclientv8\ARM\Release\Package\bin\build.prop
2>[propertyfile] Updating property file: C:\Users\pastturyx\OneDrive\Escritorio\otclientv8-491c12b40382ca4190ec9d871302866c04ef9c9f\android\otclientv8\ARM\Release\Package\bin\build.prop
2>
2>-post-build:
2>
2>debug:
2>
2>BUILD SUCCESSFUL
2>Total time: 7 seconds
2>Done building project "otclientv8.androidproj".
========== Rebuild All: 2 succeeded, 0 failed, 0 skipped ==========

1.png
thread solved thank to @Gesior.pl
 
Back
Top