hichoudeiMac:examples hichou$ cd step-1
hichoudeiMac:step-1 hichou$ cmake .
-- Autopilot invoked
-- Run $ make info to print a detailed help message
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/hichou/Documents/OpenSourceWare/FEMtool/dealii/examples/step-1
hichoudeiMac:step-1 hichou$ make
Scanning dependencies of target step-1
[ 50%] Building CXX object CMakeFiles/step-1.dir/step-1.cc.o
[100%] Linking CXX executable step-1
[100%] Built target step-1
hichoudeiMac:step-1 hichou$ ./step-1
dyld: Symbol not found: _klu_solve
Referenced from: /usr/local/opt/sundials/lib/libsundials_idas.1.dylib
Expected in: flat namespace
in /usr/local/opt/sundials/lib/libsundials_idas.1.dylib
Abort trap: 6
hichoudeiMac:step-1 hichou$
bash-3.2$ ./step-1
dyld: Library not loaded: /usr/local/opt/suite-sparse/lib/libsuitesparseconfig.4.5.5.dylib
Referenced from: /Users/hichou/Documents/OpenSourceWare/FEMTool/dealii/lib/libdeal_II.9.0.0-pre.dylib
Reason: image not found
Abort trap: 6
Hungi於 2018年1月5日星期五 UTC+8下午9時03分39秒寫道:after I updateing sundials through Homebrew : failure were changed :bash-3.2$ ./step-1
dyld: Library not loaded: /usr/local/opt/suite-sparse/lib/libsuitesparseconfig.4.5.5.dylib
Referenced from: /Users/hichou/Documents/OpenSourceWare/FEMTool/dealii/lib/libdeal_II.9.0.0-pre.dylib
Reason: image not found
Abort trap: 6
/usr/local/opt/suite-sparse/lib/ , I do not have libsuitesparseconfig.4.5.5.dylib but libsuitesparseconfig.5.1.0.dylib and libsuitesparseconfig.5.dylib , libsuitesparseconfig.dylib instead ?
/usr/local/opt/suite-sparse/lib/ , I do not have libsuitesparseconfig.4.5.5.dylib but libsuitesparseconfig.5.1.0.dylib and libsuitesparseconfig.5.dylib , libsuitesparseconfig.dylib instead ?
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dealii+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
hichoudeiMac:step-1 hichou$ cmake .
CMake Error at CMakeLists.txt:30 (MESSAGE):
*** Could not locate a (sufficiently recent) version of deal.II. ***
You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake
or set an environment variable "DEAL_II_DIR" that contains this path.
-- Configuring incomplete, errors occurred!
when I try to locate my path to deal.II as requested , I even could not find deal.II in /usr/local directory ( where it is assigned by me to install deal.II).
I list my enviromemnt variable below :
hichoudeiMac:Homebrew hichou$ printenv
DEAL_II_BUNDLE=/Applications/deal.II-8.5-brew.app
TERM_PROGRAM=Apple_Terminal
SHELL=/bin/bash
TERM=xterm-256color
TMPDIR=/var/folders/hf/ylwlk7f94d19njtz1y3jnwdh0000gn/T/
Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.n7KAlzSuIW/Render
TERM_PROGRAM_VERSION=400
OLDPWD=/usr/local
DEAL_II_RESOURCES=/Applications/deal.II-8.5-brew.app/Contents/Resources
TERM_SESSION_ID=1B0D157F-8009-4D86-98FB-6273322E2D2A
USER=hichou
WEB_URL=http://www.coursera.org
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.9myLObZhUa/Listeners
MACHINE_TYPE=mac-gcc-4.2
GEOS_DIR=/usr/local/geos
PATH=/Users/hichou/Documents/OpenSourceWare/FEMtool/dealii-8.5.1:usr/local/Cellar/gcc/7.2.0/libexec/gcc/x86_64-apple-darwin16.7.0/7.2.0:/Users/hichou/pgmpy:/usr/local/bin:/Users/hichou/Xerces/xerces1.4.3/xerces-1.4.3.jar:/Users/hichou/Documents/Java/XMLJava/samples:/usr/local/Cellar/xerces-c/3.1.4/bin:/usr/local/opt/qt/bin:/Users/hichou/Documents/NWTC/LandBase/FAST_v8.16.00a-bjj/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin
PWD=/usr/local/Homebrew
XPC_FLAGS=0x0
XPC_SERVICE_NAME=0
HOME=/Users/hichou
SHLVL=2
LOGNAME=hichou
LC_CTYPE=UTF-8
DISPLAY=/private/tmp/com.apple.launchd.dQ0pZBe2pA/org.macosforge.xquartz:0
_=/usr/bin/printenv
hichoudeiMac:Homebrew hichou$ echo $SHELL
/bin/bash
Just do not know what is possible way to proceed ....
-- The C compiler identification is AppleClang 9.0.0.9000039
-- The CXX compiler identification is AppleClang 9.0.0.9000039
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Autopilot invoked
###
#
# Project step-1 set up with deal.II-8.5.1 found at
# /Users/hichou/documents/OpenSourceWare/FEMtool/dealii-8.5.1
#
# CMAKE_BUILD_TYPE: Debug
#
# You can now run
# $ make - to compile and link the program
# $ make run - to (compile, link and) run the program
#
# $ make sign - to sign the executable with the supplied OSX developer key
#
# $ make debug - to switch the build type to 'Debug'
# $ make release - to switch the build type to 'Release'
#
# $ make edit_cache - to change (cached) configuration variables
# and rerun the configure and generate phases of CMake
#
# $ make strip_comments - to strip the source files in this
# directory off the documentation comments
# $ make clean - to remove the generated executable as well as
# all intermediate compilation files
# $ make runclean - to remove all output generated by the program
# $ make distclean - to clean the directory from _all_ generated
# files (includes clean, runclean and the removal
# of the generated build system)
# $ make info - to view this message again
#
# Have a nice day!
#
###
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/hichou/documents/OpenSourceWare/FEMTool/dealii-8.5.1/examples/step-1
Then I use make to build with following warning and progra stop
hichoudeiMac:step-1 hichou$ make
Scanning dependencies of target step-1
[ 50%] Building CXX object CMakeFiles/step-1.dir/step-1.cc.o
In file included from /Users/hichou/documents/OpenSourceWare/FEMtool/dealii-8.5.1/examples/step-1/step-1.cc:22:
/Users/hichou/documents/OpenSourceWare/FEMtool/dealii-8.5.1/include/deal.II/grid/tria.h:31:1: warning:
unknown warning group '-Wunused-but-set-parameter', ignored
[-Wunknown-warning-option]
DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
^
/Users/hichou/documents/OpenSourceWare/FEMtool/dealii-8.5.1/include/deal.II/base/config.h:307:66: note:
expanded from macro 'DEAL_II_DISABLE_EXTRA_DIAGNOSTICS'
_Pragma("GCC diagnostic ignored \"-Winfinite-recursion\"") \
^
<scratch space>:72:25: note: expanded from here
GCC diagnostic ignored "-Wunused-but-set-parameter"
^
In file included from /Users/hichou/documents/OpenSourceWare/FEMtool/dealii-8.5.1/examples/step-1/step-1.cc:22:
/Users/hichou/documents/OpenSourceWare/FEMtool/dealii-8.5.1/include/deal.II/grid/tria.h:31:1: warning:
unknown warning group '-Wunused-but-set-variable', ignored
[-Wunknown-warning-option]
/Users/hichou/documents/OpenSourceWare/FEMtool/dealii-8.5.1/include/deal.II/base/config.h:311:66: note:
expanded from macro 'DEAL_II_DISABLE_EXTRA_DIAGNOSTICS'
_Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") \
^
<scratch space>:73:25: note: expanded from here
GCC diagnostic ignored "-Wunused-but-set-variable"
^
In file included from /Users/hichou/documents/OpenSourceWare/FEMtool/dealii-8.5.1/examples/step-1/step-1.cc:22:
/Users/hichou/documents/OpenSourceWare/FEMtool/dealii-8.5.1/include/deal.II/grid/tria.h:31:1: warning:
unknown warning group '-Wexpansion-to-defined', ignored
[-Wunknown-warning-option]
/Users/hichou/documents/OpenSourceWare/FEMtool/dealii-8.5.1/include/deal.II/base/config.h:312:66: note:
expanded from macro 'DEAL_II_DISABLE_EXTRA_DIAGNOSTICS'
_Pragma("GCC diagnostic ignored \"-Wunused-but-set-variable\"") \
^
<scratch space>:73:25: note: expanded from here
GCC diagnostic ignored "-Wexpansion-to-defined"
^
In file included from /Users/hichou/documents/OpenSourceWare/FEMtool/dealii-8.5.1/examples/step-1/step-1.cc:22:
/Users/hichou/documents/OpenSourceWare/FEMtool/dealii-8.5.1/include/deal.II/grid/tria.h:31:1: warning:
unknown warning group '-Wmisleading-indentation', ignored
[-Wunknown-warning-option]
/Users/hichou/documents/OpenSourceWare/FEMtool/dealii-8.5.1/include/deal.II/base/config.h:314:66: note:
expanded from macro 'DEAL_II_DISABLE_EXTRA_DIAGNOSTICS'
_Pragma("GCC diagnostic ignored \"-Wignored-attributes\"") \
^
<scratch space>:73:25: note: expanded from here
GCC diagnostic ignored "-Wmisleading-indentation"
^
In file included from /Users/hichou/documents/OpenSourceWare/FEMtool/dealii-8.5.1/examples/step-1/step-1.cc:22:
/Users/hichou/documents/OpenSourceWare/FEMtool/dealii-8.5.1/include/deal.II/grid/tria.h:31:1: warning:
unknown warning group '-Wint-in-bool-context', ignored
[-Wunknown-warning-option]
/Users/hichou/documents/OpenSourceWare/FEMtool/dealii-8.5.1/include/deal.II/base/config.h:318:66: note:
expanded from macro 'DEAL_II_DISABLE_EXTRA_DIAGNOSTICS'
_Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"") \
^
<scratch space>:73:25: note: expanded from here
GCC diagnostic ignored "-Wint-in-bool-context"
^
5 warnings generated.
make[2]: *** No rule to make target `/Users/hichou/Documents/OpenSourceWare/FEMTool/dealii-8.5.1/lib/libdeal_II.g.8.5.1.dylib', needed by `step-1'. Stop.
make[1]: *** [CMakeFiles/step-1.dir/all] Error 2
make: *** [all] Error 2
Hungi於 2018年1月6日星期六 UTC+8下午12時07分38秒寫道:
hichoudeiMac:step-1 hichou$ make
[ 50%] Linking CXX executable step-1
[100%] Built target step-1
hichoudeiMac:step-1 hichou$ ./step-1
Grid written to grid-1.eps