-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
I get the following error while compiling (I have all the specified prerequisites):
$ cmake --build . --config Release
[ 9%] Creating directories for 'UltralightSDK'
[ 18%] Performing download step (download, verify and extract) for 'UltralightSDK'
-- Downloading...
dst='src/ultralight-quick-start/build/UltralightSDK-prefix/src/ultralight-sdk-latest-mac-x64.7z'
timeout='none'
inactivity timeout='none'
-- Using src='https://ultralight-sdk.sfo2.cdn.digitaloceanspaces.com/ultralight-sdk-latest-mac-x64.7z'
-- [download 0% complete]
...
-- [download 100% complete]
* Closing connection 0
-- Downloading... done
-- extracting...
src='src/ultralight-quick-start/build/UltralightSDK-prefix/src/ultralight-sdk-latest-mac-x64.7z'
dst='src/ultralight-quick-start/build/SDK'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[ 27%] No update step for 'UltralightSDK'
[ 36%] No patch step for 'UltralightSDK'
[ 45%] No configure step for 'UltralightSDK'
[ 54%] No build step for 'UltralightSDK'
[ 63%] No install step for 'UltralightSDK'
[ 72%] Completed 'UltralightSDK'
[ 72%] Built target UltralightSDK
[ 81%] Building CXX object CMakeFiles/MyApp.dir/src/MyApp.cpp.o
In file included from src/ultralight-quick-start/src/MyApp.cpp:1:
In file included from src/ultralight-quick-start/src/MyApp.h:2:
In file included from src/ultralight-quick-start/build/SDK/include/AppCore/AppCore.h:1:
In file included from src/ultralight-quick-start/build/SDK/include/AppCore/App.h:17:
In file included from src/ultralight-quick-start/build/SDK/include/Ultralight/Renderer.h:18:
In file included from src/ultralight-quick-start/build/SDK/include/Ultralight/View.h:21:
In file included from src/ultralight-quick-start/build/SDK/include/Ultralight/RenderTarget.h:16:
In file included from src/ultralight-quick-start/build/SDK/include/Ultralight/Bitmap.h:17:
src/ultralight-quick-start/build/SDK/include/Ultralight/Geometry.h:402:18: warning:
'constexpr' non-static member function will not be implicitly 'const' in
C++14; add 'const' to avoid a change in behavior [-Wconstexpr-not-const]
constexpr void load(const float* val) {
^
const
src/ultralight-quick-start/build/SDK/include/Ultralight/Geometry.h:403:7: error:
cannot assign to non-static data member within const member function
'load'
x = val[0];
~ ^
src/ultralight-quick-start/build/SDK/include/Ultralight/Geometry.h:402:18: note:
member function 'ultralight::vec4::load' is declared const here
constexpr void load(const float* val) {
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
src/ultralight-quick-start/build/SDK/include/Ultralight/Geometry.h:404:7: error:
cannot assign to non-static data member within const member function
'load'
y = val[1];
~ ^
src/ultralight-quick-start/build/SDK/include/Ultralight/Geometry.h:402:18: note:
member function 'ultralight::vec4::load' is declared const here
constexpr void load(const float* val) {
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
src/ultralight-quick-start/build/SDK/include/Ultralight/Geometry.h:405:7: error:
cannot assign to non-static data member within const member function
'load'
z = val[2];
~ ^
src/ultralight-quick-start/build/SDK/include/Ultralight/Geometry.h:402:18: note:
member function 'ultralight::vec4::load' is declared const here
constexpr void load(const float* val) {
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
src/ultralight-quick-start/build/SDK/include/Ultralight/Geometry.h:406:7: error:
cannot assign to non-static data member within const member function
'load'
w = val[3];
~ ^
src/ultralight-quick-start/build/SDK/include/Ultralight/Geometry.h:402:18: note:
member function 'ultralight::vec4::load' is declared const here
constexpr void load(const float* val) {
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
src/ultralight-quick-start/build/SDK/include/Ultralight/Geometry.h:402:18: error:
constexpr function's return type 'void' is not a literal type
constexpr void load(const float* val) {
^
src/ultralight-quick-start/build/SDK/include/Ultralight/Geometry.h:409:18: error:
constexpr function's return type 'void' is not a literal type
constexpr void store(float* val) const {
^
src/ultralight-quick-start/src/MyApp.cpp:23:14: error: no
matching function for call to 'Create'
overlay_ = Overlay::Create(*window_.get(), 1, 1, 0, 0);
^~~~~~~~~~~~~~~
src/ultralight-quick-start/build/SDK/include/AppCore/Overlay.h:43:26: note:
candidate function not viable: no known conversion from
'ultralight::Window' to 'RefPtr<ultralight::Window>' for 1st argument
static RefPtr<Overlay> Create(RefPtr<Window> window, uint32_t width,
^
src/ultralight-quick-start/build/SDK/include/AppCore/Overlay.h:59:26: note:
candidate function not viable: requires 4 arguments, but 5 were provided
static RefPtr<Overlay> Create(RefPtr<Window> window, RefPtr<View> view...
^
1 warning and 7 errors generated.
make[2]: *** [CMakeFiles/MyApp.dir/src/MyApp.cpp.o] Error 1
make[1]: *** [CMakeFiles/MyApp.dir/all] Error 2
make: *** [all] Error
Metadata
Metadata
Assignees
Labels
No labels