Opus codec on ESP8266

isti37
Posts: 3
Joined: Mon Mar 07, 2016 9:55 pm

Opus codec on ESP8266

Postby isti37 » Mon Mar 07, 2016 9:57 pm

I am trying to cross compile the opus codec for the ESP8266, currently I have hit the following errors :

Code: Select all

sp8266@esp8266-VirtualBox:~/opus-1.1.2$ make CC=xtensa-lx106-elf-gcc
make  all-recursive
make[1]: Entering directory `/home/esp8266/opus-1.1.2'
make[2]: Entering directory `/home/esp8266/opus-1.1.2'
  CC       celt/bands.lo
  CC       celt/celt.lo
  CC       celt/celt_encoder.lo
  CC       celt/celt_decoder.lo
  CC       celt/cwrs.lo
  CC       celt/entcode.lo
  CC       celt/entdec.lo
  CC       celt/entenc.lo
...
 CC       src/mlp.lo
  CC       src/mlp_data.lo
  CCLD     libopus.la
/usr/bin/ld: celt/.libs/bands.o: Relocations in generic ELF (EM: 94)
/usr/bin/ld: celt/.libs/bands.o: Relocations in generic ELF (EM: 94)
/usr/bin/ld: celt/.libs/bands.o: Relocations in generic ELF (EM: 94)
/usr/bin/ld: celt/.libs/bands.o: Relocations in generic ELF (EM: 94)
/usr/bin/ld: celt/.libs/bands.o: Relocations in generic ELF (EM: 94)
/usr/bin/ld: celt/.libs/bands.o: Relocations in generic ELF (EM: 94)
/usr/bin/ld: celt/.libs/bands.o: Relocations in generic ELF (EM: 94)
/usr/bin/ld: celt/.libs/bands.o: Relocations in generic ELF (EM: 94)
/usr/bin/ld: celt/.libs/bands.o: Relocations in generic ELF (EM: 94)
/usr/bin/ld: celt/.libs/bands.o: Relocations in generic ELF (EM: 94)
celt/.libs/bands.o: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
make[2]: *** [libopus.la] Error 1
make[2]: Leaving directory `/home/esp8266/opus-1.1.2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/esp8266/opus-1.1.2'
make: *** [all] Error 2 - See more at: http://www.esp8266.com/viewtopic.php?f=9&p=42608#p42608

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: Opus codec on ESP8266

Postby ESP_Faye » Tue Mar 08, 2016 4:55 pm

Hi,

It seems that your makefile is not for ESP8266, you need to re-write the makefile.

isti37
Posts: 3
Joined: Mon Mar 07, 2016 9:55 pm

Re: Opus codec on ESP8266

Postby isti37 » Wed Mar 09, 2016 10:51 am

Fixed, I managed to compile the opus codec with the esp-open-sdk and the virtualbox environment :

Code: Select all

sudo ./configure --target=xtensa-lx106-elf --host=xtensa-lx106-elf && sudo make

or for fixed point math (better performance and lower latency, but lower quality)

Code: Select all

sudo ./configure --target=xtensa-lx106-elf --host=xtensa-lx106-elf --enable-fixed-point && sudo make

Triacon
Posts: 7
Joined: Sun Apr 12, 2015 4:48 am

Re: Opus codec on ESP8266

Postby Triacon » Thu Mar 10, 2016 4:39 pm

Hiu isti37.
Is this for a commercial project or is there a chance you would consider sharing the code/project?
Kind regards
Jimmy

isti37 wrote:Fixed, I managed to compile the opus codec with the esp-open-sdk and the virtualbox environment :

Code: Select all

sudo ./configure --target=xtensa-lx106-elf --host=xtensa-lx106-elf && sudo make

or for fixed point math (better performance and lower latency, but lower quality)

Code: Select all

sudo ./configure --target=xtensa-lx106-elf --host=xtensa-lx106-elf --enable-fixed-point && sudo make

Who is online

Users browsing this forum: No registered users and 3 guests