Commit d96c9647 authored by Laurent Belcour's avatar Laurent Belcour

Updating the qmake scripts for MAC OS X. Still and issue with CERES

compilation.
parent 5f9784f2
This is the repository for the ALTA Project
Repository Organization
data/: contains the data for which the fitting techniques are tested
1. Repository Organization
==========================
data/: contains the data for which the fitting techniques are tested
against. Files are separated by dimension of the input domain
(e.g. 1d, 2d, 3d, ...).
documents/: contains the documentation, should be build using doxygen into
configs/: contains platform dependent configuration files for qmake and
scons.
documents/: contains the documentation, should be build using doxygen into
that directiory.
external/: contains any third party library that needs to be used by ALTA.
Contains a modified QuadProg++ library using Eigen. You can
download and compile automaticaly some third party libraries using
the Scons scripts.
sources/: contains all the source files. A Makefile or VS project can be
download and compile automaticaly some third party libraries using
provided python scripts obtain_[libname].py.
sources/: contains all the source files. A Makefile or VS project can be
created there from the .pro file. Scons generation of the
project is also supported.
Building Advises (for Qt enthousiasts)
2. Building
===========
You can build ALTA using either scons or Qt's qmake tools. Both tools should
be called at the root level of ALTA (noted ${ALTA} in the following):
$ scons --cfg=config-file.py
for scons and:
$ qmake && make -i
for qmake.
We use heavily the Qt profile functionality. To build some of the plugins you
3. Building Advises (for Qt enthousiasts)
==========================================
We use heavily the Qt profile functionality. To build some of the plugins you
will be required to create your own system dependant .prf for any used library.
For example ALTA core use the Eigen library. Therefore it is mandatory that
you provide a eigen.prf file and that this file is in your QMAKEFEATURES
directory.
For example ALTA core use the Eigen library. Therefore it is mandatory that
you provide a eigen.prf file and that this file is in your QMAKEFEATURES
directory. We provide example of such file in the ${ALTA}/configs/qt directory.
To ease the configuration for a first installation of ALTA, we advise to use
this directory as the main QMAKEFEATURES directory.
3.1. Dependencies:
------------------
Dependencies:
ALTA core: Eigen
Plugin rational_eigen: Eigen 3.x
Plugin rational_quadprog: Quadprog++
......@@ -39,46 +64,50 @@ Dependencies:
Plugin nonlinear_nlopt: NLOpt library and its dependencies
Plugin nonlinear_ipopt: IpOpt library and its dependencies
Eigen Plugins
3.2. Eigen Plugins
-------------------
You must provide an eigen.prf file that contains
INCLUDEPATH *= PATH_TO_EIGEN_DIRECTORY
Quadprog++ Plugins
3.3. Quadprog++ Plugins
-----------------------
We provide our own version of quadprog++ which uses Eigen library.
To compile it:
Go to external/quadprog++/
Use qmake (to generale the Makefile)
make
Then create a quadprog.prf file that will include
make
Then create a quadprog.prf file that will include
LIBS *= PATH_TO_LIBQUADPROG/libquadprog++.a
QMAKE_LIBDIR *= PATH_TO_LIBQUADPROG
INCLUDEPATH *= PATH_TO_LIBQUADPROG_HEADERS
Parallel Plugin that requires OpenMP
3.4. Parallel Plugin that requires OpenMP
-----------------------------------------
Create an openmp.prf file and add the following directives:
QMAKE_CXXFLAGS *=-fopenmp
Matlab Plugin
3.5. Matlab Plugin
------------------
Create an matlab.prf file and add the following directives:
The PATH_TO_MATLAB_INCLUDE_DIRECTORY must point to a directory that
contains the file engine.h
INCLUDEPATH *= PATH_TO_MATLAB_INCLUDE_DIRECTORY
4. Generate the documentation using Doxygen
===========================================
Generate the documentation using Doxygen
cd ${ALTA}/documents/
doxygen doxygen.conf
$ cd ${ALTA}/documents/
$ doxygen doxygen.conf
# This configuration file is part of ALTA library
#
# It provides Qt with the configuration necessary to compile plugins
# using FLANN library. This .prf file works under Ubuntu/debian,
# but must be updated for other OS/distributions.
#
unix:!macx{
INCLUDEPATH += /usr/include/
LIBS += -L/usr/lib/x86_64-linux-gnu -lflann
}
macx{
INCLUDEPATH += /opt/local/include
LIBS += -L/opt/local/lib -lflann
}
# This configuration file is part of ALTA library
#
# Configuration file for MIT's NlOpt library present in the
# ${ALTA}/external/nlopt* directory once the obtain_nlopt.py script has
# been runned. You need to have the env variable ALTA defined.
INCLUDEPATH += $$(ALTA)/external/build/include
LIBS += -L$$(ALTA)/external/build/lib \
-lnlopt
......@@ -5,7 +5,9 @@
# be updated for other OS/distributions.
#
CONFIG += openmp
unix:!macx {
CONFIG += openmp
QMAKE_CXXFLAGS += -fopenmp
LIBS += -lgomp
QMAKE_CXXFLAGS += -fopenmp
LIBS += -lgomp
}
TEMPLATE = lib
CONFIG *= plugin \
eigen
CONFIG *= plugin \
eigen \
flann
DESTDIR = ../../build
......
CONFIG += console \
eigen
eigen
CONFIG -= app_bundle
DESTDIR = ../../build
INCLUDEPATH += ../../
......
CONFIG += console \
eigen
CONFIG -= app_bundle
INCLUDEPATH += ../../
DESTDIR = ../../build
......
CONFIG += console \
eigen
CONFIG -= app_bundle
INCLUDEPATH += ../../
DESTDIR = ../../build
......
CONFIG += console \
eigen
CONFIG -= app_bundle
INCLUDEPATH += ../../
DESTDIR = ../../build
......
CONFIG += console \
eigen
CONFIG -= app_bundle
DESTDIR = ../../build
INCLUDEPATH += ../../ ../../libs/rational_1d \
......
CONFIG += console \
eigen
CONFIG -= app_bundle
INCLUDEPATH += ../../
DESTDIR = ../../build
......
CONFIG += eigen
CONFIG -= app_bundle
INCLUDEPATH += ../../
DESTDIR = ../../build
......
CONFIG += eigen
CONFIG -= app_bundle
INCLUDEPATH += ../../
DESTDIR = ../../build
......
CONFIG += console \
eigen
CONFIG -= app_bundle
INCLUDEPATH += ../../
DESTDIR = ../../build
......
TEMPLATE = subdirs
SUBDIRS = generate_data \
data2brdf \
SUBDIRS = data2brdf \
data2data \
brdf2data \
brdf2brdf \
......@@ -9,5 +8,6 @@ SUBDIRS = generate_data \
data2diff \
data2moments \
brdf2moments \
tests \
# fourieranalysis
# tests \
# fourieranalysis \
# generate_data
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment