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
Building from source on macOS #27
Comments
It looks like you're on a Mac. To have a full Mac build you would need to install MacPorts, Qt and then a couple of external libraries by running the commands documented here in a Terminal. To build VideoStitch Studio, then run
and finally I've created a ticket to provide Mac binaries, #28. While progress on Windows has been stagnant unfortunately, I'll try to make progress on this in the coming weeks. |
Thanks so much for your help. I've made progress! Installed MacProts, Qt, and all of the dependencies. Running the cmake command I get this error: I've no doubt I'm just being dumb, but I can't make sense of what I'm not doing right to solve this. I've tried the stitchEm folder on Desktop only, in users/steve only and in both places. Everything throws up one error or another. Any further help is greatly appreciated - especially since I feel like I've made progress! |
Ok, a few more tweaks, now this error:
|
The cache error can be avoided by creating a build folder and doing all CMake operations in this build folder. If you do another build with another configuration, create a different build folder.
This error is only thrown if CMake detects the system to be Windows. Please try using the command line (not the CMake GUI), with the exact CMake command given above, in a clean build folder. Otherwise it's hard to reproduce what flags you might be setting in the CMake GUI. |
Thanks again. I have been running the exact command
copied and pasted, with a clean download of the source (0.0.9), and using terminal. |
Please paste the output from the command here. |
|
Please use the latest master version, which has a few more build fixes than 0.0.9: https://github.com/stitchEm/stitchEm/archive/master.zip Also give |
Ok, so more progress but no success, I'm afraid
|
I installed Ceres Solver - http://ceres-solver.org/installation.html#mac-os-x using: sudo port install ceres-solver That's moved me to the next error:
Qt was installed today |
Alright, getting closer. Please note that there are two commands for things to install with MacPorts: https://github.com/stitchEm/stitchEm/blob/master/doc/BUILD.md#using-macports If ceres-solver was missing, you may have missed the second one. Please replace the Qt path to the Qt version in the CMake command ("~/Qt/5.9.6") with the one you installed today. |
I ran the second dependencies PORT install. I've no idea why Ceres wasn't installed. ffmpeg was, which is later in the sequence. I've since re-installed qt5 with MacPorts and have hopped that error. I think it boiled down to 'openal' not installing and there being some issue with it in its latest version. I've now managed to install it and have reached this point in Terminal:
I have no .app or anything that I can seem to run. What should I have to show for myself?! |
This is just the configuration for the build. Now that it's complete run If this finishes without error, you'll then have a binary that you can run: bin/x64/release/Studio/videostitch-studio It's missing some of the niceties of an app package (icons, proper name, portability to other machines), but otherwise it should run just the same. Watch progress on #28 for app package. |
:( Thanks so much for your help and patience. I will indeed wait for #28 Thanks for what you're doing. I bought Studio and I can't re-license it on a new machine. Steve |
Run ninja again, paste the output. Need the line that contains an error message (the warnings can be ignored, although it's strange, there shouldn't be any). |
|
Unfortunately this is not enough information to fix whatever the problem is. It's also not an issue I've seen before. What kind of GPU are you using? If you're not using Nvidia graphics, disable CUDA support by deleting everything in the build folder, then running CMake again, but replace |
Ok, I've rerun everything with cmake with CUDA OFF, and built again with ninja and we have a winner! (I'd run that before your last post, so I was feeling pretty good about it all!) GPU is just the latest Macbook Pro internal iris. I'd left both build flags on as in the last Studio it would detect, so I assumed it wouldn't mind! So much good stuff here - except - sadly it's crashing at 99% when I try to stitch. I'm so made up that this is launching at all at the moment though. Thank you so much for your help and amazing patience! I'll see what I can achieve with a few workflow tweaks. |
I tried on a current MacBook and was able to reproduce a crash. I fixed it in a git branch, you can download the updated source here: https://github.com/stitchEm/stitchEm/archive/mask-merger-destructor.zip While running Studio I noticed a different issue with OpenCL on this machine. I was still able to stitch but it could cause problems with other features, better fix it too. Please do the following:
|
Wonderful! I can stitch! Sadly though, I cannot export! Application Process window export log shows:
Application log shows
The same result if I use either or no audio in the stitch, and AAC or MP3. Sorry! And thanks again for your patience and help |
Go to the |
Absolutely amazing! Thank you so much for all of your fantastic support. I have a stitch!! Thank you for all you're doing to keep this project going. It's a great piece of software and I'm thrilled that it's not been lost. |
Hooray! I'm glad you made it completely through this arduous process and got something working in the end. And thank you for the encouragement! |
Honestly, it's you that's due the thanks! Hopefully the progress in #28 will mean I never need to darken your digital door again! |
I'm closing this issue as the build is working now. Feel free to come knocking to our digital door again if you have other questions! |
Just ran into the same issue as described. This was the solution for me. |
Thanks for this great thread, I helped save time getting the build going on Mac. I did get everything working, but at the end the stitched output file is not being written to disk. I get the following Messages from the Ouput Log:
This gets repeated for every frame processed. I am on macOS Catalina (10.15.4) Thanks, and thanks for getting this useful tool out on Open Source. |
same here, on Mojave |
How did you install ffmpeg, through MacPorts? Did you install it including the non-free codecs? Can you export to a JPEG sequence successfully, or is there a similar error? |
Originally, I had installed via HomeBrew, but just to be on the safe side I:
My mac has AMD Radeon Pro 5500M GPU. (Which VideoStitch recognized) I ran the new VideoStitch executable and I started a new project (just in case) with new source videos. These are my findings:
The Log Looks like:
I was wondering if this would be different If I could apply the rig presets. I found the following file: Thanks for your help. |
ffmpeg was installed like
I have not tried the JPEG sequence export yet. But thought being able to export at a lower resolution might uncover the problem. Thanks. |
If exporting a resolution <4K works, and it stops working when exporting > 4K, than the installation itself seems fine. Encoding a resolution beyond 4K with h264 can be tricky. If I recall correctly, the solution is to change the container format from MP4 to MOV. |
I just build and tried that, H264 output does not work with resolution > 4K with either container format on Mac. MPEG and Motion JPEG outputs should work with these resolutions, ProRes too (in MOV containers). You could export with a high bitrate or ProRes and then use the ffmpeg already installed to convert the output file to a codec of your choosing afterwards. |
Hi all,
Sorry in advance for this but I can't build this.
I was a VideoStitch studio customer and I'm just trying to pick up where I left off as a stitcher not a coder. I've installed the GUI version of CMAKE and tried to compile there but get errors building.
I appreciate there are numerous external dependencies but is there any prospect of this being packaged up for folk like me?
Many thanks and sorry for the low level skills issues!
Steve
The text was updated successfully, but these errors were encountered: