Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for WebAssembly
  4. how can i use library osg in webAssembly?
Forum Updated to NodeBB v4.3 + New Features

how can i use library osg in webAssembly?

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
4 Posts 3 Posters 540 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    alihitman99
    wrote on last edited by alihitman99
    #1

    i my project i use the library osg and osgEarth. and now i want to use this project for webAssembly. the version of qt is 6.5 and os is centos8. In this link, it is said that you should build OSG with emCmake or emconfigure.
    [https://github.com/cubicool/osg-wasm](link url)
    But it gives an error when it is build. Where is the problem?

    emconfigure cmake . -DCMAKE_TOOLCHAIN_FILE=../emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake
    
    lorn.potterL 1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by Christian Ehrlicher
      #2

      Shouldn't you ask the osg devs on how to use their library with web assembly?

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      A 1 Reply Last reply
      0
      • Christian EhrlicherC Christian Ehrlicher

        Shouldn't you ask the osg devs on how to use their library with web assembly?

        A Offline
        A Offline
        alihitman99
        wrote on last edited by
        #3

        @Christian-Ehrlicher Unfortunately, I asked this question in the OSG forum, but I did not get an answer

        1 Reply Last reply
        0
        • A alihitman99

          i my project i use the library osg and osgEarth. and now i want to use this project for webAssembly. the version of qt is 6.5 and os is centos8. In this link, it is said that you should build OSG with emCmake or emconfigure.
          [https://github.com/cubicool/osg-wasm](link url)
          But it gives an error when it is build. Where is the problem?

          emconfigure cmake . -DCMAKE_TOOLCHAIN_FILE=../emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake
          
          lorn.potterL Offline
          lorn.potterL Offline
          lorn.potter
          wrote on last edited by
          #4

          @alihitman99
          What is the error message?

          Freelance Software Engineer, Platform Maintainer QtWebAssembly, Maintainer QtSensors
          Author, Hands-On Mobile and Embedded Development with Qt 5 http://bit.ly/HandsOnMobileEmbedded

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved