Accéder au contenu.
Menu Sympa

starpu-devel - Re: [Starpu-devel] Building StarPU from SVN on OSX

Objet : Developers list for StarPU

Archives de la liste

Re: [Starpu-devel] Building StarPU from SVN on OSX


Chronologique Discussions 
  • From: George Russell <george@codeplay.com>
  • To: starpu-devel@lists.gforge.inria.fr
  • Subject: Re: [Starpu-devel] Building StarPU from SVN on OSX
  • Date: Wed, 23 Feb 2011 21:47:13 +0100
  • List-archive: <http://lists.gforge.inria.fr/pipermail/starpu-devel>
  • List-id: "Developers list. For discussion of new features, code changes, etc." <starpu-devel.lists.gforge.inria.fr>

Hi,

as a follow up to this;

The autogen.sh script invokes libtool on OSX, but that should (on OSX) be glibtool

The OpenCL checks don't work on OSX, for two reasons; the includes are different, and the library linking system is also different.

The includes in C code to use OpenCL should be

#ifdef __APPLE__
#include <OpenCL/opencl.h>
#else
#include <CL/cl.h>
#endif

The command to compile (and link) the code uses OSX's framework switch to gcc e.g. gcc -o foo foo.c -framework OpenCL

Knowing that, however, is not much help to me in getting a working configure.ac ;-)

Cheers,
George

On 23/02/2011 17:31, George Russell wrote:
4D653678.7080007@codeplay.com"> Hi,

I was also attempting to build StarPU from SVN on OSX.

However, on running the autogen.sh, I get the following output:

imac:StarPU grrussel$ sh autogen.sh
libtool: unknown option character `-' in: --version
Usage: libtool -static [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-sacLT]
Usage: libtool -dynamic [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-o output] [-install_name name] [-compatibility_version #] [-current_version #] [-seg1addr 0x#] [-segs_read_only_addr 0x#] [-segs_read_write_addr 0x#] [-seg_addr_table <filename>] [-seg_addr_table_filename <file_system_path>] [-all_load] [-noall_load]
Libtool is missing, please install it.


It looks like I have the wrong libtool installed? It would be the default from the OSX developer tools.

Is there any special care needed in compiling on OSX?

Cheers,
George

_______________________________________________
Starpu-devel mailing list
Starpu-devel@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/starpu-devel




Archives gérées par MHonArc 2.6.19+.

Haut de le page