<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div class="BodyFragment"><font size="2"><span style="font-size:10pt;">
<div class="PlainText">Hello,<br>
<br>
I’m attempting to build GMSH with CGNS enabled. I’m doing this on a clean Ubuntu 12.04.04 LTS x86_64 desktop install, updated to the current packages as of today and with the following additional packages installed:<br>
<br>
cmake-curses-gui<br>
tcl-dev<br>
tk-dev<br>
libgl1-mesa-dev<br>
libglu1-mesa-dev<br>
libxmu-dev<br>
libhdf5-openmpi-dev<br>
g++<br>
gfortran<br>
<br>
CGNS is installed from source downloaded from the CGNS website, version 3.2.1 (latest release), and configured as per the attached CMakeCacheCGNS3.2.1.txt. The changes from defaults include building with CC=mpicc in the environment and CGNS_BUILD_CGNSTOOLS,
CGNS_ENABLE_64BIT, CGNS_ENABLE_FORTRAN, and CGNS_ENABLE_HDF5 all set ON.<br>
<br>
I then downloaded today’s SVN snapshot of GMSH, gmsh-2.8.4-svn-20140221-source, and built with everything set to defaults except for ENABLE_CGNS which is set ON. CC=mpicc remained set in the environment. The same error occurs with latest release as well.<br>
<br>
The build fails at the final linking following a ‘make’, outputting:<br>
<br>
Linking CXX executable gmsh<br>
CMakeFiles/gmsh.dir/Geo/GModelIO_CGNS.cpp.o: In function `GModel::readCGNS(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':<br>
GModelIO_CGNS.cpp:(.text+0x1f92): undefined reference to `FlGui::instance(int, char**)'<br>
GModelIO_CGNS.cpp:(.text+0x1fbf): undefined reference to `cgnsImport()'<br>
CMakeFiles/gmsh.dir/Geo/GModelIO_CGNS.cpp.o: In function `FlGui::available()':<br>
GModelIO_CGNS.cpp:(.text._ZN5FlGui9availableEv[FlGui::available()]+0x7): undefined reference to `FlGui::_instance'<br>
collect2: ld returned 1 exit status<br>
make[2]: *** [gmsh] Error 1<br>
make[1]: *** [CMakeFiles/gmsh.dir/all] Error 2<br>
make: *** [all] Error 2<br>
tmb1@precise64:~/buidl/gmsh-build$<br>
<br>
I attach the CMakeCacheCGNS.txt, and the CMake output and error logs for information; please let me know if anything else would be useful to track down and solve this error. I’m not particularly experienced with using CMake hence not sure what the most appropriate
output files are for information.<br>
<br>
As a bit of additional information - I’ve attempted the same build with CGNS configured with everything left at defaults and hit the same link-time error, and have attempted to build with the Ubuntu 12.04.04 cgns devel package, which failed much earlier in
the build. The above is the furthest I’ve got with any gmsh/cgns combination, and I guess the most relevant for debugging this.<br>
<br>
Thanks in advance for any help you can give me with this, and best regards,<br>
<br>
Tim Greaves<br>
<br>
</div>
</span></font></div>
<div class="BodyFragment"><font size="2"><span style="font-size:10pt;">
<div class="PlainText"><br>
<br>
<br>
</div>
</span></font></div>
</body>
</html>