Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Using taucs

Subject: CGAL users discussion list

List archive

[cgal-discuss] Using taucs


Chronological Thread 
  • From: Mario Ynocente Castro <>
  • To:
  • Subject: [cgal-discuss] Using taucs
  • Date: Thu, 1 Sep 2011 10:29:12 -0500

Hi everyone,

I'm trying to compile a project which uses TAUCS, I include the following headers:

#include <CGAL/basic.h>
#include <CGAL/Taucs_solver_traits.h>
#include <CGAL/Taucs_fix.h>
#include <CGAL/Taucs_matrix.h>
#include <CGAL/Taucs_vector.h>

and then define some types:

typedef Taucs_matrix<taucs_double> TaucsMatrix;
typedef Taucs_vector<taucs_double> TaucsVector;
typedef Taucs_symmetric_matrix<taucs_double> TaucsSymmetricMatrix;

however I get the following compilation errors:

make poissonimageediting.o
[100%] Building CXX object CMakeFiles/poissonimageediting.dir/poissonimageediting.o
/home/marioyc/GradientSuperresolution/poissonimageediting.cpp:12:9: error: ‘Taucs_matrix’ does not name a type
/home/marioyc/GradientSuperresolution/poissonimageediting.cpp:13:9: error: ‘Taucs_vector’ does not name a type
/home/marioyc/GradientSuperresolution/poissonimageediting.cpp:14:9: error: ‘Taucs_symmetric_matrix’ does not name a type
...

I'm using CGAL 3.6.1 in Ubuntu 10.04, and I'm compiling using the makefile which cmake gives me from the following CMakeLists.txt

# Created by the script cgal_create_cmake_script
# This is the CMake script for compiling a CGAL application.


project( GradientSuperresolution_example )

CMAKE_MINIMUM_REQUIRED(VERSION 2.4.5)

set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)
 
if ( COMMAND cmake_policy )
  cmake_policy( SET CMP0003 NEW )  
endif()
 
find_package(CGAL QUIET COMPONENTS Core )

# Include this package's headers first
include_directories (BEFORE .)

if ( CGAL_FOUND )

  include( ${CGAL_USE_FILE} )

  include( CGAL_CreateSingleSourceCGALProgram )
  
  find_package(TAUCS)
  if(TAUCS_FOUND)

    include( ${TAUCS_USE_FILE} )

    # Executables that require TAUCS (thus BLAS and LAPACK)
    create_single_source_cgal_program( "poissonimageediting.cpp" )

  else(TAUCS_FOUND)

    message(STATUS "NOTICE: This directory requires the TAUCS library, and some features will not be available.")

  endif(TAUCS_FOUND)

else()
  
    message(STATUS "This program requires the CGAL library, and will not be compiled.")
  
endif()


--
Mario Ynocente Castro
Undergraduate Student of System Engineering
National University of Engineering, Peru



Archive powered by MHonArc 2.6.16.

Top of Page