Difference between revisions of "Libofa"
From CBLFS
Jump to navigationJump to searchLine 24: | Line 24: | ||
patch -Np1 -i ../libofa-{{Libofa-Version}}-update_to_r8438.patch && | patch -Np1 -i ../libofa-{{Libofa-Version}}-update_to_r8438.patch && | ||
+ | sed -i "1i\#include <stdlib.h>" lib/signal_op.cpp && | ||
+ | sed -i "1i\#include <stdio.h>\n#include <string.h>" examples/example.cpp && | ||
+ | sed -i "1i\#include <string.h>" examples/protocol.cpp && | ||
./configure --prefix=/usr && | ./configure --prefix=/usr && | ||
make | make | ||
Line 38: | Line 41: | ||
patch -Np1 -i ../libofa-{{Libofa-Version}}-update_to_r8438.patch && | patch -Np1 -i ../libofa-{{Libofa-Version}}-update_to_r8438.patch && | ||
+ | sed -i "1i\#include <stdlib.h>" lib/signal_op.cpp && | ||
+ | sed -i "1i\#include <stdio.h>\n#include <string.h>" examples/example.cpp &&. | ||
+ | sed -i "1i\#include <string.h>" examples/protocol.cpp && | ||
CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" ./configure --prefix=/usr && | CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" ./configure --prefix=/usr && | ||
make | make | ||
Line 50: | Line 56: | ||
patch -Np1 -i ../libofa-{{Libofa-Version}}-update_to_r8438.patch && | patch -Np1 -i ../libofa-{{Libofa-Version}}-update_to_r8438.patch && | ||
+ | sed -i "1i\#include <stdlib.h>" lib/signal_op.cpp && | ||
+ | sed -i "1i\#include <stdio.h>\n#include <string.h>" examples/example.cpp && | ||
+ | sed -i "1i\#include <string.h>" examples/protocol.cpp && | ||
CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" ./configure --prefix=/usr --libdir=/usr/lib32 && | CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" ./configure --prefix=/usr --libdir=/usr/lib32 && | ||
make | make | ||
Line 62: | Line 71: | ||
patch -Np1 -i ../libofa-{{Libofa-Version}}-update_to_r8438.patch && | patch -Np1 -i ../libofa-{{Libofa-Version}}-update_to_r8438.patch && | ||
+ | sed -i "1i\#include <stdlib.h>" lib/signal_op.cpp && | ||
+ | sed -i "1i\#include <stdio.h>\n#include <string.h>" examples/example.cpp && | ||
+ | sed -i "1i\#include <string.h>" examples/protocol.cpp && | ||
CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" ./configure --prefix=/usr --libdir=/usr/lib64 && | CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" ./configure --prefix=/usr --libdir=/usr/lib64 && | ||
make | make |
Revision as of 13:41, 13 September 2009
Download Source: | http://www.musicip.com/dns/files/libofa-0.9.3.tar.gz |
---|---|
Required Patch: | http://svn.cross-lfs.org/svn/repos/patches/libofa/libofa-0.9.3-update_to_r8438.patch |
Contents
Introduction to Libofa
Project Homepage: Unknown
Dependencies
Required
Non-Multilib
Compile the package:
patch -Np1 -i ../libofa-0.9.3-update_to_r8438.patch && sed -i "1i\#include <stdlib.h>" lib/signal_op.cpp && sed -i "1i\#include <stdio.h>\n#include <string.h>" examples/example.cpp && sed -i "1i\#include <string.h>" examples/protocol.cpp && ./configure --prefix=/usr && make
Install the package
make install
Multilib
32Bit
Compile the package:
patch -Np1 -i ../libofa-0.9.3-update_to_r8438.patch && sed -i "1i\#include <stdlib.h>" lib/signal_op.cpp && sed -i "1i\#include <stdio.h>\n#include <string.h>" examples/example.cpp &&. sed -i "1i\#include <string.h>" examples/protocol.cpp && CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" ./configure --prefix=/usr && make
Install the package
make install
N32
Compile the package:
patch -Np1 -i ../libofa-0.9.3-update_to_r8438.patch && sed -i "1i\#include <stdlib.h>" lib/signal_op.cpp && sed -i "1i\#include <stdio.h>\n#include <string.h>" examples/example.cpp && sed -i "1i\#include <string.h>" examples/protocol.cpp && CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" ./configure --prefix=/usr --libdir=/usr/lib32 && make
Install the package
make install
64Bit
Compile the package:
patch -Np1 -i ../libofa-0.9.3-update_to_r8438.patch && sed -i "1i\#include <stdlib.h>" lib/signal_op.cpp && sed -i "1i\#include <stdio.h>\n#include <string.h>" examples/example.cpp && sed -i "1i\#include <string.h>" examples/protocol.cpp && CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" ./configure --prefix=/usr --libdir=/usr/lib64 && make
Install the package
make install