Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Any chance of compiling windows apps on ppc?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
piroko
Tux's lil' helper
Tux's lil' helper


Joined: 25 Aug 2006
Posts: 77

PostPosted: Sat Jan 20, 2007 5:32 am    Post subject: Any chance of compiling windows apps on ppc? Reply with quote

I know that the chances of this are very unlikely, but I am in a computer science class that makes us use visual c++ to compile our programs. My only computer right now is my powerbook, and after installing kdevelop, I noticed that it has an option to create a windows 32bit console program. I figured it wouldn't work by default, so I tried to build a simple program with it. It apparently tried to use 'i586-mingw32msvc-c++' (and failed), which I can only assume is the cross compiler to create windows programs. Is there currently any way to cross compile windows programs from ppc linux? If not, that's fine. I'm just very curious, as this would be extremely useful to me. Thank you for any replies!

Jeremy
_________________
Anyone who is not confused by quantum theory does not truly understand it.
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3789
Location: sleeping in the bathtub

PostPosted: Sat Jan 20, 2007 5:38 am    Post subject: Re: Any chance of compiling windows apps on ppc? Reply with quote

I have no idea how possible this is, but the mingw-runtime package might provide what kdevelop was looking for, and is available on ppc.
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
piroko
Tux's lil' helper
Tux's lil' helper


Joined: 25 Aug 2006
Posts: 77

PostPosted: Sat Jan 20, 2007 5:53 am    Post subject: Reply with quote

I too noticed this, and I made mingw-runtime as ~ppc, but emerging it gives me this:

Code:
!!! ERROR: dev-util/mingw-runtime-3.9 failed.
Call stack:
  ebuild.sh, line 1562:   Called dyn_setup
  ebuild.sh, line 665:   Called pkg_setup
  mingw-runtime-3.9.ebuild, line 36:   Called die

!!! Invalid configuration
!!! If you need support, post the topmost build error, and the call stack if relevant.


Hmm... The plot thickens...
_________________
Anyone who is not confused by quantum theory does not truly understand it.
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3789
Location: sleeping in the bathtub

PostPosted: Sat Jan 20, 2007 6:17 am    Post subject: Reply with quote

Any errors before that message, or did that come up right at the configure stage?

How about 3.10 or 3.11?
You'd need to add
Code:
dev-util/mingw-runtime-3.10 -*
to your package.keywords first.
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
piroko
Tux's lil' helper
Tux's lil' helper


Joined: 25 Aug 2006
Posts: 77

PostPosted: Sat Jan 20, 2007 6:52 pm    Post subject: Reply with quote

I did as you said, and got the same error as before with 3.11:

Code:

 * checking ebuild checksums ;-) ...                                      [ ok ]
 * checking auxfile checksums ;-) ...                                     [ ok ]
 * checking miscfile checksums ;-) ...                                    [ ok ]
 * checking mingw-runtime-3.11-src.tar.gz ;-) ...                         [ ok ]

!!! ERROR: dev-util/mingw-runtime-3.11 failed.
Call stack:
  ebuild.sh, line 1562:   Called dyn_setup
  ebuild.sh, line 665:   Called pkg_setup
  mingw-runtime-3.11.ebuild, line 42:   Called die

!!! Invalid configuration
!!! If you need support, post the topmost build error, and the call stack if relevant.


Thank you for your continued efforts though!
_________________
Anyone who is not confused by quantum theory does not truly understand it.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sat Jan 20, 2007 7:45 pm    Post subject: Reply with quote

What exactly are you trying to achieve? It sounds like you're trying to compile Win32 apps for PPC. MinGW won't really do that for you, what it's for is allowing development of Win32 applications (which run on x86 machines) on another platform. You would still need a Windows machine to run these applications. If you're set on running Win32 apps on PPC, you could try using winelib, which will actually allow native, linux, Win32 apps, or perhaps set up a Virtual x86 machine with qemu.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
hawaiian717
n00b
n00b


Joined: 13 May 2004
Posts: 71

PostPosted: Sun Jan 21, 2007 9:08 pm    Post subject: Reply with quote

To be honest, it might just be easier to do your own development work with kdevelop to make it a Linux app (or XCode on OS X), then when its debugged, grab your source files (.c, .cpp, .h, etc) and move them to a Windows machine (does the class provide a computer lab with Visual C++?) for a final check and debugging before turning it in. If its a console app, they're probably not using many Win32 specific features anyway. At least I'd hope they're not, especially if this an intro-to-programming type class.

Or just use the lab to do the assignment.
Back to top
View user's profile Send private message
piroko
Tux's lil' helper
Tux's lil' helper


Joined: 25 Aug 2006
Posts: 77

PostPosted: Sun Jan 21, 2007 10:46 pm    Post subject: Reply with quote

Thank you for your replies. My overall goal is to cross compile programs on my ppc that will run on windows, so that I don't have to access a windows box just to create an exe to submit for my assignments. The only reason I thought this was even feasible was because of the possibility of compiling programs for other architectures such as for iPods and calculators using only open source tools. I considered just copying over my source files after I get them running on linux, but that would still require me to go to the labs (which are a hefty walk away), and would defeat the purpose of me using my powerbook to begin with. Meh. Maybe I need the exercise anyway. If there's no solution to my problem, then I'll live. :)
_________________
Anyone who is not confused by quantum theory does not truly understand it.
Back to top
View user's profile Send private message
gnomeza
Tux's lil' helper
Tux's lil' helper


Joined: 31 Dec 2003
Posts: 97

PostPosted: Mon Jan 22, 2007 1:08 pm    Post subject: Reply with quote

Did you see this? http://www.ecn.wfu.edu/~cottrell/cross-gtk/

It may not be exactly what you need, but perhaps it provides some hints...
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Jan 22, 2007 4:31 pm    Post subject: Reply with quote

What toolkit does it need to be compiled for? Are you targeting the Win32 API? Or maybe just a Win32 console ap? Can you use alternative toolkits? Depending on the needs of the project, it may be more economical time-wise to just trek to the lab. :)
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
piroko
Tux's lil' helper
Tux's lil' helper


Joined: 25 Aug 2006
Posts: 77

PostPosted: Mon Jan 22, 2007 8:14 pm    Post subject: Reply with quote

So far, we've only gone into Windows console apps. I don't think we're going to touch GUI apps just yet...
_________________
Anyone who is not confused by quantum theory does not truly understand it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum