LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Why do I get an error when I try to compile amaroK? or any software for that matter. (https://www.linuxquestions.org/questions/linux-newbie-8/why-do-i-get-an-error-when-i-try-to-compile-amarok-or-any-software-for-that-matter-192910/)

EThitop 06-13-2004 01:32 AM

Why do I get an error when I try to compile amaroK? or any software for that matter.
 
When I try to compile software, I often receive errors at the end. This is an exampile of an error I get when I tried to compile amaroK.

Code:

# make

*** Warning: Linking the shared library libamarok_artsengine_plugin.la against the loadable module
*** libamarokarts.so is not portable!
grep: /usr/X11R6/lib/libfontconfig.la: No such file or directory
/usr/bin/sed: can't read /usr/X11R6/lib/libfontconfig.la: No such file or directory
libtool: link: `/usr/X11R6/lib/libfontconfig.la' is not a valid libtool archive
make[5]: *** [libamarok_artsengine_plugin.la] Error 1
make[5]: Leaving directory `/home/Erik/Downloads/amarok-1.0-beta4/amarok/src/engine/arts'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/Erik/Downloads/amarok-1.0-beta4/amarok/src/engine'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/Erik/Downloads/amarok-1.0-beta4/amarok/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/Erik/Downloads/amarok-1.0-beta4/amarok'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Erik/Downloads/amarok-1.0-beta4'
make: *** [all] Error 2

Then when I type "make install" I get the following error:

Code:

# make install

*** Warning: Linking the shared library libamarok_artsengine_plugin.la against the loadable module
*** libamarokarts.so is not portable!
grep: /usr/X11R6/lib/libfontconfig.la: No such file or directory
/usr/bin/sed: can't read /usr/X11R6/lib/libfontconfig.la: No such file or directory
libtool: link: `/usr/X11R6/lib/libfontconfig.la' is not a valid libtool archive
make[4]: *** [libamarok_artsengine_plugin.la] Error 1
make[4]: Leaving directory `/home/Erik/Downloads/amarok-1.0-beta4/amarok/src/engine/arts'
make[3]: *** [install-recursive] Error 1
make[3]: Leaving directory `/home/Erik/Downloads/amarok-1.0-beta4/amarok/src/engine'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/home/Erik/Downloads/amarok-1.0-beta4/amarok/src'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/Erik/Downloads/amarok-1.0-beta4/amarok'
make: *** [install-recursive] Error 1

Can someone please tell me what I can do to correct these problems??? I am using Slackware 9.1 (current).

EThitop 06-13-2004 02:33 AM

Here's what I get when I try to use checkinstall (also, please note that I skipped straight to the error.

Code:

# checkinstall

*** Warning: Linking the shared library libamarok_artsengine_plugin.la against the loadable module
*** libamarokarts.so is not portable!
grep: /usr/X11R6/lib/libfontconfig.la: No such file or directory
/usr/bin/sed: can't read /usr/X11R6/lib/libfontconfig.la: No such file or directory
libtool: link: `/usr/X11R6/lib/libfontconfig.la' is not a valid libtool archive
make[4]: *** [libamarok_artsengine_plugin.la] Error 1
make[4]: Leaving directory `/home/Erik/Downloads/amarok-1.0-beta4/amarok/src/engine/arts'
make[3]: *** [install-recursive] Error 1
make[3]: Leaving directory `/home/Erik/Downloads/amarok-1.0-beta4/amarok/src/engine'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/home/Erik/Downloads/amarok-1.0-beta4/amarok/src'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/Erik/Downloads/amarok-1.0-beta4/amarok'
make: *** [install-recursive] Error 1

****  Installation failed. Aborting package creation.

Restoring overwritten files from backup...OK

Cleaning up...OK

Bye.


auditek747 06-13-2004 02:35 AM

Did you get any errors when you did ./configure?
(./configure --/opt/kde)

EThitop 06-13-2004 02:45 AM

amaroK's README file told me to use ./configure with some added parameters, like this:

Code:

./configure --prefix=`kde-config --prefix`
I did that and I didn't notice any errors when it went through it's process. I didn't notice any errors but after reviewing the configure log I tried CTRL+F and searched for "error" and came up with this:

Code:

conftest.c:2: error: parse error before "me"
Code:

conftest.cc:15: error: `exit' undeclared (first use this function)
conftest.cc:15: error: (Each undeclared identifier is reported only once for
  each function it appears in.)

Code:

conftest.cc:38: error: `strlcat' undeclared (first use this function)
conftest.cc:38: error: (Each undeclared identifier is reported only once for
  each function it appears in.)

And in addition to these it appears I have some "-pedantic-errors" errors. :(
They aren't many though, considering how large that config log file is, but they may be the errors that make the count.

auditek747 06-13-2004 02:50 AM

kde-config is a program that gives you info about your kde installation.
typing kde-config --prefix will give the config directory, on Slack this is /opt/kde.
Try your configure with ./configure --prefix=/opt/kde

EThitop 06-13-2004 02:58 AM

After using ./configure with the prefix amaroK told me to use and/or using it with the prefix you told me to use I get this after configure is finished:

Code:

=======================================================
==== amaroK will be built with the aRts-engine    ====
=======================================================
==== amaroK will be built with the GST-engine      ====
=======================================================

Good - your configure finished. Start make now

Then I run "checkinstall" and I get this error:
Code:

*** Warning: Linking the shared library libamarok_artsengine_plugin.la against the loadable module
*** libamarokarts.so is not portable!
grep: /usr/X11R6/lib/libfontconfig.la: No such file or directory
/bin/sed: can't read /usr/X11R6/lib/libfontconfig.la: No such file or directory
libtool: link: `/usr/X11R6/lib/libfontconfig.la' is not a valid libtool archive
make[4]: *** [libamarok_artsengine_plugin.la] Error 1
make[4]: Leaving directory `/home/Erik/Downloads/amaroK/amarok-1.0-beta4/amarok/src/engine/arts'
make[3]: *** [install-recursive] Error 1
make[3]: Leaving directory `/home/Erik/Downloads/amaroK/amarok-1.0-beta4/amarok/src/engine'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/home/Erik/Downloads/amaroK/amarok-1.0-beta4/amarok/src'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/Erik/Downloads/amaroK/amarok-1.0-beta4/amarok'
make: *** [install-recursive] Error 1

****  Installation failed. Aborting package creation.

Restoring overwritten files from backup...OK

Cleaning up...OK

Bye.

:( I wish there was a pre-made package for amaroK so I could at least install it. I still would like to learn how to build from source though, b/c it is something that would help me with ohter programs as well.

auditek747 06-13-2004 02:59 AM

It looks like amaroK needs KDE-3.2.x

http://www.linuxquestions.org/questions/history/174658

Are you still running 3.1 from Slack 9.1 cd?

EThitop 06-13-2004 03:00 AM

Nope, I have 3.2.x installed.
I don't know about QT though....?

auditek747 06-13-2004 03:09 AM

Do you have QT devel?

EThitop 06-13-2004 03:14 AM

I see some QT programs, in Development I see QT Designer UI which is for creating a GUI for QT programs. I don't know if I have QT devel though, if it comes with Slackware 9.1 (current) then I have it.

auditek747 06-13-2004 03:20 AM

You're missing something! Do you have this file? :

/usr/X11R6/lib/libfontconfig.la

EThitop 06-13-2004 03:22 AM

Hmm no I don't have that file. I wonder why I don't have that file, you appear to have Slackware 9.1 as well, do you have /usr/X11R6/lib/libfontconfig.la ??? Also, earlier I tried running kde-config and I can tell that it's a program I have but the program didn't actually start.

EThitop 06-13-2004 03:29 AM

Also I would like to add that I really appreciate you helping me! Thanks!!! ;)

auditek747 06-13-2004 03:46 AM

typing kde-config --prefix in a terminal will simply say /opt/kde (in Slack)
As far as libfontconfig I think it should have been provided by Xfree.
I'm sure you have it, the directory is /usr/X11R6/include/fontconfig.
Maybe you got screwed when you went to Kde3.2.

auditek747 06-13-2004 04:03 AM

You do have /usr/X11R6/lib/libfontconfig.so don't you?
Also /usr/lib/libfreetype.so ?

All this stuff should have been provided by Xfree.

You could be misconfigured or incomplete.

Did you mention that you could'nt build anything?

Try this just to see:

download ltris

http://lgames.sourceforge.net/index.php?project=LTris

tar -xvzf ltris-1.0.6.tar.gz
cd ltris-1.0.6
./configure
make
su
(password)
make install
make clean
exit (to user)
ltris


All times are GMT -5. The time now is 12:16 PM.