Pages: 1 [2] 3 4 5
  Print  
Author Topic: First R4 game, VERSION 2, despite everything being unimplemented  (Read 14370 times)
Offline (Female) IsmAvatar
Reply #15 Posted on: April 19, 2010, 07:28:44 PM

LateralGM Developer
LGM Developer
Location: Pennsylvania/USA
Joined: Apr 2008
Posts: 886

View Profile Email
So... Minimalist GNU for Windows... which Wikipedia lists the OS as MS Win... works on Linux?
Confused.
Logged
Offline (Female) Renee
Reply #16 Posted on: April 19, 2010, 08:25:52 PM

Member
Location: Illinois, USA
Joined: Mar 2010
Posts: 2

View Profile
So... Minimalist GNU for Windows... which Wikipedia lists the OS as MS Win... works on Linux?
Confused.
Yes.
From http://en.wikipedia.org/wiki/MinGW32#Comparison_with_Cygwin
Quote
It is also possible to cross-compile Windows applications with MinGW-GCC under POSIX systems. This means that developers do not need a Windows installation with MSYS to compile software that will run on Windows without Cygwin.
Under Ubuntu type sudo apt-get install mingw32-binutils mingw32 mingw32-runtime

Code::Blocks Cross Compilers setup
http://wiki.codeblocks.org/index.php?title=Code::Blocks_and_Cross_Compilers
« Last Edit: April 19, 2010, 08:51:47 PM by Renee » Logged
Offline (Female) IsmAvatar
Reply #17 Posted on: April 19, 2010, 10:00:47 PM

LateralGM Developer
LGM Developer
Location: Pennsylvania/USA
Joined: Apr 2008
Posts: 886

View Profile Email
Quote
Yes.
From http://en.wikipedia.org/wiki/MinGW32#Comparison_with_Cygwin
That's great! Is there an explanation available in English?

Quote
Code::Blocks Cross Compilers setup
http://wiki.codeblocks.org/index.php?title=Code::Blocks_and_Cross_Compilers
Followed that. Now I supposedly have the cross compiler set up, but I don't know how to use it. I tried linux build, but it complains ""Game - lin-build" uses an invalid compiler. Skipping..." if I choose lin-build, and it complains that it can't find windows.h if I use "win-build".
Logged
Offline (Male) Josh @ Dreamland
Reply #18 Posted on: April 19, 2010, 10:56:46 PM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2955

View Profile Email
Ism:
Seems you set lin-build's compiler to an incorrectly-set-up MinGW, instead of win-build's to a correctly-set-up one. :P
Either way, I'd prefer a new target be made for that, if any is to be made at all... I'd rather keep the C::B project for native compilations.

Cross compiling can be a fickle bitch. It's not so bad for Linux->Windows, but... Either way, that should be handled by ENIGMA and whatever makefile is ultimately called.
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Male) Rusky
Reply #19 Posted on: April 19, 2010, 11:04:09 PM

Resident Troll
Joined: Feb 2008
Posts: 960
MSN Messenger - rpjohnst@gmail.com
View Profile WWW Email
You'd have to add the new cross compiler to Code::Blocks in Settings -> Compiler and Debugger. Copy the existing GCC and set the toolchain executables to the MinGW ones.

Then you need to create a new build target- right click the project, choose properties and go to the build targets tab. Duplicate one of the existing ones and in its build options, change the selected compiler at the top of the dialog.

Building with that new target/compiler should work if you set up the cross-compiler correctly. Setting up the cross compiler correctly is the hard part though- MinGW makes Linux->Win okay but I've never gotten Win->Linux to work. You'd probably need to build some combination of binutils, libstdc++ and gcc (hopefully just the first one). Linux From Scratch might help with this.
« Last Edit: April 20, 2010, 11:27:57 AM by Rusky » Logged
Offline (Female) IsmAvatar
Reply #20 Posted on: April 20, 2010, 10:08:27 AM

LateralGM Developer
LGM Developer
Location: Pennsylvania/USA
Joined: Apr 2008
Posts: 886

