may@may.pa.dec.com (G. May Yip) (12/06/90)
Hello! I'd like to have our application program - which is huge byself but doesn't use a large part of the Motif library - be capable of being ported onto many hardware platforms AS EASILY & QUICKLY AS POSSIBLE. I'm planning to identify just what files in the Motif source directory the application needs, compile them, and then link them to the application, without having to compile the whole Motif library, which will take a lot of effort if I'm to have to do it for various many architectures. Does this sound reasonable? I've looked at Motif source before but I'm not certain that I can easily find the "minimal subset" needed. Did anyone try this before? Any experience you can share with me? Any comment, general or specific? Any criticism, or encouragement? Thanks a lot in advance. Aside: I understand that this is a short-sighted solution for a short-sighted problem. I'm not concerned with future development of the application in the Motif environment yet. The biggest immediate concern is to get it running on different machines, given some time and resource constraints. And I figure sooner or later there'll be compiled, bug-free Motif libraries everywhere :-) that are done by people who're good at porting Motif. /may
marbru@attc.UUCP (Martin Brunecky) (12/07/90)
Trying to build a "subset" of Motif is NOT easy. Since the whole toolkit is "spaghettied" together, even if you need just 3 widgets, you end up compiling about 70% of the Motif code. You sure can spare by avoiding few leaf widgets, such as file selection. But I doubt it's worth the effort - munging the makefiles, finding out what ios needed and what not. I believe that taking the whole thing is much easier, and then let ld load only what is "needed". You may be surprized how much is "needed". -- =*= Opinions presented here are solely of my own and not those of Auto-trol =*= Martin Brunecky {...}sunpeaks!auto-trol!marbru (303) 252-2499 (sometimes also: marbru@auto-trol.COM ) Auto-trol Technology Corp. 12500 North Washington St., Denver, CO 80241-2404