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

Author Topic: Fresh Start II / Application Window Doesn't Launch  (Read 4118 times)

0 Members and 4 Guests are viewing this topic.

Kain Nobel

  • Newbie
  • *
  • Posts: 38
    • View Profile
Fresh Start II / Application Window Doesn't Launch
« on: February 25, 2023, 10:30:27 am »
(click to show/hide)

Current Situation: Everything builds correctly but no application window is launched. I got rid of the ".a" extensions in Debug and Release. I've also noticed my std::cout message doesn't get printed to the console, so hm.

Here is a video of the problem...

(click to show/hide)

EDIT: Another day, another video. The same problem, application window won't display and my std::cout statements aren't printing so something is a disconnect. I'm not sure what exactly. I'm just not cool enough for this...



(click to show/hide)
« Last Edit: February 26, 2023, 07:03:36 am by Kain Nobel »

Stauricus

  • Sr. Member
  • ****
  • Posts: 369
    • View Profile
    • A Mafia Graphic Novel
    • Email
Re: Fresh Start II / Application Window Doesn't Launch
« Reply #1 on: February 26, 2023, 01:06:21 pm »
doesn't seems to be a big deal. take some printscreens to help finding the problem:
1- your folder containing the lib files
2- in project Build Options, print of "compiler settings", "linker settings", and "search directories"
Visit my game site (and hopefully help funding it? )
Website | IndieDB

Kain Nobel

  • Newbie
  • *
  • Posts: 38
    • View Profile
Re: Fresh Start II / Application Window Doesn't Launch
« Reply #2 on: February 26, 2023, 04:08:31 pm »
I've made a video just to demonstrate current behavior. Images of settings are in the spoilers below the video.


