Mailing List Archive

myth-gallery fails compile
It must be my day for road blocks. I tried to compile & install
mythgallery, and g++ failed:

g++ -o mythgallery iconview.o main.o singleview.o moc_iconview.o moc_singleview.o -Wl,-rpath,/usr/lib/qt3-gcc2.96/lib
-L/usr/lib/qt3-gcc2.96/lib -L/usr/X11R6/lib -L/usr/local/lib -lmyth-0.7 -lqt-mt -lpthread -lXext -lX11 -lm

/usr/bin/ld: cannot find -lmyth-0.7
collect2: ld returned 1 exit status
make[1]: *** [mythgallery] Error 1
make[1]: Leaving directory `/usr/src/MythTV/mythgallery-0.7/mythgallery'
make: *** [sub-mythgallery] Error 2

/usr/local/lib is in the /etc/ld.so.conf file. I even setenv
LD_LIBRARY_PATH, but neither solution solved the problem.


Am I missing something simple?

-Rob

So Many Things in Life Would Be Really Funny
.... If They Weren't Happening To Me
Re: myth-gallery fails compile [ In reply to ]
On Monday 18 November 2002 10:52 pm, Robert Dege wrote:
> It must be my day for road blocks. I tried to compile & install
> mythgallery, and g++ failed:
>
> g++ -o mythgallery iconview.o main.o singleview.o moc_iconview.o
> moc_singleview.o -Wl,-rpath,/usr/lib/qt3-gcc2.96/lib
> -L/usr/lib/qt3-gcc2.96/lib -L/usr/X11R6/lib -L/usr/local/lib -lmyth-0.7
> -lqt-mt -lpthread -lXext -lX11 -lm
>
> /usr/bin/ld: cannot find -lmyth-0.7
> collect2: ld returned 1 exit status
> make[1]: *** [mythgallery] Error 1
> make[1]: Leaving directory `/usr/src/MythTV/mythgallery-0.7/mythgallery'
> make: *** [sub-mythgallery] Error 2
>
> /usr/local/lib is in the /etc/ld.so.conf file. I even setenv
> LD_LIBRARY_PATH, but neither solution solved the problem.
>
> Am I missing something simple?

Does libmyth-0.7.* exist in /usr/local/lib? That'd be the first thing to
check.

Isaac
Re: myth-gallery fails compile [ In reply to ]
Yes, the lib files are located there:

[root@localhost mythgame-0.7]# ls -l /usr/local/lib | grep myth
lrwxrwxrwx 1 root root 20 Nov 17 11:39 libmyth-0.7.so.0 -> libmyth-0.7.so.0.7.0
-rwxr-xr-x 1 root root 218376 Nov 17 18:30 libmyth-0.7.so.0.7.0
drwxr-xr-x 3 root root 4096 Nov 17 18:01 mythtv

I am able run mythepg & mythfrontend without any visible errors.

-Rob

> Does libmyth-0.7.* exist in /usr/local/lib? That'd be the first thing to
> check.
>
> Isaac
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev@snowman.net
> http://www.snowman.net/mailman/listinfo/mythtv-dev
>



Dege

So Many Things in Life Would Be Really Funny
.... If They Weren't Happening To Me
Re: myth-gallery fails compile [ In reply to ]
On Monday 18 November 2002 11:41 pm, Robert Dege wrote:
> Yes, the lib files are located there:
>
> [root@localhost mythgame-0.7]# ls -l /usr/local/lib | grep myth
> lrwxrwxrwx 1 root root 20 Nov 17 11:39 libmyth-0.7.so.0
> -> libmyth-0.7.so.0.7.0 -rwxr-xr-x 1 root root 218376 Nov 17
> 18:30 libmyth-0.7.so.0.7.0 drwxr-xr-x 3 root root 4096 Nov
> 17 18:01 mythtv
>
> I am able run mythepg & mythfrontend without any visible errors.

