• T
    TiagoLing

    Ok, thanks for the answer Robert!

    I'm gonna try to roll my own and if possible, contribute something to Kha.

    posted in Kode read more
  • T
    TiagoLing

    Is there a way to organize lists of assets to be loaded together (i.e. same progress and callback for all of them) using kha.Assets ?

    For instance, something like:

    kha.Assets.loadFromPath('path/to/assets/subfolder/', onAssetListLoaded);
    

    I'm trying to figure out if i need to roll my own sub-system or if Kha already has something like that implemented.

    Thanks!

    posted in Kode read more
  • T
    TiagoLing

    My mistake, now it works as intended - probably had a dirty build folder from previous tries.

    Solved by setting khaPath to the latest master branch of Kha from GitHub.

    posted in Kode read more
  • T
    TiagoLing

    Using the latest master branch from Github Android-Native still does not compile (neither does Android). Here's the error:

    Error:FAILURE: Build failed with an exception.

    • What went wrong:
      Execution failed for task ':app:externalNativeBuildDebug'.

    Build command failed.
    Error while executing 'C:\Android\sdk\cmake\3.6.3155560\bin\cmake.exe' with arguments {--build C:\GitRepos\kha3d\build\android-native-build\TCC_POS\app.externalNativeBuild\cmake\debug\armeabi --target kore}
    [1/1] Linking CXX shared library ..\obj\armeabi\libkore.so
    FAILED: cmd.exe /C "cd . && C:\Android\sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=armv5te-none-linux-androideabi --gcc-toolchain=C:/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64 --sysroot=C:/Android/sdk/ndk-bundle/platforms/android-15/arch-arm -fPIC -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv5te -mtune=xscale -msoft-float -fno-integrated-as -mthumb -Wa,--noexecstack -Wformat -Werror=format-security -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv5te -mtune=xscale -msoft-float -fno-integrated-as -mthumb -Wa,--noexecstack -Wformat -Werror=format-security -frtti -fexceptions -O0 -fno-limit-debug-info -O0 -fno-limit-debug-info -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,libkore.so -o ..\obj\armeabi\libkore.so @CMakeFiles/kore.rsp && cd ."
    /usr/local/google/buildbot/src/android/ndk-r14-release/out/build/tmp/build-22590/build-gnustl/static-armeabij4.9/build/include/arm-linux-androideabi/bits/gthr-default.h:778: error: relocation overflow in R_ARM_THM_CALL
    clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
    ninja: build stopped: subcommand failed.

    • Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

    posted in Kode read more
  • T
    TiagoLing

    Thanks! Didn't know it was accessible directly from Kode!

    posted in Kode read more
  • T
    TiagoLing

    Where do i set khaPath? Thanks! 🙂

    posted in Kode read more
  • T
    TiagoLing

    Unfortunately i can't compile for iOS. At the end of the build it fails at:

    /Applications/Kode Studio.app/Contents/Resources/app/extensions/kha/Kha/Kore/Backends/OpenGL2/Sources/Kore/OpenGL.cpp:880:15: error: use of undeclared identifier 'GL_SAMPLES_PASSED'
    glBeginQuery(GL_SAMPLES_PASSED, occlusionQuery);
    ^
    /Applications/Kode Studio.app/Contents/Resources/app/extensions/kha/Kha/Kore/Backends/OpenGL2/Sources/Kore/OpenGL.cpp:883:13: error: use of undeclared identifier 'GL_SAMPLES_PASSED'
    glEndQuery(GL_SAMPLES_PASSED);

    Using Kode 17.1.0 and XCode 8.2.1.

    Any suggestions? Thanks! 🙂

    posted in Kode read more
  • T
    TiagoLing

    I can't compile for Android-native, the following errors appears:

    C:\KodeStudio\resources\app\extensions\kha\Kha\Kore\Backends\OpenGL2\Sources\Kore\OpenGL.cpp
    Error:(871, 2) error: use of undeclared identifier 'glGenQueries'
    Error:(876, 2) error: use of undeclared identifier 'glDeleteQueries'; did you mean 'glDeleteBuffers'?
    Error:(880, 15) error: use of undeclared identifier 'GL_SAMPLES_PASSED'
    Error:(883, 13) error: use of undeclared identifier 'GL_SAMPLES_PASSED'
    Error:(888, 38) error: use of undeclared identifier 'GL_QUERY_RESULT_AVAILABLE'
    Error:(893, 38) error: use of undeclared identifier 'GL_QUERY_RESULT'

    I'm using Kode Studio v17.1.0 and Android Studio 2.3

    Any help is appreciated, thanks!

    posted in Kode read more
  • T
    TiagoLing

    Thanks Robert! This will make looking for specific information much easier and faster (currently the only way to try to find anything here is by looking every forum entry!)

    posted in Kode read more
  • T
    TiagoLing

    Is this by design? Or is there a hidden button somewhere that i didn't find?

    Either way this makes it very hard to find information here.

    posted in Kode read more

Looks like your connection to Kode Forum was lost, please wait while we try to reconnect.