No assemblies, no demos after ./autoge.sh

Passenger

18-04-2006 22:40:11

It's me again :)

I have no more dependency problems, but i get errors when building.
It's always the same error:
make[2]: debug: Command not found
make[2]: [../Bin/Debug/OgreDotNet.dll] Error 127 (ignored)

There are no dll's or exe's in the Bin/Debug directory after execution.
Did I miss something?

rastaman

18-04-2006 23:39:15

thats because in your other thread:
That did it :)

checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for MONO_DEPENDENCY... yes
checking for mono... no
checking for gmcs... no
checking for OGRE... yes


thanks again for your help :)


It is not finding the programs, mono and gmcs, in you path.
Are you sure that mono is in the path with the shell you are running autogen.sh?

check here an explenation of AC_PATH_PROG

rastaman

19-04-2006 20:08:32

Passenger: try this for the mono checks section

dnl find mono and mcs
AC_ARG_VAR([has_mono], [is Mono Installed])
AC_ARG_VAR([MONO], [path to mono])
AC_ARG_VAR([MCS], [path to gmcs or mcs])
MONO_REQUIRED_VERSION=1.1.9
PKG_CHECK_MODULES(MONO_DEPENDENCY, mono >= $MONO_REQUIRED_VERSION, [has_mono=true], [has_mono=false])
if test x$has_mono = xtrue; then
AC_PATH_PROG([MONO], [mono], [no], [$PATH:$MANPATH])
AC_PATH_PROG([MCS], [gmcs], [no] , [$PATH:$MANPATH])
if test x$MCS = xno; then
AC_PATH_PROG([MCS], [mcs], [AC_MSG_ERROR([mcs Not Found])] , [$PATH:$MANPATH])
fi
if test `uname -s` = "Darwin"; then
LIB_PREFIX=
LIB_SUFFIX=.dylib
else
LIB_PREFIX=.so
LIB_SUFFIX=
fi
else
AC_MSG_ERROR([mono 1.1.9 or higher is required])
fi



Then re-run autogen.sh and see if it can find the programs.
If it still cannot find mono and ether gmcs or mcs then where it says
[$PATH:$MANPATH]
change to just
[$MANPATH]

Thats about all i got :).

Passenger

21-04-2006 20:36:39

Hi Rastaman :)

Thanks for your post but it looks like sudo didn't have the rights
to execute gmcs or mono...

Now autogen.sh complains that theres no OGRE.pc in my $PKG_CONFIG_PATH. When I echo $PKG_CONFIG_PATH I only get "/opt/mono-1.1.15/lib/pkgconfig:".
This means all other paths like /usr/local/lib/pkgconfig are missing. Looks like I did something wrong with the mono setup. But I should be able to figure out how to set the right paths in my ~/.bashrc

rastaman

21-04-2006 23:17:35

lol oops :oops:
I need to read befor i hit submit. Look how many times i pasted that. I thought that "MANPATH" was "MONOPATH". Just saw the M and PATH, I was at work on windows :/

Thanks for your post but it looks like sudo didn't have the rights
to execute gmcs or mono...

are you running autogen.sh as root? you should not need to sudo anything but make install and that should not run gmcs or mono.

what distro are you running?
I'm on Kubuntu and I install mono from source so it goes to /usr/local.
I did use the debian installer once and i thought it made a MONOPATH env variable to the bin dir then appended that to PATH. Maybe you should make one and chage the MANPATH to MONOPATH in my other post.

put in your ~/.bashrc
export MONOPATH="/opt/mono-1.1.15/bin"

then in configure.in.in
dnl find mono and mcs
AC_ARG_VAR([has_mono], [is Mono Installed])
AC_ARG_VAR([MONO], [path to mono])
AC_ARG_VAR([MCS], [path to gmcs or mcs])
MONO_REQUIRED_VERSION=1.1.9
PKG_CHECK_MODULES(MONO_DEPENDENCY, mono >= $MONO_REQUIRED_VERSION, [has_mono=true], [has_mono=false])
if test x$has_mono = xtrue; then
AC_PATH_PROG([MONO], [mono], [no], [$PATH:$MONOPATH])
AC_PATH_PROG([MCS], [gmcs], [no] , [$PATH:$MONOPATH])
if test x$MCS = xno; then
AC_PATH_PROG([MCS], [mcs], [AC_MSG_ERROR([mcs Not Found])] , [$PATH:$MONOPATH])
fi
if test `uname -s` = "Darwin"; then
LIB_PREFIX=
LIB_SUFFIX=.dylib
else
LIB_PREFIX=.so
LIB_SUFFIX=
fi
else
AC_MSG_ERROR([mono 1.1.9 or higher is required])
fi


Now autogen.sh complains that theres no OGRE.pc in my $PKG_CONFIG_PATH. When I echo $PKG_CONFIG_PATH I only get "/opt/mono-1.1.15/lib/pkgconfig:".
This means all other paths like /usr/local/lib/pkgconfig are missing. Looks like I did something wrong with the mono setup. But I should be able to figure out how to set the right paths in my ~/.bashrc

maybe you did an export PKG_CONFIG_PATH... But if every shell you open gives this then your .bashrc is mestup.

Passenger

22-04-2006 14:33:10

I'll try this later today, since I'm busy right now.
I just wanted to tell yout that I used the latest installer from the mono homepage.
And the installer mentioned that it would change my .bashrc.
My distro is ubuntu breezy badger.

That's whats been added at the end of my .bashrc:
export PATH="/opt/mono-1.1.15/bin:$PATH"

export PKG_CONFIG_PATH="/opt/mono-1.1.15/lib/pkgconfig:$PKG_CONFIG_PATH"

export MANPATH="/opt/mono-1.1.15/share/man:$MANPATH"

export LD_LIBRARY_PATH="/opt/mono-1.1.15/lib:$LD_LIBRARY_PATH"

Passenger

22-04-2006 16:20:15

Ok, I fixed my .bashrc
Don't know what screwed it, though.

Maybe the mono installer did. Or it was me :)

Last thing I did before fiddling around with ogredotnet was
compiling OGRE and installing it via checkinstall....

Added
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig
in my .bashrc

It's all there now...
Thanks again for your efforts :)