Hi Stephan:

Yes, you must use the configure script:

yourshell $   ./configure --prefix=/usr

There are many  options, but I think
this would be enough to create the appropriate Makefile under 
tests/ 

By the way, you can also use the first way to compile and link
the tests:

yourshell $  make known_results.dac
  CXX    known_results.o
/bin/sh ../libtool --silent --tag=CXX   --mode=link g++  
-O3 -malign-double -fstrict-aliasing -march=native  
 -o known_results.dac known_results.o ../src/libmeep.la -lhdf5 -lz -lgsl
 -L/usr/lib/gcc/i686-pc-linux-gnu/4.4.4
 -L/usr/lib/gcc/i686-pc-linux-gnu/4.4.4/../../../../i686-pc-linux-gnu/lib 
-L/usr/lib/gcc/i686-pc-linux-gnu/4.4.4/../../.. -lharminv
 -llapack -lcblas -lblas -latlas -lgfortranbegin -lgfortran -lm   -lfftw3 -lm

I am using Gentoo Linux, with gcc version 4.4.4 

Hope this helps!

Regards,

Rafael Gómez Alcalá
Asociated Professor
Universidad de Extremadura
Escuela Politécnica
E10003 Cáceres (SPAIN)




On 11:29 Mon 17 Jan     , Stefan Kapser wrote:
> Hi Rafael,
> thanks a lot for your quick reply! I downloaded meep-1.1.1.tar.gz from the 
> website and extracted everything. What exactly do you mean with generating 
> a complete configuration using the configure program? There is a shell 
> script called configure, do you mean that one? And what exactly should I do 
> with it?
> Thanks a lot!
> Stefan
>
>
>
> On 01/17/2011 11:15 AM, [email protected] wrote:
>> Hi Stefan:
>>
>> My suggestion is:
>>
>> 1. Download the source package (meep -whatever- .tar.gz) and extract
>> the complete directory structure.
>> 2. Generate a complete compilation configuration using configure program
>> 3. Inside "test" directory use method 2) outlined down (g++ `pkg-config 
>> ...etc)
>>
>> This worked for me.
>>
>> Regards,
>>
>> Rafael Gómez Alcalá
>> Asociated Professor
>> Universidad de Extremadura
>> Escuela Politécnica
>> E10003 Cáceres (SPAIN)
>>
>>
>>
>> On 10:55 Mon 17 Jan     , Stefan Kapser wrote:
>>> Hi,
>>> I hope you can help me with this problem:
>>> Currently I am just trying to compile the first test program from the 
>>> Meep
>>> C++ Tutorial, but can't really manage to do so.
>>> I tryed the three ways given in se section Compiling:
>>>
>>> 1) make test.dac
>>>
>>> gave me:
>>>
>>> make: *** No rule to make target `test.dac'.  Stop.
>>>
>>> 2) g++ `pkg-config --cflags meep` test.cpp -o test `pkg-config --libs 
>>> meep`
>>>
>>> gave me:
>>>
>>> Package meep was not found in the pkg-config search path.
>>> Perhaps you should add the directory containing `meep.pc'
>>> to the PKG_CONFIG_PATH environment variable
>>> No package 'meep' found
>>> Package meep was not found in the pkg-config search path.
>>> Perhaps you should add the directory containing `meep.pc'
>>> to the PKG_CONFIG_PATH environment variable
>>> No package 'meep' found
>>> test.cpp:1:20: error: meep.hpp: No such file or directory
>>> test.cpp:2: error: ‘meep’ is not a namespace-name
>>> test.cpp:2: error: expected namespace-name before ‘;’ token
>>> test.cpp: In function ‘int main(int, char**)’:
>>> test.cpp:5: error: ‘initialize’ was not declared in this scope
>>> test.cpp:5: error: expected ‘;’ before ‘mpi’
>>> test.cpp:7: error: ‘grid_volume’ was not declared in this scope
>>> test.cpp:7: error: expected ‘;’ before ‘v’
>>> test.cpp:8: error: ‘structure’ was not declared in this scope
>>> test.cpp:8: error: expected ‘;’ before ‘s’
>>> test.cpp:9: error: ‘fields’ was not declared in this scope
>>> test.cpp:9: error: expected ‘;’ before ‘f’
>>> test.cpp:11: error: ‘f’ was not declared in this scope
>>> test.cpp:11: error: ‘Dielectric’ was not declared in this scope
>>> test.cpp:11: error: ‘v’ was not declared in this scope
>>> test.cpp:14: error: ‘gaussian_src_time’ was not declared in this 
>>> scope
>>> test.cpp:14: error: expected ‘;’ before ‘src’
>>> test.cpp:15: error: ‘Ey’ was not declared in this scope
>>> test.cpp:15: error: ‘src’ was not declared in this scope
>>> test.cpp:15: error: ‘vec’ was not declared in this scope
>>> test.cpp:20: error: ‘Hz’ was not declared in this scope
>>> test.cpp: At global scope:
>>> test.cpp:25: error: ISO C++ forbids declaration of ‘vec’ with no type
>>> test.cpp:25: error: expected ‘,’ or ‘...’ before ‘&’ token
>>> test.cpp: In function ‘double eps(int)’:
>>> test.cpp:26: error: ‘p’ was not declared in this scope
>>>
>>>
>>> So I guess the meep stuff is not in the past where my compiler is looking
>>> for it. I installed Meep on Ubuntu via the Ubuntu Software Center and did
>>> not get to pick anything during the installation.
>>> I would be thankful for tipps how to make this work.
>>> Thanks a lot!
>>> Stefan
>>>
>>> _______________________________________________
>>> meep-discuss mailing list
>>> [email protected]
>>> http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to