View Profile Email
Screw it. *Opens up my Windows VM and installs C::B, etc*
Logged
Offline (Unknown gender) The 11th plague of Egypt
Reply #21 Posted on: April 20, 2010, 10:39:37 AM
Member
Joined: Dec 2009
Posts: 284

View Profile
Activating my account on the C::B forum was really a pain in the a**. I finally activated my account,
maybe I'll find somebody who can help me getting the compiler to work.

Do you still need testing on the source compilation? I've win7 32bits
Logged
Offline (Female) IsmAvatar
Reply #22 Posted on: April 20, 2010, 11:05:27 AM

LateralGM Developer
LGM Developer
Location: Pennsylvania/USA
Joined: Apr 2008
Posts: 886

View Profile Email
Are you asking me?
Logged
Offline (Male) retep998
Reply #23 Posted on: April 20, 2010, 11:08:31 AM

Member
Location: Where else?
Joined: Jan 2010
Posts: 248
MSN Messenger - retep998@charter.net AOL Instant Messenger - retep998 Yahoo Instant Messenger - retep998
View Profile Email
I think he's asking Josh.
Logged
Offline (Unknown gender) The 11th plague of Egypt
Reply #24 Posted on: April 20, 2010, 03:16:09 PM
Member
Joined: Dec 2009
Posts: 284

View Profile
I'm asking anybody that knows. I opened a topic on the C::B forum, if someone wants to help me getting it to work.

But if you don't need any more help compiling on different platforms, then I can just uninstall C::B.
« Last Edit: April 20, 2010, 03:20:03 PM by The 11th plague of Egypt » Logged
Offline (Female) IsmAvatar
Reply #25 Posted on: April 20, 2010, 03:44:11 PM

LateralGM Developer
LGM Developer
Location: Pennsylvania/USA
Joined: Apr 2008
Posts: 886

View Profile Email
I have a windows VM. I can just make an EXE and share that.
Logged
Offline (Male) RetroX
Reply #26 Posted on: April 20, 2010, 04:09:44 PM

Master of all things Linux
Contributor
Location: US
Joined: Apr 2008
Posts: 1055
MSN Messenger - classixretrox@gmail.com
View Profile Email
I have mingw32 installed, and all that I have to do is type i486-mingw32-g++ instead of g++ when I compile.

It's not that complicated.  And all that I had to do for install was install the mingw32-binutils and mingw32-gcc packages.
Logged
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)
Quote from: Fede-lasse
Why do all the pro-Microsoft people have troll avatars? :(
Offline (Female) IsmAvatar
Reply #27 Posted on: April 20, 2010, 04:23:48 PM

LateralGM Developer
LGM Developer
Location: Pennsylvania/USA
Joined: Apr 2008
Posts: 886

View Profile Email
Well yeah, that'd be great, if I knew what arguments to call g++ with to compile an enigma game...
Logged
Offline (Female) IsmAvatar
Reply #28 Posted on: April 20, 2010, 04:39:51 PM

LateralGM Developer
LGM Developer
Location: Pennsylvania/USA
Joined: Apr 2008
Posts: 886

View Profile Email
Ah, figures, one problem after another on windows, the least of which not being that trying to compile the game (C::B-side) causes a Segmentation Fault in draw_something_blend which I don't even use.

If you can compile it on windows and host it somewhere, go ahead. Even if it's just temporary hosting, I'll rehost it.
Logged
Offline (Male) RetroX
Reply #29 Posted on: April 20, 2010, 08:03:50 PM

Master of all things Linux
Contributor
Location: US
Joined: Apr 2008
Posts: 1055
MSN Messenger - classixretrox@gmail.com
View Profile Email
Well yeah, that'd be great, if I knew what arguments to call g++ with to compile an enigma game...
...it's the same for MinGW and the native Linux GCC?
Logged
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)
Quote from: Fede-lasse
Why do all the pro-Microsoft people have troll avatars? :(
Pages: 1 [2] 3 4 5
  Print