Shared libraries on MacOS have a file extension of "*.dylib", so your compilation step should probably be something like:
gcc -shared -fpic glpkIDE_wrap.c -o libglpkIDE.dylib -I /usr/jdk1.6.0_07/include/ -I /usr/jdk1.6.0_07/include/linux/ \ -L. -lglpk /usr/jdk1.6.0_07/bin/javac *.java ...but this is a little out-of-context for me; are you trying to just build the java wrapper on MacOS, or also Nigel's jEdit plugin? Speaking of which, I wonder if there's any interest on this list of a plugin for the Eclipse IDE? Regards, Chris Wolf On 3/17/10 8:40 AM, Nigel Galloway wrote: > Sorry, I don't have a mac. I have seen messages regarding compiling glpk > on a mac. Perhaps you can find assistance there. The libglpkIDE.so is > produced by compiling the c wrapper generated by swig, perhaps swig > has some instructions for the mac. The instruction for Linux are (see > Installation.html): > > swig -java glpkIDE.swg > gcc -shared -fpic glpkIDE_wrap.c -o libglpkIDE.so -I > /usr/jdk1.6.0_07/include/ -I /usr/jdk1.6.0_07/include/linux/ -L. -lglpk > /usr/jdk1.6.0_07/bin/javac *.java > > remembering to add glpsolWP.java to the files being javaced, and to have the > glpk shared library and glpk.h avaialble. > > If you get it to work let me know and I'll include the instructions with the > above. > > > > > > ----- Original Message ----- > From: "Jeffrey Kantor" > To: "Nigel Galloway" > Subject: Re: [Help-glpk] Cross Platform IDE for mathprog development. > Date: Mon, 15 Mar 2010 14:13:16 -0400 > > Nigel, > Thanks. I'm embarrassed not to have seen the link to the downloads > at Sourceforge. Appreciate the followup. > I'm working on a Mac. The docs mention something libglpkIDE.so -- > how is this created on the Mac? Would it be the same as for linux? > Jeff > > On Mon, Mar 15, 2010 at 12:27 PM, Nigel Galloway > <[email protected]> > wrote: > > > Follow the link and find the line Attachments(1). At the extreme > right is a very small light grey almost invisible arrow in a box. > Click on it and the option to download a zip file will present > itself. I attach it for convinience. > > > ----- Original Message ----- > From: "Jeffrey Kantor" > To: "Nigel Galloway" > Subject: Re: [Help-glpk] Cross Platform IDE for mathprog > development. > Date: Sun, 14 Mar 2010 11:07:50 -0400 > > NIgel, > I'd like to try this out, unfortunately it doesn't seem we > can download the file from Sourceforge. Am I missing > something? > Jeff > > On Fri, Mar 12, 2010 at 8:22 AM, Nigel Galloway > <[email protected]> > wrote: > > I have submitted a plugin for glpk mathprog to jEdit > called glpkIDEplugin. jEdit is an IDE written in Java. > > The inital release can be obtained from: > > > https://sourceforge.net/tracker/?func=detail&aid=2969336&group_id=588&atid=625093 > > It provides facilities to edit and run mathprog scripts. > The mathprog is enhanced to provide parameters. The > enhanced mathprog scripts can be run independently of the > IDE e.g.: > > java -jar %JEDIT_HOME%\jars\glpsol.jar --math cal.mod > $year=1955 > > -- > _______________________________________________ > Surf the Web in a faster, safer and easier way: > Download Opera 9 at http://www.opera.com > > Powered by Outblaze > > > _______________________________________________ > Help-glpk mailing list > [email protected] > http://lists.gnu.org/mailman/listinfo/help-glpk > > > > -- > > _______________________________________________ > Surf the Web in a faster, safer and easier way: > Download Opera 9 at http://www.opera.com > > > Powered by Outblaze > > > > > _______________________________________________ > Help-glpk mailing list > [email protected] > http://lists.gnu.org/mailman/listinfo/help-glpk _______________________________________________ Help-glpk mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-glpk
