Author Topic: Gimp on OS/2  (Read 37089 times)

Joop

  • Sr. Member
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 33
  • Posts: 415
    • View Profile
Re: Gimp on OS/2
« Reply #30 on: January 01, 2013, 01:01:29 am »
The gdi32 is the extra function I implemented. This one may not be fatal - hence it works for others.

libxml2 is the bigger issue here.  I normally statically link this, but I've been messing around with a DLL to try and fix a PHP issue.  You can find a copy that should work (from rpm) at http://smedley.id.au/libxml2.zip If people have rpm installed, they will have this DLL hence it may work for them.
Thanks Paul, best wishes. Downloaded the zip and parked the file in de system32 directory from Odin. I did fire your cairo-gdi-demo.exe and I get a small window in grey with a sphere object in it. So, you were right that the gdi32 was not fatal and that the big issue was solved with the zip. Why that's available in rpm and not in the Odin-zip is beyond me.

Dave Yeo

  • Hero Member
  • *****
  • Thank You
  • -Given: 8
  • -Receive: 93
  • Posts: 1216
    • View Profile
Re: Gimp on OS/2
« Reply #31 on: January 01, 2013, 03:04:04 am »
http://svn.netlabs.org/odin32/ticket/85 may help with sound
Get the feeling this is for uniaud and I don't use that.

Not just for uniaud - libkai is used by mplayer too for all cards afaik
There is only a uniaud.dll, the rest of the files are for compiling. Download everything and compile (trying  :o) myself, but then?

It falls back on DART if uniaud isn't available. See kai_dart.c and kai_dart.h. DART is part of MMOS2 so there won't be any DLLs

Paul Smedley

  • Sr. Member
  • ****
  • Thank You
  • -Given: 11
  • -Receive: 49
  • Posts: 362
    • View Profile
Re: Gimp on OS/2
« Reply #32 on: January 01, 2013, 08:33:12 am »
The gdi32 is the extra function I implemented. This one may not be fatal - hence it works for others.

libxml2 is the bigger issue here.  I normally statically link this, but I've been messing around with a DLL to try and fix a PHP issue.  You can find a copy that should work (from rpm) at http://smedley.id.au/libxml2.zip If people have rpm installed, they will have this DLL hence it may work for them.
Thanks Paul, best wishes. Downloaded the zip and parked the file in de system32 directory from Odin. I did fire your cairo-gdi-demo.exe and I get a small window in grey with a sphere object in it. So, you were right that the gdi32 was not fatal and that the big issue was solved with the zip. Why that's available in rpm and not in the Odin-zip is beyond me.

libxml2 has nothing to do with odin... it's used by cairo....

Paul Smedley

  • Sr. Member
  • ****
  • Thank You
  • -Given: 11
  • -Receive: 49
  • Posts: 362
    • View Profile
Re: Gimp on OS/2
« Reply #33 on: January 01, 2013, 09:19:33 am »
Uggh - just checked http://www.gimp.org/source/#requirements and see that it lists as a minimum:
GTK+   2.24.10 or newer

I had started with latest GTK+ (3.x).

Will most likely revert to GTK+ 2.x for now in the hope it's dependencies will be lower :)

Joop

  • Sr. Member
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 33
  • Posts: 415
    • View Profile
Re: Gimp on OS/2
« Reply #34 on: January 01, 2013, 02:00:13 pm »
libxml2 has nothing to do with odin... it's used by cairo....
Okay, I move it to the ecs dll directory, also in the path and libpath. Thanks.

Joop

  • Sr. Member
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 33
  • Posts: 415
    • View Profile
Re: Gimp on OS/2
« Reply #35 on: January 01, 2013, 02:03:45 pm »
http://svn.netlabs.org/odin32/ticket/85 may help with sound
Get the feeling this is for uniaud and I don't use that.

Not just for uniaud - libkai is used by mplayer too for all cards afaik
There is only a uniaud.dll, the rest of the files are for compiling. Download everything and compile (trying  :o) myself, but then?

It falls back on DART if uniaud isn't available. See kai_dart.c and kai_dart.h. DART is part of MMOS2 so there won't be any DLLs
Okay Dave, tell me what to do, now I'm puzzled. Problem is that sound through Odin gets distorted. The application volume doesn't help either.

Paul Smedley

  • Sr. Member
  • ****
  • Thank You
  • -Given: 11
  • -Receive: 49
  • Posts: 362
    • View Profile
Re: Gimp on OS/2
« Reply #36 on: January 01, 2013, 08:31:15 pm »
http://svn.netlabs.org/odin32/ticket/85 may help with sound
Get the feeling this is for uniaud and I don't use that.

Not just for uniaud - libkai is used by mplayer too for all cards afaik
There is only a uniaud.dll, the rest of the files are for compiling. Download everything and compile (trying  :o) myself, but then?

It falls back on DART if uniaud isn't available. See kai_dart.c and kai_dart.h. DART is part of MMOS2 so there won't be any DLLs
Okay Dave, tell me what to do, now I'm puzzled. Problem is that sound through Odin gets distorted. The application volume doesn't help either.

Wait for dmik to implement libkai support into odin and java and cross your fingers that it fixes the problem :)

