building opensim on a mac (nant problem)

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

building opensim on a mac (nant problem)

Paul Fishwick
I was planning this week on introducing students to opensim building, and wanted
to try out a build on the mac, since that is the only one not done so far. I have Xcode,
X11, and Mono 2.4.2.3 installed on OSX 10.5.  After the prebuild.sh (which required
adding an "x" perm to the checked out prebuild.sh file), I get the following error when I run nant,
whether or not I add the "export PKG_CONFIG_PATH ...." line inside of /usr/bin/nant. As
per the instructions on source code download, I am using svn checkout:




NAnt 0.86 (Build 0.86.2898.0; beta1; 12/8/2007)
Copyright (C) 2001-2007 Gerry Shaw


BUILD FAILED

Failed to initialize the 'Mono 3.5 Profile' (mono-3.5) target framework.

    Function call failed.
Expression: ${not pkg-config::exists('mono')}
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^

        'pkg-config' failed to start.

            ApplicationName='pkg-config', CommandLine='--exists mono', CurrentDirectory='/Library/Frameworks/Mono.framework/Versions/2.4.2.3/share/NAnt/bin/'

For more information regarding the cause of the build failure, run the build again in debug mode.

Try 'nant -help' for more information

Paul Fishwick, PhD
Professor
Director, Digital Arts and Sciences Programs
Computer and Information Sciences and Engineering Dept.
PO Box 116120
Bldg. CSE, Room 301
Gainesville, Florida 32611
Web: http://www.cise.ufl.edu/~fishwick
Ph: (352) 392-1414
Fax: (352) 392-1220


_______________________________________________
Opensim-users mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/opensim-users
Reply | Threaded
Open this post in threaded view
|

Re: building opensim on a mac (nant problem)

Jeff Ames
http://www.rustyrazorblade.com/2009/05/08/mono-install-bug-found-when-using-eclipse/
suggests that mono fails to create a link to pkg-config in a standard
bin directory, but doing so yourself may fix this:

  sudo ln -s /Library/Frameworks/Mono.framework/Commands/pkg-config
/usr/bin/pkg-config

Alternatively, adding /Library/Frameworks/Mono.framework/Commands/ to
your PATH might also work.

You may also run into a problem where pkg-config complains about not
finding glib-2.0.  If so, make sure you've also installed the mono
CSDK.  There's a link at http://www.go-mono.com/mono-downloads/download.html

Jeff
_______________________________________________
Opensim-users mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/opensim-users
Reply | Threaded
Open this post in threaded view
|

Re: building opensim on a mac (nant problem)

Paul Fishwick
Jeff
 Thanks for your note:

 (1) I  had already installed the Mono intel CSDK from the source you mention. This installed Mono
       version 2.4.2.3

(2) I also added a symbolic link as per your suggestion. To verify:

     ls -l /usr/bin/pkg-config

     lrwxr-xr-x  1 root  wheel  54 Aug 24 20:41 /usr/bin/pkg-config -> /Library/Frameworks/Mono.framework/Commands/pkg-config


(3) Doing "nant" at the shell where the prebuild.sh was done and where there
      is a ".nant" directory, I get:

      BUILD FAILED
 
      Failed to initialize the 'Mono 3.5 Profile' (mono-3.5) target framework.

      Unable to locate 'mono' module using pkg-config. Download the Mono development packages from http://www.mono-project.com/downloads/.


(4) A "mono -V" shows that Mono JIT compiler version 2.4.2.3 is installed

At the shell, "pkg-config" runs the Mono pkg-config command, so not sure .....

-paul


On Aug 24, 2009, at 8:24 PM, Jeff Ames wrote:

http://www.rustyrazorblade.com/2009/05/08/mono-install-bug-found-when-using-eclipse/
suggests that mono fails to create a link to pkg-config in a standard
bin directory, but doing so yourself may fix this:

 sudo ln -s /Library/Frameworks/Mono.framework/Commands/pkg-config
/usr/bin/pkg-config

Alternatively, adding /Library/Frameworks/Mono.framework/Commands/ to
your PATH might also work.

You may also run into a problem where pkg-config complains about not
finding glib-2.0.  If so, make sure you've also installed the mono
CSDK.  There's a link at http://www.go-mono.com/mono-downloads/download.html

Jeff
_______________________________________________
Opensim-users mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/opensim-users


Paul Fishwick, PhD
Professor
Director, Digital Arts and Sciences Programs
Computer and Information Sciences and Engineering Dept.
PO Box 116120
Bldg. CSE, Room 301
Gainesville, Florida 32611
Web: http://www.cise.ufl.edu/~fishwick
Ph: (352) 392-1414
Fax: (352) 392-1220


_______________________________________________
Opensim-users mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/opensim-users
Reply | Threaded
Open this post in threaded view
|

Re: building opensim on a mac (nant problem)

Jeff Ames
>       Failed to initialize the 'Mono 3.5 Profile' (mono-3.5) target
> framework.
>       Unable to locate 'mono' module using pkg-config. Download the Mono
> development packages from http://www.mono-project.com/downloads/.

I get that error if I don't set PKG_CONFIG_PATH, but it works with it
set.  I set mine in ~/.bashrc:

  export PKG_CONFIG_PATH=/Library/Frameworks/Mono.framework/Versions/Current/lib/pkgconfig:${PKG_CONFIG_PATH}

Jeff
_______________________________________________
Opensim-users mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/opensim-users