extension-rive
extension-rive copied to clipboard
error building in 1.10.0
/defold-rive/src/comp_rive.cpp
Line 1503: no member named 'CreateInstanceId' in namespace 'dmGameObject'
dmhash_t id = dmGameObject::CreateInstanceId();
~~~~~~~~~~~~~~^
I'm at a loss here.
Which version of the extension are you using?
This one? https://github.com/defold/extension-rive/releases/tag/3.10.0
It is important that you keep track of which versions of the extension and the Editor you match together. And it really helps us understand what is actually being tested here.
Also, I've personally tested with Defold 1.10.0 and extension-rive 3.11.1 Does that combination not work for you?
But, if you check the release notes for extension-rive 3.11.0:
Updated for Defold 1.10.1+
This is not the version you are using.
The last version supporting Defold 1.10.0, it extension-rive 3.10.0
Which version of the extension are you using?
This one? https://github.com/defold/extension-rive/releases/tag/3.10.0
Now I am, and it solves the issue. I had it set to master (which would've been ~ 3.11.1) which was why it broke.
I had the same issue, my colleague and I found out that this change is the what caused it
if you change the function back to ConstructInstanceId(index) than it wants to build again
Hello everyone, bumping this issue because I've tried multiple versions of defold and the extension and it keeps failing to bundle, always with different error messages depending on the combo. I was even trying to build in 1.8 with the matching rive version, which used to work, until I tried again a few months later.
Hello everyone, bumping this issue because I've tried multiple versions of defold and the extension and it keeps failing to bundle
This morning I opened the Rive template project in Defold 1.10.0 on my macbook:
I changed the dependency to the one specified to work with Defold 1.10.0:
https://github.com/defold/extension-rive/archive/refs/tags/3.10.0.zip
https://github.com/defold/extension-rive/releases/tag/3.10.0
I also verified that I am building with build.defold.com in editor preferences:
I build and run and get a running Rive animation:
@maelig-moreau is this combination not working for you? If not, what is different? Are you using a different OS perhaps?
@britzl Thank you for your detailed answer. I forgot to mention I was trying to bundle for Android. I was able to build the rive template project on Windows 10, however bundling for android also failed. Here is the log :
I mixed things up in my previous message, the last version that worked for me was with the rive extension version 1.3.0, matching the editor 1.4.8 (long time no see!). This is the build error :
And this is the bundle error :
Could it be related to the build servers? Or prehaps the Android SDK?
@maelig-moreau Your screenshot says you're building for armv7-android:
"/opt/platformsdk/android/android-ndk-r25b/toolchains/lm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabil9-clang+"
And in the readme for this extension, it says this extensino doesn't support that platform:
Platform support
All platforms are supported except WebGL1, Android with armv7 and consoles. WebGL2 and arm64 for Android are supported however.
As for the OP, I believe we have shows that it's possible to build using correct versions matched together. The takeaway perhaps is: Don't use main.zip unless you really know you can useit and actually need it.