(I do apologize, apparently I didn't have the microphone plugged in. Shouldn't matter too much, I'm just showing the current setup.)

SFML location is @ "C:/SFML/2.5.1/", a pretty standard location.

  • Currently, the project loads and I get an exit status 0 (success.)
  • The window with the green circle (from the SFML tutorial) does not appear.
  • My console does not display the std::cout messages I've added for testing purposes.

This is a frustrating issue because I'm fairly confident I've done everything correctly. I've exhausted the tutorial and searches for similar situations via google. I'm laughing that I'm stuck on such a pedestrian issue, I've never spent so long on something so stupid lol

(click to show/hide)
(click to show/hide)
(click to show/hide)
« Last Edit: February 26, 2023, 04:20:11 pm by Kain Nobel »

Stauricus

  • Sr. Member
  • ****
  • Posts: 369
    • View Profile
    • A Mafia Graphic Novel
    • Email
Re: Fresh Start II / Application Window Doesn't Launch
« Reply #3 on: February 26, 2023, 05:07:21 pm »
your code is getting to the point it returns 0. i cant be sure in the video, but didn't you typed
while (window.isOpen())}
instead of
while (window.isOpen()){
?
EDIT: NVM, its right. the video quality was confusing me about it.


try changing libsfml-graphics-d for sfml-graphics-d (and also do it for window, audio, and system) in linker settings.
« Last Edit: February 26, 2023, 05:11:23 pm by Stauricus »
Visit my game site (and hopefully help funding it? )
Website | IndieDB

Kain Nobel

  • Newbie
  • *
  • Posts: 38
    • View Profile
Re: Fresh Start II / Application Window Doesn't Launch
« Reply #4 on: February 26, 2023, 05:22:43 pm »
OK, I did just that and now I'm getting the exit code 5 again.

I switched it back so I get the old error (exit 0 success).

I notice it does say...

Quote
"Starting the debuggee failed: No executable specified, use `target exec'."

So do I have to do something else? Sorry I'm rusty with the "setup" it's been a while lol. I'll have to get refreshed with the debugger again, I usually just do std::cout tests :3

(click to show/hide)
« Last Edit: February 26, 2023, 05:32:42 pm by Kain Nobel »

Stauricus

  • Sr. Member
  • ****
  • Posts: 369
    • View Profile
    • A Mafia Graphic Novel
    • Email
Re: Fresh Start II / Application Window Doesn't Launch
« Reply #5 on: February 26, 2023, 05:33:35 pm »
when that happens, in the tabs in the bottom of Code Blocks you have one called 'build messages'. what is in it?
Visit my game site (and hopefully help funding it? )
Website | IndieDB

Kain Nobel

  • Newbie
  • *
  • Posts: 38
    • View Profile
Re: Fresh Start II / Application Window Doesn't Launch
« Reply #6 on: February 26, 2023, 05:54:15 pm »
Without "lib" prefixed: When I get an exit code 5...

(click to show/hide)

With "lib" prefixed: When I get an exit code 0...

(click to show/hide)

NOTE : OpenAL32.dll is located in Global compiler settings and is also set in the Environment Variables Path setting. I don't know if this is relevant to the situation, it might not be, but I figured I'd put the info out there in case it is of relevance.
« Last Edit: February 26, 2023, 05:56:02 pm by Kain Nobel »

Stauricus

  • Sr. Member
  • ****
  • Posts: 369
    • View Profile
    • A Mafia Graphic Novel
    • Email
Re: Fresh Start II / Application Window Doesn't Launch
« Reply #7 on: February 26, 2023, 06:01:49 pm »
try removing the audio libs from the linker settings for now. they are not in the right order anyway (the sfml-audio should be on top of window and system; order matters in this case). remove sfml-audio and the openall.dll and testing it again.
Visit my game site (and hopefully help funding it? )
Website | IndieDB

Kain Nobel

  • Newbie
  • *
  • Posts: 38
    • View Profile
Re: Fresh Start II / Application Window Doesn't Launch
« Reply #8 on: February 26, 2023, 06:09:30 pm »
Ah! You might be on to something, now I'm starting to get a lot more errors. (As odd as that sounds, this might be a good thing...)

Something is incompatible it seems. Hm.

(click to show/hide)

EDIT : I've switched from GNU GCC to TDM-GCC-32 because that's what I think it's *supposed* to use, if I'm not having tutorial amnesia lol

I'm using "GCC 5.1.0 TDM (SJLJ) - Code::Blocks - 32-bit"
(click to show/hide)

The two build logs may look similar, but the 2nd one appears to have less errors (6 skipping VS 3 skipping)
« Last Edit: February 26, 2023, 06:17:17 pm by Kain Nobel »

Stauricus

  • Sr. Member
  • ****
  • Posts: 369
    • View Profile
    • A Mafia Graphic Novel
    • Email
Re: Fresh Start II / Application Window Doesn't Launch
« Reply #9 on: February 26, 2023, 06:19:43 pm »
yes, it may be related to incompatible compiled sfml and the compiler you are using.
lets see what G++ compiler you have. open the Windows prompt (cmd) and type g++ -v or g++ --version
Visit my game site (and hopefully help funding it? )
Website | IndieDB

Kain Nobel

  • Newbie
  • *
  • Posts: 38
    • View Profile
Re: Fresh Start II / Application Window Doesn't Launch
« Reply #10 on: February 26, 2023, 06:25:52 pm »
OK looks like it is 5.1.0

(click to show/hide)

Stauricus

  • Sr. Member
  • ****
  • Posts: 369
    • View Profile
    • A Mafia Graphic Novel
    • Email
Re: Fresh Start II / Application Window Doesn't Launch
« Reply #11 on: February 26, 2023, 07:21:24 pm »
hmm... have you tried building SFML from source?

which SFML version did you download?

and what CodeBlocks version did you download? is it the one that includes MinGW for default?
« Last Edit: February 26, 2023, 07:32:22 pm by Stauricus »
Visit my game site (and hopefully help funding it? )
Website | IndieDB

Kain Nobel

  • Newbie
  • *
  • Posts: 38
    • View Profile
Re: Fresh Start II / Application Window Doesn't Launch
« Reply #12 on: February 26, 2023, 07:36:40 pm »
I got it from SFML and Code::Blocks (MinGW) tutorial. The compiler is the GCC 5.1.0 TDM (SJLJ) - Code::Blocks - 32-bit. This is the compiler installed at "C:/TDM-GCC-64" (which I've renamed to 32 just now.) For TDM, there is only the 5.1 on my drive, no 10.3 exists anymore.

In my previous thread (link) I was trying to build from source. That's not the case now. That's an unrelated topic (but I may return to it because I would like to learn how to do that (again?))
« Last Edit: February 26, 2023, 07:42:05 pm by Kain Nobel »

Stauricus

  • Sr. Member
  • ****
  • Posts: 369
    • View Profile
    • A Mafia Graphic Novel
    • Email
Re: Fresh Start II / Application Window Doesn't Launch
« Reply #13 on: February 26, 2023, 08:42:55 pm »
it seems right to me... are you using SFML_STATIC?
Visit my game site (and hopefully help funding it? )
Website | IndieDB

Kain Nobel

  • Newbie
  • *
  • Posts: 38
    • View Profile
Re: Fresh Start II / Application Window Doesn't Launch
« Reply #14 on: February 26, 2023, 08:45:43 pm »
No.