Couldn't get "sfText_getLineSpacing" from "libcsfml-graphics.so"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libcsfml (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Distro: Ubuntu Focal Fossa
Arch: x86_64
Package: libcsfml-
Problem: the library does not export the function sfText_
As I understand it, this is a known problem, and has been fixed upstream in CSFML. See:
https:/
https:/
https:/
To replicate, in my case:
- apt-get install racket libcsfml-*
- raco pkg install r-cade
- create a file test.rkt
- paste into it the music example from tutorial page here: https:/
- Run it using `racket test.rkt`
For completeness, the example code is:
```
(require r-cade)
;; create a song
(define theme
(music "E4-B3C4D-
(define (game-loop)
(text 2 2 "Playing the Tetris theme song.")
(wait)
(quit))
(define (start-music)
(play-music theme))
(run game-loop 128 128 #:init start-music)
```
This fails unexpectedly with the following output:
```
ffi-obj: couldn't get "sfText_
context...:
/usr/
/usr/
"/home/
temp37_0
for-loop
run-
for-loop
[repeats 1 more time]
run-
for-loop
[repeats 1 more time]
run-
for-loop
[repeats 1 more time]
run-
perform-
```
This bug was fixed in the package libcsfml - 2.5.2-1
---------------
libcsfml (2.5.2-1) unstable; urgency=medium
* New upstream release. getLineSpacing. (LP: #1877632)
- Fix declaration of sfText_
* d/copyright: Update dates.
* d/control:
- Use debhelper 13.
- Drop useless cmake version restriction.
- Remove dependencies on obsolete GL packages.
- Bump standards version to 4.6.2.
* d/patches:
- Graphics/Texture: Restore sfTexture_setSrgb for ABI compatibility.
* d/*.symbols: Add new symbols.
* d/tests: Replace $ADTTMP with $AUTOPKGTEST_TMP.
* d/upstream: Add upstream metadata file.
* d/watch: Use version 4
-- James Cowgill <email address hidden> Thu, 30 Nov 2023 15:56:02 +0000