Thanks for reporting.   I think this should fix it:
https://github.com/emscripten-core/emscripten/pull/24034

On Wed, Apr 2, 2025 at 2:49 AM Stephan Bergmann <sberg....@gmail.com> wrote:

> I'm a complete CMake noob, so no idea what's actually going on there,
> but I just wanted to raise here that I found the relatively recent
> <
> https://github.com/emscripten-core/emscripten/commit/2ee11886a31f8ac296741e2a9bacaf2f4041b830>
>
> "Add OpenGL::GL cmake imported targets" apparently impacting my build of
> at least recent Qt6 trunk (towards Qt 6.10), where a `.../qt5/configure
> -feature-thread -feature-wasm-exceptions -feature-wasm-jspi -xplatform
> wasm-emscripten -prefix ... -qt-host-path ...` failed with
>
> > CMake Error at
> /home/sberg/emsdk/4.0.6/emsdk/emscripten/main/cmake/Modules/FindOpenGL.cmake:34
> (add_library):
> >   add_library cannot create imported target "OpenGL::GL" because another
> >   target with the same name already exists.
> > Call Stack (most recent call first):
> >   qtbase/cmake/FindWrapOpenGL.cmake:57 (find_package)
> >   qtbase/cmake/QtFindPackageHelpers.cmake:141 (find_package)
> >   qtbase/src/gui/configure.cmake:67 (qt_find_package)
> >   qtbase/cmake/QtFeature.cmake:1030 (include)
> >   qtbase/src/CMakeLists.txt:13 (qt_feature_evaluate_features)
>
> and
>
> > CMake Error at
> /home/sberg/emsdk/4.0.6/emsdk/emscripten/main/cmake/Modules/FindOpenGL.cmake:40
> (add_library):
> >   add_library cannot create imported target "OpenGL::GLU" because another
> >   target with the same name already exists.
> > Call Stack (most recent call first):
> >   qtbase/cmake/FindWrapOpenGL.cmake:57 (find_package)
> >   qtbase/cmake/QtFindPackageHelpers.cmake:141 (find_package)
> >   qtbase/src/gui/configure.cmake:67 (qt_find_package)
> >   qtbase/cmake/QtFeature.cmake:1030 (include)
> >   qtbase/src/CMakeLists.txt:13 (qt_feature_evaluate_features)
>
> and which I solved locally for now by reverting that above "Add
> OpenGL::GL cmake imported targets" emscripten commit.
>
> --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to emscripten-discuss+unsubscr...@googlegroups.com.
> To view this discussion visit
> https://groups.google.com/d/msgid/emscripten-discuss/b3546b72-2dde-4b80-9882-f331eb559f0b%40gmail.com
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to emscripten-discuss+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/emscripten-discuss/CAL_va2_qkdF0wo5cgVx-WPk6oD8XvnuVjfytjZ8Y4Wu1L9DD6g%40mail.gmail.com.

Reply via email to