maks / squeezelite

Automatically exported from code.google.com/p/squeezelite
Other
0 stars 0 forks source link

Compilation failing on Jolla (ARMv7) #61

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Get hands on a Jolla phone.
2. Install/build dependencies.
3. Run make

What is the expected output? What do you see instead?

I expect it to build me a neat squeezelite binary to run on my phone. I get the 
following errors:

[nemo@localhost squeezelite]$ make
cc main.o slimproto.o buffer.o stream.o utils.o output.o output_alsa.o 
output_pa.o output_stdout.o output_pack.o decode.o flac.o pcm.o mad.o vorbis.o 
faad.o mpg.o -lasound -lpthread -lm -lrt -ldl -o squeezelite
main.o: In function `main':
main.c:(.text.startup+0x364): undefined reference to `process_init'
decode.o: In function `decode_thread':
decode.c:(.text+0x270): undefined reference to `process_samples'
decode.c:(.text+0x284): undefined reference to `process_drain'
decode.c:(.text+0x2c8): undefined reference to `process'
decode.o: In function `decode_init':
decode.c:(.text+0x34c): undefined reference to `register_ff'
decode.c:(.text+0x380): undefined reference to `register_ff'
decode.c:(.text+0x58c): undefined reference to `register_ff'
decode.c:(.text+0x5a4): undefined reference to `register_ff'
decode.o: In function `decode_flush':
decode.c:(.text+0x77c): undefined reference to `process_flush'
decode.o: In function `decode_newstream':
decode.c:(.text+0x7c8): undefined reference to `process_newstream'
flac.o: In function `write_cb':
flac.c:(.text+0x56c): undefined reference to `process'
pcm.o: In function `pcm_decode':
pcm.c:(.text+0xe38): undefined reference to `process'
faad.o: In function `faad_decode':
faad.c:(.text+0x1258): undefined reference to `process'
collect2: ld returned 1 exit status
make: *** [squeezelite] Error 1

What version of the product are you using? On what operating system?

Code cloned from repository.

Please provide any additional information below.

The Jolla phone [1] is more or less a regular Linux device and -- without being 
an expert in this field -- I think it should be possible to build squeezelite 
on it (after taking care of the dependencies, of course).

I did try to search the web for a solution, finding lots of results for 
"undefined reference to" but nothing with "process" or any of the derivatives 
in these error messages.

My last hope is that someone here can point me in the right direction :)

[1] https://en.wikipedia.org/wiki/Jolla_%28phone%29

Original issue reported on code.google.com by 3...@detfalskested.dk on 27 Feb 2014 at 3:51

GoogleCodeExporter commented 9 years ago
Okay, sorry for wasting your time.

I started reading some of the answers to similar problems (without "process") 
and got on the right track.

After browsing the repo changes I realise the most recent code is probably a 
bad idea to rely on. I checked out v1.5 (388794fab1d3) and now it compiles!

Original comment by 3...@detfalskested.dk on 27 Feb 2014 at 4:01

GoogleCodeExporter commented 9 years ago

Original comment by trio...@btinternet.com on 27 Feb 2014 at 8:14