Fwd: Compile problem Survex 1.2.43 - OSX 12.1

Olly Betts olly at survex.com
Fri Feb 25 23:46:05 GMT 2022


On Fri, Feb 25, 2022 at 10:38:16PM +0100, Ladislav Blažek wrote:
> forwarding my mail to you directly as it is for some reason waiting
> review for approval.

Currently the list is set such that new subscribers are moderated by
default.  It's not ideal, but I've seen an increasing number of
suspect looking subscription attempts over time.  Subscription requests
are also held for review and I discard those that are clearly spammers
(in many cases it's obvious from the address, or there's also a spam
message held by the list from the same address).  Of the rest some I'm
dubious about, but have no way to know so I've settled for now on
approving them and having new subscribers moderated by default.  The
first message gets held, but I approve it and clear the moderation flag
so it should be a one time thing (unless I forget to go and clear the
flag as it's a different UI to the approval one) and it doesn't affect
people who never actually post.

> BTW, is there an easy way to compile HEAD version of Survex from Git?
> In my therion brew formula I can install the HEAD (the latest commit)
> version by running brew install therion —HEAD. See
> https://github.com/ladislavb/homebrew-therion

I don't actually have a Mac to test any of this on, but if you can send
a patch to make `--HEAD` work that seems a useful option.

> I tried to clone Survex repo but I am not able to find a way how to
> run configure && make. Sorry for maybe stupid question. Thanks 

You need to run `autoreconf -fiv` first (standard autotools
bootstrapping command).  Annoyingly that replaces INSTALL by a generic
version, so doing `git checkout INSTALL` after it to restore the custom
INSTALL is a good idea.

The CI config in `.github/workflows/main.yml` builds git master from
macos so see that for more clues.  It does currently cheat and copy some
generated documentation from the most recent release though.  It's
presumably possible to install the required tools on macos to generate
these docs but not being able to test locally makes it more painful and
I ran out of enthusiasm.  For a homebrew HEAD build it really shouldn't
just use docs from the last release - if you can figure that part out we
should be able to make CI do this properly too.

> > @Olly, I just tested the installation right now and it seems I have the same problem. It is related to „moviemaker“ functionality. I was able to successfully build and install survex after I removed ffmpeg installation and skipped ffmpeg dependecy installation. This effectively disabled „moviemaker“ functionality. 
> > My machine is MPB 14" with Apple Silicon.
> > 
> > here is the verbose output with ffmpeg installed:
> > 
[...]
> > moviemaker.cc:135:22: error: cannot initialize a variable of type 'AVOutputFormat *' with an lvalue of type 'const struct AVOutputFormat *'
> >     AVOutputFormat * fmt = oc->oformat;
> >                      ^     ~~~~~~~~~~~

These are indeed the error you get with FFmpeg 5.0.

1.4.2 (just released) should fix them.

I've not updated the homebrew package yet but hopefully later today.

Cheers,
    Olly



More information about the Survex mailing list