Hi Stephan, Perhaps there is a more fast solution: try to install the Ubuntu package "libmeep-dev" . It seems that is this package that contains meep.pc and installs it under /usr/lib/pkgconfig/
If this works, you can compile your cpp files with procedure number two, i.e., using pkg-config. Regards, Rafael Gómez Alcalá Asociated Professor Universidad de Extremadura Escuela Politécnica E10003 Cáceres (SPAIN) > Hi Stephan, > > The configure script creates a file named `meep.pc', the one > pkg-config is complaining about. First, check that meep.pc > exists under meep-1.1.1/ directory. > > My own version of meep.pc contains the following: > > prefix=/usr > exec_prefix=${prefix} > libdir=${exec_prefix}/lib > includedir=${prefix}/include > > Name: MEEP > Description: time-domain electromagnetic simulation > Version: 1.1.1 > Libs: -L${libdir} -lmeep -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 > Cflags: -I${includedir} -malign-double -march=native > > If you have this file, try to compile one of the test files under tests. If > you > don't have this file, could you post the "config.log" under meep-1.1.1/ > directory? > > It doesn't matter where you uncompress meep-1.1.1.tar.gz . You must check > also that > a Makefile is created under tests/ directory. > > Regards, > > Rafael Gómez Alcalá > Asociated Professor > Universidad de Extremadura > Escuela Politécnica > E10003 Cáceres (SPAIN) > >> Hi Rafael, >> I ran the configure script now, but still get the same resulting error >> code, when I try to compile using version 2): >> >> 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 >> >> Do I have to unpack the downloaded files in a special directory, because >> I just did that in a random directory? Do I have to do something with >> the files created by the action you suggested? >> >> As I wrote in the initial email version 1) brings this error on my computer: >> >> make: *** No rule to make target `test.dac'. Stop. >> >> Any ideas on that? >> Thanks a lot! >> Stefan >> >> >> >> On 01/17/2011 01:46 PM, rgome...@unex.es wrote: >>> 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, rgome...@unex.es 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 >>>>>> meep-discuss@ab-initio.mit.edu >>>>>> http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss >>> >>> _______________________________________________ >>> meep-discuss mailing list >>> meep-discuss@ab-initio.mit.edu >>> http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss >> > > > > _______________________________________________ > meep-discuss mailing list > meep-discuss@ab-initio.mit.edu > http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss > _______________________________________________ meep-discuss mailing list meep-discuss@ab-initio.mit.edu http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss