Skip to content
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

Does not work after compiling on windows! #946

Open
HasseM opened this issue Nov 17, 2023 · 1 comment
Open

Does not work after compiling on windows! #946

HasseM opened this issue Nov 17, 2023 · 1 comment

Comments

@HasseM
Copy link

HasseM commented Nov 17, 2023

Not a lot of support here, right? Why? It's really really complicated to get it to work on Windows. I spend already many many hours on it and finally I had it compiling. Seems the instructions are outdated, if anyone cares, I'll be happy to share the problems so it can be updated.

But anyhow, AFTER compiling it is not working. In Python the import openshot goes well. but openshot.GetVersion() gives me:
AttributeError: module 'openshot' has no attribute 'GetVersion'

There are two existing issues to be found around this from 2019 but they give me no clue how to fix it. What I did after compiling was:

  • create a folder called 'openshot' in c:\python\lib. And copy _openshot.pyd and openshot.py in there from the build/bindings/python folder.

I also tried:

  • put it in the site-packages folder in stead of lib folder but then it doesn't find the module at all (fail on import statement)
  • add libopenshot.dll to it, doesn't change a thing.

My PATH contains the program files/openshot video editor/lib folder. I have no other issues with python packages at all. dir(openshot) returns nothing at all.

I am using python from the windows command prompt.

Compiling went all without real problems. The unit testing gave an error though:
The following tests FAILED:
1 - AudioDeviceManager:Initialize Audio Device Manager Singleton (Failed)
25 - Caption:caption effect (SEGFAULT)
Errors while running CTest

But nothing else mentionable.

@vndrks
Copy link

vndrks commented Jul 23, 2024

Hi HasseM. I cannot working for compile.
I trying to compile on windows, but I failed that, Could you help me with this problem?
I followed the manual on Github to preceeded with the Openshot build.

Question 1
I try to cmake compile it. This was successful but I had warned It was not found ImageMagicK.
I installed the ImageMagick package via the Pacman command. However, a log like the one below is output.
-- Could NOT find ImageMagick (missing: ImageMagick_Magick++_LIBRARY ImageMagick_MagickCore_LIBRARY) (found version "7.1.1-34")
I want to know why this message was outputted.

Question 2.
There were no errors during CMake, so I attempted to compile with make.
However, I encountered the following error. I haven't modified the source code within the library, so I'm not sure why this is happening.
D:\Develop\Libraries\openshot\libopenshot\src\Clip.h(89) : Warning 802: Warning for openshot::Clip, base openshot::ReaderBase ignored. Multiple inheritance is not supported in Ruby.
D:\Develop\Libraries\openshot\libopenshot\src\Timeline.h(148) : Warning 802: Warning for openshot::Timeline, base openshot::ReaderBase ignored. Multiple inheritance is not supported in Ruby.
[ 67%] Building CXX object bindings/ruby/CMakeFiles/rbopenshot.dir/CMakeFiles/rbopenshot.dir/openshotRUBY_wrap.cxx.obj
In file included from C:/msys64/mingw64/include/QtCore/qstring.h:50,
from C:/msys64/mingw64/include/QtCore/qhashfunctions.h:44,
from C:/msys64/mingw64/include/QtCore/qlist.h:47,
from C:/msys64/mingw64/include/QtCore/qstringlist.h:41,
....

Can I get another build tips ? I applied system variable on Windows.

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

No branches or pull requests

2 participants