• 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

Need (some) help on compiling openMSX with Paul's Build Environment

Started by djcaetano, 2009.03.25, 21:51:09

Previous topic - Next topic

djcaetano

  Hello everybody,

  Some days ago I noticed openMSX (MSX emulator, one can download
it here: http://openmsx.sourceforge.net/ ) should run nice on OS/2 plataform,
since it requires GCC 4.1, SDL and some other already ported libraries.
   I had installed Paul's Build Environment, installed GCC 4.3.3 over it,
adjuseted gcc433.cmd file, made some configurations and finaly was able
to run "ksh ./configure". The result was:

---------------------------------------------------------------
Using value of MAKE environment variable: "make.exe".
Probing target system...

Found libraries:
  libpng:          1.2.10
  libxml2:         2.6.28
  OpenGL:          no
  GLEW:            no
  Jack:            no
  SDL:             1.2.10
  SDL_image:       yes
  SDL_ttf:         yes
  Tcl:             no
  zlib:            yes

Found headers:
  libpng:          yes
  libxml2:         yes
  OpenGL:          yes
  GLEW:            no
  Jack:            no
  SDL:             yes
  SDL_image:       yes
  SDL_ttf:         yes
  Tcl:             no
  zlib:            yes

Components overview:
  Emulation core:  no
  CassetteJack:    no
  SDLGL renderer:  no

Customisable options:
  Install to:      /opt/openMSX
  (you can edit these in build/custom.mk)

Please install missing libraries and headers and rerun "configure".
---------------------------------------------------------------

  On the build help, it is said GLEW, JACK and OPENGL
are optional, but not TCL. I found a very old and outdated
version of TCL on hobbes and when I was coping its files
to the environment build (inside \EXTRA directory) I found
out they were already there.
  Looking into gcc433.cmd, I found no reference to TCL
directories such as TCL_LIBRARY, TK_LIBRARY and
TCLLIBPATH. This is right?
   Anyone has any clues about it?

---- UPDATE ---
   I discovered version 8.4 of TCL is required. I pointed TCL
directories as:

'SET TCL_LIBRARY=k:/extras/lib/tcl8.4'
'SET TCLLIBPATH=k:/extras/lib/tcl8.4'

  But it still doesn't work... still tells me that TCL library and
headers are not installed. :(

---- UPDATE 2 ---
   Tried to build newer TCL library but... not luck. The build
process stops with an error about some missing declaration.

??? ??? ??? ??? ???

   Regards,

  Daniel Caetano
  daniel@caetano.eng.br

djcaetano


  Hi!

  I found out that Peter Weilbacher has built TCL8.5.0 for someone on
a porting forum. I will try it at home and see if it works on openMSX. :)

djcaetano

Quote from: djcaetano on 2009.03.26, 17:45:25
  I found out that Peter Weilbacher has built TCL8.5.0 for someone on
a porting forum. I will try it at home and see if it works on openMSX. :)

  It's weird do keep answering myself, but I believe it's nice to give some
feedback for others who are following this.

  I was able to rebuild TCL using Paul's Environment and Paul's GCC4.3.3.
After that and a lot of struggles so openMSX configure process correctly
detected the installed TCL libraries and headers, openMSX compiled with
some minor warnings ... which seems related to the old GNU AS version
being used.
  The result was a giant openmsx.exe (about 130MB) which is simply hanging
the OS/2 Window:

[K:\openmsx-0.7.0\derived\x86-os2-devel\bin]openmsx
terminate called after throwing an instance of 'openmsx::FileException'
terminate called recursively

Killed by SIGABRT
pid=0x10f3 ppid=0x1096 tid=0x0001 slot=0x00d2 pri=0x0200 mc=0x0001
K:\OPENMSX-0.7.0\DERIVED\X86-OS2-DEVEL\BIN\OPENMSX.EXE
Process has been dumped

  I am trying to compile it without debug information and low optimization
to see if a smaller EXE cause a little less trouble... this is a slow testing
because the compilation process takes about one hour.
   There is some progress here. I just don't know if I will be able to
make this pile of code into a working piece of software. :P

UPDATE:

  Finished the compiling without debug information. EXE is now 16MB...
But the problem stated above persists. Besides the fact it says "Process
has been dumped", I found the dump nowhere.
  Also, I do not even know where to start looking for the problem. I have
never been faced with such an ugly problem in a program that takes
forever to build (strangely, on Linux it will take too long only in the first
build, in the next ones it will build only changed files... on OS/2 it is
building everything everytime).

Andi

Nice that you give feedback although obviously no one here can help you. Too sad that I don't even get Pauls build enviroment working....

Maybe you get more help at irc/netlabs.org

Regards,
Andi

Saijin_Naib

Yeah, sorry man. I tried my hand at getting TerraIM to compile but I've no experience with programming and a crash wiki course is not nearly enough.