You are not logged in.

#1 2005-08-24 17:29:10

-eye
Member
Registered: 2005-08-24
Posts: 15

make corrupted

hi there!

tried archlinux 0.7 and its very impressive!! big_smile

but ive got a little problem here, lemme explain:
1) downloaded kmusicmanager from http://kmusicmanager.sf.net/
2) extracted it with "tar zxvf kmusicmanager-1.2.tar.gz"
3) cd into the folder and typed:
./configure --prefix=/usr
make

make finishes then with this error message:

s/musiclistview.Tpo"; exit 1; fi
musiclistview.cpp: In function `unsigned int random_num(unsigned int)':
musiclistview.cpp:227: error: `floor' undeclared (first use this function)
musiclistview.cpp:227: error: (Each undeclared identifier is reported only once for each function it appears in.)
make[3]: *** [musiclistview.lo] Error 1
make[3]: Leaving directory `/home/eye/kmusicmanager-1.2/libkmusicmanager/view'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/eye/kmusicmanager-1.2/libkmusicmanager'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/eye/kmusicmanager-1.2'
make: *** [all] Error 2
[eye@myhost kmusicmanager-1.2]$

i then tried to "make" some other programs, but it always fails. tried to leave the prefix-option but didnt help.
ive no idea what's wrong, please help me!!, or i can only use atm programs from pacman. and that would also induce me to use a nother distro, but I WON'T! 8)

so, anyone does have a little help here?
thx,
greetings,
-eye

Offline

#2 2005-08-24 17:56:31

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: make corrupted

kmusicmanager wrote:

Required packages

In order to compile and work with KMusicManager, you need to have the following stuff installed :

    * KDE
    * Taglib

To compile KMusicManager, you need to have the proper headers installed. Some distros put these in seperate packages (devel packages).

do you have those installed? make sure they're installed and try again.

If you're looking for extra packages, I'd suggest checking out the AUR - you'll need to do some minor reading on the wiki in order to use these PKGBUILD files....

Offline

#3 2005-08-24 18:34:10

-eye
Member
Registered: 2005-08-24
Posts: 15

Re: make corrupted

hi phrakture,
thx 4ya reply,

In order to compile and work with KMusicManager, you need to have the following stuff installed :

* KDE
* Taglib

ive installed KDE with "pacman -Sy kdebase kde-i18n-de"
and Taglib with "pacman -Sy taglib"

so everything should just go fine, but it does not! :?  sad


edit: saw THIS on the homepage:

To compile KMusicManager, you need to have the proper headers installed. Some distros put these in seperate packages (devel packages).

mh, dev packages is sth i also searched for "cedega cvs compiling" but current and extra dont have these.
btw: WHICH dev packages do i need?

thx,
eye

Offline

#4 2005-08-24 19:18:43

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: make corrupted

Arch does not have seperate "dev" packages - you have everything you need... I looked at the package and tried to compile it myself....

turns out they never included "math.h" in the offending file.... so, either go ahead and add it in (I can provide a patch if you want but it's one line) or contact the devs...

Offline

#5 2005-08-24 20:22:56

-eye
Member
Registered: 2005-08-24
Posts: 15

Re: make corrupted

thx phrakture!

im gonna try this asap (now smile),

"but go ahead and add it in"

... but please tell me what ive got do add where.
ive got to put "math.h" in ..?

Offline

#6 2005-08-24 20:32:07

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: make corrupted

add
#include <math.h>
at begining of  file
musiclistview.cpp

Offline

#7 2005-08-24 20:39:39

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: make corrupted

PS I posted a bug report to the project page on sourceforge.... should be fixed going forward

Offline

#8 2005-08-24 20:51:10

-eye
Member
Registered: 2005-08-24
Posts: 15

Re: make corrupted

you guys are nice, thx 4 your help!

i dunno WHY, but adding the line to the file finall made it smile thx!

but @ snowman/phrakture: how did you find this out?
because ive got another prog which ends up with an error after typing "make" and want to find out myself, my "wanting" to learn roll  big_smile

Offline

#9 2005-08-24 21:09:52

jftaylor21
Member
From: Arch Linux Forums
Registered: 2004-02-21
Posts: 237

Re: make corrupted

-eye wrote:
s/musiclistview.Tpo"; exit 1; fi
musiclistview.cpp: In function `unsigned int random_num(unsigned int)':
musiclistview.cpp:227: error: `floor' undeclared (first use this function)
musiclistview.cpp:227: error: (Each undeclared identifier is reported only once for each function it appears in.)
make[3]: *** [musiclistview.lo] Error 1
make[3]: Leaving directory `/home/eye/kmusicmanager-1.2/libkmusicmanager/view'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/eye/kmusicmanager-1.2/libkmusicmanager'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/eye/kmusicmanager-1.2'
make: *** [all] Error 2
[eye@myhost kmusicmanager-1.2]$

