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 532 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 5 Oct 2024, 06:30 last edited by alihitman99 10 May 2024, 06:32
    #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
    
    L 1 Reply Last reply 7 Oct 2024, 03:40
    0
    • C Offline
      C Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 5 Oct 2024, 07:06 last edited by Christian Ehrlicher 10 May 2024, 07:06
      #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 6 Oct 2024, 05:11
      0
      • C Christian Ehrlicher
        5 Oct 2024, 07:06

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

        A Offline
        A Offline
        alihitman99
        wrote on 6 Oct 2024, 05:11 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
          5 Oct 2024, 06:30

          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
          
          L Offline
          L Offline
          lorn.potter
          wrote on 7 Oct 2024, 03:40 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

          1/4

          5 Oct 2024, 06:30

          • Login

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