Unable to build flamenco on WIndows 11 #102633

Closed
opened 2022-11-20 07:01:29 +01:00 by Greg Neumiller · 12 comments

Build failure when attempting to build under Windows with cmd.exe & mingw64 make, caused by the use of the rm command that's not available on stock Windows.

PS D:\gits\git-blender-flamenco\flamenco> make
yarn --cwd web/app install
yarn install v1.22.19
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.16s.
D:/mingw64/bin/make webapp-static
make[1]: Entering directory 'D:/gits/git-blender-flamenco/flamenco'
go build -v -ldflags="-X git.blender.org/flamenco/internal/appinfo.ApplicationVersion=3.2-alpha -X git.blender.org/flamenco/internal/appinfo.ApplicationGitHash=v3.1-23-ge700e0ef -X git.blender.org/flamenco/internal/appinfo.ReleaseCycle=alpha" git.blender.org/flamenco/cmd/addon-packer
git.blender.org/flamenco/cmd/addon-packer
D:/mingw64/bin/make clean-webapp-static
make[2]: Entering directory 'D:/gits/git-blender-flamenco/flamenco'
rm -rf ./web/static
process_begin: CreateProcess(NULL, rm -rf ./web/static, ...) failed.
make (e=2): The system cannot find the file specified.
make[2]: *** [Makefile:223: clean-webapp-static] Error 2
make[2]: Leaving directory 'D:/gits/git-blender-flamenco/flamenco'
make[1]: *** [Makefile:87: webapp-static] Error 2
make[1]: Leaving directory 'D:/gits/git-blender-flamenco/flamenco'
make: *** [Makefile:60: flamenco-manager] Error 2

Uploaded a potential fix at D16562: Fix #102633 by having Windows-specific commands in Makefile.

The proposed fix enables building flamenco only. It does not enable publishing the project web site, etc

Build failure when attempting to build under Windows with cmd.exe & mingw64 make, caused by the use of the `rm` command that's not available on stock Windows. ``` PS D:\gits\git-blender-flamenco\flamenco> make yarn --cwd web/app install yarn install v1.22.19 [1/4] Resolving packages... success Already up-to-date. Done in 0.16s. D:/mingw64/bin/make webapp-static make[1]: Entering directory 'D:/gits/git-blender-flamenco/flamenco' go build -v -ldflags="-X git.blender.org/flamenco/internal/appinfo.ApplicationVersion=3.2-alpha -X git.blender.org/flamenco/internal/appinfo.ApplicationGitHash=v3.1-23-ge700e0ef -X git.blender.org/flamenco/internal/appinfo.ReleaseCycle=alpha" git.blender.org/flamenco/cmd/addon-packer git.blender.org/flamenco/cmd/addon-packer D:/mingw64/bin/make clean-webapp-static make[2]: Entering directory 'D:/gits/git-blender-flamenco/flamenco' rm -rf ./web/static process_begin: CreateProcess(NULL, rm -rf ./web/static, ...) failed. make (e=2): The system cannot find the file specified. make[2]: *** [Makefile:223: clean-webapp-static] Error 2 make[2]: Leaving directory 'D:/gits/git-blender-flamenco/flamenco' make[1]: *** [Makefile:87: webapp-static] Error 2 make[1]: Leaving directory 'D:/gits/git-blender-flamenco/flamenco' make: *** [Makefile:60: flamenco-manager] Error 2 ``` Uploaded a potential fix at [D16562: Fix #102633 by having Windows-specific commands in Makefile](https://archive.blender.org/developer/D16562). The proposed fix enables building flamenco only. It does not enable publishing the project web site, etc
Sybren A. Stüvel was assigned by Greg Neumiller 2022-11-20 07:01:29 +01:00
Author

Added subscriber: @rlneumiller

Added subscriber: @rlneumiller
sustaclasse commented 2022-11-20 10:31:44 +01:00 (Migrated from localhost:3001)

Added subscriber: @sustaclasse

Added subscriber: @sustaclasse
sustaclasse commented 2022-11-20 10:31:44 +01:00 (Migrated from localhost:3001)

This comment was removed by @sustaclasse

*This comment was removed by @sustaclasse*

Added subscriber: @brecht

Added subscriber: @brecht

Removed subscribers: @brecht, @sustaclasse

Removed subscribers: @brecht, @sustaclasse
Author

Utilizing MSYS2 on Windows I'd thought I'd eliminated the build problems without requiring a rewrite of the Makefile. However, though the default build does build without error under msys2, flamenco-manager hangs before serving up the app webpage. I'll continue poking around with the msys build to understand what is going wrong. Meanwhile, I can successfully build the default target via vanilla Windows shell with the modified makefile, which allows me to debug flamenco-manager in a good state.

Utilizing MSYS2 on Windows I'd thought I'd eliminated the build problems without requiring a rewrite of the Makefile. However, though the default build does build without error under msys2, flamenco-manager hangs before serving up the app webpage. I'll continue poking around with the msys build to understand what is going wrong. Meanwhile, I can successfully build the default target via vanilla Windows shell with the modified makefile, which allows me to debug flamenco-manager in a good state.

Thanks for the report & the patch -- I'll write replies/comments on the patch itself directly at D16562.

What I would like to have for Flamenco, but personally don't really have the time for, is a way to avoid make altogether. https://github.com/magefile/mage could be a good alternative, but reimplementing everything in the Makefile would take a considerable amount of time. Would you be interested in helping there as well?

Thanks for the report & the patch -- I'll write replies/comments on the patch itself directly at [D16562](https://archive.blender.org/developer/D16562). What I would like to have for Flamenco, but personally don't really have the time for, is a way to avoid `make` altogether. https://github.com/magefile/mage could be a good alternative, but reimplementing everything in the `Makefile` would take a considerable amount of time. Would you be interested in helping there as well?
Author

Sounds like fun. Sign me up! Would be a great way to become more familiar with golang as well.

Sounds like fun. Sign me up! Would be a great way to become more familiar with golang as well.

Excellent! It might be good for you to pop over to https://blender.chat/channel/flamenco/ and poke me (I'm @dr.sybren there). That'll be an easier way to do a quick back&forth to get you started.

Excellent! It might be good for you to pop over to https://blender.chat/channel/flamenco/ and poke me (I'm `@dr.sybren` there). That'll be an easier way to do a quick back&forth to get you started.
Author

I'm 8 hours behind you (02:08 here) so I'll try to catch you in the afternoon.

I'm 8 hours behind you (02:08 here) so I'll try to catch you in the afternoon.
Sybren A. Stüvel removed their assignment 2023-01-03 09:51:58 +01:00

Added subscriber: @dr.sybren

Added subscriber: @dr.sybren
Sybren A. Stüvel added
Type
Bug
and removed
Type
Report
labels 2023-02-17 11:10:19 +01:00
Sybren A. Stüvel added
Status
Confirmed
and removed
Status
Needs Triage
labels 2023-02-17 11:18:38 +01:00
Author

Life happened and I wasn't able to look into this. Now that I'm "able" again, I've got other stuff with higher priority.

Life happened and I wasn't able to look into this. Now that I'm "able" again, I've got other stuff with higher priority.
Sign in to join this conversation.
No Milestone
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: studio/flamenco#102633
No description provided.