Building Mojoportal source using Mono

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
11/13/2005 2:37:26 AM
Gravatar
Total Posts 38

Building Mojoportal source using Mono

Hi All,

Are there instructions on how to build the SVN source for Mojoportal using Mono Development tool on Linux?

Or will I be required to compile the source on Windows and then port to Linux using Grasshopper?

Thanks

11/13/2005 3:05:37 AM
Gravatar
Total Posts 18439

Re: Building Mojoportal source using Mono

Dean Brettle has been building mojoportal for a long time using MonoDevelop so maybe he can offer some advice. I think he put some notes about it in a readme in the root of the source files. I can't think of any reason you would need grasshopper for mojoportal, there is no porting needed, it runs on mono.

There is still no way that I know of debugging asp.net apps on linux so Dean has primarily relied on logging with log4net. The debugger doesn't currently understand app domains which is needed for debugging web apps.

I continue to develop on Windows with VS.NET and just deploy on mono. I find VS.NET to be the most productive environment available on any platform. I love Linux but I'm not a hater of MS and don't plan or expect to do away with my Windows development machines any time soon.

I am planning on experimenting with building using MonoDevelop myself soon just to see how it works but with no debugger I will definitely continue using VS for my main development.
11/13/2005 3:12:40 AM
Gravatar
Total Posts 148

Re: Building Mojoportal source using Mono

FYI, I just reviewed the README.MonoDevelop.txt file and it seems to be up-to-date.  Let me know if you run into problems.

--Dean
11/13/2005 10:31:10 AM
Gravatar
Total Posts 18439

Re: Building Mojoportal source using Mono

I just built mojoPortal on suse 10 using MonoDevelop per Dean's instructions.

At first I had one problem with building the business layer:
Compilation failed: 2 error(s), 0 warnings

/webshare/mojosrc/trunk/Business/SiteSettings.cs(100,11): error CS0246: The type or namespace name `LdapSettings' could not be found. Are you missing a using directive or an assembly reference?
/webshare/mojosrc/trunk/Business/SiteSettings.cs(236,10): error CS0246: The type or namespace name `LdapSettings' could not be found. Are you missing a using directive or an assembly reference?


Build complete -- 0 errors, 0 warnings



---------------------- Done ----------------------

Build successful.

Strange that compilation failed yet it said 0 errors!

To fix it I just added the LdapSettings.cs, LdapUser.cs, and LdapHelper.cs files which already exist in the file system but MonoDevelop doesn't know about them. I also added a reference to Novell.Directory.Ldap which is in the GAC

Hit F5 again and it built succesfully. I copied the deployment files to a folder I already had configured for mod_mono/apache and voila! it worked.

Great work Dean! If I was more sure of myself on the svn command line stuff I would commit my changes so that MonoDevelop knows about the new Ldap files. Its probably easy but I don't want to mess anything up.
11/13/2005 2:31:44 PM
Gravatar
Total Posts 148

Re: Building Mojoportal source using Mono

Hi Joe,

I remember seeing the "compilation failed with 0 errors" bug before.  I don't recall if it's been fixed in a more recent version of MonoDevelop.

I just committed a change to add the missing files and fix a bug in a PostgreSQL stored proc that showed up when I ran the deployment project.  Everything should work now.

For future reference, the SVN command to commit all changes in the current directory (and subdirs) is simply "svn commit".  By default, that will run an editor so you can edit the log message.  If you just want an empty log message, you can do:

svn commit -m ''

Cheers,
--Dean
You must sign in to post in the forums. This thread is closed to new posts.