Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Paul Smedley

Pages: 1 ... 57 58 [59] 60
871
Applications / Re: Gimp on OS/2
« on: December 30, 2012, 08:47:36 pm »
I had an idea last night, that it may be possible to compile the GTK+ toolkit using Odin, then compile Gimp.  This would still provide a native OS2 executable, just parts of it would use the win32 api via Odin.
I think its a great idea, but Windows uses also GTK+, so what is the difference?

The GTK+ code has an implementation using the win32 api.  That *should* be able to be built with odin.  We'd then have a GTK+ toolkit that works on OS/2 via Odin.

Note: this may also be a viable way to get wxwidgets on OS/2 ;)

872
Applications / Re: Gimp on OS/2
« on: December 30, 2012, 01:27:56 am »
I should probably move this to the programming forum, but as I've started here, I will post progress here.
- odin built locally, so I now have all the necessary libraries and headers (I hope) to use the win32 api's
- compiling glib from netlabs as I write.

Next steps will be to grab some more of the required libs for gtk+ and start building them. Will be strange building things like cairo and forcing them to use win32 api's :)

873
Applications / Re: Gimp on OS/2
« on: December 30, 2012, 01:12:18 am »
I will love it if we can have Gimp 2.8.2 no matter if it is complete native or running on Odin.

I will lean to say it will be better to have GTK+ ported to eCS-OS/2, but Odin is behaving so nice with OpenJDK, that I would not care.

Also, if there is a chance to open the doors to a GTK+ running on eCS, I will have a better chance my other favorite GTK tools are InkScape and Pidgin get ported someday :)

I understand people would prefer a native port of GTK+, but at this stage of OS2's lifecycle, I'd say the chances of this ever happening are low.

874
Applications / Re: Gimp on OS/2
« on: December 30, 2012, 01:11:32 am »
If it was possible, it would be really great! If I understand you right this would also mean no dependence on Hoblink X (or x11? can't remember) ?
Correct. The only dependency would be an installed odin.

875
Applications / Gimp on OS/2
« on: December 29, 2012, 09:18:42 pm »
Hi All,

I know that Gimp is something that OS/2 users have often asked about.  Gimp relies on the GTK+ toolkit, which is not available on OS/2, and would require significant effort (similar to if not more than the Qt4 toolkit) to be ported natively to the OS/2 api.

I had an idea last night, that it may be possible to compile the GTK+ toolkit using Odin, then compile Gimp.  This would still provide a native OS2 executable, just parts of it would use the win32 api via Odin.

How do people feel about this?

At the moment this is just a thought that I will probably explore. No commitment on how long it may take or if it will ever see the light of day.

Cheers,

Paul

876
Programming / Re: Have questions about porting software to eCS?
« on: December 29, 2012, 08:53:09 pm »
Quote
Fairly trivial.

For you maybe.  :)

Anyway, now I need to find the time to figure out what you just said, and get this thing to build.

Thanks...

OK, diff format is pretty simple:
diff -ur wget-1.14-o/lib/spawn.in.h wget-1.14/lib/spawn.in.h <== the source files that are being looked at for differences
-#if !(defined __GLIBC__ && !defined __UCLIBC__)     <== the source line that is being taken out (-)
+#if !(defined __GLIBC__ && !defined __UCLIBC__) && !defined __KLIBC__ <== the source line that is replacing the line being taken out (+)

What is the error you are getting when trying to compile wget?

