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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:25:49+00:00 2026-06-11T15:25:49+00:00

I’m starting to write a small application for Linux under the Mono framework, the

  • 0

I’m starting to write a small application for Linux under the Mono framework, the application will essentially be a small kiosk front-end with very minimal user interaction. This is to replace a previous version of the same application which was 100% text / console based.

As this will run on a Raspberry Pi, I want to avoid running X and have my application talk to the Framebuffer directly. I’m set on using the Mono framework and C# as my development language since I know C# very well. Portability is not an issue in this instance.

I’m having some trouble finding appropriate libraries and bindings to let me access the Framebuffer from Mono however. The GTK# libraries all bind explicitly to the X11 interface, and in any case, there don’t appear to be pre-built GtkFB libraries in Debian Wheezy for the ARM Soft-Float (armel) architecture.

The Mono.Cairo library exposes a DirectFBSurface type, however the constructor for that surface takes two IntPtr arguments and is not documented so I don’t know what should be passed into the constructor to properly initialise the Framebuffer as a Cairo Surface.

Has anyone worked with Mono and C# to talk to the Linux Framebuffer, and if so, can you provide basic examples to initialise and start drawing onto the FB, or point to online documentation to assist?

Update 1

I thought I’d try instantiating the DirectFBSurface with null for both constructor parameters, with the following code:

public static void Main(string[] args)
{
    // ...
    DirectFBSurface surface = new DirectFBSurface(((IntPtr)null), ((IntPtr)null));
    // ...
}

I expected this to generate an exception indicating that null parameter values were not permitted, however it instead looks as if the DirectFBSurface is either not implemented in Mono.Cairo or is not compiled into the library shipped with Debian Wheezy (armel):

Unhandled Exception: System.EntryPointNotFoundException: cairo_directfb_surface_create
  at (wrapper managed-to-native) Cairo.NativeMethods:cairo_directfb_surface_create (intptr,intptr)
  at Cairo.DirectFBSurface..ctor (IntPtr dfb, IntPtr dfb_surface) [0x00000] in <filename unknown>:0
  at Info.Insch.SandBox.TestCairo.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0

So it appears that the Mono.Cairo approach probably won’t work for my needs, and as noted above, GTK# Framebuffer library doesn’t seem to be part of Debian Wheezy for armel. Is there another set of libraries which I could use to access the Linux Framebuffer from Mono?

  • 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-06-11T15:25:50+00:00Added an answer on June 11, 2026 at 3:25 pm

    The EntryPointNotFoundException you get, means that the symbol cairo_directfb_surface_create with (IntPtr, IntPtr) as arguments was not found in your libcairo.so.2 library from debian. This can likely be the case, if directfb was not enabled at compile time in cairo. You can check for directfb support in cairo by doing:

    readelf -Ws /usr/lib/libcairo.so.2 | grep directfb
    

    If the result (output) is empty, you lack directfb support. In this case you must recompile cairo with --enable-directfb argument passed to the configure script.

    I’ve tested on an openSUSE 12.1 and Fedora 17 box, and both do not seem to ship directfb enabled cairo by default. I don’t know about debian though, you will have to test yourself.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I used javascript for loading a picture on my website depending on which small
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I need a function that will clean a strings' special characters. I do NOT
I have an array which has BIG numbers and small numbers in it. I
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but

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.