LinuxMCE Forums

General => Developers => Topic started by: yannko on September 24, 2008, 04:22:21 pm

Title: Orbiter compilation WinXP
Post by: yannko on September 24, 2008, 04:22:21 pm
Hello everybody,

I'm trying to build the Orbiter for Windows XP from sources (charon-merge), using Microsoft Visual Studio 2005. Everything goes fine, I have my executable, except that it crashes immediately at the logger window.
The debugger is pointing at the logger.cpp file, with the function ptime. I can't figure out what's wrong, I have all libraries and headers included, and the dependencies compiled as well (DCE and DSL-helpers).

Any clue to solve my issue? Your help is greatly appreciated!
Title: Re: Orbiter compilation WinXP
Post by: tschak909 on September 24, 2008, 04:25:45 pm
If you're building to run on LinuxMCE 0710, you'll need to use the LinuxMCE-0710 branch, because otherwise your shared libs will mismatch.

-Thom
Title: Re: Orbiter compilation WinXP
Post by: yannko on September 24, 2008, 04:35:34 pm
Thanks for your answer. I'm using the branch for LinuxMCE 0710, so I guess the libraries shouldn't cause any problem?
For info, I'm using MySQL Server 5.0 for the libraries, if this could be an issue also.

Thanks for your help!
Title: Re: Orbiter compilation WinXP
Post by: tschak909 on September 24, 2008, 04:45:32 pm
charon-merge is not the 0710 branch.

please check out the sources from:
http://svn.charonmedia.org/svn/branches/LinuxMCE-0710

-Thom
Title: Re: Orbiter compilation WinXP
Post by: yannko on September 24, 2008, 05:20:18 pm
Sorry, I wanted to say that I tried to compile with the 0710 as well (including the correct libraries), and my issue is the same. I got the .exe, but it crashes, and the debugger is pointing at the localtime_r function.
Is there something to do, regarding that I don't get any compilation errors? Thanks a lot!
Title: Re: Orbiter compilation WinXP
Post by: tkmedia on September 24, 2008, 06:30:48 pm
Yannko I have gotten to the same spot ... it appears that error is a result  of  going from vis c ++ 6  to vc ++ 2005.
Something about time not getting initialized iirc. good luck let us know how you make out.. I have been trying on and off for several weeks on this.


Tim
Title: Re: Orbiter compilation WinXP
Post by: yannko on September 25, 2008, 01:18:56 pm
Thanks for your post tkmedia; I'm looking at the release history of Visual Studio and Visual C, do you think it would be better to use the Visual C++ 6, or the .NET 2003 professional could help me as well (I got an old official copy of it, so I could use it normally)? Thanks for you help, I will tell you if I got some new results.
Title: Re: Orbiter compilation WinXP
Post by: tschak909 on September 25, 2008, 01:27:13 pm
VS.2003 was used to build the project and solution file.

-Thom
Title: Re: Orbiter compilation WinXP
Post by: yannko on September 26, 2008, 02:50:22 pm
Installed Visual Studio .NET 2003 this morning, and got a successfully working executable. Great, that solved the problem, so compiling should be done with this release of Visual Studio.
Many thanks for your help!