Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3432948
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T07:30:47+00:00 2026-05-18T07:30:47+00:00

I’m good at Python programming.I’m trying to extend python with my own c programs.

  • 0

I’m good at Python programming.I’m trying to extend python with my own c programs.
I’ve got some tutorials but my operating system is pretty lame. It says that

python.h is not found

Also I’ve tried OpenGL programming in it.
I had to face similar error

GL/gl.h not found

I think I don’t have GL dev-library on my Linux. But I’m damn sure that python.h is on my Hard drive, because I’ve found it in the proper directory.

I’m using PCLinux OS 2010
Dell Vostro 1510 with Intel 1.8GHz Q2duo
2Gb ram
gcc4.4.1

I can’t use Swig on windows because I couldn’t install gcc on it.
Swig wont run on my current OS. If I write the code by myself, it shows this kind of error.
(I’m sure of the code’s integrity because it was an example file)

Please tell me the procedure to compile a .so file for extending python in my current OS
OR
Please tell me which OS works best for this kinda programming stuff.
OR
Tell me if How I can install all the features into Windows for this work.
OR
Is there an IDE which can help me out with this kinda problem.

Please Help me. I’ve been scratching my head for pretty long time trying to do this.
I’m tired of idealized tutorials which assume of ideal functional computer where every thing works. Thank you

I’m not an expert programmer. But I’ve done some pretty interesting things. I have learn programming on turbo c++.gcc is little new to me. Please consider my novice question.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T07:30:48+00:00Added an answer on May 18, 2026 at 7:30 am

    As far as compiling the stuff on PCLinux goes, it seems that you’re indeed missing the header files.

    You need to install them via the package manager:

    sudo apt-get install python-devel
    sudo apt-get install libnvidia-xorg1-devel
    

    This will install the python headers, the OpenGL headers.

    As far as getting the stuff to run on windows goes, you’ll need to setup a posix environment (either cygwin or mingw) in order to be able to use gcc there, more on that topic can be found in this question:
    What is the difference between Cygwin and MinGW?

    Update
    I read a bit about PCLinuxOS, it seems to be pretty bad, that means it’s missing a lot of stuff from its repositories.

    My suggestion to you is to use Ubuntu for development since:

    1. Ubuntu’s user base is a lot bigger than the one of PCLinux
    2. Many people here do active development on Ubuntu
    3. Ubuntu’s repositories are a lot better maintained and there’s nearly nothing one can’t get via apt
    4. Therefore getting your python c extension to run there will be trivial
    5. And last but not least future questions will get a lot more answers due to the above facts, and if you got problems with Ubuntu itself there’s even a stackexchange site

    Using a good development environment saves you a lot of time and headaches.

    Update 2 Installing the headers on Ubuntu

    sudo apt-get install python-dev
    sudo apt-get install libgl1-mesa-dev
    sudo apt-get install libglu1-mesa-dev
    sudo apt-get install libglew1.5-dev
    

    This will install python headers, OpenGL headers, OpenGL utility headers and OpenGL extensions headers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I am trying to loop through a bunch of documents I have to put
I have some data like this: 1 2 3 4 5 9 2 6
I have a bunch of posts stored in text files formatted in yaml/textile (from
We're building an app, our first using Rails 3, and we're having to build
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I'm making a simple page using Google Maps API 3. My first. One marker

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.