-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python swig wrapper bitrotted #283
Comments
oh yes somethings had changed, it is up to date now. when building with visual studio, the cmake script copy a plugin to the blender folder, is you do has blender installed in the default folder you have to launch visual studio as administrator. I have not added a way to disable that part, since I never though anyone would use it for anything other than blender. |
Thanks for the warning, on linux it tries to put the output in I'll report how it goes on windows presently. |
Ah yes in Linux it will not know how to find the Python dependency.
In window, I just read it fron the env variable.
If you get it to work in Linux, maybe you can submit a pull request. Or
just tell me how to do it and I add it.
…On Fri, Jul 8, 2022, 11:03 AM Logan Perkins ***@***.***> wrote:
Thanks for the warning, on linux it tries to put the output in
/scripts/addons/newtonPy, which would have confused me without it. It
also didn't automatically figure out it needed to include or link the
python stuff, but telling CMake to add those is trivial.
I'll report how it goes on windows presently.
—
Reply to this email directly, view it on GitHub
<#283 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB6EPJAYQM4CJTDE3U4ZYQTVTBUQHANCNFSM527YUAIQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Easy enough: #284 Also, it looks like the interface may have bitrotted a bit more here, as the It may be worth setting up some github actions to build with all the options on to catch these while the changes are super fresh. I have some experience with GH actions if you want me to do that. It would also make cutting release builds easier. |
I merged the pull request. thanks %{ |
I can confirm cmake can find python on windows.
This appears to be because swig doesn't see where |
With the latest changes, the python wrapper appears to be working nicely. I opened #286 to finish resolving some linux vs windows issues with it, but I think this issue is otherwise ready to close. |
It looks like some of the files and variable names have changed since the last time the swig python bindings were built.
For starters newton.i starting at line 63 needs this change
And a number of types have changed from (for example,
dMin
tondMin
.Additionally, the CMakeLists.txt files in newtonPy generates a makefile (on linux) or msvc project file (on windows) which fails to build with
/tmp/newton-dynamics/newton-4.00/applications/toolsAndWrapers/newtonPy/../../../sdk/dNewton/ndWorld.h:29:10: fatal error: ndBodyParticleSetList.h: No such file or directory
(Or similar errors depending on the compiler used).
I did successfully generate the wrapper on linux, by manually invoking the compiler and linker, but it fails on windows even if manually called complaining about missing
??_GndNodeBase@ndShapeCompound@@QEAAPEAXI@Z
(among other symbols).Some of the missing symbols could be found in
build/sdk/ndNewton.dir/Release/ndVector.obj
, but not all of them, and I wouldn't expect to need to link in an obj file directly.Anyway, I have a bit of time to keep poking at this, but would like some advice on where to proceed next. Unfortunately, I need it working on windows for the current project.
The text was updated successfully, but these errors were encountered: