|
|
[求助]
请问这个程序怎么样编译呀?
我想用ubuntu环境,这里是编译的说明
![请问这个程序怎么样编译呀?]()
这是makefile的前面一些行
# To build:
# make <target>
# Use the 'lib' target first to build the library, then either the Lua
# or Python targets are 'S4lua' and 'python_ext', respectively.
# Set these to the flags needed to link against BLAS and Lapack.
# If left blank, then performance may be very poor.
# On Mac OS,
# BLAS_LIB = -framework vecLib
# LAPACK_LIB = -framework vecLib
# On Debian, with reference BLAS and Lapack (slow)
# BLAS_LIB = -lblas
# LAPACK_LIB = -llapack
BLAS_LIB = -lblas
LAPACK_LIB = -llapack
# Specify the flags for Lua headers and libraries (only needed for Lua frontend)
# Recommended: build lua in the current directory, and link against this local version
# LUA_INC = -I./lua-5.2.4/install/include
# LUA_LIB = -L./lua-5.2.4/install/lib -llua -ldl -lm
LUA_INC = -I./lua-5.2.4/install/include
LUA_LIB = -L./lua-5.2.4/install/lib -llua -ldl -lm
# OPTIONAL
# Typically if installed,
# FFTW3_INC can be left empty
# FFTW3_LIB = -lfftw3
FFTW3_INC =
FFTW3_LIB =
# Typically,
# PTHREAD_INC = -DHAVE_UNISTD_H
# PTHREAD_LIB = -lpthread
PTHREAD_INC = -DHAVE_UNISTD_H
PTHREAD_LIB = -lpthread
# OPTIONAL
# Typically if installed,
#CHOLMOD_INC = -I/usr/include/suitesparse
#CHOLMOD_LIB = -lcholmod -lamd -lcolamd -lcamd -lccolamd
CHOLMOD_INC =
CHOLMOD_LIB =
# Specify the MPI library
#MPI_INC =
#MPI_LIB =
MPI_INC =
MPI_LIB =
# Specify custom compilers if needed
CXX = g++
CC = gcc
#CFLAGS += -O3 -fPIC
CFLAGS = -O3 -msse3 -msse2 -msse -fPIC
# options for Sampler module
OPTFLAGS = -O3
OBJDIR = ./build
S4_BINNAME = $(OBJDIR)/S4
S4_LIBNAME = $(OBJDIR)/libS4.a
S4r_LIBNAME = $(OBJDIR)/libS4r.a
请问我需要怎么样修改这个makefile文件才能编译完成。我打算用python前端,不使用lua前端。
还有,ubuntu要先做哪些配置?
本人确实不太懂这方面内容。这个程序提供了一些例子,我想改一下它的一些例子运行。 |
|