Skip to content
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

Compilation failing with --disable-builtin-tiff flag #68

Open
lexxer3d opened this issue Nov 6, 2023 · 0 comments
Open

Compilation failing with --disable-builtin-tiff flag #68

lexxer3d opened this issue Nov 6, 2023 · 0 comments

Comments

@lexxer3d
Copy link

lexxer3d commented Nov 6, 2023

Compilation fails with this output:

gcc -o make_v34_convolutional_coders ../src/make_v34_convolutional_coders.c -DHAVE_CONFIG_H -I../src -lm
./make_v34_convolutional_coders >v34_convolutional_coders.h
gcc -o make_v34_probe_signals ../src/make_v34_probe_signals.c ../src/g711.c ../src/alloc.c -DHAVE_CONFIG_H -I../src -lm
In file included from ../src/make_v34_probe_signals.c:28:
../src/spandsp.h:48:10: fatal error: tiffio.h: No such file or directory
   48 | #include <tiffio.h>
      |          ^~~~~~~~~~
compilation terminated.
make[4]: *** [Makefile:1602: make_v34_probe_signals] Error 1

The issue is with make_v34_probe_signals.c that includes "spandsp.h" which, in turn, demands tiffio.h.
A trial solution is to replace spandsp.h with the following includes:

#include <inttypes.h>
#include <stdio.h>

// #include "spandsp.h"

#include <stdlib.h>
#include <math.h>
#include "spandsp/telephony.h"
#include "spandsp/bit_operations.h"
#include "spandsp/g711.h"

Also there's an issue in meteor-engine.c:979 with printf format missing a string parameter:

gcc -o make_v34_tx_pre_emphasis_filters ../src/make_v34_tx_pre_emphasis_filters.c ../tools/meteor-engine.c -DHAVE_CONFIG_H -I../src -I../tools -lm
../tools/meteor-engine.c: In function ‘vet_data’:
../tools/meteor-engine.c:979:20: warning: too many arguments for format [-Wformat-extra-args]
  979 |             printf("Pushing band edges right\n", (s->which_way == rr)  ?  "right"  :  "left");
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant