extension-rive icon indicating copy to clipboard operation
extension-rive copied to clipboard

error building in 1.10.0

Open greay opened this issue 7 months ago • 11 comments
trafficstars

/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.

greay avatar Apr 15 '25 21:04 greay

Which version of the extension are you using?

This one? https://github.com/defold/extension-rive/releases/tag/3.10.0

britzl avatar Apr 16 '25 09:04 britzl

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?

JCash avatar Apr 17 '25 15:04 JCash

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

JCash avatar Apr 17 '25 17:04 JCash

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.

greay avatar Apr 17 '25 18:04 greay

I had the same issue, my colleague and I found out that this change is the what caused it

Image

if you change the function back to ConstructInstanceId(index) than it wants to build again

BrmP033 avatar Apr 28 '25 06:04 BrmP033

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.

maelig-moreau avatar May 04 '25 13:05 maelig-moreau

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:

Image

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

Image

I also verified that I am building with build.defold.com in editor preferences:

Image

I build and run and get a running Rive animation:

Image

@maelig-moreau is this combination not working for you? If not, what is different? Are you using a different OS perhaps?

britzl avatar May 06 '25 05:05 britzl

@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 :

Image

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 :

Image

And this is the bundle error :

Image

Could it be related to the build servers? Or prehaps the Android SDK?

maelig-moreau avatar May 07 '25 14:05 maelig-moreau

@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.

JCash avatar Jun 07 '25 09:06 JCash

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.

JCash avatar Jun 07 '25 09:06 JCash