Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Trouble Cross Compiling with Code::Blocks on Linux for Windows  (Read 5811 times)

0 Members and 1 Guest are viewing this topic.

Nerdy3.14159265

  • Newbie
  • *
  • Posts: 4
    • View Profile
I'm having the hardest time trying to set up cross compiling on Linux. I'm currently using Ubuntu 12.04 and Code::Blocks.

I have no trouble getting SFML set up and compiling but when I try to set up MinGW and compile using that I can't get it to work no matter how hard I bash everything together.

I haven't been able to find a single tutorial that really fits this situation and most of the close ones are extremely out of date. I was wondering if there was anyone here that could help me get this set up.

texus

  • Hero Member
  • *****
  • Posts: 501
    • View Profile
    • TGUI
    • Email
Re: Trouble Cross Compiling with Code::Blocks on Linux for Windows
« Reply #1 on: May 03, 2012, 04:57:53 pm »
Quote
I'm currently using Ubuntu 12.04 ...
... when I try to set up MinGW ...
As far as I know, MinGW means "Minimalist GNU for Windows"
You need the gcc or g++ compiler.

I don't know of any tutorials, but if you would give a specific problem then it would be easier to help you.

EDIT: Ignore this, I should have read your post better.
« Last Edit: May 04, 2012, 03:50:49 pm by texus »
TGUI: C++ SFML GUI

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Trouble Cross Compiling with Code::Blocks on Linux for Windows
« Reply #2 on: May 03, 2012, 05:23:57 pm »
Quote
As far as I know, MinGW means "Minimalist GNU for Windows"
You need the gcc or g++ compiler.
He's cross-compiling -- so he's using a Linux port of MinGW to get Windows binaries ;)
Laurent Gomila - SFML developer

Nerdy3.14159265

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Trouble Cross Compiling with Code::Blocks on Linux for Windows
« Reply #3 on: May 07, 2012, 10:46:48 pm »
Any ideas on how to accomplish this? Or is everyone stumped?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Trouble Cross Compiling with Code::Blocks on Linux for Windows
« Reply #4 on: May 08, 2012, 08:49:40 am »
You didn't explain what you problems were. You should describe them.
Laurent Gomila - SFML developer

Nerdy3.14159265

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Trouble Cross Compiling with Code::Blocks on Linux for Windows
« Reply #5 on: May 08, 2012, 09:43:59 pm »
My problems were finding an up to date tutorial that would be compatible with SFML. I've attempted putting everything together just as all the other tutorials have it but they won't work when I attempt to link in SFML.

So my trouble biggest difficulty is actually finding a tutorial with some good information.

Zephilinox

  • Newbie
  • *
  • Posts: 43
    • View Profile

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10827
    • View Profile
    • development blog
    • Email
Re: Trouble Cross Compiling with Code::Blocks on Linux for Windows
« Reply #7 on: May 09, 2012, 05:37:26 pm »
There is no such tutorial and since you refuse to tell us where exactly your problem is, we won't be able to help.  ::)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Nerdy3.14159265

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Trouble Cross Compiling with Code::Blocks on Linux for Windows
« Reply #8 on: May 09, 2012, 06:29:03 pm »
I'm sorry for not being very informative about my problem. I'm sorry if I came off a bit rude at all. My main problem was that there didn't seem to be a tutorial that wasn't several years old.

My other problem was I'm guessing some sort of linking error that just kept leading me through random header files. I'll retry that tutorial, and when I'm done I'll make sure to be exact with what problems I'm having with it. If there happen to be any.

Thanks for your patience, I'm sorry if I've been a bit of a nuisance.

Kian

  • Newbie
  • *
  • Posts: 44
    • View Profile
Re: Trouble Cross Compiling with Code::Blocks on Linux for Windows
« Reply #9 on: May 10, 2012, 01:19:01 pm »
Some leading questions that might help people help you:

Have you had trouble downloading the MinGW source files? Have you had trouble compiling MinGW for Linux? Have you managed to get MinGW for Linux working? Can you compile a simple program for Windows and get it to work? Are you having trouble compiling an SFML project specifically? What SFML libraries are you including?

Unless you describe your problem in detail, including everything you've tried and managed to get to work, no one is going to be able to help. These questions are just for giving you an idea of what information would be helpful. Don't just run down the list with yes/no answers either. Be as explicit as possible.

 

anything