Simple UNIX graphics library suitable for student projects?

Ask a Question related to UNIX Programming, Design and Development.

  1. #1

    Default Simple UNIX graphics library suitable for student projects?

    Does anyone know of a simple graphics package that college students might
    use for a project? It should have these attributes:

    1. Free and easily installed.
    2. Runs on systems students are likely to use, such as Linux, FreeBSD, and
    Darwin.
    3. Can be learned in a few hours, and won't overburden the graduate
    assistants with debugging. (Rules out X.) It will be used for homework
    projects--not for building commercial software. The purpose of the course
    isn't the graphics package, which will be used for only a few assignments.
    It's more of a UNIX systems-level programming course.
    4. Has basic drawing primitives, some font stuff, and basic windows. Window
    management isn't important.
    5. Graphical editor (IDE) is not important.
    6. Usable from C or C++.

    (Java, Smalltalk, and Python all have suitable systems more or less built-
    in. Is there anything similar for C or C++?)

    My immediate situation is this: I want to put some exercises in a book I'm
    completing that ask the student to program a simple Web browser.

    Is there anything lightweight out there, or has X pretty much driven
    everything else away?

    With Google, I came across SDL. Anyone familiar with it, or things similar?

    --Marc
    Marc Rochkind Guest

  2. Similar Questions and Discussions

    1. Need help with a simple UNIX sockets server based on IO::Socket::UNIX
      Hi. I've tried to create a simple client + server that communicate through a unix socket. As with all socket servers, it has a loop where it...
    2. Loading graphics from library, dynamiclly
      I have a wepon that I want to be able to launch rokets where I can launch unlimited amoun of rockets at any moment and each rocket con be controlled...
    3. most simple xml library
      I'm looking for a simple and easy to use xml creator/parser library for Ruby. My program doesn't need all bells&whistles offered by complex...
    4. Win32 graphics library
      Hi Rubyists, Is there a Ruby library out there for Win32 that will do simple image manipulations? Specifically I want to resize (with high...
    5. Simple FTP/Unix Command Question
      When doing an 'mget' command for multiple files from a single directory, is there a way to make it "get" all of the files automatically? Right...
  3. #2

    Default Re: Simple UNIX graphics library suitable for student projects?

    On Thu, 24 Jul 2003, Marc Rochkind wrote:
    > Does anyone know of a simple graphics package that college students might
    > use for a project? It should have these attributes:
    I take it that curses would be too simple (in the lack of
    features sense)? :-)

    --
    Rich Teer, SCNA, SCSA

    President,
    Rite Online Inc.

    Voice: +1 (250) 979-1638
    URL: [url]http://www.rite-online.net[/url]

    Rich Teer Guest

  4. #3

    Default Re: Simple UNIX graphics library suitable for student projects?


    "Marc Rochkind" <rochkind@basepath.com> wrote in message
    news:oprstupbfxojfyi9@den.news.speakeasy.net...
    > Does anyone know of a simple graphics package that college students might
    > use for a project? It should have these attributes:
    >
    > 1. Free and easily installed.
    > 2. Runs on systems students are likely to use, such as Linux, FreeBSD, and
    > Darwin.
    > 3. Can be learned in a few hours, and won't overburden the graduate
    > assistants with debugging. (Rules out X.) It will be used for homework
    > projects--not for building commercial software. The purpose of the course
    > isn't the graphics package, which will be used for only a few assignments.
    > It's more of a UNIX systems-level programming course.
    > 4. Has basic drawing primitives, some font stuff, and basic windows.
    Window
    > management isn't important.
    > 5. Graphical editor (IDE) is not important.
    > 6. Usable from C or C++.
    >
    > (Java, Smalltalk, and Python all have suitable systems more or less built-
    > in. Is there anything similar for C or C++?)
    >
    > My immediate situation is this: I want to put some exercises in a book I'm
    > completing that ask the student to program a simple Web browser.
    >
    > Is there anything lightweight out there, or has X pretty much driven
    > everything else away?
    >
    > With Google, I came across SDL. Anyone familiar with it, or things
    similar?
    >
    > --Marc
    Take a look at Qt.



    bob holder Guest

  5. #4

    Default Re: Simple UNIX graphics library suitable for student projects?

    Marc Rochkind wrote:
    >
    > Does anyone know of a simple graphics package that college students might
    > use for a project? It should have these attributes:
    I do not know which are simple and which are not, but you can find a
    list of candidates at:

    [url]http://www.geocities.com/SiliconValley/Vista/7184/guitool.html[/url]
    Bjorn Reese Guest

  6. #5

    Default Re: Simple UNIX graphics library suitable for student projects?

    In article <oprstupbfxojfyi9@den.news.speakeasy.net>, Marc Rochkind wrote:
    > Does anyone know of a simple graphics package that college students
    > might use for a project? It should have these attributes:
    >
    > 1. Free and easily installed.
    > 2. Runs on systems students are likely to use, such as Linux, FreeBSD,
    > and Darwin.
    > 3. Can be learned in a few hours, and won't overburden the graduate
    > assistants with debugging. (Rules out X.)
    By X do you mean Xlib or really X11 ?
    > It will be used for homework
    > projects--not for building commercial software. The purpose of the
    > course isn't the graphics package, which will be used for only a few
    > assignments. It's more of a UNIX systems-level programming course.
    > 4. Has basic drawing primitives, some font stuff, and basic windows.
    > Window management isn't important.
    > 5. Graphical editor (IDE) is not important.
    > 6. Usable from C or C++.
    >
    > (Java, Smalltalk, and Python all have suitable systems more or less
    > built- in. Is there anything similar for C or C++?)
    >
    > My immediate situation is this: I want to put some exercises in a book
    > I'm completing that ask the student to program a simple Web browser.
    >
    > Is there anything lightweight out there, or has X pretty much driven
    > everything else away?
    >
    > With Google, I came across SDL. Anyone familiar with it, or things
    > similar?
    I guess SDL is what you're looking for. It works more or less at
    the same level as Xlib (i.e. no widgets, plain bitmap graphics),
    but it's portable to Windows and other platforms. From my very
    limited experience with it, it appears to be quite a bit simpler
    than Xlib.

    On Linux, I think it can display in an X window or directly onto
    the frame buffer (Svgalib).

    --
    André Majorel <URL:http://www.teaser.fr/~amajorel/>
    If we don't believe in freedom of expression for people we
    despise, we don't believe in it at all. -- Noam Chomsky
    Andre Majorel Guest

  7. #6

    Default Re: Simple UNIX graphics library suitable for student projects?

    On Fri, 25 Jul 2003 01:19:21 +0000 (UTC), Andre Majorel
    <amajorel@teezer.fr> wrote:

    [snip]
    >
    > By X do you mean Xlib or really X11 ?
    I meant two things:
    1. Student should not have to program at the Xlib level, or on any toolkit
    that uses the intrinsics (e.g., Motif), and
    2. Ideally, X shouldn't be there at all, although on UNIX nearly every GUI
    system I've seen (SDL being an exception) runs on top of X.


    [snip]
    >
    > I guess SDL is what you're looking for. It works more or less at
    > the same level as Xlib (i.e. no widgets, plain bitmap graphics),
    > but it's portable to Windows and other platforms. From my very
    > limited experience with it, it appears to be quite a bit simpler
    > than Xlib.
    >
    > On Linux, I think it can display in an X window or directly onto
    > the frame buffer (Svgalib).
    >

    Thanks for the info! I will check it out some more.

    --Marc
    Marc Rochkind Guest

  8. #7

    Default Re: Simple UNIX graphics library suitable for student projects?

    Marc Rochkind <rochkind@basepath.com> writes:
    > Does anyone know of a simple graphics package that college students
    > might use for a project? It should have these attributes:
    >
    > 1. Free and easily installed.
    > 2. Runs on systems students are likely to use, such as Linux, FreeBSD,
    > 3. Can be learned in a few hours, and won't overburden the graduate
    > 4. Has basic drawing primitives, some font stuff, and basic
    > 5. Graphical editor (IDE) is not important.
    > 6. Usable from C or C++.
    >
    Tk ? [url]http://www.tcl.tk[/url]

    It's most usable only slightly indirectly from C and C++, but it's
    certainly doable. Meets your other criteria handily. Doesn't replace
    X, but doesn't require any knowledge of it, either. Has the additional
    advantage that it's the same toolkit most often used in Perl and Python,
    so learning it will most likely be useful after the course is over, even
    if the students don't use Tcl.


    Derek
    Derek Millar Guest

  9. #8

    Default Re: Simple UNIX graphics library suitable for student projects?

    On Fri, 25 Jul 2003 05:38:52 GMT, Derek Millar <derek_millar@yahoo.com>
    wrote:

    [snip]
    >
    > Tk ? [url]http://www.tcl.tk[/url]
    >
    > It's most usable only slightly indirectly from C and C++, but it's
    > certainly doable. Meets your other criteria handily. Doesn't replace
    > X, but doesn't require any knowledge of it, either. Has the additional
    > advantage that it's the same toolkit most often used in Perl and Python,
    > so learning it will most likely be useful after the course is over, even
    > if the students don't use Tcl.
    >
    >
    > Derek
    >

    Yes, this is promising, and you're right about the side benefits. I need to
    look at what calling it from C looks like.

    Also, it's likely that the prof. and the grad assistants are already
    familiar with tcl/tk.

    Other candidates and Qt and FLTK. I'm looking at FLTK now.

    --Marc
    Marc Rochkind Guest

  10. #9

    Default Re: Simple UNIX graphics library suitable for student projects?

    * Marc Rochkind <rochkind@basepath.com>
    | Does anyone know of a simple graphics package that college students
    | might use for a project?

    [url]http://plplot.sourceforge.net/index.html[/url]

    Introduction

    PLplot is a library of functions that are useful for making scientific
    plots. PLplot can be used from within compiled languages such as C,
    C++, FORTRAN and Java, and interactively from interpreted languages
    such as Octave, Python, Perl and Tcl. The PLplot library can be used
    to create standard x-y plots, semilog plots, log-log plots, contour
    plots, 3D surface plots, mesh plots, bar charts and pie
    charts. ...

    I've used it very long ago, but it seems still active.

    R'
    Ralf Fassel Guest

  11. #10

    Default Re: Simple UNIX graphics library suitable for student projects?

    "Marc Rochkind" wrote:
    > Does anyone know of a simple graphics package that college students might
    > use for a project? It should have these attributes:
    <My immediate situation is this: I want to put some exercises in a book I'm
    completing that ask the student to program a simple Web browser.
    <snip>

    SDL is extremely simple, I use it for all my (well most) linux games. Notice
    the word games, libsdl is more of a subsitute for directx (which is does
    well at) rather than a windowing API. You have no text boxes, buttons,
    window management (minus a few things like putting a caption on your
    window).

    I recommend wxwindows ([url]www.wxwindows.org[/url]). Qt ([url]http://www.trolltech.com[/url]) is
    fine too, but...it is not as simple to work with. Have you decided on which
    API you will use for the HTTP functionality?

    --
    Regards,
    Greg P.

    Golden Rule of Open Source Programming:
    "Don't whine about something unless you plan to implement it yourself"


    Greg P. Guest

  12. #11

    Default Re: Simple UNIX graphics library suitable for student projects?

    On Sat, 26 Jul 2003 01:09:16 GMT, Greg P. <no@spam.sam> wrote:
    > "Marc Rochkind" wrote:
    >> Does anyone know of a simple graphics package that college students
    >> might
    >> use for a project? It should have these attributes:
    > <My immediate situation is this: I want to put some exercises in a book
    > I'm
    > completing that ask the student to program a simple Web browser.
    > <snip>
    >
    > SDL is extremely simple, I use it for all my (well most) linux games.
    > Notice
    > the word games, libsdl is more of a subsitute for directx (which is does
    > well at) rather than a windowing API. You have no text boxes, buttons,
    > window management (minus a few things like putting a caption on your
    > window).
    >
    Yes... I gathered that from their web site, so it isn't suitable.
    > I recommend wxwindows ([url]www.wxwindows.org[/url]). Qt ([url]http://www.trolltech.com[/url])
    > is
    > fine too, but...it is not as simple to work with.
    I picked Qt, because it is usually distributed with Linux, it's well
    documented with several books, and it's used both for Open Source work and
    commercial work.
    > Have you decided on which
    > API you will use for the HTTP functionality?
    >
    Not sure what you mean... my book is about UNIX systems programming, so we
    do the networking at the POSIX/SUS level. And, parsing the HTML is the
    whole point of the exercise!

    --Marc
    Marc Rochkind Guest

  13. #12

    Default Re: Simple UNIX graphics library suitable for student projects?

    Marc Rochkind <rochkind@basepath.com> wrote in message news:<oprstymbcgojfyi9@den.news.speakeasy.net>...
    > On Thu, 24 Jul 2003 19:07:22 GMT, Rich Teer <rich.teer@rite-group.com>
    > wrote:
    > > On Thu, 24 Jul 2003, Marc Rochkind wrote
    > >> Does anyone know of a simple graphics package that college students
    > >> might
    > >> use for a project? It should have these attributes:
    > > I take it that curses would be too simple (in the lack of
    > > features sense)? :-)
    > >
    > No, actually Curses meet all the objectives, and I use it in some examples.
    > But, it's not graphical. I want something that supports a pixel display.
    >
    My first thought was curses but if you want graphical how about fltk
    (pronounced full-tick)? See [url]http://www.fltk.org/[/url] for details.

    IMO fltk is not suitable for production programs because there are
    certain features missing, but then it is supposed to be lightweight.
    It is fast, light and easy though and most people should be able to
    pick it up in a few hours.

    -Andrew Marlow
    apm Guest

  14. #13

    Default Re: Simple UNIX graphics library suitable for student projects?

    On 27 Jul 2003 02:31:24 -0700, apm <apm35@student.open.ac.uk> wrote:
    > Marc Rochkind <rochkind@basepath.com> wrote in message
    > news:<oprstymbcgojfyi9@den.news.speakeasy.net>...
    >> On Thu, 24 Jul 2003 19:07:22 GMT, Rich Teer <rich.teer@rite-group.com>
    >> wrote:
    >> > On Thu, 24 Jul 2003, Marc Rochkind wrote
    >> >> Does anyone know of a simple graphics package that college students
    >> >> might
    >> >> use for a project? It should have these attributes:
    >> > I take it that curses would be too simple (in the lack of
    >> > features sense)? :-)
    >> > No, actually Curses meet all the objectives, and I use it in some
    >> examples. But, it's not graphical. I want something that supports a
    >> pixel display.
    >>
    > My first thought was curses but if you want graphical how about fltk
    > (pronounced full-tick)? See [url]http://www.fltk.org/[/url] for details.
    >
    > IMO fltk is not suitable for production programs because there are
    > certain features missing, but then it is supposed to be lightweight.
    > It is fast, light and easy though and most people should be able to
    > pick it up in a few hours.
    >
    > -Andrew Marlow
    >
    I looked long and hard at FLTK, and there's a lot to like about it. But, my
    feeling is that as long as I'm requiring coding in C++ (as opposed to C)
    and as long as it's going to run on top of X, I might as well use Qt which
    is more popular and shipped with most version of Linux that include KDE.
    (Which is all the majors.) I think it's more likely that the student and
    the staff will have other uses for what they have learned about Qt.

    --Marc
    Marc Rochkind Guest

  15. #14

    Default Re: Simple UNIX graphics library suitable for student projects?

    "Marc Rochkind" <rochkind@basepath.com> wrote in message
    news:oprswldfe1ojfyi9@den.news.speakeasy.net...
    > I picked Qt, because it is usually distributed with Linux, it's well
    > documented with several books, and it's used both for Open Source work and
    > commercial work.
    You will be pleased with your decision.
    > Not sure what you mean... my book is about UNIX systems programming, so we
    > do the networking at the POSIX/SUS level. And, parsing the HTML is the
    > whole point of the exercise!
    Good for you for not taking up some 3rd party HTTP routine. I hope it all
    works out for you! =)


    Greg P. Guest

  16. #15

    Default Re: Simple UNIX graphics library suitable for student projects?

    Hi Marc!

    On 24 Jul 03 at 20:23, "Marc" (Marc Rochkind) wrote:

    Marc> Does anyone know of a simple graphics package that college students
    Marc> might use for a project?

    You can also check GTK. I never used it, but no one mentioned it here,
    and I know it's for C. And yes, Xaw and Motif also.

    --
    Sincerely,
    Dmitry

    --- [url]www.karasik.eu.org[/url] ---

    Life ain't fair, but the root password helps.
    - BOFH

    Dmitry Karasik Guest

  17. #16

    Default Re: Simple UNIX graphics library suitable for student projects?

    On Thu, 24 Jul 2003 12:23:25 -0600, Marc Rochkind wrote:
    > Does anyone know of a simple graphics package that college students might
    > use for a project? It should have these attributes:
    QT/X11
    >
    > 1. Free and easily installed.
    Commercial or free (gpl / gpl like) lisence
    Check.
    > 2. Runs on systems students are likely to use, such as Linux, FreeBSD, and
    > Darwin.
    linux,other nixes, OS X, windows
    Check.
    > 3. Can be learned in a few hours, and won't overburden the graduate
    > assistants with debugging. (Rules out X.) It will be used for homework
    > projects--not for building commercial software. The purpose of the course
    > isn't the graphics package, which will be used for only a few assignments.
    > It's more of a UNIX systems-level programming course.
    Relatively easy, once you understand it.
    Check.

    If it's system level programming why confuse things with graphical
    frontends.
    > 4. Has basic drawing primitives, some font stuff, and basic windows. Window
    > management isn't important.
    Check
    > 5. Graphical editor (IDE) is not important.
    Your favorite text editor.
    > 6. Usable from C or C++.
    C++
    Check

    C? Don't know, don't really think so.

    [url]http://www.trolltech.com/products/qt/index.html[/url]


    hth
    NPV
    Nils Petter Vaskinn Guest

  18. #17

    Default Re: Simple UNIX graphics library suitable for student projects?

    Marc Rochkind <rochkind@basepath.com> wrote in message news:<oprszvxxdrojfyi9@den.news.speakeasy.net>...
    > On 27 Jul 2003 02:31:24 -0700, apm <apm35@student.open.ac.uk> wrote:
    > > My first thought was curses but if you want graphical how about fltk
    > > (pronounced full-tick)? See [url]http://www.fltk.org/[/url] for details.
    [snip]
    > I looked long and hard at FLTK, and there's a lot to like about it. But,
    [ reasons snipped ]
    > I might as well use Qt which is more popular
    Depends who you ask. Lots of people don't like the MOC.

    -Andrew Marlow
    apm Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139