Heh, sorry :( Not sure what it could be, as the other programs shouldn't be
able to run if that lib weren't there, and mythgallery doesn't (to my
knowledge) do anything different to link than they do. Did you try mythmusic
at all? I'm curious to see if that has a similar error..

Isaac
Re: myth-gallery fails compile [ In reply to ]
Isaac,

This problem occurs with all the additional packages that require libmyth
during the compile (mythgallery, mythgame). Here's what I think is
happening....

I did `strings /etc/ld.so.cache | grep local` to see if ld was actuallty
seeing the library. I saw the libmyth listed as an entry, so I knew that
ldconfig was picking up the /usr/local/lib directory.

However, I did notice something strange when I `ls /usr/local/lib`.
libmyth-0.7 has a ".so" file, but no ".a" file. I'm no programmer, so I
don't know if this is relevant or not, but every other library listed in
/usr/local/lib had an accompanying ".a" file for every ".so" file.

I also modified the settings.pro file so that march=pentium.

-Rob


> On Monday 18 November 2002 11:41 pm, Robert Dege wrote:
> > Yes, the lib files are located there:
> >
> > [root@localhost mythgame-0.7]# ls -l /usr/local/lib | grep myth
> > lrwxrwxrwx 1 root root 20 Nov 17 11:39 libmyth-0.7.so.0
> > -> libmyth-0.7.so.0.7.0 -rwxr-xr-x 1 root root 218376 Nov 17
> > 18:30 libmyth-0.7.so.0.7.0 drwxr-xr-x 3 root root 4096 Nov
> > 17 18:01 mythtv
> >
> > I am able run mythepg & mythfrontend without any visible errors.
>
> Heh, sorry :( Not sure what it could be, as the other programs shouldn't be
> able to run if that lib weren't there, and mythgallery doesn't (to my
> knowledge) do anything different to link than they do. Did you try mythmusic
> at all? I'm curious to see if that has a similar error..
>
> Isaac
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev@snowman.net
> http://www.snowman.net/mailman/listinfo/mythtv-dev
>



Dege

So Many Things in Life Would Be Really Funny
.... If They Weren't Happening To Me
Re: myth-gallery fails compile [ In reply to ]
On Mon, Nov 18, 2002 at 11:41:49PM -0500, Robert Dege wrote:

>
> Yes, the lib files are located there:
>
> [root@localhost mythgame-0.7]# ls -l /usr/local/lib | grep myth
> lrwxrwxrwx 1 root root 20 Nov 17 11:39 libmyth-0.7.so.0 -> libmyth-0.7.so.0.7.0
> -rwxr-xr-x 1 root root 218376 Nov 17 18:30 libmyth-0.7.so.0.7.0
> drwxr-xr-x 3 root root 4096 Nov 17 18:01 mythtv
>
> I am able run mythepg & mythfrontend without any visible errors.

The file that you need is "libmyth-0.7.so", which is used for compile-time
dynamic linking. It should be a symlink to libmyth-0.7.so.0.

(and it should have been created when you installed mythtv...it was for me)

--
- mdz
Re: myth-gallery fails compile [ In reply to ]
On Tue, Nov 19, 2002 at 10:03:13AM -0500, Robert Dege wrote:

> However, I did notice something strange when I `ls /usr/local/lib`.
> libmyth-0.7 has a ".so" file, but no ".a" file. I'm no programmer, so I
> don't know if this is relevant or not, but every other library listed in
> /usr/local/lib had an accompanying ".a" file for every ".so" file.

This is OK; libmyth simply doesn't build a static library, only a shared
library.

--
- mdz
Re: myth-gallery fails compile [ In reply to ]
Okay, I found the problem.

For some reason, libmyth-0.7.so was not symlinked to libmyth-0.7.so.0.7.0
in /usr/local/lib. Once I added the symlink it compiled just fine. I
only had:

lrwxrwxrwx 1 root 20 Nov 17 11:39 libmyth-0.7.so.0 -> libmyth-0.7.so.0.7.0
-rwxr-xr-x 1 root 218376 Nov 17 18:30 libmyth-0.7.so.0.7.0

in that directory.

Has anyone had luck with the Matrox Marvel G200 card? Just want to know
if anyone has had success with it yet.

-Rob

> On Tue, Nov 19, 2002 at 10:03:13AM -0500, Robert Dege wrote:
>
> > However, I did notice something strange when I `ls /usr/local/lib`.
> > libmyth-0.7 has a ".so" file, but no ".a" file. I'm no programmer, so I
> > don't know if this is relevant or not, but every other library listed in
> > /usr/local/lib had an accompanying ".a" file for every ".so" file.
>
> This is OK; libmyth simply doesn't build a static library, only a shared
> library.
>
> --
> - mdz
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev@snowman.net
> http://www.snowman.net/mailman/listinfo/mythtv-dev
>



Dege

So Many Things in Life Would Be Really Funny
.... If They Weren't Happening To Me