Paul Smedley

  • Sr. Member
  • ****
  • Thank You
  • -Given: 11
  • -Receive: 49
  • Posts: 362
    • View Profile
Re: Gimp on OS/2
« Reply #37 on: January 02, 2013, 09:58:25 am »
Status update:
- Cairo 1.12.8 built for Odin
- glib 2.33.12 built for Odin
- GTK+ 2.24.5 nearly built for Odin ( a few unresolved symbols to go)

My current diffs for Odin are at http://smedley.id.au/gtk-odin-svn-20130102.diff

Most of this has involved fixing header issues - many functions are implemented in the Odin DLL's but not present in the headers files used to compile windows applications.  I hope to get all this tidied up and committed to the Odin32 SVN repository.

I will hopefully get GTK+ to finish building tonight or tomorrow.  40C here tomorrow, so not much else to do :)

Michael Holzapfel

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 4
  • Posts: 47
    • View Profile
Re: Gimp on OS/2
« Reply #38 on: January 02, 2013, 10:09:13 am »
Hello Paul,

thanks for your efforts. To get the right understanding of your port: What is the intention to port glib once more (there is a glib 2.33.12 in http://svn.netlabs.org/ports already) ?

BR
Michael

Paul Smedley

  • Sr. Member
  • ****
  • Thank You
  • -Given: 11
  • -Receive: 49
  • Posts: 362
    • View Profile
Re: Gimp on OS/2
« Reply #39 on: January 02, 2013, 07:54:33 pm »
thanks for your efforts. To get the right understanding of your port: What is the intention to port glib once more (there is a glib 2.33.12 in http://svn.netlabs.org/ports already) ?

The win32 port of GTK+ uses some symbols from glib that are only present in the win32 port of glib, so I had to recompile glib using the odin libraries.

Paul Smedley

  • Sr. Member
  • ****
  • Thank You
  • -Given: 11
  • -Receive: 49
  • Posts: 362
    • View Profile
Re: Gimp on OS/2
« Reply #40 on: January 02, 2013, 09:05:09 pm »
Well gtk+ examples build now. But two of them give a SIGSEGV in libc065, others with the dreaded SYS1808 'the process has stopped' error which gives no clue as to what has caused it to not work :/

Will post more when I work out wtf is happening.

Paul Smedley

  • Sr. Member
  • ****
  • Thank You
  • -Given: 11
  • -Receive: 49
  • Posts: 362
    • View Profile
Re: Gimp on OS/2
« Reply #41 on: January 03, 2013, 01:00:57 am »
ok no more SYS1808, but still the libc exception. I made a GTK2245.DLL - all the test executables crash with:
Killed by SIGSEGV
pid=0xe84f ppid=0x0031 tid=0x0001 slot=0x0091 pri=0x0200 mc=0x0001
U:\DEV\GTK+-2.24.5\GTK\TESTS\DEFAULTVALUE.EXE
LIBC065 0:0005e37b
cs:eip=005b:1f13e37b      ss:esp=0053:00cefab0      ebp=00cefbb8
 ds=0053      es=0053      fs=150b      gs=0000     efl=00210246
eax=00000000 ebx=1f10b313 ecx=00000000 edx=00000101 edi=00cefeec esi=00000000
Process dumping was disabled, use DUMPPROC / PROCDUMP to enable it.

Paul Smedley

  • Sr. Member
  • ****
  • Thank You
  • -Given: 11
  • -Receive: 49
  • Posts: 362
    • View Profile
Re: Gimp on OS/2
« Reply #42 on: January 03, 2013, 07:23:42 am »
ok no more SYS1808, but still the libc exception. I made a GTK2245.DLL - all the test executables crash with:
Killed by SIGSEGV
pid=0xe84f ppid=0x0031 tid=0x0001 slot=0x0091 pri=0x0200 mc=0x0001
U:\DEV\GTK+-2.24.5\GTK\TESTS\DEFAULTVALUE.EXE
LIBC065 0:0005e37b
cs:eip=005b:1f13e37b      ss:esp=0053:00cefab0      ebp=00cefbb8
 ds=0053      es=0053      fs=150b      gs=0000     efl=00210246
eax=00000000 ebx=1f10b313 ecx=00000000 edx=00000101 edi=00cefeec esi=00000000
Process dumping was disabled, use DUMPPROC / PROCDUMP to enable it.

Steven Levine helped me with this one.  Getting other SIGSEGV now but working through them...

guzzi

  • Sr. Member
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 13
  • Posts: 263
    • View Profile
Re: Gimp on OS/2
« Reply #43 on: January 04, 2013, 01:41:59 am »
Sometimes I think mr. Levine can read and understand these error messages easier than I can my 10 year old sons schoolbooks:-)

Keep us posted on the developments. A working GTK will certainly make a lot of software ports possible!

Dave Yeo

  • Hero Member
  • *****
  • Thank You
  • -Given: 8
  • -Receive: 93
  • Posts: 1216
    • View Profile
Re: Gimp on OS/2
« Reply #44 on: January 05, 2013, 08:17:35 am »
Hi Paul, what is your recipe for compiling odinized cairo? Which freetype, fontconfig etc are you using and how do you run configure?