Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  error compiling rbutil 1.2.5
« previous next »
  • Print
Pages: [1]

Author Topic: error compiling rbutil 1.2.5  (Read 4862 times)

Offline said

  • Member
  • *
  • Posts: 4
error compiling rbutil 1.2.5
« on: February 17, 2010, 06:08:41 AM »
hi all! i always compile rbutil by myself but with the last version there is this error;
Code: [Select]
/tmp/rbutil/src/rbutil_1.2.5/rbutil/rbutilqt/build//librbspeex.a(rbspeex.o): In function `encode_file':                                                     
rbspeex.c:(.text+0x38c): undefined reference to `speex_wb_mode'                                                                                             
rbspeex.c:(.text+0x391): undefined reference to `speex_encoder_init'                                                                                       
rbspeex.c:(.text+0x3bc): undefined reference to `speex_bits_init'                                                                                           
rbspeex.c:(.text+0x3e2): undefined reference to `speex_encoder_ctl'                                                                                         
rbspeex.c:(.text+0x3fd): undefined reference to `speex_encoder_ctl'                                                                                         
rbspeex.c:(.text+0x418): undefined reference to `speex_encoder_ctl'                                                                                         
rbspeex.c:(.text+0x433): undefined reference to `speex_encoder_ctl'                                                                                         
rbspeex.c:(.text+0x44e): undefined reference to `speex_encoder_ctl'                                                                                         
rbspeex.c:(.text+0x4dc): undefined reference to `speex_encoder_destroy'                                                                                     
rbspeex.c:(.text+0x4e4): undefined reference to `speex_bits_destroy'                                                                                       
rbspeex.c:(.text+0x4f8): undefined reference to `speex_resampler_destroy'                                                                                   
rbspeex.c:(.text+0x563): undefined reference to `speex_nb_mode'
rbspeex.c:(.text+0x568): undefined reference to `speex_encoder_init'
rbspeex.c:(.text+0x61d): undefined reference to `speex_resampler_init'
rbspeex.c:(.text+0x629): undefined reference to `speex_resampler_skip_zeros'
rbspeex.c:(.text+0x6db): undefined reference to `speex_resampler_process_int'
rbspeex.c:(.text+0x72a): undefined reference to `speex_encode_int'
rbspeex.c:(.text+0x74d): undefined reference to `speex_bits_write_whole_bytes'
rbspeex.c:(.text+0x833): undefined reference to `speex_bits_write'
collect2: ld returned 1 exit status
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: error compiling rbutil 1.2.5
« Reply #1 on: February 17, 2010, 11:43:43 AM »
A bit more information would be helpful -- what OS are you on (some Linux I assume?), what version of gcc and Qt do you have installed, can you name a revision that compiled fine for you, how did you obtain the source code (the release source tarball?), did you make any changes to your OS (updated distribution), do you have libspeex installed and its development headers?
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline said

  • Member
  • *
  • Posts: 4
Re: error compiling rbutil 1.2.5
« Reply #2 on: February 17, 2010, 02:49:07 PM »
I use arch linux (up do date) and  the previous version of rbutil (1.2.4) hasn't problems (and other former versions too). I downloaded the tarball from the rockbox website. Other infos:
gcc 4.4.3
qt 4.6.2
speex 1.2rc1

Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: error compiling rbutil 1.2.5
« Reply #3 on: February 17, 2010, 05:55:08 PM »
Ok, that's somewhat strange: there is almost no difference between 1.2.4 and 1.2.5 -- there aren't much more changes than fixing an issue on Windows. Do you have a libspeexdsp.so in your system?
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline said

  • Member
  • *
  • Posts: 4
Re: error compiling rbutil 1.2.5
« Reply #4 on: February 18, 2010, 05:43:04 AM »
yes I have these files inside /usr/lib:
Code: [Select]
libspeex.a
libspeexdsp.a
libspeexdsp.so -> libspeexdsp.so.1.5.0
libspeexdsp.so.1 -> libspeexdsp.so.1.5.0
libspeexdsp.so.1.5.0
libspeex.so -> libspeex.so.1.5.0
libspeex.so.1 -> libspeex.so.1.5.0
libspeex.so.1.5.0
the only big change on my system between 1.2.4 and 1.2.5 was the major qt update from 4.5 to 4.6.
I don't know if could be useful but at the beginning of compilation there is this warning
Code: [Select]
RCC: Error in 'rbutilqt-lang.qrc': Cannot find file 'lang/rbutil_cs.qm'                                                                                
RCC: Error in 'rbutilqt-lang.qrc': Cannot find file 'lang/rbutil_de.qm'                                                                               
RCC: Error in 'rbutilqt-lang.qrc': Cannot find file 'lang/rbutil_fi.qm'                                                                               
RCC: Error in 'rbutilqt-lang.qrc': Cannot find file 'lang/rbutil_fr.qm'                                                                               
RCC: Error in 'rbutilqt-lang.qrc': Cannot find file 'lang/rbutil_gr.qm'                                                                               
RCC: Error in 'rbutilqt-lang.qrc': Cannot find file 'lang/rbutil_he.qm'                                                                               
RCC: Error in 'rbutilqt-lang.qrc': Cannot find file 'lang/rbutil_it.qm'                                                                               
RCC: Error in 'rbutilqt-lang.qrc': Cannot find file 'lang/rbutil_ja.qm'                                                                               
RCC: Error in 'rbutilqt-lang.qrc': Cannot find file 'lang/rbutil_nl.qm'                                                                               
RCC: Error in 'rbutilqt-lang.qrc': Cannot find file 'lang/rbutil_pl.qm'                                                                               
RCC: Error in 'rbutilqt-lang.qrc': Cannot find file 'lang/rbutil_pt.qm'                                                                               
RCC: Error in 'rbutilqt-lang.qrc': Cannot find file 'lang/rbutil_pt_BR.qm'                                                                             
RCC: Error in 'rbutilqt-lang.qrc': Cannot find file 'lang/rbutil_ru.qm'                                                                               
RCC: Error in 'rbutilqt-lang.qrc': Cannot find file 'lang/rbutil_zh_CN.qm'                                                                             
RCC: Error in 'rbutilqt-lang.qrc': Cannot find file 'lang/rbutil_zh_TW.qm'                                                                             
RCC: Warning: No resources in 'rbutilqt-lang.qrc'.   
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: error compiling rbutil 1.2.5
« Reply #5 on: February 18, 2010, 12:44:37 PM »
Quote from: said on February 18, 2010, 05:43:04 AM
the only big change on my system between 1.2.4 and 1.2.5 was the major qt update from 4.5 to 4.6.
I don't know if could be useful but at the beginning of compilation there is this warning

No, those warnings are harmless -- the qm files will get generated during the build later, but qmake warns if it can't find them when generating the Makefiles. I assume you don't have an old build folder in your build directory? Also, are you using any -config switches when running qmake?

Edit 2010-03-11:
I managed to identify and fix the problem. If you're interested in the details please see r25124.
« Last Edit: March 11, 2010, 03:11:47 PM by bluebrother »
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline said

  • Member
  • *
  • Posts: 4
Re: error compiling rbutil 1.2.5
« Reply #6 on: March 31, 2010, 09:15:11 AM »
Thanks a lot! The patch solved the problem and now it compiles. Bye!
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  error compiling rbutil 1.2.5
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.067 seconds with 14 queries.