Differences between revisions 18 and 19
Revision 18 as of 2010-01-30 03:42:06
Size: 1687
Comment:
Revision 19 as of 2010-01-30 03:45:51
Size: 2999
Comment:
Deletions are marked like this. Additions are marked like this.
Line 25: Line 25:
{{{#!highlight c++
project(cantor)
Line 26: Line 28:
<pre>
czzxc zxcz
</pre>

# search packages used by KDE
find_package(KDE4 4.3.80 REQUIRED)
if(WIN32)
  find_package(KDEWIN32 REQUIRED)
  # detect oxygen icon dir at configure time based on KDEDIRS - there may be different package installation locations
  execute_process(COMMAND "${KDE4_KDECONFIG_EXECUTABLE}" --path icon OUTPUT_VARIABLE _dir ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)
  file(TO_CMAKE_PATH "${_dir}" __dir)
  find_path(KDE4_ICON_DIR oxygen PATHS
      ${__dir}
  )
  message(STATUS "using oxygen application icons from ${KDE4_ICON_DIR}")
else(WIN32)
    set (KDE4_ICON_DIR ${CMAKE_INSTALL_PREFIX}/share/icons)
endif(WIN32)

include(KDE4Defaults)
include(MacroLibrary)



if(NOT WIN32)
  macro_optional_find_package(LibSpectre)
  macro_log_feature(LIBSPECTRE_FOUND "libspectre" "A PostScript rendering library" "http://libspectre.freedesktop.org/wiki/" FALSE "${LIBSPECTRE_MINIMUM_VERSION}" "Support for rendering EPS files in Cantor.")

  if(LIBSPECTRE_FOUND)
    set( WITH_EPS On )
  else(LIBSPECTRE_FOUND)
    set( WITH_EPS Off )
  endif(LIBSPECTRE_FOUND)
else(NOT WIN32)
  set( WITH_EPS Off )
endif(NOT WIN32)

include_directories( ${KDE4_INCLUDES} ${QT_INCLUDES} )

add_subdirectory( src )
add_subdirectory( icons )
add_subdirectory( tests )
}}}
Line 34: Line 73:
cd cantor
mkdir build
cd build
cmake ../
''cd cantor''
''mkdir build''
''cd build''
''cmake ../''

goto Tips

Cantor

Cantor is a front-end for many mathematical software applications like Sage, Maxima, R and KAlgebra. Cantor belongs to The KDE Education Project and lets you use your favorite mathematical applications from within a nice KDE-integrated Worksheet Interface. It offers assistant dialogs for common tasks and allows you to share your worksheets with others.

Cantor's main features are:

  • Nice Worksheet view for evaluating expressions
  • View of plotting results inside the worksheet or in a separate window
  • Easy plugin based structure to add different Backends
  • GetHotNewStuff integration to upload/download example worksheets

  • Typesetting of mathematical formulas using LaTeX
  • Backend aware syntax highlighting
  • Plugin based assistant dialogs for common tasks (like integrating a function or entering a matrix)

Install Cantor

Here a way to build only cantor ;)

  • First obtain the sources

svn co svn://anonsvn.kde.org/home/kde/trunk/KDE/kdeedu/cantor

  • Replace the the content of cantor/CMakeLists.txt with this

   1 project(cantor)
   2 
   3 
   4 # search packages used by KDE
   5 find_package(KDE4 4.3.80 REQUIRED)
   6 if(WIN32)
   7   find_package(KDEWIN32 REQUIRED)
   8   # detect oxygen icon dir at configure time based on KDEDIRS - there may be different package installation locations
   9   execute_process(COMMAND "${KDE4_KDECONFIG_EXECUTABLE}" --path icon OUTPUT_VARIABLE _dir ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)
  10   file(TO_CMAKE_PATH "${_dir}" __dir)
  11   find_path(KDE4_ICON_DIR oxygen PATHS
  12       ${__dir}
  13   )
  14   message(STATUS "using oxygen application icons from ${KDE4_ICON_DIR}")
  15 else(WIN32)
  16     set (KDE4_ICON_DIR  ${CMAKE_INSTALL_PREFIX}/share/icons)
  17 endif(WIN32)
  18 
  19 include(KDE4Defaults)
  20 include(MacroLibrary)
  21 
  22 
  23 
  24 if(NOT WIN32)
  25   macro_optional_find_package(LibSpectre)
  26   macro_log_feature(LIBSPECTRE_FOUND "libspectre" "A PostScript rendering library" "http://libspectre.freedesktop.org/wiki/" FALSE "${LIBSPECTRE_MINIMUM_VERSION}" "Support for rendering EPS files in Cantor.")
  27 
  28   if(LIBSPECTRE_FOUND)
  29     set( WITH_EPS On )
  30   else(LIBSPECTRE_FOUND)
  31     set( WITH_EPS Off )
  32   endif(LIBSPECTRE_FOUND)
  33 else(NOT WIN32)
  34   set( WITH_EPS Off )
  35 endif(NOT WIN32)
  36 
  37 include_directories( ${KDE4_INCLUDES} ${QT_INCLUDES} )
  38 
  39 add_subdirectory( src )
  40 add_subdirectory( icons )
  41 add_subdirectory( tests )

http://pastebin.com/m28be29f

  • Type this 4 commands:

cd cantor mkdir build cd build cmake ../

You can choose where to install with this param DCMAKE_INSTALL_PREFIX For example:

cmake -DCMAKE_INSTALL_PREFIX=/usr/ ../

  • Type this command

<code> make install </code>

Using Sage with Cantor

  • Worksheet managment ...

Links


Front-ends

Cantor (last edited 2018-01-31 17:43:50 by slelievre)