armv7 embedded device with no Graphical interface



  • while trying to run configure i got this, i did clone from https://code.qt.io.

    root@axcf2152:/opt/qt5/qtbase# ./configure
    Can't locate File/Basename.pm in @INC (you may need to install the File::Basename module) (@INC contains: /etc/perl /usr/lib/perl/site_perl/5.24.4/ /usr/lib/perl/site_perl/5.24.4 /usr/lib/perl/vendor_perl/5.24.4/ /usr/lib/perl/vendor_perl/5.24.4 /usr/lib/perl/5.24.4/ /usr/lib/perl/5.24.4 /usr/local/lib/site_perl /usr/lib/perl/5.24.4 .) at /opt/qt5/qtbase/bin/syncqt.pl line 47.
    BEGIN failed--compilation aborted at /opt/qt5/qtbase/bin/syncqt.pl line 47.


  • Lifetime Qt Champion

    Did you clone qtbase directly ?

    In any case, I would recommend to put the sources somewhere a standard user can access (it's home directory for example) rather that building stuff as root.

    That said, you can clone the qt5 repository and then follow the instructions to get all the sources checkout out properly.



  • We are changing the focus and following this guide as well

    running into problems with emsdk

    Error: No tool or SDK found by name 'sdk-releases-fastcomp-f3030d9fffcc9e1287cb6b8e72982e94ece31d71-64bit'.


  • Lifetime Qt Champion

    Which guide ?



  • https://wiki.qt.io/Qt_for_WebAssembly

    my question on that is when i build from source do I only need to build QTbase ??

    thanks


  • Lifetime Qt Champion

    If you want to use QtQuick, you should also build qtdeclarative.



  • I am really not sure about what we need to be totally honest, QT has some many options it becomes overwhelming.

    We do understand that the functionality we need lies on QT Web Assembly, What would exactly the source package dependencies and all that I need to build to run the QT web assembly ?? is qt declarative and QTquick mandatories, we need this deployment as light as possible


  • Lifetime Qt Champion

    Mandatory ? No they are not, it depends mainly on what your application should show/do. If you need some fancy animations, then QtQuick is the way to go.



  • I have successfully built QTbase and emsdk (nodejs ) , what would be the next step?


  • Lifetime Qt Champion

    Create a small application and follow the Build and Run applications part of the guide you are following. Then you shall have an application ready.



  • while building

    ./configure xplatform wasm-emscripten -nomake examples -prefix $PWD/qtbase

    • cd qtbase
    • /opt/qt5/qtbase/configure -top-level xplatform wasm-emscripten -nomake examples -prefix /opt/qt5/qtbase
      <srcbase> = /opt/qt5/qtbase
      <bldbase> = /opt/qt5/qtbase
      <outbase> = /opt/qt5/qtbase
      Creating qmake...
      .Done.
      ERROR: Invalid command line parameter 'xplatform'.

  • Qt Champions 2018

    @jasonnnn said in armv7 embedded device with no Graphical interface:

    'xplatform'.

    should be -xplatform



  • thank you caught that,

    now i am getting this one

    ./configure -xplatform wasm-emscripten -nomake examples -prefix $PWD/qtbase + cd qtbase

    • /opt/qt5/qtbase/configure -top-level -xplatform wasm-emscripten -nomake examples -prefix /opt/qt5/qtbase
      <srcbase> = /opt/qt5/qtbase
      <bldbase> = /opt/qt5/qtbase
      <outbase> = /opt/qt5/qtbase
      Creating qmake...
      .Done.
      Project ERROR: Cannot run target compiler 'em++'. Output:
      ===================
      ===================
      Maybe you forgot to setup the environment?

  • Lifetime Qt Champion

    Is the compiler findable in your PATH environment variable ?



  • @sgaist how could I check that ? , i did execute source ./emsdk_env.sh


  • Lifetime Qt Champion

    First thing, try to call em++ in the same terminal you are currently building Qt in.



  • @sgaist thanks for supporting, we are finding problems building Emscripten , thatis the main reason why QT will no build. Unfortunately, we may have to give up on QT for this project.

    I don't believe you guys would be supporting un on the emscripten side, but just in case here is the build error (next post)


  • Lifetime Qt Champion

    I'm not sure I understood your issue with the emc compiler.

    In any case, the error log is missing.



  • SOrry for the missing pieces, so I am not sure if i am missing dependencies on my embbeded device, so too prrof concept I am trying to build on an Unbuntu 64, and the problem appears to be the same ,

    1 i built emsdk

    2 git clone QT5, Qtbase and QTdeclaratives

    3 tried to build QT with ./configure -xplatform wasm-emscripten -nomake examples -prefix $PWD/qtbase
    then got (execute the call on em++ which appears to be there)

    Info: creating super cache file /opt/qt5/.qmake.super
    Info: creating cache file /opt/qt5/.qmake.cache
    Project ERROR: Cannot run target compiler 'em++'. Output:

    ===================
    Maybe you forgot to setup the environment?
    root@osboxes:/opt/qt5# em++
    Traceback (most recent call last):
    File "/opt/emsdk/emscripten/1.38.31/emcc.py", line 41, in <module>
    from tools import shared, system_libs, client_mods, js_optimizer, jsrun
    File "/opt/emsdk/emscripten/1.38.31/tools/shared.py", line 782, in <module>
    CLANG_CC = os.path.expanduser(build_clang_tool_path(exe_suffix('clang')))
    File "/opt/emsdk/emscripten/1.38.31/tools/shared.py", line 647, in build_clang_tool_path
    return os.path.join(LLVM_ROOT, tool)
    File "/usr/lib/python2.7/posixpath.py", line 70, in join
    elif path == '' or path.endswith('/'):
    AttributeError: 'NoneType' object has no attribute 'endswith'

    thanks in advance


  • Lifetime Qt Champion

    You seem to use a version of the emsdk that is not mentioned in the Qt for Web Assembly wiki entry.

    Did you try to use one of these ?


Log in to reply