LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 10-31-2009, 07:12 AM   #1
danielsepulvida
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Rep: Reputation: 0
Babytrans - Error for compiling GLIB >= 1.2.0 not installed


I use Debian 5 testing and tried compiling babytrans-0.9.1.
However I get following error:

checking for GLIB - version >= 1.2.0... no
*** The glib-config script installed by GLIB could not be found
*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GLIB_CONFIG environment variable to the
*** full path to glib-config.
configure: error: *** GLIB >= 1.2.0 not installed - please install first ***

I don't have glib-config but I have following GLIB

i A libdbus-glib-1-2 - sistema de mensagens inter-processo simples (bib. comp. baseada em GLib)
i libdbus-glib-1-2-dbg - simple interprocess messaging system (GLib library debug symbols)
i libdbus-glib-1-dev - sistema de mensagens inter-processo simples (interface GLib)
i libglib2.0-0-dbg - The GLib libraries and debugging symbols
i libglib2.0-0-refdbg - The GLib library of C routines - refdbg library
i A libglib2.0-data - Common files for GLib library
i A libglib2.0-dev - Development files for the GLib library
i A libglibmm-2.4-1c2a - invólucro C++ para o kit de ferramentas GLib (bibliotecas compartilhadas)

Thanks,

Daniel Sepulvida
 
Old 10-31-2009, 12:51 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2010.12, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 9,287

Rep: Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350
Welcome to LQ.

The missing library package name is ' libglib1.2-dev '

When configure asks for missing <name>, it usually
means : 'lib<name>-dev
 
Old 11-05-2009, 08:39 PM   #3
danielsepulvida
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
Welcome to LQ.

The missing library package name is ' libglib1.2-dev '

When configure asks for missing <name>, it usually
means : 'lib<name>-dev
Thank you, knudfl.
I installed the libglib1.2-dev and I got to compile with success, however when accomplishing MAKE gives the following mistake:

In file included from all_pixmaps.h:9,
from main.cc:70:
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
Wrong.xpm:77: warning: deprecated conversion from string constant to 'char*'
main.cc:144: warning: non-local variable '<anonymous struct> gui_setup_radio_desc []' uses anonymous type
main.cc: In function 'GdkColor* new_color(int, int, int)':
main.cc:239: error: 'malloc' was not declared in this scope
main.cc: In function 'std::string getenv_string(const std::string&)':
main.cc:264: error: 'getenv' was not declared in this scope
main.cc: In function 'std::string getenv_string(const char*)':
main.cc:273: error: 'getenv' was not declared in this scope
main.cc: At global scope:
main.cc:309: warning: non-local variable '<anonymous struct> toolbar_desc []' uses anonymous type
main.cc: In function 'bool app_load_preferences(const std::string&)':
main.cc:523: error: 'strerror' was not declared in this scope
main.cc: In function 'bool app_load_dictionary_list(const std::string&)':
main.cc:609: error: 'strerror' was not declared in this scope
main.cc: At global scope:
main.cc:663: warning: deprecated conversion from string constant to 'char*'
main.cc:663: warning: deprecated conversion from string constant to 'char*'
main.cc:663: warning: deprecated conversion from string constant to 'char*'
main.cc:663: warning: deprecated conversion from string constant to 'char*'
main.cc:663: warning: deprecated conversion from string constant to 'char*'
main.cc:663: warning: deprecated conversion from string constant to 'char*'
main.cc: In function 'void app_translate_word(const std::string&)':
main.cc:857: error: 'assert' was not declared in this scope
main.cc: In function 'int main(int, char**)':
main.cc:1581: error: 'EXIT_SUCCESS' was not declared in this scope
main.cc:1581: error: 'EXIT_FAILURE' was not declared in this scope
main.cc:1594: error: 'EXIT_FAILURE' was not declared in this scope
main.cc:1601: error: 'EXIT_FAILURE' was not declared in this scope
main.cc:1623: error: 'free' was not declared in this scope
make[2]: ** [main.o] Erro 1
make[2]: Saindo do diretório `/home/daniel/Downloads/babytrans-0.9.1/src'
make[1]: ** [all-recursive] Erro 1
make[1]: Saindo do diretório `/home/daniel/Downloads/babytrans-0.9.1'
make: ** [all-recursive-am] Erro 2
 
Old 11-06-2009, 06:12 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2010.12, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 9,287

Rep: Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350
Debian 5 Lenny stable, Debian (6?) Squeeze, Debian (7?) Sid, testing.
No matter which : ' babytrans 0.9.1 ' is available from the
Debian multimedia repo ... http://debian-multimedia.org/ ... :
.. and find this text ..
" First download the debian-multimedia-keyring package. "
http://www.debian-multimedia.org/poo....10.16_all.deb
.. and read on..
Conclusive : # apt-get install babytrans
.. and it gets installed. ( Or use ' synaptic ' ).


Compiling babytrans 0.9.1 from source → →
http://debian-multimedia.org/dists/s.../babytrans.php
> > http://debian-multimedia.org/pool/ma.../babytrans.php
> babytrans_0.9.1.orig.tar.gz , babytrans_0.9.1-0.4.diff.gz .

apt-get install \
libglib1.2-dev libgtk1.2-dev g++-4.1 libxi-dev libxext-dev

cd babytrans-0.9.1/
.. move the unpacked babytrans_0.9.1-0.4.diff into babytrans-0.9.1/
patch -p1 < babytrans_0.9.1-0.4.diff
.. the patch fixes the code for use with a "modern compiler" = g++-4.1 .
.. ( The code is nine years old.)
./configure
make CXX=g++-4.1

.. and make runs with no errors.
The used OS : Debian 5 Lenny stable.
.....

Last edited by knudfl; 11-06-2009 at 01:47 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling glib 2.12 fails: [gmarshal.h] Error 127 furryspider Linux - Software 2 03-03-2007 01:27 PM
XMMS ./config GLIB >= 1.2.2 not installed error clonedmessiah Linux - Newbie 2 10-06-2006 01:23 AM
error in compiling glib-2.6 arvind.ayyangar Linux - Software 2 08-07-2006 01:05 AM
xmms install (needs glib>1.22), just installed glib 2.4.8 and still get error message eskiled Linux - Software 2 12-19-2005 09:12 PM
Compiling GAIM says i need GLib 2.0, yet i have GLib 2.4 MadSkillzMan Linux - Newbie 3 07-10-2004 04:10 AM


All times are GMT -5. The time now is 03:12 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration