Oct 31, 2014

Running CMake Files with Catalist

http://www.cs.swarthmore.edu/~adanner/tips/cmake.php

--------------------------------------------------------------------------------------------------

ParaViewConfig.cmake files are needed to run these. So development version of Paraview has to be installed.
lib\paraview-XXX\ contains these files.
--------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------
openmp-------------------------
gcc -fopenmp hello.c -o hello.o
export OMP_NUM_THREADS=4
.hello.o
-------------------------------
mpi----------------------------
uma@uma-Dell-System-XPS-L321X:~$ mpicc mpi_hello.c -o ./hello
uma@uma-Dell-System-XPS-L321X:~$ mpirun -np 2 ./hello
Hello world from process 0 of 2
Hello world from process 1 of 2
---------------------------------
latex
----------t-----------------------
cmake cmake version 2.8.12.2
vtk???
-------------------------------
Qt :http://qt-project.org/wiki/Install_Qt_5_on_Ubuntu
g++
------------------------------------------------------
OpenGl sudo apt-get install mesa-common-dev
sudo apt-get install libglu1-mesa-dev -y
home/ffmpeg : extracted files.
git
mesa 10.3.1 :http://www.paraview.org/Wiki/ParaView_And_Mesa_3D


make -j4 distclean # if in an existing build

autoreconf -fi

./configure \
    CXXFLAGS="-O2 -g -DDEFAULT_SOFTWARE_DEPTH_BITS=31" \
    CFLAGS="-O2 -g -DDEFAULT_SOFTWARE_DEPTH_BITS=31" \
    --disable-xvmc \
    --disable-glx \
    --disable-dri \
    --with-dri-drivers="" \
    --with-gallium-drivers="swrast" \
    --enable-texture-float \
    --disable-shared-glapi \
    --disable-egl \
    --with-egl-platforms="" \
    --enable-gallium-osmesa \
    --enable-gallium-llvm=yes \
    --with-llvm-shared-libs \
    --prefix=/work/apps/mesa/10.3.1/llvmpipe

sudo apt-get autoremove automake
sudo apt-get install automake

make -j2
sudo make -j4 install

-------------------------------------
--------------------------------------
Libraries have been installed in:
   /work/apps/mesa/10.3.1/llvmpipe/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
-----------------------------------------
-----------------------------------------


---------------------------------------------------------
-----------ffmpeg for ubuntu: discontinued in 14

sudo apt-get update
sudo apt-get -y install autoconf automake build-essential libass-dev libfreetype6-dev libgpac-dev \
  libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libx11-dev \
  libxext-dev libxfixes-dev pkg-config texi2html zlib1g-dev

    mkdir ~/ffmpeg_sources

-----sudo apt-get install yasm-----
cd ~/ffmpeg_sources
wget http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
tar xjvf ffmpeg-snapshot.tar.bz2
cd ffmpeg
PATH="$PATH:$HOME/bin" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure \
  --prefix="$HOME/ffmpeg_build" \
  --extra-cflags="-I$HOME/ffmpeg_build/include" \
  --extra-ldflags="-L$HOME/ffmpeg_build/lib" \
  --bindir="$HOME/bin" \
  --enable-gpl \
  --enable-libass \
  --enable-libfdk-aac \
  --enable-libfreetype \
  --enable-libmp3lame \
  --enable-libopus \
  --enable-libtheora \
  --enable-libvorbis \
  --enable-libvpx \
  --enable-libx264 \
  --enable-nonfree \
  --enable-x11grab
PATH="$PATH:$HOME/bin" make
make install
make distclean
hash -r

https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
--------------------------------------------------------------

Prepare directory for download
 # mkdir $HOME/projects
 # cd $HOME/projects

To download the source code
 # git clone git://paraview.org/ParaView.git ParaView
 # cd ParaView
 # git checkout -b trunk origin/master
 # git submodule init
 # git submodule update

To update the code
 # git fetch origin
 # git rebase origin/master
 #git submodule update
---------------------------------------------
sudo apt-get install cmake-curses-gui
-----------------------------------------------
mkdir $HOME/projects/ParaView-bin
cd $HOME/projects/ParaView-bin

ccmake $HOME/projects/ParaView
-----------Here configure the variables like qt path etc..
sudo apt-get install libxt-dev //to fix    X11_Xt_LIB could not be found. 


---------------------------qt problem
reinstall and run on Paraview directory where the cmake.txt files are
cmake QT_QMAKE_EXECUTABLE==/home/uma/Qt/5.3/gcc_64/bin/qmake .

1 comment:

  1. http://www.paraview.org/Wiki/ParaView:Build_And_Install#Checkout_Development_Version_from_git
    http://www.paraview.org/Wiki/ParaView_And_Mesa_3D
    http://www.cs.swarthmore.edu/~adanner/tips/cmake.php
    https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu#ffmpeg

    ReplyDelete

Followers