Re: [Planner Dev] Porting to Windows



Richard Hult wrote:

On mån, 2004-07-26 at 19:55 +0300, Jani tiainen wrote:

Well I've studied possibility to port Planner 0.12 to Windows platform by using Cygwin + Cygnome2.

It could be possible, but there is serious backlinking issues that makes lot of trouble.

Let me explain this particular problem:

Planner has plugins that are (dynamically) loaded to Planner in runtime. Plugins have some calls to functions that reside inside main executable.

In Linux this works okay, since Linux library loaders does symbolresolving in runtime, but in Windows world symbols must be solved at linking time.

This can be solved in Windows, but there is no support from libtool - you have to compile, link and generate all necessary files by hand.

In most cases it's enough to move those calls to external shared library that can be linked in those plugins. Since in my experience there is only handful of those calls (following I have encountered so far. I remember that there is two more...):

planner_plugin_get_type
planner_window_get_project
planner_window_get_ui_container

So if these functions could be moved to external shared library, it would make porting much much easier...


Well, splitting out just a few functions feels like a hack to me :) We
could make a small lib consisting of planner-window, planner-plugin, and
planner-view. If there is no other way to solve the problem, we should
probably go that way.

That would ease up building. Now I have hacked a lot in Makefiles to get all necessary thing to get into compiled.

I'm doing port same way as it is done in Cygnome2. First you run configure, after configuration you patch Makefiles etc. to get compiled.

Hopefully someday this could be done without such a hassle.

Thanks a lot for looking into this.

No problem - I have great interest to get Planner up and running in Windows environment.

--

Jani Tiainen




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]