Changes between Version 29 and Version 30 of ML403

Show
Ignore:
Timestamp:
04/28/09 13:54:47 (4 years ago)
Author:
mcarrick
Comment:

updating instructions for linking against C driver

Legend:

Unmodified
Added
Removed
Modified
  • ML403

    v29 v30  
    9595(That link against a C driver library) 
    9696 
     97First compile the C driver into a static library: 
    9798{{{ 
    98 $ cd ossie-trunk/components/COMPONENT 
     99# make -f C_Makefile 
     100}}} 
     101 
     102Run reconf and configure on the component: 
     103{{{ 
    99104$ ./reconf 
    100105# ./configure --prefix=/opt/crosstool/gcc-4.1.1-glibc-2.3.6/powerpc-405-linux-gnu/powerpc-405-linux-gnu/ --host=powerpc-405-linux-gnu "CXXFLAGS=-lossiecf -lossieidl -lossieparser -lomniORB4 -lomniDynamic4 -lomnithread" 
    101 # make "CXXFLAGS=-I/opt/crosstool/gcc-4.1.1-glibc-2.3.6/powerpc-405-linux-gnu/powerpc-405-linux-gnu/include/ -L/opt/crosstool/gcc-4.1.1-glibc-2.3.6/powerpc-405-linux-gnu/powerpc-405-linux-gnu/lib/ -L. -lFPGAController" 
     106}}} 
     107 
     108Open ''Makefile'' to link against the static library, and find the following line: 
     109{{{ 
     110LIBS = -lstandardInterfaces -lomniDynamic4 -lomnithread -lomniORB4  -L/usr/local/lib -lossieidl -lossieparser -lossiecf 
     111}}} 
     112 
     113Add ''-L. -lFPGAController'' to the end of the line: 
     114{{{ 
     115LIBS = -lstandardInterfaces -lomniDynamic4 -lomnithread -lomniORB4  -L/usr/local/lib -lossieidl -lossieparser -lossiecf -L. -lFPGAController 
     116}}} 
     117 
     118Run make: 
     119{{{ 
     120# make "CXXFLAGS=-I/opt/crosstool/gcc-4.1.1-glibc-2.3.6/powerpc-405-linux-gnu/powerpc-405-linux-gnu/include/ -L/opt/crosstool/gcc-4.1.1-glibc-2.3.6/powerpc-405-linux-gnu/powerpc-405-linux-gnu/lib/" 
    102121}}} 
    103122