octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: project progress


From: c.
Subject: Re: project progress
Date: Thu, 12 Sep 2013 12:37:56 +0200

On 12 Sep 2013, at 12:29, c. <address@hidden> wrote:

> 
> On 12 Sep 2013, at 12:27, c. <address@hidden> wrote:
> 
>> 
>> On 12 Sep 2013, at 11:46, marco Vassallo <address@hidden> wrote:
>> 
>>> Ok thanks,
>>> 
>>> On my systems the HyperElasticity examples work fine.
>>> I'm sure that the error is generated because of the form.h file is not 
>>> included.
>>> In fact, I can reproduce your error if I delete the form.h file.
>> 
>> I tried to run the makefile from the shell:
>> 
>> ----------------------------------------
>> Elasticity$ make -f Makefile_HyperElasticity 
>> 
>> mkoctfile HyperElasticity_BilinearForm.cc 
>> -I/Users/carlo/octave/fem-fenics-0.0.0/private/ -I.   -ldolfin
>> HyperElasticity_BilinearForm.cc: In function ‘octave_value_list 
>> FHyperElasticity_BilinearForm(const octave_value_list&, int)’:
>> HyperElasticity_BilinearForm.cc:24: error: ‘form_type_loaded’ was not 
>> declared in this scope
>> HyperElasticity_BilinearForm.cc:26: error: ‘form’ has not been declared
>> HyperElasticity_BilinearForm.cc:85: error: expected type-specifier before 
>> ‘form’
>> HyperElasticity_BilinearForm.cc:85: error: expected `;' before ‘form’
>> make: *** [HyperElasticity_BilinearForm.oct] Error 1
>> ----------------------------------------
>> 
>> but the file form.h is in /Users/carlo/octave/fem-fenics-0.0.0/private/:
>> 
>> ----------------------------------------
>> Elasticity$ ls /Users/carlo/octave/fem-fenics-0.0.0/private/
>> Plot_2d.h            boundarycondition.h     expression.h            
>> function.h              generate_fs.m           generate_lhs.m          
>> generate_rhs.m
>> Plot_3d.h            coefficient.h           form.h                  
>> functionspace.h         generate_fun.m          generate_makefile.m     
>> mesh.h
>> 
>> Elasticity$ 
>> ----------------------------------------
>> 
>> so the problem is something else.
>> 
>> c.
> 
> 
> It seems the problem is with the parsing of options by mkoctfile, because the 
> following works:
> 
> CPPFLAGS=-I/Users/carlo/octave/fem-fenics-0.0.0/private/:${CPPFLAGS} 
> mkoctfile HyperElasticity_BilinearForm.cc  -I.   -ldolfin
> 
> c.


Here's how the two commands are expanded on my system

Elasticity$ mkoctfile -v -I/Users/carlo/octave/fem-fenics-0.0.0/private/ 
HyperElasticity_BilinearForm.cc  -I.   -ldolfin
/usr/bin/g++ -c -D_THREAD_SAFE 
-I/Applications/FEniCS.app/Contents/Resources/include -I/opt/local/include 
-fPIC 
-I/Applications/FEniCS.app/Contents/Resources/include/octave-3.7.6+/octave/.. 
-I/Applications/FEniCS.app/Contents/Resources/include/octave-3.7.6+/octave 
-I/Applications/FEniCS.app/Contents/Resources/include 
-I/Users/johannr/fenics-1.2.0/local/include -isystem 
/opt/local/libexec/llvm-3.1/include -pipe -O2 -m64 -D_THREAD_SAFE -pthread 
-I/Users/carlo/octave/fem-fenics-0.0.0/private/ -I. 
HyperElasticity_BilinearForm.cc -o HyperElasticity_BilinearForm.o
HyperElasticity_BilinearForm.cc: In function ‘octave_value_list 
FHyperElasticity_BilinearForm(const octave_value_list&, int)’:
HyperElasticity_BilinearForm.cc:24: error: ‘form_type_loaded’ was not declared 
in this scope
HyperElasticity_BilinearForm.cc:26: error: ‘form’ has not been declared
HyperElasticity_BilinearForm.cc:85: error: expected type-specifier before ‘form’
HyperElasticity_BilinearForm.cc:85: error: expected `;' before ‘form’

Elasticity$ CPPFLAGS=-I/Users/carlo/octave/fem-fenics-0.0.0/private/ mkoctfile 
-v HyperElasticity_BilinearForm.cc  -I.   -ldolfin
/usr/bin/g++ -c -I/Users/carlo/octave/fem-fenics-0.0.0/private/ -fPIC 
-I/Applications/FEniCS.app/Contents/Resources/include/octave-3.7.6+/octave/.. 
-I/Applications/FEniCS.app/Contents/Resources/include/octave-3.7.6+/octave 
-I/Applications/FEniCS.app/Contents/Resources/include 
-I/Users/johannr/fenics-1.2.0/local/include -isystem 
/opt/local/libexec/llvm-3.1/include -pipe -O2 -m64 -D_THREAD_SAFE -pthread -I. 
HyperElasticity_BilinearForm.cc -o HyperElasticity_BilinearForm.o
/opt/local/bin/g++-mp-4.7 -bundle -bundle_loader 
/Applications/FEniCS.app/Contents/Resources/bin/octave-3.7.6+ -o 
HyperElasticity_BilinearForm.oct HyperElasticity_BilinearForm.o -ldolfin 
-L/Applications/FEniCS.app/Contents/Resources/lib/octave/3.7.6+ 
-L/Applications/FEniCS.app/Contents/Resources/lib -loctinterp -loctave 
-L/Applications/FEniCS.app/Contents/Resources/lib -L/opt/local/lib -m64

it seems the order is important! probably because on my system I have:

$ ls /usr/include/form.h 
/usr/include/form.h

which seems to be part of ncurses.

c.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]