Author Topic: C++ crosscompiling  (Read 4254 times)

0 Members and 1 Guest are viewing this topic.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
C++ crosscompiling
« on: February 13, 2013, 10:33:57 pm »
Hey, i wondered how i could cross-compile with gcc from linux for a windows machine, and how reliable is cross-compiling?

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: C++ crosscompiling
« Reply #1 on: February 13, 2013, 10:42:29 pm »
Mingw-gcc exists as a linux package precisely to allow you to compile stuff for windows. As for reliability, it should be as reliable as any other sort of compilation.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline ruler501

  • Meep
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2475
  • Rating: +66/-9
  • Crazy Programmer
    • View Profile
Re: C++ crosscompiling
« Reply #2 on: February 13, 2013, 10:44:20 pm »
What OS do you use? I use a gentoo offshoot which has a tool to set up the right environment.
You just have to compile it to build for windows and isolate it from the usual gcc(usually by location and name)
I currently don't do much, but I am a developer for a game you should totally try out called AssaultCube Reloaded download here https://assaultcuber.codeplex.com/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/CS/M/S d- s++: a---- C++ UL++ P+ L++ E---- W++ N o? K- w-- o? !M V?
PS+ PE+ Y+ PGP++ t 5? X R tv-- b+++ DI+ D+ G++ e- h! !r y

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: C++ crosscompiling
« Reply #3 on: February 13, 2013, 11:11:07 pm »
I use archlinux 64 bit

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline ruler501

  • Meep
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2475
  • Rating: +66/-9
  • Crazy Programmer
    • View Profile
Re: C++ crosscompiling
« Reply #4 on: February 13, 2013, 11:16:25 pm »
Then the only way I know is to manually compile it. Qwerty probably can help you more.
I currently don't do much, but I am a developer for a game you should totally try out called AssaultCube Reloaded download here https://assaultcuber.codeplex.com/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/CS/M/S d- s++: a---- C++ UL++ P+ L++ E---- W++ N o? K- w-- o? !M V?
PS+ PE+ Y+ PGP++ t 5? X R tv-- b+++ DI+ D+ G++ e- h! !r y

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: C++ crosscompiling
« Reply #5 on: February 13, 2013, 11:17:02 pm »
i'm trying mingw right now, archlinux says it is installed but idk how to use it as it isn't in /usr/bin

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline pimathbrainiac

  • Occasionally I make projects
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1731
  • Rating: +136/-23
  • dagaem
    • View Profile
Re: C++ crosscompiling
« Reply #6 on: February 14, 2013, 09:19:46 am »
MinGW gets stored in a directory that you set... at least that's how it works on windows :P

You want cross-compiling? USE JAVA!!!

* pimathbrainiac runs
I am Bach.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: C++ crosscompiling
« Reply #7 on: February 14, 2013, 07:08:27 pm »
It is for a competition int 2 weeks and i don't wanne learn a new language in such a short time, sorry :P (and they don't allow php D:)

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!