UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. lxsed
    L
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 7
    • Groups 0

    lxsed

    @lxsed

    0
    Reputation
    4
    Profile views
    7
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    lxsed Unfollow Follow

    Latest posts made by lxsed

    • RE: clickable permissions issue

      source:
      https://drive.google.com/file/d/15iYkZgC8nso4QiQX6y6gqSMVvJ_ptmHf/view?usp=sharing

      posted in App Development
      L
      lxsed
    • clickable permissions issue

      Hi.
      I'm trying to port cocos2d-x (my v2 fork) to Ubuntu Touch.
      I compiled all the libraries, but I understood that docker containers don't have permission to access "other" files. I decided to check it and it seems to be true (I thought cmake doesn't see directories one level above the project)

      Here is my directory structure:

      • $HOME
        • qttest (project dir)
        • lib
          • libz.a

      When the library directory is OUTSIDE the project directory, the container can't access it:
      make[2]: *** No rule to make target '/home/ruchyekov/lib/libz.a', needed by 'qttest'. Stop.

      And even clickable run "ls $HOME" gives only qttest and not a single other directory/file

      So, how can I set permissions for clickable so that it can read files outside the project directory?

      posted in App Development
      L
      lxsed
    • RE: problem with gles2

      @AppLee https://github.com/VIRalZah/glestest-ut

      the problem is that either GLES2 does not have the necessary symbols from opengl (I checked glClear and glClearColor work, but everything else is an undefined reference),
      or for some reason the linker doesn’t see them

      posted in App Development
      L
      lxsed
    • RE: problem with gles2

      If I manually link the GLES and EGL libraries(using pkg-config), the compiler won't find the gl symbols.

      -- Checking for module 'glesv2'
      -- Found glesv2, version 3.2
      -- Checking for module 'egl'
      -- Found egl, version 1.5

      /usr/lib/gcc-cross/aarch64-linux-gnu/9/../../../../aarch64-linux-gnu/bin/ld: CMakeFiles/opengltest.dir/main.cpp.o: undefined reference to symbol 'glColor3f'
      /usr/lib/gcc-cross/aarch64-linux-gnu/9/../../../../aarch64-linux-gnu/bin/ld: /lib/aarch64-linux-gnu/libGL.so.1: error adding symbols: DSO missing from command line

      from cmakelists:
      find_package(PkgConfig)
      pkg_check_modules(GLES2 REQUIRED IMPORTED_TARGET GLOBAL glesv2)
      pkg_check_modules(EGL REQUIRED IMPORTED_TARGET GLOBAL egl)

      target_link_libraries(${PROJECT_NAME} Qt5::Gui Qt5::Qml Qt5::Quick Qt5::QuickControls2 Qt5::OpenGL PkgConfig::GLES2 PkgConfig::EGL)

      posted in App Development
      L
      lxsed
    • RE: problem with gles2

      @kugiigi I think why not port cocos2d-x or any engine that uses GLES
      that would be very cool

      posted in App Development
      L
      lxsed
    • RE: problem with gles2

      @CiberSheep for what? gles2 is supported in ubuntu touch by default, the so file is needed only so that the linker does not complain about the lack of lib

      posted in App Development
      L
      lxsed
    • problem with gles2

      Hello, I encountered a problem developing a GLES2 application on ubuntu touch, cmake simply does not see the installed GLES2 (libgles2-mesa-dev. It is installed both on the system itself and in the build container, as indicated in the clickable.yaml)

      "Could not find OpenGL (missing: GLES2)"

      Moreover, if I try to find a package using pkg-config(in cmake), it compiles successfully, but a link error occurs, for some reason the reference to libGL(idk) remains

      posted in App Development
      L
      lxsed