Notice that the error comes from the fact that "floor is undeclared" .
Floor is a function in the math library, so by adding the #include <math.h> at the beginning of the file, you are telling it what file to look in for the function. What is the other program giving you errors? Maybe we can help you out.

Offline

#10 2005-08-24 21:14:28

-eye
Member
Registered: 2005-08-24
Posts: 15

Re: make corrupted

hey jftaylor21!

the other error shows something like this:

convertgp3.cpp: In member function `virtual bool ConvertGp3::load(QString)':
convertgp3.cpp:87: error: `malloc' undeclared (first use this function)
convertgp3.cpp:87: error: (Each undeclared identifier is reported only once for each function it appears in.)
convertgp3.cpp:98: error: `free' undeclared (first use this function)
convertgp3.cpp:427: warning: format not a string literal and no format arguments
convertgp3.cpp:440: warning: format not a string literal and no format arguments
convertgp3.cpp:458: warning: format not a string literal and no format arguments
make[3]: *** [convertgp3.lo] Error 1
make[3]: Leaving directory `/home/eye/kguitar-0.5/kguitar'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/eye/kguitar-0.5/kguitar'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/eye/kguitar-0.5'
make: *** [all] Error 2

so "malloc is undecleared"
you guys probably know already what to do 8)
.. me not  :?

Offline

#11 2005-08-24 21:42:51

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: make corrupted

woah... malloc is undeclared... is this made by the same people? who misses this many header files?

what project is that from?

edit ah kguitar... there's a PKGBUILD in the AUR for this (aur.archlinux.org)

http://aur.archlinux.org/packages.php?K=kguitar

here's the header file patch
http://aur.archlinux.org/packages/kguit … rfix.patch

Offline

#12 2005-08-24 21:49:57

jftaylor21
Member
From: Arch Linux Forums
Registered: 2004-02-21
Posts: 237

Re: make corrupted

malloc and free are from the standard library, you should be able to place #include <stdlib.h> at the top of convertgp3.cpp and it should work. Also, it looks like you are compiling kguitar? You should be able to find an Arch package here which would make things even easier:
http://aur.archlinux.org/packages.php?d … _Orphans=0

It's kind of weird that they use malloc and free with a cpp program. I always thought you were supposed to use new and delete...

Offline

#13 2005-08-25 12:26:25

-eye
Member
Registered: 2005-08-24
Posts: 15

Re: make corrupted

many regards to you guys, i finally made it  :shock:  ... smile

cant imagine that i only picked 2 progs to install, and both of them have such problems and are "wrong pre-configured" (my english is sooo bad, i know wink)

btw: are there any good sites i could look for apps?
looked through kde-apps.org already, but thers isnt as much as i need it ^^

thx & regards,

eye

Offline

#14 2005-08-25 15:04:26

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: make corrupted

Did you looked in the AUR ( http://aur.archlinux.org/ ) ? Or in the current/extra repos? What kind of apps are you looking for?

Offline

#15 2005-08-25 15:56:02

-eye
Member
Registered: 2005-08-24
Posts: 15

Re: make corrupted

hi snowman,

nothing special, but im only looking for progs, comparing them and then trying to install one. (but linux its a bit difficult as you can see on the basis of kmusicmanager or kguitar.)
so, my question reformulated: where to find apps for linux else then in the AUR .. or: with a bigger choice/range.
maybe s.o. knows a page like that.

edit: (IE: for windows i looked through pages like snapfiles.com or sth like that)

Offline

#16 2005-08-25 16:19:03

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: make corrupted

There is http://sourceforge.net/ and http://developer.berlios.de/ that host open sources projects. You can search there.  Some of them are for the Windows/Mac platforms but a majority of them are for Linux. 

There is always google. Just include linux in the search terms like: http://www.google.ca/search?hl=en&q=music+player+linux for example.

Offline

#17 2005-08-25 16:24:52

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: make corrupted

Or simpler: search on  http://freshmeat.net/

Offline

Board footer

Powered by FluxBB