Failure to build on RPi OS Trixie

Open
#197 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Tech stack
linux, python, raspberry-pi

Research direction

Reproduce the latest release build on Raspberry Pi OS Trixie using the reported arm-linux-gnueabihf-gcc command and compare it with a previously working version. Inspect the generated src/av/video/reformatter.c and the av/include paths around the SwsContext and sws_free_context errors; done means the package builds successfully on the reported environment.

Written by the indexing model from the issue text.

Description

Hello,

I've just tried to build the latest version on an RPi running Raspberry Pi OS Trixie. While previous versions of Sendspin-CLI built and worked fine, I am getting some error messages when building the latest release.

Cheers,
Bjoern

         [stderr]
         warning: no files found matching '*.pyx' under directory 'av'
         warning: no files found matching '*.h' under directory 'include'
         src/av/video/frame.c: In function ‘__pyx_f_2av_5video_5frame_copy_bytes_to_plane’:
         src/av/video/frame.c:20536:41: warning: comparison of integer expressions of different signedness: ‘Py_ssize_t’ {aka ‘int’} and ‘unsigned int’ [-Wsign-compare]
         20536 |         for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_13; __pyx_t_12+=1) {
               |                                         ^
         src/av/video/reformatter.c: In function ‘__pyx_pf_2av_5video_11reformatter_16VideoReformatter___dealloc__’:
         src/av/video/reformatter.c:4239:9: error: implicit declaration of function ‘sws_free_context’; did you mean ‘sws_freeContext’? [-Wimplicit-function-declaration]
          4239 |         sws_free_context((&__pyx_v_self->ptr));
               |         ^~~~~~~~~~~~~~~~
               |         sws_freeContext
         src/av/video/reformatter.c: In function ‘__pyx_f_2av_5video_11reformatter_16VideoReformatter__reformat’:
         src/av/video/reformatter.c:5320:20: error: invalid use of undefined type ‘struct SwsContext’
          5320 |   __pyx_v_self->ptr->threads = __pyx_v_threads;
               |                    ^~
         src/av/video/reformatter.c:5329:20: error: invalid use of undefined type ‘struct SwsContext’
          5329 |   __pyx_v_self->ptr->flags = ((unsigned int)__pyx_v_interpolation);
               |                    ^~
         error: command '/usr/bin/arm-linux-gnueabihf-gcc' failed with exit code 1

         hint: This usually indicates a problem with the package or the build environment.

Failed

Dominant language
Python
Stars
190
Forks
36
Avg merge
11d 19h
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Sendspin/sendspin-python-cli

All issues in Sendspin/sendspin-python-cli

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.