You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey! I'm following the docs but having some issues when building:
❯ cmake ..
-- Configuring done
-- Generating done
-- Build files have been written to: /home/roby/repos/ultralight-quick-start/build
❯ cmake --build . --config Release
[ 72%] Built target UltralightSDK
Consolidate compiler generated dependencies of target MyApp
[ 81%] Building CXX object CMakeFiles/MyApp.dir/src/MyApp.cpp.o
In file included from /home/roby/repos/ultralight-quick-start/build/SDK/include/Ultralight/Bitmap.h:17,
from /home/roby/repos/ultralight-quick-start/build/SDK/include/Ultralight/RenderTarget.h:16,
from /home/roby/repos/ultralight-quick-start/build/SDK/include/Ultralight/View.h:21,
from /home/roby/repos/ultralight-quick-start/build/SDK/include/Ultralight/Renderer.h:18,
from /home/roby/repos/ultralight-quick-start/build/SDK/include/AppCore/App.h:17,
from /home/roby/repos/ultralight-quick-start/build/SDK/include/AppCore/AppCore.h:1,
from /home/roby/repos/ultralight-quick-start/src/MyApp.h:2,
from /home/roby/repos/ultralight-quick-start/src/MyApp.cpp:1:
/home/roby/repos/ultralight-quick-start/build/SDK/include/Ultralight/Geometry.h: In member function‘void ultralight::vec4::load(const float*) const’:
/home/roby/repos/ultralight-quick-start/build/SDK/include/Ultralight/Geometry.h:403:7: error: assignment of member ‘ultralight::vec4::x’ in read-only object
403 | x = val[0];|~~^~~~~~~~
/home/roby/repos/ultralight-quick-start/build/SDK/include/Ultralight/Geometry.h:404:7: error: assignment of member ‘ultralight::vec4::y’ in read-only object
404 | y = val[1];|~~^~~~~~~~
/home/roby/repos/ultralight-quick-start/build/SDK/include/Ultralight/Geometry.h:405:7: error: assignment of member ‘ultralight::vec4::z’ in read-only object
405 | z = val[2];|~~^~~~~~~~
/home/roby/repos/ultralight-quick-start/build/SDK/include/Ultralight/Geometry.h:406:7: error: assignment of member ‘ultralight::vec4::w’ in read-only object
406 | w = val[3];|~~^~~~~~~~
/home/roby/repos/ultralight-quick-start/src/MyApp.cpp: In constructor ‘MyApp::MyApp()’:
/home/roby/repos/ultralight-quick-start/src/MyApp.cpp:23:29: error: no matching functionfor call to ‘ultralight::Overlay::Create(ultralight::Window&, int, int, int, int)’
23 | overlay_ = Overlay::Create(*window_.get(), 1, 1, 0, 0);
|~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/roby/repos/ultralight-quick-start/build/SDK/include/AppCore/AppCore.h:4,
from /home/roby/repos/ultralight-quick-start/src/MyApp.h:2,
from /home/roby/repos/ultralight-quick-start/src/MyApp.cpp:1:
/home/roby/repos/ultralight-quick-start/build/SDK/include/AppCore/Overlay.h:43:26: note: candidate: ‘static ultralight::RefPtr<ultralight::Overlay> ultralight::Overlay::Create(ultralight::RefPtr<ultralight::Window>, uint32_t, uint32_t, int, int)’
43 | static RefPtr<Overlay> Create(RefPtr<Window> window, uint32_t width,
| ^~~~~~
/home/roby/repos/ultralight-quick-start/build/SDK/include/AppCore/Overlay.h:43:48: note: no known conversion for argument 1 from ‘ultralight::Window’ to ‘ultralight::RefPtr<ultralight::Window>’
43 | static RefPtr<Overlay> Create(RefPtr<Window> window, uint32_t width,
|~~~~~~~~~~~~~~~^~~~~~
/home/roby/repos/ultralight-quick-start/build/SDK/include/AppCore/Overlay.h:59:26: note: candidate: ‘static ultralight::RefPtr<ultralight::Overlay> ultralight::Overlay::Create(ultralight::RefPtr<ultralight::Window>, ultralight::RefPtr<ultralight::View>, int, int)’
59 | static RefPtr<Overlay> Create(RefPtr<Window> window, RefPtr<View> view, int x, int y);| ^~~~~~
/home/roby/repos/ultralight-quick-start/build/SDK/include/AppCore/Overlay.h:59:26: note: candidate expects 4 arguments, 5 provided
make[2]: *** [CMakeFiles/MyApp.dir/build.make:76: CMakeFiles/MyApp.dir/src/MyApp.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:111: CMakeFiles/MyApp.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
I do have gcc/clang and cmake as requested:
❯ gcc --version
gcc (GCC) 11.1.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the sourcefor copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
❯ clang --version
clang version 13.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
❯ cmake --version
cmake version 3.22.2
CMake suite maintained and supported by Kitware (kitware.com/cmake).
Kernel:
❯ uname -r
5.16.5-arch1-1
And I've also installed build-essential equivalent package on Arch, which is base-devel.
Any idea?
The text was updated successfully, but these errors were encountered:
Hey! I'm following the docs but having some issues when building:
I do have gcc/clang and cmake as requested:
Kernel:
And I've also installed
build-essential
equivalent package on Arch, which is base-devel.Any idea?
The text was updated successfully, but these errors were encountered: