<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://ims.ut.ee/index.php?action=history&amp;feed=atom&amp;title=HermesInstall</id>
	<title>HermesInstall - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://ims.ut.ee/index.php?action=history&amp;feed=atom&amp;title=HermesInstall"/>
	<link rel="alternate" type="text/html" href="https://ims.ut.ee/index.php?title=HermesInstall&amp;action=history"/>
	<updated>2026-04-25T13:09:00Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.2</generator>
	<entry>
		<id>https://ims.ut.ee/index.php?title=HermesInstall&amp;diff=7702&amp;oldid=prev</id>
		<title>Veix: Created page with 'Here are described some problems/solutions that came up while I was trying to compile Hermes3D software with GNU compiler in 64bit Debian Linux. The installation was performed un…'</title>
		<link rel="alternate" type="text/html" href="https://ims.ut.ee/index.php?title=HermesInstall&amp;diff=7702&amp;oldid=prev"/>
		<updated>2010-10-29T14:36:25Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;Here are described some problems/solutions that came up while I was trying to compile Hermes3D software with GNU compiler in 64bit Debian Linux. The installation was performed un…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Here are described some problems/solutions that came up while I was trying to compile Hermes3D software with GNU compiler in 64bit Debian Linux.&lt;br /&gt;
The installation was performed under user privileges, so all needed packages were installed under user home directory.&lt;br /&gt;
One problem is cmake and the fact that sometimes it could not find required packages properly.&lt;br /&gt;
&lt;br /&gt;
==Problem 1 - BLAS NOT FOUND==&lt;br /&gt;
I had successfully installed Atlas BLAS and the script &amp;lt;CMAKE INSTALLATION DIR&amp;gt;/Modules/FindBLAS.cmake&lt;br /&gt;
couldn't find it. &lt;br /&gt;
Solution is based on [http://cmake.3232098.n2.nabble.com/problem-with-FindBLAS-cmake-looking-for-cblas-dgemm-td3270966.html this helpful post].&lt;br /&gt;
Find the following section in FindBlas.cmake:&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 # BLAS in ATLAS library? (http://math-atlas.sourceforge.net/)&lt;br /&gt;
  check_fortran_libraries(&lt;br /&gt;
  BLAS_LIBRARIES&lt;br /&gt;
  BLAS&lt;br /&gt;
  cblas_dgemm&lt;br /&gt;
  &amp;quot;&amp;quot;&lt;br /&gt;
  &amp;quot;cblas;f77blas;atlas&amp;quot;&lt;br /&gt;
  &amp;quot;&amp;quot;&lt;br /&gt;
  )&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and change &amp;quot;cblas_dgemm&amp;quot; to &amp;quot;dgemm&amp;quot;. Worked for me.&lt;br /&gt;
&lt;br /&gt;
==Problem 2 - Flag -fPIC==&lt;br /&gt;
Hermes builds shared libraries and all libraries that are linked must be compiled with -fPIC flag.&lt;br /&gt;
Otherwise compiler outputs something like this:&lt;br /&gt;
 relocation R_X86_64_32 against `a local symbol' can not be used&lt;br /&gt;
 when making a shared object; recompile with -fPIC .libs/assert.o: could not&lt;br /&gt;
 read symbols: Bad value&lt;br /&gt;
&lt;br /&gt;
So I recompiled with -fPIC and got rid of this problem.&lt;br /&gt;
Read more from [http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1&amp;amp;chap=3 this page].&lt;br /&gt;
&lt;br /&gt;
==Problem 3 - SuiteSparse libraries were not linked==&lt;br /&gt;
So I tried to link them &amp;quot;manually&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Instead of running 'cmake' directly from command line i created simple script file:&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cmake \&lt;br /&gt;
-DSUITESPARSE_INCLUDE_DIR=/home/user/include \&lt;br /&gt;
-DCHOLMOD_LIBRARY=/home/user/lib/libcholmod.a \&lt;br /&gt;
-DCAMD_LIBRARY=/home/user/lib/libcamd.a \&lt;br /&gt;
-DCCOLAMD_LIBRARY=/home/user/lib/libccolamd.a \&lt;br /&gt;
-DCOLAMD_LIBRARY=/home/user/lib/libcolamd.a \&lt;br /&gt;
-DMETIS_LIBRARY=/home/user/lib/libmetis.a \&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also I replaced the WITH_UMFPACK section in src/CMakeLists.txt and added SuiteSparse libraries:&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
        if(WITH_UMFPACK)&lt;br /&gt;
                include_directories(${UMFPACK_INCLUDE_DIR} ${AMD_INCLUDE_DIR})&lt;br /&gt;
                include_directories($SUITESPARSE_INCLUDE_DIR)&lt;br /&gt;
                target_link_libraries(${BIN} ${UMFPACK_LIBRARY})&lt;br /&gt;
                target_link_libraries(${BIN} ${LAPACK_LIBRARIES})&lt;br /&gt;
                target_link_libraries(${BIN} ${CHOLMOD_LIBRARY})&lt;br /&gt;
                target_link_libraries(${BIN} ${CCOLAMD_LIBRARY})&lt;br /&gt;
                target_link_libraries(${BIN} ${CAMD_LIBRARY})&lt;br /&gt;
                target_link_libraries(${BIN} ${COLAMD_LIBRARY})&lt;br /&gt;
                target_link_libraries(${BIN} ${AMD_LIBRARY})&lt;br /&gt;
                target_link_libraries(${BIN} ${METIS_LIBRARY})&lt;br /&gt;
        endif(WITH_UMFPACK)&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
And it linked...&lt;/div&gt;</summary>
		<author><name>Veix</name></author>
	</entry>
</feed>