LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   make comand wont work (https://www.linuxquestions.org/questions/mandriva-30/make-comand-wont-work-240309/)

slim27616 10-08-2004 01:41 PM

make comand wont work
 
alright this is a really weird proglem im having.
im trying to install a kde kicker applet. it is an
improvement over the standard kicker pager
in that it supports several features the standard
pager doesnt. Now the applet only comes in source
so i have to compile it my self. So i decieded to run
the standard configure, make, and make install. configure
ran without problem. but the make ran this quote.
Quote:

make[2]: Entering directory `/home/cedrick/Desktop/kpager2-0.5.2/kpager2/src'
if /bin/sh ../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/qt3//include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -MT kpagermainwin.moc.lo -MD -MP -MF ".deps/kpagermainwin.moc.Tpo" \
-c -o kpagermainwin.moc.lo `test -f 'kpagermainwin.moc.cpp' || echo './'`kpagermainwin.moc.cpp; \
then mv -f ".deps/kpagermainwin.moc.Tpo" ".deps/kpagermainwin.moc.Plo"; \
else rm -f ".deps/kpagermainwin.moc.Tpo"; exit 1; \
fi
kpagermainwin.moc.cpp:22: error: `KPagerMainWindow' has not been declared
kpagermainwin.moc.cpp:23: error: non-member function `const char* className()' cannot have cv-qualifier
kpagermainwin.moc.cpp:27: error: `KPagerMainWindow' has not been declared
kpagermainwin.moc.cpp:28: error: `KPagerMainWindow' has not been declared
kpagermainwin.moc.cpp:28: error: `staticMetaObject' was not declared in this scope
kpagermainwin.moc.cpp:31: error: `KPagerMainWindow' has not been declared
kpagermainwin.moc.cpp:39: error: `KPagerMainWindow' has not been declared
kpagermainwin.moc.cpp:50: error: `KPagerMainWindow' has not been declared
kpagermainwin.moc.cpp:72: error: `KPagerMainWindow' has not been declared
kpagermainwin.moc.cpp: In function `void* qt_cast(const char*)':
kpagermainwin.moc.cpp:75: error: invalid use of `this' in non-member function
kpagermainwin.moc.cpp:77: error: `KPagerIface' was not declared in this scope
kpagermainwin.moc.cpp:77: error: expected primary-expression before ')' token
kpagermainwin.moc.cpp:77: error: expected `;' before "this"
kpagermainwin.moc.cpp:77: warning: unused variable 'KPagerIface'
kpagermainwin.moc.cpp:77: error: invalid use of `this' in non-member function
kpagermainwin.moc.cpp:78: error: cannot call member function `virtual void* QWidget::qt_cast(const char*)' without object
kpagermainwin.moc.cpp: At global scope:
kpagermainwin.moc.cpp:81: error: `KPagerMainWindow' has not been declared
kpagermainwin.moc.cpp: In function `bool qt_invoke(int, QUObject*)':
kpagermainwin.moc.cpp:84: error: `reallyClose' was not declared in this scope
kpagermainwin.moc.cpp:86: error: cannot call member function `virtual bool QWidget::qt_invoke(int, QUObject*)' without object
kpagermainwin.moc.cpp:84: warning: unused variable 'reallyClose'
kpagermainwin.moc.cpp: At global scope:
kpagermainwin.moc.cpp:91: error: `KPagerMainWindow' has not been declared
kpagermainwin.moc.cpp: In function `bool qt_emit(int, QUObject*)':
kpagermainwin.moc.cpp:93: error: cannot call member function `virtual bool QWidget::qt_emit(int, QUObject*)' without object
kpagermainwin.moc.cpp: At global scope:
kpagermainwin.moc.cpp:97: error: `KPagerMainWindow' has not been declared
kpagermainwin.moc.cpp: In function `bool qt_property(int, int, QVariant*)':
kpagermainwin.moc.cpp:99: error: cannot call member function `virtual bool QWidget::qt_property(int, int, QVariant*)' without object
kpagermainwin.moc.cpp: At global scope:
kpagermainwin.moc.cpp:102: error: `KPagerMainWindow' has not been declared
kpagermainwin.moc.cpp:104: fatal error: opening dependency file .deps/kpagermainwin.moc.Tpo: Permission denied
compilation terminated.
make[2]: *** [kpagermainwin.moc.lo] Error 1
make[2]: Leaving directory `/home/cedrick/Desktop/kpager2-0.5.2/kpager2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/cedrick/Desktop/kpager2-0.5.2/kpager2'
make: *** [all] Error 2
now i know this is long but i wanted to give yalll as much info as posible.
i started just before the command began.
any help would be great and thanx in advance

otish1000c 10-08-2004 03:14 PM

just a guess here, but it may be that the app doesn't recognize MDK directory structure. IE: KDE in MDK installs to /usr/share where on other distro's that location can differ. soooooo........... try doing this. run ./configure again, but run it like this......... ./configure --prefix=/usr/share

if that don't work, try one of the following switches........

./configure --prefix=/usr

or

./configure --prefix=/usr/share/apps

otis

Micro420 10-08-2004 05:48 PM

I haven't tried the whole --prefix command thing that the poster above me mentions, so I do not know if that will work. However, I can tell you from personal experience that the whole ./configure, make, make install, does NOT work in Mandrake. Best way is to find a RPM package, or URPMI the application. I find that compiling is impossible in Mandrake for whatever reason. Please prove me wrong. :(

slim27616 10-08-2004 08:14 PM

that didnt work either but i know that u can complie this program cuz i did it on an older version of mandy.

opjose 10-09-2004 03:38 AM

Please don't declare "The MAKE COMMAND DOES NOT WORK" because it is working perfectly fine. That infers that the MAKE command is "broken", and it seems to be working as it should in your machine.

Your app may have compiled with a prior version of Mandrake, and not the one you are running now due to changes in either the API, loaded LIBS or other misc files.

All of the errors you posted seem to be related to the compiler not finding necessary hooks, that is hooks needed for the program you are trying to compile.

This may be due to trying to compile a program which is not really compatible with your distro or with installed libs.

slim27616 10-09-2004 09:41 AM

well how do i fix that i can read a stack trace to i just dont know wht to do about it please help me

otish1000c 10-09-2004 10:48 AM

ok, here's another guess. you have the following error at the end of your "make" output........

Quote:

make[2]: *** [kpagermainwin.moc.lo] Error 1

per the intructions on the KPager app page.......

Quote:

Compilation Problems:
=====================
If you experience any compile problems, try to open kpager2.kdevelop and use kdevelop3.1 to compile it.
There might be some issues with the system clock. Since my computer believes a day has 19 hours, the file modification times are wrong and must be set by yourself before compiling. Do:
o find . -print -exec touch {} \;
Remove the autom4te.cache directory in case you don't use automake 1.7.
If there are any problems during compilation in kpagermainwin.moc.cpp, insert at the very beginning of this file:
o #include "version.h"
o #ifndef KPAGER_IS_APPLET
and at the very end:
o #endif

(It seems the moc compiler has problems in understanding #ifdefs).
maybe give that a try &/or check out the kpager link above for other info.

otis


All times are GMT -5. The time now is 02:57 AM.