ekunuke / TheHallowedOrb

Originally made for the Ludum Dare 48 competition.
11 stars 2 forks source link

Compiler Question #1

Open razor950 opened 10 years ago

razor950 commented 10 years ago

Hello,

This isn't a issue directed at you but it puzzles me and I'd like to figure out why it is happening.

http://tdm-gcc.tdragon.net/ compiles and runs Orb fine

http://nuwen.net/mingw.html compiles but Orb doesn't run causes a application error.

I don't understand why besides the fact that nuwen's mingw distro might be more strict in terms of C++ 11 standards or something? I don't see why else it'd cause issues when SFML examples run on both mingw distros.

xAxiom commented 10 years ago

Eku probably knows way more about this (I don't' code), but it sounds like the version of SFML you are trying to compile it with isn't compatible with the nuwen version of MingW.

SFML has a few specific versions to run for either the SJLJ or DW2 type Mingw .dll.

The first link comes with the GCC TDM, so you might have the GCC TDM (SJLJ) version of SFML, and the second one may require the GCC MinGW (DW2) version.

http://www.sfml-dev.org/download/sfml/2.1/

I know if you get codeblocks with mingw it comes with both of those types, so you don't have an issue when compiling.

The second one may also require you to manually put in the SFML .dll files with the executable of Orb.

razor950 commented 10 years ago

I am not using pre-built SFML downloads, was building it from the latest revision. So I don't see why the difference in compilers would cause this issue.

Thanks for the quick reply btw :D

ekunuke commented 10 years ago

Hey razor, I really couldn't say what the issue is exactly. A run-time error... hmm.

It could be an issue with your environment where some dll is being detected that you don't necessarily want to use.

It might be due to the non-SFML audio binaries that you didn't compile but sfml-audio depends on (openal32.dll, libsndfile-1.dll).

I wish I could help you more, sorry!

razor950 commented 10 years ago

I actually didn't think about the audio libraries that sfml depends on, I'll compile them myself and see it that fixes it. The main reason I care for this is I personally would like to use the toolchain that doesn't work because it includes libraries that can become a hassle to compile yourself like boost :p

Thanks for the replies. Also I watched your stream while you worked on this and I must say this is a very fun and simple game :D so congrats on that. On Dec 18, 2013 5:53 PM, "Eugene Paik" notifications@github.com wrote:

Hey razor, I really couldn't say what the issue is exactly. A run-time error... hmm.

It could be an issue with your environment where some dll is being detected that you don't necessarily want to use.

It might be due to the non-SFML audio binaries that you didn't compile but sfml-audio depends on (openal32.dll, libsndfile-1.dll).

I wish I could help you more, sorry!

— Reply to this email directly or view it on GitHubhttps://github.com/egpaik/TheHallowedOrb/issues/1#issuecomment-30889553 .

ekunuke commented 10 years ago

Yeah I can see why that could be useful, boost can be quite a pain :)

Also thanks! I really appreciate it.