Skip to content

Conversation

@patrick-wolfram
Copy link
Contributor

Previously the list of libraries gathered started with the libraries included in the package, then the dependency libraries were gathered. This list was finally reversed before being returned.

This causes an issue where the libraries included in the package are listed last when linking the final shared library and all of the dependencies are listed before that. Because of this, the symbols in the package libraries are not resolved.

I have modified it so that the package libraries are added to the list, then the dependencies, in reverse order, are added to the list.

P.S. - I know that you've migrated to semiwrap, and I intend to do this as well. But I was several libraries in when that migration started, so I decided to finish the robotpy-build wrapping first before migrating!

@virtuald
Copy link
Member

virtuald commented Jun 4, 2025

Good catch, LGTM. Thanks.

BTW, one big change that I made in semiwrap is that all the YAML files need to have the full namespace in them for classes, so I wrote a script to make the migration easier.

@virtuald
Copy link
Member

virtuald commented Jun 4, 2025

This has actually been a weird issue for many years, so I was just adding all of the libraries to each dependent wrapper. Ha!

@virtuald virtuald merged commit f444131 into robotpy:main Jun 4, 2025
40 of 66 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants