LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   problems compiling mediatomb (https://www.linuxquestions.org/questions/linux-software-2/problems-compiling-mediatomb-780401/)

z3rosh0t 01-06-2010 07:55 PM

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!

bibble_235 01-06-2010 09:24 PM

sqlite-devel perhaps.

z3rosh0t 01-06-2010 09:49 PM

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.

evo2 01-06-2010 09:51 PM

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

Evo2.

knudfl 01-07-2010 05:35 AM

# zypper in libexpat-devel
.. will do.

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

(lib)<name>-devel .

z3rosh0t 01-09-2010 08:59 AM

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!

knudfl 01-10-2010 01:58 AM

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


bibble_235 01-10-2010 11:24 PM

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

has a patch you might want to try.

knudfl 01-11-2010 06:36 AM

@ 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.
.....


All times are GMT -5. The time now is 09:24 AM.