Results 1 to 4 of 4

Thread: Attempting to build from source (SVN + Gentoo ebuild)

  1. #1
    Newbie
    Join Date
    Mar 2007
    Posts
    18

    Question Attempting to build from source (SVN + Gentoo ebuild)

    In an attempt to check out OpenMobile on Gentoo I find that the pre-build binary install seems to result in a brain-dead installation: the "Open Mobile.exe" program halts before producing any results and even the Debug plugin doesn't seem to get loaded as no debug file is created.

    Being a Gentoo user, I have adversity against prebuild binaries so I decided to attempt to build OM from scratch. I consider myself a fairly proficient linux user with lots of experience with GCC and scripting so I decided to attempt to build this Mono project by hand (I don't have the development GUI installed, only Mono itself with the compiler).

    After figuring out that I was missing a lot of dependencies (something quite obvious from the compiler complaints) I run into a new roadblock. Or rather - 2 roadblocks.

    The first is that "EnvironmentSetup.exe" returns with exit code 127 according to the project build. Since its completely silent, I have no clue what its trying to do or why its failing. Commenting out this part in the project file allowed me to build OM without errors (but still wondering if I'm missing anything). As I'm trying to convert the build process into an ebuild to allow easy installation/deinstallation on Gentoo - including dependencies - I'd rather fix the problem than patch around it.

    Problem 2: When I attempt to start the resulting "Open Mobile.exe" (which seems to have build in Debug mode) I now get a X warning and then the program halts again. 'strace' on the program does not seem to yield any useful information so how does one debug this problem, use the mono debugger?

    Finally a more generic question: since the default result is a Debug build in the SVN structure and there does not seem to be a "Install" target - what is the best way to extract the executables and resource folders from the SVN structure to install into a directory on the system?

    Edit 1: I found the tracing options and I see 2 potential problems:
    [0x7fec6a215740:] EXCEPTION handling: System.ComponentModel.Win32Exception: ApplicationName='lsb_release', CommandLine='-d', CurrentDirectory=''
    It seems that OM stops at this error (and using tracing I can see its actually doing a LOT so at least I know mono is working properly):
    [0x7fdba1e66700: 9.16510 6] ENTER: OpenMobile.Platform.X11.X11GLNative:get_Visible ()(this:0x7fdba9497e00[OpenMobile.Platform.X11.X11GLNative Open Mobile.exe], )
    [0x7fdba1e66700: 9.16511 6] LEAVE: OpenMobile.Platform.X11.X11GLNative:get_Visible ()FALSE
    [0x7fdba1e66700: 9.16512 5] LEAVE: OpenMobile.NativeWindow:get_Visible ()FALSE
    ENTER: (wrapper unknown) OpenMobile.Platform.X11.XIAnyClassInfo:PtrToStruct ure (intptr,object)(0x7fdb9c2a6408, [OpenMobile.Platform.X11.XIAnyClassInfo:0x7fdba94c0 648], )
    [0x7fdbadda4740: 9.16650 12] LEAVE: (wrapper unknown) OpenMobile.Platform.X11.XIAnyClassInfo:PtrToStruct ure (intptr,object)
    [0x7fdbadda4740: 9.16656 10] LEAVE: (wrapper managed-to-native) System.Runtime.InteropServices.Marshal:PtrToStruct ure (intptr,System.Type)[OpenMobile.Platform.X11.XIAnyClassInfo:0x7fdba94c0 648]
    [0x7fdbadda4740: 9.16660 10] ENTER: (wrapper managed-to-native) System.Runtime.InteropServices.Marshal:PtrToStruct ure (intptr,System.Type)(0x7fdb9c2a64f4, [TYPE:OpenMobile.Platform.X11.XIAnyClassInfo], )
    [0x7fdbadda4740: 9.16666 12] ENTER: (wrapper unknown) OpenMobile.Platform.X11.XIAnyClassInfo:PtrToStruct ure (intptr,object)(0x7fdb9c2a64f4, [OpenMobile.Platform.X11.XIAnyClassInfo:0x7fdba94c0 630], )
    [0x7fdbadda4740: 9.16670 12] LEAVE: (wrapper unknown) OpenMobile.Platform.X11.XIAnyClassInfo:PtrToStruct ure (intptr,object)
    [0x7fdbadda4740: 9.16675 10] LEAVE: (wrapper managed-to-native) System.Runtime.InteropServices.Marshal:PtrToStruct ure (intptr,System.Type)[OpenMobile.Platform.X11.XIAnyClassInfo:0x7fdba94c0 630]
    [0x7fdbadda4740: 9.16682 10] ENTER: (wrapper managed-to-native) System.Runtime.InteropServices.Marshal:PtrToStruct ure (intptr,System.Type)(0x7fdb9c2a64f4, [TYPE:OpenMobile.Platform.X11.XIValuatorInfo], )
    [0x7fdbadda4740: 9.16703 12] ENTER: (wrapper unknown) OpenMobile.Platform.X11.XIValuatorInfo:PtrToStruct ure (intptr,object)(0x7fdb9c2a64f4, [OpenMobile.Platform.X11.XIValuatorInfo:0x7fdba9495 680], )
    [0x7fdbadda4740: 9.16713 12] LEAVE: (wrapper unknown) OpenMobile.Platform.X11.XIValuatorInfo:PtrToStruct ure (intptr,object)
    [0x7fdbadda4740: 9.16718 10] LEAVE: (wrapper managed-to-native) System.Runtime.InteropServices.Marshal:PtrToStruct ure (intptr,System.Type)[OpenMobile.Platform.X11.XIValuatorInfo:0x7fdba9495 680]
    [0x7fdbadda4740: 9.16737 10] ENTER: (wrapper managed-to-native) OpenMobile.Platform.X11.Functions:XGetAtomName (intptr,uint)(0x7fdb9c247f00, -1677721480, )
    X Error of failed request: BadAtom (invalid Atom parameter)
    Major opcode of failed request: 17 (X_GetAtomName)
    Atom id in failed request: 0x9c000078
    Serial number of failed request: 16
    Current serial number in output stream: 16
    Last edited by cyberwizzard; 06-04-2011 at 05:56 PM.

  2. #2
    Maximum Bitrate Borte's Avatar
    Join Date
    Jan 2006
    Location
    Norway
    Posts
    529
    I've never tried gentoo so I don't know how relevant the information in the following link is but have you looked at this:
    http://www.mp3car.com/openmobile/147...on-ubuntu.html

    Also make sure that you have a working OpenGL setup otherwise it may fail. The latest svn has not been tested on linux yet so it might fail due to some errors.
    I'll test it on Ubuntu to see if it works correctly there.
    Failure is not an option...
    __________________________________________________ ______________________________
    The only full multizone / multiscreen cross platform open source Front End -> OpenMobile

  3. #3
    Variable Bitrate heezer7's Avatar
    Join Date
    May 2004
    Location
    IL, USA
    Posts
    284
    Yeah I would say make sure glxgears runs ok. I was just able to run under ubuntu 11.04 ok. I don't think any of us have tried to build from source under linux at all.

  4. #4
    Maximum Bitrate Borte's Avatar
    Join Date
    Jan 2006
    Location
    Norway
    Posts
    529
    Quote Originally Posted by heezer7 View Post
    I don't think any of us have tried to build from source under linux at all.
    I built from source on Ubuntu (via monodevelop) but that was on the previous Ubuntu version.
    Failure is not an option...
    __________________________________________________ ______________________________
    The only full multizone / multiscreen cross platform open source Front End -> OpenMobile

Similar Threads

  1. '07 STi, Gentoo Linux Build Thread
    By hotspoons in forum Show off your project
    Replies: 6
    Last Post: 02-03-2012, 11:36 PM
  2. Attempting to run the demo
    By evandude in forum StreetDeck
    Replies: 2
    Last Post: 07-03-2006, 11:16 AM
  3. Noob attempting first SKIN
    By Sweet05 in forum RR Skins
    Replies: 54
    Last Post: 05-27-2006, 06:19 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •