Unix Technical Forum

libnewt compilation

This is a discussion on libnewt compilation within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hi Guys, The OP in http://groups.google.co.nz/group/alt...20make&rnum=1& ran into a problem compiling newt and didn't really get much help with ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2008, 09:58 AM
tink
 
Posts: n/a
Default libnewt compilation

Hi Guys,

The OP in
http://groups.google.co.nz/group/alt...20make&rnum=1&
ran into a problem compiling newt and didn't really get much help
with the actual problem.

The problem is/was that snackmodule.c has an
#include "Python.h"
and it appears that that can't be found by the compiler.

Modifying it to
#include "/usr/include/python2.4/Python.h"
fixed the compilation for me (your path may vary).


Cheers,
Andrej

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 09:58 AM
Mark Hill
 
Posts: n/a
Default Re: libnewt compilation

On 20 Sep 2005 16:14:36 -0700,
tink <andrej.groups@gmail.com> wrote:
| Hi Guys,
|
| The OP in
| http://groups.google.co.nz/group/alt...20make&rnum=1&
| ran into a problem compiling newt and didn't really get much help
| with the actual problem.
|
| The problem is/was that snackmodule.c has an
| #include "Python.h"
| and it appears that that can't be found by the compiler.
|
| Modifying it to
| #include "/usr/include/python2.4/Python.h"
| fixed the compilation for me (your path may vary).
|
|
| Cheers,
| Andrej

I've modified the References header so that the above information should
be archived by Google in the original thread. (I hope.)

--
Mark Hill
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-20-2008, 09:59 AM
Eef Hartman
 
Posts: n/a
Default Re: libnewt compilation

tink <andrej.groups@gmail.com> wrote:
> Modifying it to
> #include "/usr/include/python2.4/Python.h"


Just "python2.4/Python.h" should already have done it (/usr/include)
is searched by default) or otherwise add a "-I/usr/include/python2.4"
to the compile options (in most Makefiles: CFLAGS variable).
--
************************************************** ******************
** Eef Hartman, Delft University of Technology, dept. EWI/TW **
** e-mail: E.J.M.Hartman@math.tudelft.nl, fax: +31-15-278 7295 **
** snail-mail: P.O. Box 5031, 2600 GA Delft, The Netherlands **
************************************************** ******************
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:21 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com