On Nov 20, 2012, at 10:04 AM, Robert <libm...@robertweidlich.de> wrote:

> Hello,
> 
> yes that works. But I have discovered some other issues:
> - The installed libmesh-config script does not work, if it is called using
> a relative file path. Removing "$script_path" from line 37 fixes this.

> - In my opinion the installed stuff should follow somehow the FHS, so
> there are no problems using prefix=/usr/local or even prefix=/ (as
> packagers for e.g. Debian would do).

Good input, I'll review the latest FHS document - what in particular stands out 
as needing to be changed? 

> - When using the default configuration the libmesh shared library is
>  build against openmp. When using the pkg-config files to integrate
>  libmesh into my application the link process fails with:
> 
> /tmp/libmesh/lib/x86_64-suse-linux-gnu_opt/libmesh.so: undefined reference to 
> `GOMP_parallel_start'                                                         
>                                                                               
>                                       
> /tmp/libmesh/lib/x86_64-suse-linux-gnu_opt/libmesh.so: undefined reference to 
> `GOMP_single_start'
> /tmp/libmesh/lib/x86_64-suse-linux-gnu_opt/libmesh.so: undefined reference to 
> `GOMP_barrier'
> /tmp/libmesh/lib/x86_64-suse-linux-gnu_opt/libmesh.so: undefined reference to 
> `omp_get_thread_num'
> /tmp/libmesh/lib/x86_64-suse-linux-gnu_opt/libmesh.so: undefined reference to 
> `GOMP_parallel_end'
> /tmp/libmesh/lib/x86_64-suse-linux-gnu_opt/libmesh.so: undefined reference to 
> `omp_get_num_threads'
> collect2: ld returned 1 exit status
> 
>  so there is a linker flag missing at least in the pkg-config file

Looks like the OpenMP configuration is not making it in there - I'll fix it.  
Sorry, I've primarily been using the libmesh-config script.

> And one last thing: Does any know a possiblity to use the pkg-config 
> version selector to switch between dbg and opt builds?
> 

As implemented now, no.  There is a libmesh.pc per method, and they get 
installed inside the lib directory for that method.

I could refactor it to use e.g.

$ pkg-config libmesh --define-variable=METHOD=dbg

and default to opt - would that be preferable?

-Ben



------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Libmesh-devel mailing list
Libmesh-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-devel

Reply via email to