877
Programming / Re: Have questions about porting software to eCS?
« on: December 29, 2012, 08:50:29 pm »
Thanks Paul, it needs Bazaar, so you have to start somewhere. Didn't know that wxwidgets doesn't work well with OS/2  :(, its used in many programs which does something with graphics. Get the feeling that graphics is our weak spot.

Re: bazaar - I'd forgotten, but it used python - so if you have python and gcc installed, trying to install it with 'python setup.py install' _may_ work.

Something triggered in my mind last night re: graphical toolkits like xwidgets and even gtk+ that it may be possible to compile them for OS/2 using the odin toolkit and the win32 api.  A lot of work has been done on odin recently - this may be a viable way to get other graphical toolkits than Qt onto OS/2.
I'm not committing _yet_ to take this on, but I am thinking about it.  Debugging apache2/php is starting to annoy me, so I need something fun to distract me :)

If I can compile the GTK+ toolkit using odin, there's a chance of getting an up to date Gimp for OS/2!

878
Programming / Re: Have questions about porting software to eCS?
« on: December 29, 2012, 06:16:18 am »
Quote
FWIW, I downloaded the wget 1.14 source this evening and have run configure.  Will see what's required for me to get it building and post back here

Don't waste too much time on it. I can't get wget 1.11.1 to build either. There is something in my configuration that is wrong, and I won't have time to try to figure it out, until next year.

Fairly trivial.

One minor diff:
diff -ur wget-1.14-o/lib/spawn.in.h wget-1.14/lib/spawn.in.h
--- wget-1.14-o/lib/spawn.in.h   2012-12-28 19:05:04.000000000 +1030
+++ wget-1.14/lib/spawn.in.h   2012-12-29 15:36:20.000000000 +1030
@@ -32,7 +32,7 @@
 
 /* Get definitions of 'struct sched_param' and 'sigset_t'.
    But avoid namespace pollution on glibc systems.  */
-#if !(defined __GLIBC__ && !defined __UCLIBC__)
+#if !(defined __GLIBC__ && !defined __UCLIBC__) && !defined __KLIBC__
 # include <sched.h>
 # include <signal.h>
 #endif

879
Programming / Re: Have questions about porting software to eCS?
« on: December 28, 2012, 10:09:32 am »
Quote
wget built very easily with Paul's environment...

I assumed that that was the case, since Paul suggests starting with wget. As I said, I need some guidance, but I also need the time to tackle it again. The main objective, with this project, is to get the build environment to work with a simple project that is known to work, since others have done it. After that, it is easier to move on to more complicated projects.

FWIW, I downloaded the wget 1.14 source this evening and have run configure.  Will see what's required for me to get it building and post back here

880
Programming / Re: Have questions about porting software to eCS?
« on: December 28, 2012, 01:34:34 am »
Want to try to compile Rocrail, but its using Bazaar instead of CVS. How different are those two? Is it hard / difficult to port Bazaar to OS/2-eCS? Paul, you did CVS as far as I know, how difficult was it?

yeah the build of cvs I use was built by me.  I've never looked at bazaar, but likely it is quite portable, so I will try and take a look at it.

Note Rocrail has source snapshots available too - https://launchpad.net/rocrail/sunrise/2.0/+download/rocrail-4282-sources.tar.gz

Note also, this uses wxwidgets, which doesn't work terribly well on OS/2.

881
Programming / Re: Have questions about porting software to eCS?
« on: December 27, 2012, 07:39:55 am »
In terms of tools  shameless plug is http://os2ports.smedley.id.au/index.php?page=BuildEnvDVD :)

In the absolute best case scenario, the process is:
1) extract source
2) run configure using something like:
    ash ./configure --prefix=/name_of_app --disable-shared --enable-static 2>&1 | tee configure.log
    --prefix specifies where we want to install the app - default will be /usr or /usr/local
    --disable-shared tells it not to build shared libraries (in most cases the app won't know how to build shared libraries (ie DLL's)
    --enable-static forces static libraries to be built
    2>&1 | tee configure.log puts the output from configure into a file called configure.log for debugging purposes
3) assuming configure completes:
     make 2>&1 | tee build.log
    runs make, with output of the command pipes into build.log
4) If no, errors.
    make install
    output will be put into the directory specified as prefix in 2)

I'd suggest starting with a simple command line app like wget

People seem to want to be ambitious and start with something like virtualbox!

882
Comments, Suggestions & Questions / Re: Porting software to OS/2 sub-forum?
« on: December 27, 2012, 07:34:32 am »
Hi Paul,

I was thinking more about someone like myself copying stuff from your posts (or others) and adding to a main "Pauls tips n tricks" one with a note at the bottom that all info came from you but has been scrapped from your posts :)


OH!!! I like that idea. Could even be a page on the EDM wiki? With a sticky link to it from here?

883
Programming / Have questions about porting software to eCS?
« on: December 26, 2012, 09:44:14 am »
Hi All,

Wanting to encourage anyone who has an interest in porting software to eCS from unix, to post their questions in this forum.  I answer a lot of questions on IRC or when I see them in the newsgroups, but this forum is a far more convenient place for those questions (unless the server crashes again :P)

Cheers,

Paul

884
Comments, Suggestions & Questions / Re: Porting software to OS/2 sub-forum?
« on: December 26, 2012, 09:42:01 am »
My thoughts are more encouraging people to post their questions in one place - if I start trying to document tips, I'll never get any ports done :)

But I'll always try and answer peoples questions :)

885
Comments, Suggestions & Questions / Porting software to OS/2 sub-forum?
« on: December 25, 2012, 10:38:16 pm »
Hi all,

I see we have a Programming forum - what do people think about having a separate forum (or sub-forum) for people who are wanting to learn how to do Unix ports to OS/2, either using my build environment, or their own?

Or should we just use the main programming forum?

Cheers,

Paul

Pages: 1 ... 57 58 [59] 60