LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 08-12-2004, 09:26 PM   #1
moskal
Member
 
Registered: Jul 2004
Posts: 84

Rep: Reputation: 15
Make error :-/


Hey guys, I'm trying to make a program, I type in make and get this:

Code:
main.cpp:6:20: Python.h: No such file or directory
In file included from main.cpp:24:
karamba.h:5:20: Python.h: No such file or directory
In file included from karamba.h:57,
                 from main.cpp:24:
imagelabel.h:12:20: Python.h: No such file or directory
In file included from imagelabel.h:24,
                 from karamba.h:57,
                 from main.cpp:24:
karamba.h:5:20: Python.h: No such file or directory
In file included from main.cpp:24:
karamba.h:191: error: syntax error before `*' token
karamba.h:192: error: syntax error before `*' token
main.cpp:44: error: syntax error before `*' token
main.cpp: In function `int main(int, char**)':
main.cpp:100: error: `Py_Initialize' undeclared (first use this function)
main.cpp:100: error: (Each undeclared identifier is reported only once for each function it appears in.)
main.cpp:103: error: `PyEval_InitThreads' undeclared (first use this function)
main.cpp:105: error: `mainThreadState' undeclared (first use this function)
main.cpp:108: error: `PyThreadState_Get' undeclared (first use this function)
main.cpp:111: error: `PyEval_ReleaseLock' undeclared (first use this function)
main.cpp:141: error: `PyInterpreterState' undeclared (first use this function)
main.cpp:141: error: `mainInterpreterState' undeclared (first use this function)
main.cpp:143: error: `PyThreadState' undeclared (first use this function)
main.cpp:143: error: `myThreadState' undeclared (first use this function)
main.cpp:143: error: `PyThreadState_New' undeclared (first use this function)
main.cpp:144: error: `PyThreadState_Swap' undeclared (first use this function)
main.cpp:145: error: `PyEval_AcquireLock' undeclared (first use this function)
main.cpp:146: error: `Py_Finalize' undeclared (first use this function)
make[3]: *** [main.o] Error 1
make[3]: Leaving directory `/home/tom/Downloads/SuperKaramba/superkaramba-0.34/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/tom/Downloads/SuperKaramba/superkaramba-0.34/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/tom/Downloads/SuperKaramba/superkaramba-0.34'
make: *** [all] Error 2
And yes, I did install python-devel


thanks

Tom
 
Old 08-12-2004, 09:34 PM   #2
moskal
Member
 
Registered: Jul 2004
Posts: 84

Original Poster
Rep: Reputation: 15
Here is the first part of the error:

Code:
 make  all-recursive
make[1]: Entering directory `/home/tom/Downloads/SuperKaramba/superkaramba-0.34'
Making all in doc
make[2]: Entering directory `/home/tom/Downloads/SuperKaramba/superkaramba-0.34/doc'
Making all in .
make[3]: Entering directory `/home/tom/Downloads/SuperKaramba/superkaramba-0.34/doc'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/tom/Downloads/SuperKaramba/superkaramba-0.34/doc'
Making all in en
make[3]: Entering directory `/home/tom/Downloads/SuperKaramba/superkaramba-0.34/doc/en'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/tom/Downloads/SuperKaramba/superkaramba-0.34/doc/en'
make[2]: Leaving directory `/home/tom/Downloads/SuperKaramba/superkaramba-0.34/doc'
Making all in po
make[2]: Entering directory `/home/tom/Downloads/SuperKaramba/superkaramba-0.34/po'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/tom/Downloads/SuperKaramba/superkaramba-0.34/po'
Making all in src
make[2]: Entering directory `/home/tom/Downloads/SuperKaramba/superkaramba-0.34/src'
make[3]: Entering directory `/home/tom/Downloads/SuperKaramba/superkaramba-0.34/src'
if 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 -pedantic -W -Wpointer-arith -Wmissing-prototypes -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 -fno-exceptions -fno-check-new  -MT main.o -MD -MP -MF ".deps/main.Tpo" \
  -c -o main.o `test -f 'main.cpp' || echo './'`main.cpp; \
then mv -f ".deps/main.Tpo" ".deps/main.Po"; \
else rm -f ".deps/main.Tpo"; exit 1; \
fi

Tom
 
Old 09-06-2004, 11:45 AM   #3
slimeskul
LQ Newbie
 
Registered: Jul 2004
Posts: 8

Rep: Reputation: 0
Did you ever find out how to solve this?

cheers
slime
 
Old 09-06-2004, 02:10 PM   #4
moskal
Member
 
Registered: Jul 2004
Posts: 84

Original Poster
Rep: Reputation: 15
yeah I installed python-devel, and then I did make clean , and again configure and make.... good luck
 
Old 09-06-2004, 09:54 PM   #5
slimeskul
LQ Newbie
 
Registered: Jul 2004
Posts: 8

Rep: Reputation: 0
Ive installed libpython2.3-devel-2.3.3-2mdk.i586.rpm. I'm using Mandrake 10, is this the right package to have used?
so should I run make clean in the karamba directory & then run ./configure?

***don't worry, I finally worked it out.***

slime

Last edited by slimeskul; 09-06-2004 at 10:13 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Really, really Weird trouble with make (make error 2) flyeater SUSE / openSUSE 5 06-20-2005 12:05 PM
xprobe2 "make" error make[1]: *** [config_set.o] Error 1 rsharma2000 Linux - Security 1 11-24-2004 04:10 PM
lopster v1.2.2 make error: No rule to make target `m4/glibc21.m4' Kropotkin Fedora 0 10-31-2004 11:19 AM
make failing to make with this error. Help needed? vdemuth Linux - Software 4 06-20-2004 03:08 PM
make: cc: command not found make: *** [gzip.o]error 127 zyjk Linux - Newbie 5 02-08-2002 09:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 08:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration