1

I wanna edit gimp source code for my personal specific requirements that are custom printing related, is there any way i can download edit and compile gimp code for windows and ubuntu...?

7
  • 5
    gimp.org/source --- are you really sure? Good luck... – Rmano Mar 25 '15 at 10:00
  • 1
    What are you trying to do, exactly? You may find that writing a GIMP plugin is a better route. – steeldriver Mar 25 '15 at 11:26
  • i wanna override the part where gimp goes on for printing and edit the final document to simple binary array readable by my usb connected custom controller – Nouman Tahir Mar 25 '15 at 17:21
  • Any reason why you want to do that via print, and not by a file exporter plug-in? – Michael Schumacher Mar 26 '15 at 0:35
  • its not a necessity, i just considered it a good starting point, but main concern is producing a final windows compatible .exe file – Nouman Tahir Mar 26 '15 at 4:18
0

in the terminal:

$sudo apt-get source gimp

you'll end up with something like: gimp_2.8.14-1.debian.tar.xz gimp_2.8.14-1.dsc gimp_2.8.14.orig.tar.bz2

you can decompress the files, and modify them at your leisure. (compiling, in future, not guaranteed.) if you do modify the source, and recompile, I recommend running from a local directory rather than installing over the system version. At least until you know your mods are stable.

7
  • say i m done with the editing part, how would i then extract the .exe version of gimp for installation on windows....also it ll be nice if you could give a link for "running from local directory" instructions, the method i know is "make" and "make install" way....Thanks – Nouman Tahir Mar 25 '15 at 17:33
  • 1
    You can unpack the installers with a reasonably capable archiving application - 7zip, for example. – Michael Schumacher Mar 26 '15 at 0:35
  • if you want to compile windows binaries in Linux you'll need minGW or something like that. windows libraries aren't the same as linux libraries. A good start, is to read the README file that is in the source-code – j0h Mar 26 '15 at 14:22
  • Thanks, rite now i m stuck at "make" stage...this is the error...../usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libgtk-x11-2.0.so: error: undefined reference to 'g_module_build_path' – Nouman Tahir Mar 26 '15 at 16:30
  • This maybe a new question at this point. but, since we're here, developer.gnome.org/glib/stable/… can you verify you have libgtk-x11-2.0‌​.so and that the path is correct? it may be looking to the header in some other location. – j0h Mar 26 '15 at 17:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.