• Welcome to OS2World OLD-STATIC-BACKUP Forum.
 

News:

This is an old OS2World backup forum for reference only. IT IS READ ONLY!!!

If you need help with OS/2 - eComStation visit http://www.os2world.com/forum

Main Menu

Compiling & Porting assistance

Started by klipp, 2007.07.06, 21:36:25

Previous topic - Next topic

klipp

Is this the forum to get help with porting & compiling problems & questions (or is there another source for this type of info?)
I'm trying to get some Linux apps ported that need GTK! I've managed to get GLIB-2.6.5 compiled and installed, and most of the pre-reqs for GTK+-2.6.8 but the ./configure craps out with what looks like a gcc error running conftest.c! and throws a "Checking for  XopenDisplay in -lx11" error saying libx11not found.
  Is there anybody out there that has successfully compiled & installed GTK+-2.6.8?


Thanks for any ideas
********************************************************************
Windoz Free! eCS 2.0 serving Linux, Windoz & OS2
rklipp@megared.net.mx
********************************************************************


klipp

I've got the Hobbes/gimp version of gtk-2.6.8 installed but it is not recognized by GCC -- thats why I'm trying to build from source.
********************************************************************
Windoz Free! eCS 2.0 serving Linux, Windoz & OS2
rklipp@megared.net.mx
********************************************************************

MikeG

You might have better luck popping into the #netlabs IRC channel.

MikeG

kim

As well with the Developers Workshop going on this weekend there is the possibility of asking questions.

mobybrick

Hi,

On Hobbes the file X331slib.zip contains an x11_s.a file, which contains the function _XOpenDisplay. You could try renaming this file to x11.a and copy it to your lib and source directories. However...

1. Depending on your version of GCC, underscores may, or may not be used. This library uses underscores. You would need to export it and then re-create the definition without underscores.

2. This library probably requires XFREE86 to be used/running, although I've never tried it...

Sorry can't really help...
Regards,
Moby.

klipp

Hey mobybrick! You're suggetsion sounds sounds intrigueing!  I have XFree86 4.5 running, but have been unable to  find a "function_XOpenDisplay" --- I'll try you're suggestion tommorrow.  Thanks for the input.
********************************************************************
Windoz Free! eCS 2.0 serving Linux, Windoz & OS2
rklipp@megared.net.mx
********************************************************************

mobybrick

Hi,

If you have XFree86 installed, you might find that you already have a suitable library file ready to use.

The xxxx_s versions of libraries are single-threaded, and xxxx_m are multi-threaded. You copy them to the xxxx name you want depending on whether you want multi or single threaded operation.

If you have a xxxx.a file, but need one without underscores, you can try using the EMX tools to create a new definition without the underscore. This sometimes works, IME.

If you don't have a usable .a file but can find the XFree86 DLL file containing XOpenDisplay, you can usually re-build an xxxx.a file by doing the following:

emximp -o x11.imp x11.dll (or whatever name of DLL; this step creates an import defintion)
emximp -o x11.a x11.imp (creates an archive from the import definition).

Note that if you are using an older EMX only GCC, then the EMXIMP tool does not have the ability to create a .IMP file directly from the DLL. You would need to get hold of the new LibC GCC to create the .IMP file, and then revert to the older EMX EMXIMP to build the .a file (adding the underscores, possibly, as I believe the older EMX GCC's need underscores).

I've not done a lot of this, so if anyone else has any comments or better ways of doing things.... then here's your chance to tell us about it!

Regards,
Moby.

fbakan

which vesion of gcc are you using? As far as I know the latest 3.3.5 versions won't work for X11 applications, you have to use 3.0.3 or 3.2.1
At least this is my experience when compiling XSane to OS/2.
Franz
www.fbakan.de

klipp

Looks like "fbakan" has the solution! I'm using 3.3.5 that comes with ECS 2.0 rc1, and GTK+-2.6.8 (an X11 app) will not compile as far as I can tell. And it makes sense, as the error message is looking for a non-existant x11 lib directory.
  Thanks to all for the assistance, I'll set up a gcc 3.2.1 version and see how that works, If I'm successful, I'll post the results here, at a later date.
********************************************************************
Windoz Free! eCS 2.0 serving Linux, Windoz & OS2
rklipp@megared.net.mx
********************************************************************