It is currently Thu Apr 18, 2024 10:34 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 37 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: My first Gimp-2.7.4 compile
PostPosted: Tue Nov 15, 2011 7:11 am  (#1) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Seems to be moving right along.I edited the Gimpressionist preview.c to show a 240x400 grid also.
Was 60x100
See how that turns out.
The compile has been going for about an hour now without errors sooo... :)

:bigthup

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: My first Gimp-2.7.4 compile
PostPosted: Tue Nov 15, 2011 7:37 am  (#2) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
that of the grid is a good idea !
would be cool modify also file-gif-save plugin
just replacing the default now Flatten with Save as animation
...i always found disturbing gimp attempts to flatten my gif animation when saving...and what reasonmay be in the 2011 to save as gif something that is not animation ?


if you can wait a bit i may search the edited file, i send to partha once so may be on my boxnet,was based on a older 2.7 code but should be any change regarding the gif plugin
but again is simple as replace false with true in the definition of variable and default in the line "Save as animation"

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: My first Gimp-2.7.4 compile
PostPosted: Tue Nov 15, 2011 9:20 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Can you tell me which c file that is PC?

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: My first Gimp-2.7.4 compile
PostPosted: Tue Nov 15, 2011 6:31 pm  (#4) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
you will see in the plug-ins folder is file-gif-save, if i remember well is in "common" a subfolder there

i remember was a pain find the right line there i try looking again in my hd

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: My first Gimp-2.7.4 compile
PostPosted: Tue Nov 15, 2011 6:40 pm  (#5) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
FOUND IT !!

http://www.box.net/shared/robfnbqhsk

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: My first Gimp-2.7.4 compile
PostPosted: Tue Nov 15, 2011 7:13 pm  (#6) 
Offline
GimpChat Member

Joined: Mar 14, 2011
Posts: 998
Rod wrote:
Seems to be moving right along.I edited the Gimpressionist preview.c to show a 240x400 grid also.
Was 60x100
See how that turns out.
The compile has been going for about an hour now without errors sooo... :)

:bigthup

Congratulations Rod!! :jumpclap


Top
 Post subject: Re: My first Gimp-2.7.4 compile
PostPosted: Wed Nov 16, 2011 1:43 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Quote:
but again is simple as replace false with true in the definition of variable and default in the line "Save as animation"

All set PC...thanks.If you want any more changes applied holler at me.
Compiling again now.

partha wrote:
Rod wrote:
Seems to be moving right along.I edited the Gimpressionist preview.c to show a 240x400 grid also.
Was 60x100
See how that turns out.
The compile has been going for about an hour now without errors sooo... :)

:bigthup

Congratulations Rod!! :jumpclap


Thanks Partha.You have helped me a great deal.Great directions on a complete Windows build environment i might add. :)
I ran into one more small snag perhaps you can help me with.
Iconv.exe is in that directory so i do not know what the error is for.
Here is the desktop > makefile

INTLTOOL_EXTRACT = /opt/lib/bin/intltool-extract
INTLTOOL_MERGE = /opt/lib/bin/intltool-merge
INTLTOOL_PERL = /opt/perl/bin/perl
INTLTOOL_UPDATE = /opt/lib/bin/intltool-update

So the directories are correct.Do i have to manually set iconv.exe some how in the makefile?

Making install in desktop
make[1]: Entering directory `/c/src/gimp-nightly-builds/gimp-2.7.4/desktop'
/opt/lib/bin/intltool-merge ../po gimp.desktop.in gimp.desktop -d -u -c ../po/.intltool-merge-cache
Can't spawn "cmd.exe": No such file or directory at C:/msys/opt/lib/bin/intltool-merge line 105.
*** iconv is not found on this system!
*** Without it, intltool-merge can not convert encodings.
make[2]: Entering directory `/c/src/gimp-nightly-builds/gimp-2.7.4/desktop'
make[2]: Nothing to be done for `install-exec-am'.
/opt/lib/bin/intltool-merge ../po gimp.desktop.in gimp.desktop -d -u -c ../po/.intltool-merge-cache
Can't spawn "cmd.exe": No such file or directory at C:/msys/opt/lib/bin/intltool-merge line 105.
*** iconv is not found on this system!
*** Without it, intltool-merge can not convert encodings.
test -z "/opt/gimp-2.7.4/share/applications" || /bin/mkdir -p "/opt/gimp-2.7.4/share/applications"
/bin/install -c -m 644 ./gimp.desktop '/opt/gimp-2.7.4/share/applications'
/bin/install: cannot stat `./gimp.desktop': No such file or directory
make[2]: *** [install-applicationsDATA] Error 1
make[2]: Leaving directory `/c/src/gimp-nightly-builds/gimp-2.7.4/desktop'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/c/src/gimp-nightly-builds/gimp-2.7.4/desktop'
make: *** [install-recursive] Error 1

Compaq_Owner@Family-Room /c/src/gimp-nightly-builds/gimp-2.7.4
$

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: My first Gimp-2.7.4 compile
PostPosted: Wed Nov 16, 2011 5:32 am  (#8) 
Offline
GimpChat Member

Joined: Mar 14, 2011
Posts: 998
Rod wrote:
Quote:
but again is simple as replace false with true in the definition of variable and default in the line "Save as animation"

All set PC...thanks.If you want any more changes applied holler at me.
Compiling again now.

partha wrote:
Rod wrote:
Seems to be moving right along.I edited the Gimpressionist preview.c to show a 240x400 grid also.
Was 60x100
See how that turns out.
The compile has been going for about an hour now without errors sooo... :)

:bigthup

Congratulations Rod!! :jumpclap


Thanks Partha.You have helped me a great deal.Great directions on a complete Windows build environment i might add. :)
I ran into one more small snag perhaps you can help me with.
Iconv.exe is in that directory so i do not know what the error is for.
Here is the desktop > makefile

INTLTOOL_EXTRACT = /opt/lib/bin/intltool-extract
INTLTOOL_MERGE = /opt/lib/bin/intltool-merge
INTLTOOL_PERL = /opt/perl/bin/perl
INTLTOOL_UPDATE = /opt/lib/bin/intltool-update

So the directories are correct.Do i have to manually set iconv.exe some how in the makefile?

...
Compaq_Owner@Family-Room /c/src/gimp-nightly-builds/gimp-2.7.4
$

Sorry about that Rod.
before you hit make, extend you path to include the location of Windows commandline.

So, before make, type the following:
$ export PATH=$PATH:/c/Windows/System32

I believe that is the location of cmd.exe on an XP. But please verify and modify accordingly.


Top
 Post subject: Re: My first Gimp-2.7.4 compile
PostPosted: Wed Nov 16, 2011 6:56 am  (#9) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
I think will be nice add support for swf (flash) i use this script from JamesH,,uff i can't see how attach txt files i use the code tag
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# ExportSWFE.py - 2009 by James Huang <elastic192@gmail.com>
# http://tw.myblog.yahoo.com/jw!5nbbef.RAx8aIbO00RkKIw--
# Copyright under GPL v2

# This script requires the package SWFTools(http://www.swftools.org/)
# it generate a temp script
# and use swfc to compile the script
# so you need to copy swfc.exe to \Program Files\Gimp-2.0\bin folder

from gimpfu import *
import os, sys, string
import random

escape_dict={'\a':r'\A',
           '\b':r'\B',
           '\c':r'\C',
           '\f':r'\F',
           '\n':r'\N',
           '\r':r'\R',
           '\t':r'\T',
           '\v':r'\V',
           '\'':r'\'',
           '\"':r'\"',
           '\0':r'\0',
           '\1':r'\1',
           '\2':r'\2',
           '\3':r'\3',
           '\4':r'\4',
           '\5':r'\5',
           '\6':r'\6',
           '\7':r'\7',
           '\8':r'\8',
           '\9':r'\9'}

def raw(text):
    """Returns a raw string representation of text"""
    new_string=''
    for char in text:
        try: new_string+=escape_dict[char]
        except KeyError: new_string+=char
    return new_string

def func_frameEffect(frameRate, file, totalLayers, curLayer, frameIndex, imgWD, imgHT):
   effFrameNums = frameRate / 3
   nextLayer = totalLayers-curLayer+1
   if nextLayer > totalLayers:
      nextLayer = 1
   file.write("      .jump BG%05d x=%d y=%d scale=100%% \n" % (totalLayers-curLayer, imgWD/2, imgHT/2))
   #rnd = random.randrange(9)
   rnd = curLayer %  9
   if rnd == 0:
      file.write("      .put BG%05d pin=center x=%d y=%d scale=0%% \n" % (nextLayer, imgWD/2, imgHT/2))
      frameIndex = frameIndex + effFrameNums
      file.write("   .frame %d\n" % frameIndex)
      file.write("      .change BG%05d scale=0%% \n" % (totalLayers-curLayer))
      file.write("      .change BG%05d scale=101%% \n" % (nextLayer))
   elif rnd == 1:
      file.write("      .put BG%05d pin=center x=%d y=%d scale=100%% \n" % (nextLayer, imgWD+imgWD/2, imgHT+imgHT/2))
      frameIndex = frameIndex + effFrameNums
      file.write("   .frame %d\n" % frameIndex)
      file.write("      .move BG%05d x=-%d y=-%d\n" % (totalLayers-curLayer, imgWD/2, imgHT/2))
      file.write("      .move BG%05d x=%d y=%d\n" % (nextLayer, imgWD/2-1, imgHT/2-1))
   elif rnd == 2:
      file.write("      .put BG%05d pin=center x=-%d y=-%d scale=100%% \n" % (nextLayer, imgWD/2, imgHT/2))
      frameIndex = frameIndex + effFrameNums
      file.write("   .frame %d\n" % frameIndex)
      file.write("      .move BG%05d x=%d y=%d\n" % (totalLayers-curLayer, imgWD+imgWD/2, imgHT+imgHT/2))
      file.write("      .move BG%05d x=%d y=%d\n" % (nextLayer, imgWD/2+1, imgHT/2+1))
   elif rnd == 3:
      file.write("      .put BG%05d pin=center x=-%d y=%d scale=100%% \n" % (nextLayer, imgWD/2, imgHT+imgHT/2))
      frameIndex = frameIndex + effFrameNums
      file.write("   .frame %d\n" % frameIndex)
      file.write("      .move BG%05d x=%d y=-%d \n" % (totalLayers-curLayer, imgWD+imgWD/2, imgHT/2))
      file.write("      .move BG%05d x=%d y=%d \n" % (nextLayer, imgWD/2+1, imgHT/2-1))
   elif rnd == 4:
      file.write("      .put BG%05d pin=center x=%d y=-%d scale=100%% \n" % (nextLayer, imgWD+imgWD/2, imgHT/2))
      frameIndex = frameIndex + effFrameNums
      file.write("   .frame %d\n" % frameIndex)
      file.write("      .move BG%05d x=-%d y=%d \n" % (totalLayers-curLayer, imgWD/2, imgHT+imgHT/2))
      file.write("      .move BG%05d x=%d y=%d \n" % (nextLayer, imgWD/2-1, imgHT/2+1))
   elif rnd == 5:
      file.write("      .put BG%05d pin=center x=%d y=%d scale=100%% \n" % (nextLayer, imgWD+imgWD/2, imgHT/2))
      frameIndex = frameIndex + effFrameNums
      file.write("   .frame %d\n" % frameIndex)
      file.write("      .move BG%05d x=-%d \n" % (totalLayers-curLayer, imgWD/2))
      file.write("      .move BG%05d x=%d \n" % (nextLayer, imgWD/2-1))
   elif rnd == 6:
      file.write("      .put BG%05d pin=center x=-%d y=%d scale=100%% \n" % (nextLayer, imgWD/2, imgHT/2))
      frameIndex = frameIndex + effFrameNums
      file.write("   .frame %d\n" % frameIndex)
      file.write("      .move BG%05d x=%d \n" % (totalLayers-curLayer, imgWD+imgWD/2))
      file.write("      .move BG%05d x=%d \n" % (nextLayer, imgWD/2+1))
   elif rnd == 7:
      file.write("      .put BG%05d pin=center x=%d y=%d scale=100%% \n" % (nextLayer, imgWD/2, imgHT+imgHT/2))
      frameIndex = frameIndex + effFrameNums
      file.write("   .frame %d\n" % frameIndex)
      file.write("      .move BG%05d y=-%d \n" % (totalLayers-curLayer, imgHT/2))
      file.write("      .move BG%05d y=%d \n" % (nextLayer, imgHT/2-1))
   else:
      file.write("      .put BG%05d pin=center x=%d y=-%d scale=100%% \n" % (nextLayer, imgWD/2, imgHT/2))
      frameIndex = frameIndex + effFrameNums
      file.write("   .frame %d\n" % frameIndex)
      file.write("      .move BG%05d y=%d \n" % (totalLayers-curLayer, imgHT+imgHT/2))
      file.write("      .move BG%05d y=%d \n" % (nextLayer, imgHT/2+1))
   return frameIndex

#def python_fu_ExportSWF(activeImage, activeLayer, exportDir, audioEnable, audioFile, exportName, frameEffect, flashVersion, frameRate, imageQuality, webLink, removeTmpFile, usedAS, cscFile):
def python_fu_ExportSWF(activeImage, activeLayer, exportDirN, audioEnable, audioFileN, exportNameN, frameEffect, flashVersion, frameRate, imageQuality, webLink, removeTmpFile, loopAnim, loopAudio):
   exportSep = str(os.sep)
   imgWD = activeImage.width
   imgHT = activeImage.height
   
   path1 = gimp.locale_directory
   dir1 = os.path.split(path1)
   dir2 = os.path.split(dir1[0])
   gimp_bin_dir = dir2[0] + "\Bin"
   swfc = gimp_bin_dir+"\Swfc.exe"
   if not os.path.isfile(swfc):
      #pdb.gimp_message(path1+", "+gimp.data_directory+", "+gimp.directory)
      #pdb.gimp_message(gimp_bin_dir)
      pdb.gimp_message("This script requires the package SWFTools\n"
      "(http://www.swftools.org/)\n"
      "it generate a temp script\n"
      "and use swfc to compile the script\n"
      "so you need to copy swfc.exe to\n"+gimp_bin_dir+" folder")
      return
   
   usedAS = 0
   
   tmpDir = raw(exportDirN)
   exportDir = tmpDir.upper()
   exportName = exportNameN.upper()
   
   audioFile = "None"

   if audioEnable:   
      tmpstring = "%s" % audioFileN
   
      if ("None" == tmpstring):
         audioEnable = False
      else:
         tmpF = raw(tmpstring)
         audioFile = tmpF.upper()
         extFile = os.path.splitext(audioFile)
         if extFile[1] != ".MP3" and extFile[1] != ".WAV":
            audioEnable = False
      if not audioEnable:
         tmpstring = "Invalid audioFile %s !\nAudio disable" % audioFile
         pdb.gimp_message(tmpstring)
   
   tlen = len(exportDir)
   if exportDir[tlen-1] == '\\':
      exportSep = ""
   
   outputFile = "%s%s%s" % (exportDir, exportSep, exportName)
   
   scFile = "%s%s%s.sc" % (exportDir, exportSep, exportName)
   file = open(scFile, 'w')
#   file.write(".flash filename=\"%s\" bbox=%dx%d version=%d fps=%d\n" % (exportName, imgWD, imgHT, flashVersion, frameRate))
   file.write(".flash bbox=%dx%d version=%d fps=%d\n" % (imgWD, imgHT, flashVersion, frameRate))

   activeImage.undo_group_start()
      
   jpgQuality = imageQuality / 100.0
   
   totalLayers = len(activeImage.layers)
   curLayer = totalLayers - 1;
   while curLayer >= 0:
      if (usedAS and activeImage.layers[curLayer].bpp == 4):
         pngFile = "%s%sTemp-gimp-%s%04d.png" % (exportDir, exportSep, exportName, totalLayers-curLayer)
         pdb.gimp_edit_copy(activeImage.layers[curLayer])
         tmpImage = gimp.Image(activeImage.layers[curLayer].width, activeImage.layers[curLayer].height, 0)
         tmpDrawable = gimp.Layer(tmpImage, "Temp", tmpImage.width, tmpImage.height, RGBA_IMAGE, 100, NORMAL_MODE)
         pdb.gimp_image_add_layer(tmpImage, tmpDrawable, 0)
         pdb.gimp_floating_sel_anchor(pdb.gimp_edit_paste(tmpDrawable,TRUE))
         pdb.file_png_save(tmpImage, tmpDrawable, pngFile, pngFile, 0, 9, True, False, False, True, True)
         file.write("   .png BG%05d \"%s\"\n" % (totalLayers-curLayer, pngFile))
         pdb.gimp_image_delete(tmpImage)
      else:
         jpgFile = "%s%sTemp-gimp-%s%04d.jpg" % (exportDir, exportSep, exportName, totalLayers-curLayer)
         pdb.gimp_layer_resize_to_image_size(activeImage.layers[curLayer])
         pdb.file_jpeg_save(activeImage, activeImage.layers[curLayer], jpgFile, jpgFile, jpgQuality, 0, 1, 0, "", 0, 1, 0, 0)
         file.write("   .jpeg BG%05d \"%s\"\n" % (totalLayers-curLayer, jpgFile))
#         file.write("   .jpeg BG%05d \"Temp-gimp-%s%04d.jpg\"\n" % (totalLayers-curLayer, exportName, totalLayers-curLayer))
      curLayer = curLayer - 1

   activeImage.undo_group_end()
   
   url = len(webLink)
   if url > 0:
      file.write("\n")
      file.write("   .box box1 color=white fill=#ffffff width=%d height=%d\n" % (imgWD, imgHT))
      file.write("   .button mybutton1\n")
      file.write("      .show box1 as=area\n")
      file.write("      .on_press:\n")
      file.write("         getURL(\"%s\", \"_blank\");\n" % webLink)
       file.write("      .end\n")
      file.write("   .end\n")
   
   if audioEnable:
      file.write("\n")
      file.write("   .sound sound1 \"%s\"\n" % audioFile)
      if loopAudio:
         file.write("   .play sound1 loop=-1\n")
      else:
         file.write("   .play sound1 loop=1\n")
      
   if usedAS:
      scF = open(cscFile, 'r')
      lines = scF.readlines()
      for line in lines:
         file.write("%s" % line)
         scF.close()
   else:
      #frameEffect = 1
      file.write("\n")
      file.write("   .put BG00001 pin=center x=%d y=%d scale=100%%\n" % (imgWD/2, imgHT/2))
      if url > 0:
         file.write("   .put mybutton1\n")
      file.write("\n")
      curLayer = totalLayers - 1;
      frameIndex = 0
      while curLayer >= 0:
         resList = string.split(activeImage.layers[curLayer].name, '(')
         if len(resList) < 2:
            frameTime = 100
         else:
            ms = resList[1].strip('ms) ')
            frameTime = int(ms)
         if frameTime < (1000/frameRate):
            frameTime = 1000/frameRate
         frameIndex = frameIndex + frameRate*frameTime/1000
         file.write("   .frame %d\n" % frameIndex)
         if curLayer > 0:
            if frameEffect:
               frameIndex = func_frameEffect(frameRate, file, totalLayers, curLayer, frameIndex, imgWD, imgHT)
            else:
               file.write("      .put BG%05d pin=center x=%d y=%d scale=100%% \n" % (totalLayers-curLayer+1, imgWD/2, imgHT/2))
         else:
            if frameEffect:
               file.write("      .jump BG%05d x=%d y=%d alpha=100%% \n" % (totalLayers-curLayer, imgWD/2, imgHT/2))
               frameIndex = frameIndex + (frameRate/3)
               file.write("   .frame %d\n" % frameIndex)
               file.write("      .change BG%05d alpha=0%% \n" % (totalLayers-curLayer))
               frameIndex = frameIndex + 1
               file.write("   .frame %d\n" % frameIndex)
            if loopAnim:
               file.write("      .action:\n")
               file.write("         gotoFrame(1);\n")
               file.write("         Play();\n")
               file.write("      .end\n")
            else:
#               if audioEnable:
#                  file.write("      .stop sound1\n")
               file.write("      .action:\n")
               file.write("         stop();\n")
               file.write("      .end\n")
         curLayer = curLayer - 1
   
   file.write(".end\n")
   file.close()
#   command = "swfc %s" % (scFile)
   command = "swfc -o \"%s\" \"%s\"" % (outputFile, scFile)
   os.system(command)
      
   #remove temp file
   if removeTmpFile:
      del_command = "del \"%s%sTemp-gimp-%s*.jpg\"" % (exportDir, exportSep, exportName)
      #pdb.gimp_message(del_command)
      os.system(del_command)
      del_command = "del \"%s\"" % (scFile)
      #pdb.gimp_message(del_command)
      os.system(del_command)
      
register(
   "python-fu-ExportSWF",
   "Export SWF 20090501\nExport the layers of an image as a Shockwave Flash Animation\nJames Huang\nhttp://tw.myblog.yahoo.com/jw!5nbbef.RAx8aIbO00RkKIw--",
   "Export SWF 20090501\nExport the layers of an image as a Shockwave Flash Animation\nJames Huang\nhttp://tw.myblog.yahoo.com/jw!5nbbef.RAx8aIbO00RkKIw--",
   "James Huang, http://tw.myblog.yahoo.com/jw!5nbbef.RAx8aIbO00RkKIw--",
   "GPL V2 License",
   "2009",
   "<Image>/File/Save/Export SWF File ...",
   "RGB*",
   [
      (PF_DIRNAME,   "exportDirN", ("Export to"), ""),
      (PF_TOGGLE,      "audioEnable", ("Add Audio"), False),
      (PF_FILENAME,   "audioFileN", ("WAV/MP3 File"), "None"),
      (PF_STRING,      "exportNameN", ("Filename"), "Export.swf"),
      (PF_TOGGLE,      "frameEffect", ("Transitions"), False),
      (PF_SPINNER,   "flashVersion", ("Flash Version"), 8, (6,10,1)),
      (PF_SPINNER,   "frameRate", ("Frame Rate"), 30, (1,60,1)),
      (PF_SPINNER,   "imageQuality", ("Image JPEG Quality"), 80, (10,100,5)),
      (PF_STRING,      "webLink", ("Web Link"), ""),
      (PF_TOGGLE,      "removeTmpFile", ("Remove Temp File"), True),
      (PF_TOGGLE,      "loopAnim", ("Loop Animation"), True),
      (PF_TOGGLE,      "loopAudio", ("Loop Audio"), True),
#      (PF_TOGGLE,      "usedAS", ("Use Custom Script"), False),
#      (PF_FILENAME,   "cscFile", ("Script File"), "NONE"),
   ],
   [],
   python_fu_ExportSWF,
   domain=("gimp20-python", gimp.locale_directory))
      
main()


that require also "swfc.exe" be included in the bin directory or anyway along the path
the exe come with swftools that is gpl so should be no problem to use it

As should be no license problem to include in bin gswin32(or 64) .exe , to solve the missed dependency and be able to save & open PDF

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: My first Gimp-2.7.4 compile
PostPosted: Wed Nov 16, 2011 7:04 am  (#10) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
and also for file plugin i will add this script http://www.registry.gimp.org/node/100 that allow to export gimp paths as SVG

Edit
photographer may like http://www.registry.gimp.org/node/25805

i am not sure if you already included or i added to my copy ...in any case the RIOT "save for the web plugin is a must have http://www.registry.gimp.org/node/20778

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: My first Gimp-2.7.4 compile
PostPosted: Wed Nov 16, 2011 2:15 pm  (#11) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
Rod-

Are you compiling under Linux for Linux, Under Windows (using MinGW and MSYS) for Windows or under Linux for Windows (cross-compiled)?

I'd really like to find a guide for the third.....

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: My first Gimp-2.7.4 compile
PostPosted: Wed Nov 16, 2011 10:06 pm  (#12) 
Offline
GimpChat Member

Joined: Mar 14, 2011
Posts: 998
RobA wrote:
Rod-

Are you compiling under Linux for Linux, Under Windows (using MinGW and MSYS) for Windows or under Linux for Windows (cross-compiled)?

I'd really like to find a guide for the third.....

-Rob A>

Rob,

Silly question... Why bother? If you have windows, why not compile on Windows? Unless you are compiling for friends and you don't have windows?

Thanks,
Partha


Top
 Post subject: Re: My first Gimp-2.7.4 compile
PostPosted: Wed Nov 16, 2011 10:29 pm  (#13) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
partha wrote:
RobA wrote:
Rod-

Are you compiling under Linux for Linux, Under Windows (using MinGW and MSYS) for Windows or under Linux for Windows (cross-compiled)?

I'd really like to find a guide for the third.....

-Rob A>

Rob,

Silly question... Why bother? If you have windows, why not compile on Windows? Unless you are compiling for friends and you don't have windows?

Thanks,
Partha


A few reasons _ can think of-

1) Because setting up a full dev environment under windows is a pain (in my experience)
2) Because using git under windows is a pain (also in my experience)
3) Because if I want to actually contribute to gimp through coding/bug fixing, I was hoping to only maintain one codebase.
4) Because that is (according to responses on the gimp dev IRC) the way the "semi-official" windows version of gimp are made.

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: My first Gimp-2.7.4 compile
PostPosted: Thu Nov 17, 2011 3:45 am  (#14) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
@ Partha - thanks again!
@ Rob i am compiling under Windows with MinGW and MSYS. :)
@ PC i will have all this included in my compile.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: My first Gimp-2.7.4 compile
PostPosted: Thu Nov 17, 2011 4:44 am  (#15) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Partha -
Windows doesn't like the GetUserDefaultUILanguage in the language.c file.
It looks like it uses a hack in Python to try and get by this.

The Error
  AR     libapp.a
  CCLD   gimp-2.7.exe
language.o: In function `language_init':
c:\src\gimp-nightly-builds\gimp-2.7.4\app/language.c:50: undefined reference to `GetUserDefaultUILanguage'
collect2: ld returned 1 exit status
make[3]: *** [gimp-2.7.exe] Error 1
make[3]: Leaving directory `/c/src/gimp-nightly-builds/gimp-2.7.4/app'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/c/src/gimp-nightly-builds/gimp-2.7.4/app'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/c/src/gimp-nightly-builds/gimp-2.7.4/app'
make: *** [install-recursive] Error 1

Compaq_Owner@Family-Room /c/src/gimp-nightly-builds/gimp-2.7.4
$


Do i define as
#define language_init G_OS_WIN32

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: My first Gimp-2.7.4 compile
PostPosted: Thu Nov 17, 2011 5:36 am  (#16) 
Offline
GimpChat Member

Joined: Mar 14, 2011
Posts: 998
Rod wrote:
Partha -
Windows doesn't like the GetUserDefaultUILanguage in the language.c file.
It looks like it uses a hack in Python to try and get by this.

The Error
...
Compaq_Owner@Family-Room /c/src/gimp-nightly-builds/gimp-2.7.4
$


Do i define as
#define language_init G_OS_WIN32


Rod,

in the source app/language.c (around line 300), do the following:
//    switch (GetUserDefaultUILanguage())
         switch (GetUserDefaultLangID())


One additional issue you are going to face if you are building in lcms is that it will not compile.
So, In the source modules/display-filter-lcms.c, do the following.

//#ifdef G_OS_WIN32
//#define STRICT
//#include <windows.h>
//#define LCMS_WIN_TYPES_ALREADY_DEFINED
//#endif

#include <windows.h>


Let me know what happens.

Partha


Top
 Post subject: Re: My first Gimp-2.7.4 compile
PostPosted: Thu Nov 17, 2011 2:31 pm  (#17) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Thanks Partha.
I will let you know.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: My first Gimp-2.7.4 compile
PostPosted: Thu Nov 17, 2011 5:37 pm  (#18) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
I added the line at #300 and it needed it to contain all the case statements so i commented out the first function and added yours at the beginning and it worked. :)

I also had to add
#define libintl_printf printf

to the file-sgi.c file ,and now i think it is installing correctly *cross fingers*
We need a crosses fingers/knock on wood emoticon. :lol

What is the lt_debugprintf warning that keeps popping up?It doesn't terminate install but keeps showing itself in the plug-ins files.
Is that a Libtool warning?

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: My first Gimp-2.7.4 compile
PostPosted: Thu Nov 17, 2011 5:57 pm  (#19) 
Offline
GimpChat Member

Joined: Mar 14, 2011
Posts: 998
Rod wrote:
I added the line at #300 and it needed it to contain all the case statements so i commented out the first function and added yours at the beginning and it worked. :)

I also had to add
#define libintl_printf printf

to the file-sgi.c file ,and now i think it is installing correctly *cross fingers*
We need a crosses fingers/knock on wood emoticon. :lol

I usually avoid adding #defines in a file since then you are stuck sitting there and waiting for some definition to fail. So, I pass it in the ./configure line. I add
-Dlibintl_printf=printf

etc. to the end of ./configure.
Quote:
What is the lt_debugprintf warning that keeps popping up?It doesn't terminate install but keeps showing itself in the plug-ins files.
Is that a Libtool warning?

its a warning by gcc in Msys. Don't worry about it. You can safely ignore it.


Top
 Post subject: Re: My first Gimp-2.7.4 compile
PostPosted: Thu Nov 17, 2011 8:03 pm  (#20) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Great that works better. :)
I also am trying an experiment with my first compile.
New larger preview sizes -
Tile small = 256x256
Gimpressionist = 240x400
IWarp = 300x300
Should all have larger preview windows.

@ PC - Which plugin previews did you already compile for windows?



I decided to re-configure and the do the install adding the define printf to the command line for ./configure, (so i do not have to babysit too much) :)

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
Post new topic Reply to topic  [ 37 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts SOLVED - Help with compile env

12

No new posts Attachment(s) I need a Mac Dev to compile my Gimp GEGL Plugins on Mac

8

No new posts Attachment(s) Pattern Monster (Cloud and Local version) and how to compile it.

3



* Login  



Powered by phpBB3 © phpBB Group