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 3598642
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T20:16:03+00:00 2026-05-18T20:16:03+00:00

I am having trouble building a working version of Python with ctypes using the

  • 0

I am having trouble building a working version of Python with ctypes using the Intel Compiler (11.1). The trouble is, that libffi under the ctypes module does not work properly when interfacing with e.g. OpenGL.

Originally, libffi did not compile using the Intel Compilers as __int128_t is not defined, and I followed the work around that has been listed several places, namely by defining a new type:

typedef struct { int64_t m[2]; } __int128_t;

This follows a response as given by Intel : http://software.intel.com/en-us/forums/showthread.php?t=56652

The patch then suggests something like this:

typedef struct { int64_t m[2]; } __int128_t;
//and then change where the uint64_t is assigned to this to be:
sse[x].m[0] = *(uint64_t*) v;
sse[x].m[1] = 0;
//and where the uint32_t is assigned to:
sse[x].m[0] = *(uint32_t*) v;
sse[x].m[1] = 0;

Applying the patch, things compile, and ctypes becomes available for import, however, when interfacing with OpenGL, things do not work. Running PyQt’s example program hellogl.py results in a blank view.

Is there a better, working way of doing this?

Dan;

  • 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-18T20:16:04+00:00Added an answer on May 18, 2026 at 8:16 pm

    I am the author of libffi. I recommend sending a note to libffi-discuss@sourceware.org containing all of this detail. I also recommend running the libffi testsuite on an intel-compiler built libffi. Make sure you send the results to libffi-discuss@sourceware.org and we can help figure out the problem.

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

Sidebar

Related Questions

I am having trouble building a working version of Python with ctypes using the
I am having trouble building a Python function that launches TkInter objects, with commands
I'm building a simple web-based RSS reader in Python, but I'm having trouble parsing
I'm having some major trouble deleting directories. I'm working building a ADMIN tool to
My system is having trouble building the boost libraries. I understand that most boost
I'm having trouble building a connection string that my VB6 program can use to
I am building a project using the Play framework and I am having trouble
I'm having trouble building a bit of jquery that grabs a selector that has
I'm having trouble building predicates in a foreach loop. The variable that contains the
I'm building a iphone app and using c++ and am having trouble checking if

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.