[Symphony] Trouble compiling USER application

Terry maillst at aol.com
Sun Jun 19 16:33:18 EDT 2011


I need to use the user_is_feasible() callback. To learn how to use the callbacks, I tried to compile the user example in:
SYMPHONY-5.3.4/SYMPHONY/Applications/USER

First, I complied the application specific library, using the instructions in the INSTALL file:

   cd
   cd COIN-SYMPHONY
   ./configure --with-application
   make
   make install

I went in to the USER folder and attempted to build the USER application and it gave this error:

$ cd USER
$ make
../Makefile.Applications:175: *** missing separator (did you mean TAB instead of 8 spaces?).  Stop.

Below is line 175. Note that there is no line continuation character after end of the LIBS line.

LIBS += -L/sup2/SYMPHONY-5.3.4/lib/coin -lSymAppl  /sup2/SYMPHONY-5.3.4/Cgl/src/libCgl.la   /sup2/SYMPHONY-5.3.4/Clp/src/OsiClp/libOsiClp.la   /sup2/SYMPHONY-5.3.4/Clp/src/libClp.la   /sup2/SYMPHONY-5.3.4/Osi/src/Osi/libOsi.la   /sup2/SYMPHONY-5.3.4/CoinUtils/src/libCoinUtils.la -lm    /sup2/SYMPHONY-5.3.4/Clp/src/OsiClp/libOsiClp.la   /sup2/SYMPHONY-5.3.4/Clp/src/libClp.la   /sup2/SYMPHONY-5.3.4/Osi/src/Osi/libOsi.la   /sup2/SYMPHONY-5.3.4/CoinUtils/src/libCoinUtils.la -lm    /sup2/SYMPHONY-5.3.4/Osi/src/Osi/libOsi.la   /sup2/SYMPHONY-5.3.4/CoinUtils/src/libCoinUtils.la -lm
        -I`$(CYGPATH_W) $(COININCDIR)`

I figured that the line, "-I`$(CYGPATH_W) $(COININCDIR)`" was supposed to be in the CFLAGS variable. So, I removed that line where it was and added it to this section which was several lines above the LIBS line (I added the 3rd line below, it was not there before):

CFLAGS += -I`$(CYGPATH_W) $(SYMAPPLDIR)/include` \
          -I`$(CYGPATH_W) /sup2/SYMPHONY-5.3.4/SYMPHONY/include` \
          -I`$(CYGPATH_W) $(COININCDIR)`

Then it compiled. 

I attempted to run the user program and it gave the same type of error I encountered days ago when I compiled the base symphony program:

$ ./user
dyld: Library not loaded: /sup2/SYMPHONY-5.3.4/lib/libSymAppl.3.dylib
  Referenced from: /sup2/SYMPHONY-5.3.4/SYMPHONY/Applications/USER/./user
  Reason: image not found
Trace/BPT trap

So, I copied the libSymAppl from the /lib/coin/ directory to that directory it was looking in:

$ cp /sup2/SYMPHONY-5.3.4/lib/coin/libSymAppl.3.dylib /sup2/SYMPHONY-5.3.4/lib/libSymAppl.3.dylib

Attempting to run the user program again, gives a new error:

$ ./user
dyld: Symbol not found: __ZN12CglFlowCover12numFlowCuts_E
  Referenced from: /sup2/SYMPHONY-5.3.4/lib/libSymAppl.3.dylib
  Expected in: flat namespace
 in /sup2/SYMPHONY-5.3.4/lib/libSymAppl.3.dylib

So, now I'm stuck. Any help would be appreciated.

Thanks.
Terry




More information about the Symphony mailing list