Results 1 to 4 of 4

Thread: Qt and Web Assembly - Installation, running examples and openCV

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Qt and Web Assembly - Installation, running examples and openCV

    I don't know if it get used by make, by the compiler or not, or at which state. I usually use cmake but I simply try to understand the basics of it until it works.
    This file is used by cmake as it generates the Makefile for Qt WebAssembly.

    I think you can define a cmake variable QT_WASM_EXTRA_EXPORTED_METHODS and set it to "specialHTMLTargets" (or append this to what is there if it is already defined, separated by a comma). The script above looks for this variable and appends the contents to the wasm_extra_exported_methods variable, which in turn adds it to the "SHELL: -s" link options.

    You might find the QT_WASM... variable defined (but possibly empty) in one of the top-level CMakeLists.txt files for Qt WebAssembly.

    Edit: Now that I changed your QUOTE tags to CODE tags, I can see that what you pasted was a function definition. I was misreading it a bit prior to that. Instead of a variable, you may have to look for a call to set_target_properties() or set_property( TARGET ... ) that contains the QT_WASM... name and modify that. See this stackoverflow post about how to use set_property.

    My Qt 5.14.2 distribution doesn't seem to have any of the Qt WebAssembly source files, so I can't really check this out.
    Last edited by d_stranz; 18th February 2023 at 17:00.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. Running Qwt examples on Android ?
    By esutton in forum Qwt
    Replies: 3
    Last Post: 3rd September 2014, 09:28
  2. Running QWT Examples in Mac OS X
    By lynchkp in forum Qwt
    Replies: 7
    Last Post: 7th November 2012, 22:46
  3. QtCreate 2.3.0 and Opencv 2.3.0 installation
    By MohdRash in forum Newbie
    Replies: 3
    Last Post: 31st October 2011, 20:13
  4. Prblem in Building and running Examples.
    By Tarun in forum Qt Programming
    Replies: 1
    Last Post: 21st January 2010, 13:45
  5. Running Qt Creator examples
    By Saman in forum Newbie
    Replies: 5
    Last Post: 5th May 2009, 20:21

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.