Thanks Robbie. I should have definitely mentioned that all our other stuff was written in Java keeping cross platform in mind. Thus, if we can just package the right dll/so/dylib files with the source code and the glpk and glpk-java jars, it should work. Or is that not the case?
Thanks. Manish On Thursday, August 9, 2012, Robbie Morrison wrote: > > Hello Manish > > ------------------------------------------------------------ > To: Noli Sicad <nsi...@gmail.com <javascript:;>> > Subject: Re: [Help-glpk] Installing glpk on Mac OS X 10.8 > From: Manish Jain <manish.jain...@gmail.com <javascript:;>> > Date: Wed, 8 Aug 2012 21:27:15 -0700 > ------------------------------------------------------------ > > > Hi, Thanks, I have glpk working fine on my Mac now. > > > > The one issue is that we are developing a library that > > can be downloaded and used by users across all > > platforms (Mac, Windows, Linux), both 32 and 64 bit. > > I am now having trouble getting my library to work on > > Windows 64 bit. Does anybody have any experience in > > developing such cross-platform libraries involving > > Glpk? > > > > Thanks. > > > > - Manish > > There is some material on cross-compilation on the > GLPK wikibook: > > http://en.wikibooks.org/wiki/GLPK/Cross_Compilation > > My sysop and I cross-compiled my command-line C++ > application from Linux 64-bit to Windows 64-bit, for > interest, with static linking to GLPK. We used the GNU > GCC compiler. It was a straightforward exercise, but I > had been careful to write portable code, for instance, > this kind of rubbish for runtime messaging: > > #if defined (WIN32) || defined (_WIN32) || defined (__WIN32__) || > defined (_WIN64) > const char osSlash = '\\'; > #else > const char osSlash = '/'; > #endif > > The Boost libraries can relieve much of this tedium too > and I thoroughly recommend their use for C++: > > http://en.wikipedia.org/wiki/Boost_(C++_libraries) > > Assuming that you can make Boost a dependency for > your users. In most cases, that should be reasonable. > > I realize you asked about distributing libraries, but > what was not so easy to port were the myriad of R, > elisp, and bash code that makes my whole box and dice > usable. In my case, it would be better to give users > an entire Linux distro and my program on a DVD, that > then runs under virtualization on Windows machines. > > good luck, Robbie > --- > Robbie Morrison > PhD student -- policy-oriented energy system simulation > Technical University of Berlin (TU-Berlin), Germany > University email (redirected) : morri...@iet.tu-berlin.de <javascript:;> > Webmail (preferred) : rob...@actrix.co.nz <javascript:;> > [from Webmail client] > > > -- - Manish
_______________________________________________ Help-glpk mailing list Help-glpk@gnu.org https://lists.gnu.org/mailman/listinfo/help-glpk