1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Tablet support

Discussion in 'GIMP for Mac' started by Auria, Sep 4, 2008.

  1. Auria

    Auria Member

    Joined:
    Mar 16, 2008
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
    Just found this in the X11 mailing list :
    I don't have a tablet so hard to tell, but I'll try updating the instructions and making a test build, and then people can report if it works :) If other packagers feel like doing test builds please do so. tablet support would be a great plus for GIMP. What i don't know is whether it will work only in XQuartz, or on 10.4 too.
     
  2. Auria

    Auria Member

    Joined:
    Mar 16, 2008
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
    Test instructions for packagers :

    Build as usual from http://darwingimp.sourceforge.net/buildgimp.html. ut just after "port -d selfupdate",
    open ~/src/macports/Gimp.app/Contents/Resources/var/macports/sources/rsync.macports.org/release/ports/x11/gtk2 and open Portfile there.

    Search for the bit that reads
    Code:
        depends_lib-append  port:xrender \
                            lib:libX11.6:xorg
    
    Right below these lines, add
    Code:
        platform darwin 9 {
            configure.args-append --with-xinput
        }
    
    Then continue building GIMP as usual. If all goes well, according to this mailing list post, GIMP should have tablet support ;D
    That would work on 10.5 only so i can't make build myselfs. 10.5 packagers, we need you
     
  3. Auria

    Auria Member

    Joined:
    Mar 16, 2008
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
    gee folks, that was one of the most requested features :( come on react a bit, prove me i'm not alone here
     
  4. Cocoa

    Cocoa New Member

    Joined:
    Sep 14, 2008
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    I'd love to help, as I'm running an Intel Mac on Leo.

    Those instructions confuse me, so, erm. What do I do? Do I need to remove my current version of Macports?
     
  5. etece

    etece New Member

    Joined:
    Mar 31, 2008
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Madrid, Spain
    Home Page:
    Hi, I'm building on ppc leopard but gives me some errors.
    First the ---> Activating p5-getopt-long 2.37_0 one
    I follow your instructions and run sudo ~/src/macports/Gimp.app/Contents/Resources/bin/port -f activate p5-getopt-long
    but when run gimp2 +x11 appears that:
    Warning: the following items did not execute (for py25-hashlib): org.macports.activate org.macports.build org.macports.destroot org.macports.install
    Error: The following dependencies failed to build: py25-gtk py25-cairo py25-numpy py25-hashlib py25-gobject libxslt
    Error: Status 1 encountered during processing.
    What should I do?

    Sorry about my english ;D
     
  6. Auria

    Auria Member

    Joined:
    Mar 16, 2008
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
    Hi,

    first of all have you built GIMP from source using our install instructions? This is pretty much a requirement. (http://darwingimp.sourceforge.net/buildgimp.html) The instructions i posted are basically a proposed addition to what is written on the page linked there

    I think in the "the following items did not execute (for py25-hashlib):" part you did not paste the full error message, could you try it again and post the lines before that one too?

    BTW folks thanks for participating ;D
     
  7. etece

    etece New Member

    Joined:
    Mar 31, 2008
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Madrid, Spain
    Home Page:
    Hi again,
    Ok, here you have:

    ---> Building py25-hashlib with target build
    DEBUG: Executing org.macports.build (py25-hashlib)
    DEBUG: Environment:
    DEBUG: Assembled command: 'cd "/tmp/skl/Gimp.app/Contents/Resources/var/macports/build/_tmp_skl_Gimp.app_Contents_Resources_var_macports_sources_rsync.macports.org_release_ports_python_py25-hashlib/work/Python-2.5.2/Modules" && /tmp/skl/Gimp.app/Contents/Resources/bin/python2.5 setup.py build'
    running build
    running build_ext
    building '_hashlib' extension
    creating build
    creating build/temp.macosx-10.3-ppc-2.5
    -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/tmp/skl/Gimp.app/Contents/Resources/include -I/tmp/skl/Gimp.app/Contents/Resources/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c _hashopenssl.c -o build/temp.macosx-10.3-ppc-2.5/_hashopenssl.o
    unable to execute -DNDEBUG: No such file or directory
    error: command '-DNDEBUG' failed with exit status 1
    Error: Target org.macports.build returned: shell command " cd "/tmp/skl/Gimp.app/Contents/Resources/var/macports/build/_tmp_skl_Gimp.app_Contents_Resources_var_macports_sources_rsync.macports.org_release_ports_python_py25-hashlib/work/Python-2.5.2/Modules" && /tmp/skl/Gimp.app/Contents/Resources/bin/python2.5 setup.py build " returned error 1
    Command output: running build
    running build_ext
    building '_hashlib' extension
    creating build
    creating build/temp.macosx-10.3-ppc-2.5
    -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/tmp/skl/Gimp.app/Contents/Resources/include -I/tmp/skl/Gimp.app/Contents/Resources/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c _hashopenssl.c -o build/temp.macosx-10.3-ppc-2.5/_hashopenssl.o
    unable to execute -DNDEBUG: No such file or directory
    error: command '-DNDEBUG' failed with exit status 1
     
  8. Auria

    Auria Member

    Joined:
    Mar 16, 2008
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
    etece, ok. this error is not related to the GTK tablet fix, but is a general macports error --> http://trac.macports.org/ticket/13930. It seems like the bug will be fixed in a later version of macports, but meanwhile you might be able to get past that by repeatedly trying to build (cross your fingers)
     
  9. etece

    etece New Member

    Joined:
    Mar 31, 2008
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Madrid, Spain
    Home Page:
    Ok,
    fingers crossed, here i go!
     
  10. Cocoa

    Cocoa New Member

    Joined:
    Sep 14, 2008
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Eek- I forgot to add the tablet code. Do I need to restart the process over, or just reinstall x11?

    EDIT: Reinstalled anyway, since it wasn't 2.4.7- I can get it to build on 2.4.5, but not 2.4.7. 2.4.7 release thread for more info.
     
  11. etece

    etece New Member

    Joined:
    Mar 31, 2008
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Madrid, Spain
    Home Page:
    Done, but gimp don't recongnize my pen. :(
     
  12. Auria

    Auria Member

    Joined:
    Mar 16, 2008
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
    :(
    At least we tried it... maybe we can have a few more people try it in case only some of them are supported. Anyway, thanks for trying, since i don't have a tablet that was helpful
     
  13. etece

    etece New Member

    Joined:
    Mar 31, 2008
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Madrid, Spain
    Home Page:
    Can be a problem of xquartz version?
    I've got installed 2.2.3, because the 2.3.0 don't work for me.
     
  14. Auria

    Auria Member

    Joined:
    Mar 16, 2008
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
    that, i'm not sure. We'd need to contact the XQuartz folks directly (BTW, if 2.3.0 doesn't work for you, it would be important to report it to them so they can fix it)
     
  15. Cocoa

    Cocoa New Member

    Joined:
    Sep 14, 2008
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    I compiled a working version with the input code- No change.

    I'm testing with [http://www.xp-pen.com/products/5560a.htm] as a tablet.
     
  16. Auria

    Auria Member

    Joined:
    Mar 16, 2008
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
    Okay thanks for trying.

    Lisanet claims she successfully built a version with tablet support, I'm eager to hear how she did it.
     
  17. Cocoa

    Cocoa New Member

    Joined:
    Sep 14, 2008
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    It could be the X11 build that Apple uses.
     
  18. cymraegish

    cymraegish New Member

    Joined:
    Sep 29, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I just got my first USB tablet and have been setting it up.

    What I am working with is an old G4 which has Tiger and Linux.

    I just set up the tablet in Linux, I had to put in some new input devices
    in the file xorg.conf in the /etc/X11 directory. It used to be xfree86.conf in
    the old days, same place. Also there are two levels of drivers and some
    utilities to check the tablet in X non-specific of a particular application,
    that is X needs a driver besides the OS/kernel driver/extension.

    I believe all this stuff is available from the Linux Wacom project. However,
    nothing is there in OsX -- no xorg.conf. Driver appears missing due to
    no header file in /usr/X11R6.

    I don't quite understand why so dependent on the Apple X11 nowadays.
    Back with Jaguar/Fink I built my own Xserver and had Gimp. Actually
    I still have that I guess I should look and see if the tablet might work there...

    Can I build my own Xserver still (especially since Tiger lacks Xorg), or what ?
    I have fink and darwin ports both but I haven't used darwin ports much.

    I would also like to have build the new KDE program called Krita which is
    like to Painter (which I use a lot but an older version aka 9.2/10.1 (still works
    on tiger tho).

    Brian

    p.s. sorry if this is naive some of my questions/suggestions.
     
  19. Auria

    Auria Member

    Joined:
    Mar 16, 2008
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
    Hi,

    you could try building your own X server, but I guess you would be pretty much alone then, since no one here has done it before. One thing you could do is join the XQuartz team and help improve their server instead, if proper tablet support is added there (or if you gain the experience on how to set it up properly) it would probably be the best thing for everyone

    About Krita, this would be a totally different project. I have not looked at whether it appears like it could be built on mac, it probably depends on kde-libs and i have no clue if these run on mac. In any case, they are huge so it would not be a small package.
     
  20. lisanet

    lisanet Member

    Joined:
    Sep 15, 2008
    Messages:
    221
    Likes Received:
    0
    Trophy Points:
    16

Share This Page