LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-06-2010, 07:55 PM   #1
z3rosh0t
LQ Newbie
 
Registered: Nov 2009
Posts: 3

Rep: Reputation: 0
problems compiling mediatomb


First off I'm using OpenSUSE 11.2.

I'm trying to compile mediatomb and I'm having difficulty when I run './configure'

This is the message I get when it fails:

Code:
configure: error: Support of at least one of mysql or sqlite3 must be configured
I have both sqlite3 and mysql installed.

Let me know if I need to post any other information. Thanks in advance for the help!
 
Old 01-06-2010, 09:24 PM   #2
bibble_235
LQ Newbie
 
Registered: Jan 2010
Location: New Zealand
Distribution: ubuntu
Posts: 5

Rep: Reputation: 1
sqlite-devel perhaps.
 
Old 01-06-2010, 09:49 PM   #3
z3rosh0t
LQ Newbie
 
Registered: Nov 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Nice! That worked perfectly (used sudo zypper install sqlite3-devel)

Getting another error now, gonna work more on it in the morning.

Code:
configure: error: unable to configure expat support
I installed expat using zypper.
 
Old 01-06-2010, 09:51 PM   #4
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Debian, SL
Posts: 5,319

Rep: Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142
Seems the same as your first question: how about expat-devel (or similar)?

Evo2.
 
Old 01-07-2010, 05:35 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,688

Rep: Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547
# zypper in libexpat-devel
.. will do.

When 'configure' asks for <name> it usually means :

(lib)<name>-devel .
 
Old 01-09-2010, 08:59 AM   #6
z3rosh0t
LQ Newbie
 
Registered: Nov 2009
Posts: 3

Original Poster
Rep: Reputation: 0
So I've gotten the configure to run thanks to all of your help.
Now I'm trying to run 'make' and I'm getting some errors. Any ideas would be greatly appreciated!

Code:
../src/tools.cc:306: error: invalid conversion from ‘const char*’ to ‘char*’
../src/tools.cc:307: error: invalid conversion from ‘const char*’ to ‘char*’
../src/tools.cc: In function ‘zmm::String url_unescape(zmm::String)’:
../src/tools.cc:402: error: invalid conversion from ‘const char*’ to ‘char*’
../src/tools.cc:408: error: invalid conversion from ‘const char*’ to ‘char*’
make[2]: *** [libmediatomb_a-tools.o] Error 1
make[2]: Leaving directory `/usr/src/packages/SOURCES/mediatomb-0.11.0/build'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/packages/SOURCES/mediatomb-0.11.0'
make: *** [all] Error 2
The beginning is where it starts spitting errors. I understand why the compiler doesn't like what the code is trying to do, I'm just nervous about changing the code. Thanks in advance!
 
Old 01-10-2010, 01:58 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,688

Rep: Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547
Well, you could just set up the Packman.repo to get it
.. with : # zypper in mediatomb

http://packman.links2linux.de/package/2154

Code:
[repo-packman]
name=SUSE-11.2-packman
enabled=1
autorefresh=1
baseurl=http://mirror.geht-schon.de/packman.links2linux.de/suse/11.2/
type=yast2
keeppackages=1
 
Old 01-10-2010, 11:24 PM   #8
bibble_235
LQ Newbie
 
Registered: Jan 2010
Location: New Zealand
Distribution: ubuntu
Posts: 5

Rep: Reputation: 1
http://www.mail-archive.com/debian-b...msg200624.html

has a patch you might want to try.
 
1 members found this post helpful.
Old 01-11-2010, 06:36 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,688

Rep: Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547
@ bibble_235 , Thank you.
To fix further issue(s), I also applied this patch ..
http://groups.google.com/group/linux...ceacef74591d38
http://groups.google.com/group/linux...c.patch?part=2
And did : make CC=gcc-4.1 CXX=g++-4.1
Unfortunately, still no luck. So it's time to get the bugfixed code
with this command :
svn co https://svn.mediatomb.cc/svnroot/med...runk/mediatomb mediatomb

( See http://mediatomb.cc/pages/download#source_code :
the last lines on the page.)

This "SVN revision 2052" is also fixed so the default gcc, g++ can be used :
version 4.4.1 .

If you want the most options included :
# zypper in file-devel libexif-devel libjs-devel taglib-devel

And then : 1) cd mediatomb/
2) libtoolize && aclocal && autoheader && automake --add-missing \
&& autoconf && ./configure

3) make
.. which will now run with no errors.
.....

Last edited by knudfl; 01-11-2010 at 03:04 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
mediatomb won't display iTunes albums Robert S Linux - Software 2 12-28-2009 06:22 PM
Mediatomb and Sqlite in Slackware 12.2 marnold Slackware 1 01-22-2009 10:43 AM
Mediatomb+subtitles. ohadbasan Linux - Software 2 01-18-2009 01:04 PM
Serve Media with MediaTomb jeremy LQ Articles Discussion 0 09-07-2007 03:39 PM
Problems installing amsn (TK compiling problems) JNewton Linux - Software 0 05-24-2004 12:07 PM


All times are GMT -5. The time now is 03:24 PM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration