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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Kain Nobel

Pages: 1 2 [3]
31
Audio / Re: sf::Time / sf::Audio Operations [Solved]
« on: January 18, 2022, 10:57:04 am »
Cool, thank you! Now I've got the smooth roll in / roll out that I was looking for ;)

32
Audio / sf::Time / sf::Audio Operations [Solved]
« on: January 16, 2022, 12:11:29 pm »
Hello and good day everybody!

What I'm trying to accomplish is fading in and fading out of sf::Audio related members utilizing the sf::Time functionality. The current code I have does not use the sf::Time (yet), only generic floats. I don't know how to calculate the volume increments I need based on sf::seconds, sf::milliseconds or sf::microseconds.

Here is the sample header and source code, with much noise (no pun intended) omitted. I made sure to comment each and every line so you can follow along with what I'm trying to do.

GameAudio.hpp
Code: [Select]
#ifndef GAME_AUDIO_H
#define GAME_AUDIO_H

#include <Game.hpp>
#include <SFML/Audio.hpp>
#include <SFML/System/Time.hpp>

class GameAudio {
    public:
        // Construct and Destruct
        GameAudio();
        virtual ~GameAudio();
        // Public Functions
        void fadeBGM(float volume, float duration);
        void update();
// Public Member Variables
        sf::Music m_BGM;        // Background Music
    protected:

    private:
        // Private Member Variables
        float     m_BGMFadeV    = 0.0; // BGM Fade Volume
        float     m_BGMFadeD    = 0.0; // BGM Fade Duration
// Private functions
        void updateBGM();
        // ...Need to add limited vector for sound queue
};

#endif // GAME_AUDIO_H

GameAudio.cpp
Code: [Select]
#include <Game.hpp>
#include <GameAudio.hpp>
#include <SFML/Audio.hpp>
#include <SFML/System/Time.hpp>

/*----------------------------------------------------------------------------*/
// ** GameAudio.fadeBGM(volume, duration, mode)
/*----------------------------------------------------------------------------*/
void GameAudio::fadeBGM(float volume, float duration) {
    // Set BGM fade volume and duration
    m_BGMFadeV = volume;
    m_BGMFadeD = duration;
}
/*----------------------------------------------------------------------------*/
// ** GameAudio.update()
/*----------------------------------------------------------------------------*/
void GameAudio::update() {
/* ...Misc code... */
    updateBGM();
/* ...Misc code... */
}
/*----------------------------------------------------------------------------*/
// ** GameAudio.updateBGM()
/*----------------------------------------------------------------------------*/
void GameAudio::updateBGM() {
    // If fading BGM in
    if (m_BGMFadeV > m_BGM.getVolume()) {
        // Get new volume value
        float value = (m_BGM.getVolume() + 0.1);
        // Roll BGM in
        m_BGM.setVolume(value);
// If over limit
if (m_BGMFadeV < m_BGM.getVolume()) {
// Sync volume to stop process
m_BGMFadeV = m_BGM.getVolume();
// End function
return;
}
        // Print to console
        cout << "Fade BGM (Old Volume = " << m_BGM.getVolume() << ", ";
        cout << "New Volume = " << value << ")" << endl;
    // If fading BGM out
    } else if (m_BGMFadeV < m_BGM.getVolume()) {
        // Get new volume value
        float value = (m_BGM.getVolume() - 0.1);
        // Roll BGM out
        m_BGM.setVolume(value);
// If under limit
if (m_BGMFadeV > m_BGM.getVolume()) {
// Sync volume to stop process
m_BGMFadeV = m_BGM.getVolume();
// End function
return;
}
        // Print to console
        cout << "Fade BGM (Old Volume = " << m_BGM.getVolume() << ", ";
        cout << "New Volume = " << value << ")" << endl;
    }
}

This code does work for fading in and fading out but it uses generic floats and is frame based. I'd like to implement sf::Time and do something like GameAudio.fadeBGM(float volume, sf::seconds(3.0)) and make it time based. Obviously, I know I need to change the 2nd argument to use an sf::Time but how do I calculate something like m_BGM.setVolume(incremental volume change in seconds)?

Thank you to anybody who can help.

33
General / Re: Code::Blocks - Problems in General
« on: January 09, 2022, 06:39:54 am »
* LEAPS OUT OF CHAIR* WOOOOOOOOOOO!!!!!!!!

That was trial by fire but I'm so glad I stuck with it! Last time I had this running was 2019 and I only stopped because life kept me too busy to focus on hobbies.

  • Install Code::Blocks - CHECK!
  • Install CMake - CHECK!
  • Install that TDM compiler - CHECK!
  • Install the correct SFML version - CHECK!
  • Setup Environment PATH variables - CHECK!
  • Run the CMake to generate build files - CHECK!
  • Build the damn thing and make it run - HELL YEAH, CHECK!
  • Setup a bunch of other stuff outside the scope of this topic - YES, CHECK!

I've got this far, and I can't really think of anything else I'd have to do to. It looks like everything is building, the application is running, I believe it is linking up to my personal project. There is still a lot I don't understand and it might take me a while to figure out all the little bells and whistles. Are the tutorials inaccurate? Did I misunderstand a couple parts? Maybe and maybe. One thing I had to do was download the help file from the CMake website and I read all 400+ pages of that bad boy twice.

In the end I realized I was pointing to the wrong compiler, doh! Thank you for pointing that out.

Big thanks to you eXpl0iter! I'll have to go through my entire download and browsing history and start digging out all the little nuggets I found that aren't exactly SFML related but one would need to know and have to in order to develop an SFML project. I'm writing a sticky note for that, I'll probably get to it next week because I have two computers to look through. For now, I'm going to see what kind of TROUBLE I can get into hahaha!

Again, thanks! :)

34
General / Re: Code::Blocks - Problems in General
« on: January 07, 2022, 10:04:28 am »
PROGRESS! I'm getting different errors! I can study tutorials until the cows come home but my brain is mush. I can't get either the discord server or the IRC to connect but once I do I'll reach out to more than just the folks on the forum. Also, I'm going to pick back up on my studies because I feel I've become stupid again.

I thank you eXpl0it3r for always being there to help but I know you're probably busy as all hell! I'm not even mad at ya because I know and understand. With all the issues being tracked, there is a LOT to this "simple" library. I've used it in the past and I know that it's good and can do nothing but be improved, improved, improved and improved. I have one of the books. I've been doing things with this, but it's been a busy couple of years and I'm rusty as all hell. I haven't touched anything since... 2019.

>> I'm looking for anybody on here who has had problems with this in the past but have figured it out to give me a call or something; PM me and I'll give you the number. Sometimes its nice to talk live with a human. I want to go point by point by point and make sure EVERYTHING is set up correctly and start making history happen. <<

Current Situation

For info on my situation right now; the entire thing IS compiling but now I'm getting missing DLL entry point errors. Sample...



I've had multiple different setups at this point which is probably why my brain is all mushy like a bowl of mashed potatoes. Admittedly, I haven't looked too much into it today because I don't want it to turn into potato soup. Looking at my download history and current installed stuff it appears the setup is...

tdm-gcc-5.1.0-3
SFML-2.5.1-windows-gcc-5.1.0-tdm-32-bit
cmake-3.22.1
(I don't remember if its command line or GUI, I want to say it's command line...)

My ENV PATH looks like (redundant WINDOWS entries omitted)...

Code: [Select]
"Path"=>
C:\\Program Files\\Git\\cmd;
C:\\RGL\\lib\\;
C:\\ActiveTcl\\bin;
C:\\Program Files\\ImageMagick-7.1.0-Q16-HDRI;
C:\\Program Files (x86)\\CMake\\bin;
C:\\TDM-GCC-32\\bin;
C:\\Users\\kainn\\AppData\\Local\\Microsoft\\WindowsApps;
C:\\Program Files\\Git\\cmd;
C:\\Ruby30-x64\\bin;
C:\\RGL\\lib\\;
C:\\RGL\\lib\\gui\\;
C:\\RGL\\error\\;
C:\\RGL\\profs\\;
C:\\RGL\\tests\\;
C:\\ActiveTcl\\bin;
C:\\cmake-3.22.1;
C:\\Program Files\\ImageMagick-7.1.0-Q16-HDRI;
C:\\Program Files\\CodeBlocks\\MinGW\\bin;

I've not added anything SFML to the PATH because of settings within the Code::Blocks project file, and I'd like NOT to add anything else to the PATH (for the time being) but, if I absolutely have to, I will...
Situation Update

I've began the installation and setup process for Visual Studio Code. I'm not doing much with it (hopefully) tonight but it shouldn't be a problem, should it? If anybody shoots me a call, I'll wait a minute before I do anything with VS and try to figure out my problems via Code::Blocks. I get lost in the woods sometimes setting this stuff up. So far I've added the C/C++ and Ruby extensions (it appears the Ruby extension may be broken?) but it looks like it wants me to write it a build script if I'm not mistaken.

Sidenotes / Rambling

I think with all the madness going on, the tutorials might need to be reviewed and updated for accuracy of information. Obviously, I don't know what the hell I'm doing personally, but I'd be willing to help in the future if need be (and if I get proficient with these systems and the C++ language. And whatever else...) I don't personally know what's accurate and what's not but I see others who have had issues too, I'm currently hitting a snag with CMake GUI.

I'm actually surprised there isn't a big STICKY at the top of this forum with massive lists of tutorials and resources for the entire environment needed to be in full production mode with this library. Links to cplusplus.com, links to relevant Code::Blocks and Visual Studio information, links to anything CMake, MinGW, etc. Talk of these things is probably better suited for a place like StackOverflow.com but there is definitely a TON of crazy stuff to learn. Maybe I'll try to compile a list tomorrow if I can but I also have to do taxes......

35
General / Re: Code::Blocks - Cannot find libraries?
« on: January 06, 2022, 11:10:51 am »
I've been through the setup process numerous times and I've exhausted the tutorials at this point. I'm trying to use the TDM SLJL whatever version with the matching download and I'm just not getting anywhere. The libraries load now, the application compiles but then I get an error.



Prior to this I was using the other 32bit library combo, MinGW 7.1.0 but I was getting the same problem. Then it was still looking for some lib**sljl dll so I just switched. I've switched back and forth a couple of times. I've wiped the slate clean, TDM is what it is for the time being.

I know you said that matching the compiler and the library you download is important, maybe I need to set something up in Code::Blocks?

I don't know if being on the newly launched Windows 11 has any influence over the fact that I can't get it to run.

I'm running out of patience with this, if there is an easier way to get something up and running I'm all ears. Deploying this has been anything but simple and fast for me, I've analyzed this at a thousand points and don't know what else I could do correctly because I don't even know what I'm doing wrong in the first place.

I'm also having problems with the CMake, following the tutorial, the 3rd step it can't Configure the project. I'll mess with that more tomorrow and it can be another topic if I don't figure it out myself.

I haven't even hardly wrote a single line of C++ yet for this deployment, I'm quite perplexed.

36
General / Code::Blocks - Problems in General [SOLVED]
« on: January 04, 2022, 11:27:55 am »
Hello and good day everybody,

I've set this up three or four times in the past and always have the same problem, always get the same answers, always find the same solutions but can never remember what I did to make it work.

So I'm trying to setup a new SFML project. I've followed the tutorial, I've scoured the forums, I've searched the internet and now I'm here.



Yes, those files are installed in those locations. I've swapped out the s.a and the d.a and the s-d.a endings just to see if I can get something to 'click' but no progress. The files in the screenshot were selected with the File Select dialog in Code::Blocks and not hand-written so I'm not sure why GCC can't figure this out.

When I was following the tutorial, I did the "sfml-graphics", "sfml-audio", etc (simple names) but now I'm doing fullpath GCC still can't find these files. I get a list of "cannot find libsfml-" stuff.

I've got Search Directories / Compiler set to "C:/sfml/2.5.1/include"
I've got Search Directories / Linker set to "C:/sfml/2.5.1/lib"
I've set Compiler Settings / #define set as "SFML_STATIC"

Code: [Select]
-------------- Build: Debug in RGL (compiler: GNU GCC Compiler)---------------

g++.exe -L..\SFML\2.5.1\lib -LC:\SFML\2.4.2\lib -LC:\RGL\lib -LC:\SFML\2.5.1\lib -o bin\Debug\RGL.exe obj\Debug\main.o obj\Debug\src\appwindow.o obj\Debug\src\rgl.o obj\Debug\src\rgl\audio.o obj\Debug\src\rgl\input.o   -lsfml-graphics -lsmfl-window -lsfml-audio -lsfml-system -lsfml-audio -lsfml-graphics -lsfml-window -lsfml-system C:\SFML\2.5.1\lib\libsfml-audio-s.a C:\SFML\2.5.1\lib\libsfml-window-s.a C:\SFML\2.5.1\lib\libsfml-audio-s.a C:\SFML\2.5.1\lib\libsfml-system-s.a
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ..\SFML\2.5.1\lib/libsfml-graphics.a when searching for -lsfml-graphics
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ..\SFML\2.5.1\lib\libsfml-graphics.a when searching for -lsfml-graphics
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\SFML\2.5.1\lib/libsfml-graphics.a when searching for -lsfml-graphics
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\SFML\2.5.1\lib\libsfml-graphics.a when searching for -lsfml-graphics
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ..\SFML\2.5.1\lib/libsfml-graphics.a when searching for -lsfml-graphics
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\SFML\2.5.1\lib/libsfml-graphics.a when searching for -lsfml-graphics
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lsfml-graphics
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lsmfl-window
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ..\SFML\2.5.1\lib/libsfml-audio.a when searching for -lsfml-audio
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ..\SFML\2.5.1\lib\libsfml-audio.a when searching for -lsfml-audio
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\SFML\2.5.1\lib/libsfml-audio.a when searching for -lsfml-audio
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\SFML\2.5.1\lib\libsfml-audio.a when searching for -lsfml-audio
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ..\SFML\2.5.1\lib/libsfml-audio.a when searching for -lsfml-audio
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\SFML\2.5.1\lib/libsfml-audio.a when searching for -lsfml-audio
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lsfml-audio
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ..\SFML\2.5.1\lib/libsfml-system.a when searching for -lsfml-system
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ..\SFML\2.5.1\lib\libsfml-system.a when searching for -lsfml-system
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\SFML\2.5.1\lib/libsfml-system.a when searching for -lsfml-system
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\SFML\2.5.1\lib\libsfml-system.a when searching for -lsfml-system
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ..\SFML\2.5.1\lib/libsfml-system.a when searching for -lsfml-system
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\SFML\2.5.1\lib/libsfml-system.a when searching for -lsfml-system
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lsfml-system
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ..\SFML\2.5.1\lib/libsfml-audio.a when searching for -lsfml-audio
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ..\SFML\2.5.1\lib\libsfml-audio.a when searching for -lsfml-audio
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\SFML\2.5.1\lib/libsfml-audio.a when searching for -lsfml-audio
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\SFML\2.5.1\lib\libsfml-audio.a when searching for -lsfml-audio
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ..\SFML\2.5.1\lib/libsfml-audio.a when searching for -lsfml-audio
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\SFML\2.5.1\lib/libsfml-audio.a when searching for -lsfml-audio
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lsfml-audio
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ..\SFML\2.5.1\lib/libsfml-graphics.a when searching for -lsfml-graphics
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ..\SFML\2.5.1\lib\libsfml-graphics.a when searching for -lsfml-graphics
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\SFML\2.5.1\lib/libsfml-graphics.a when searching for -lsfml-graphics
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\SFML\2.5.1\lib\libsfml-graphics.a when searching for -lsfml-graphics
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ..\SFML\2.5.1\lib/libsfml-graphics.a when searching for -lsfml-graphics
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\SFML\2.5.1\lib/libsfml-graphics.a when searching for -lsfml-graphics
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lsfml-graphics
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ..\SFML\2.5.1\lib/libsfml-window.a when searching for -lsfml-window
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ..\SFML\2.5.1\lib\libsfml-window.a when searching for -lsfml-window
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\SFML\2.5.1\lib/libsfml-window.a when searching for -lsfml-window
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\SFML\2.5.1\lib\libsfml-window.a when searching for -lsfml-window
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ..\SFML\2.5.1\lib/libsfml-window.a when searching for -lsfml-window
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\SFML\2.5.1\lib/libsfml-window.a when searching for -lsfml-window
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lsfml-window
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ..\SFML\2.5.1\lib/libsfml-system.a when searching for -lsfml-system
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ..\SFML\2.5.1\lib\libsfml-system.a when searching for -lsfml-system
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\SFML\2.5.1\lib/libsfml-system.a when searching for -lsfml-system
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\SFML\2.5.1\lib\libsfml-system.a when searching for -lsfml-system
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ..\SFML\2.5.1\lib/libsfml-system.a when searching for -lsfml-system
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\SFML\2.5.1\lib/libsfml-system.a when searching for -lsfml-system
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lsfml-system
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 0 second(s))
9 error(s), 0 warning(s) (0 minute(s), 0 second(s))
 

Thank you to anyone who can help me, I would like to get this project rolling again.

37
General / Re: Error in generation process
« on: August 28, 2014, 09:14:33 am »
That's all it gave me was that single message, but it did generate a bunch of files for me. I haven't compiled it with MinGW yet because I'm under the impression that *something* will be wrong with it due to the CMake's "project files may be invalid" message.

I have a new computer coming, so I'll have to repeat this song and dance once it gets here. Feel free to close this topic, I'll make a new one when the new computer arrives *if* I'm still running into issues.

And thank you for your reply Ixrec, see ya again soon.

38
General / Error in generation process
« on: August 24, 2014, 08:20:56 am »
I've been following this tutorial on compiling SFML with CMake. Currently using the cmake-gui and running on Windows Vista and Arch Linux. I've set the variables to what I think they should be, but I always get a message...

"Error in generation process, project files may be invalid."

I was originally using Code::Blocks for this but would just like to build raw, nothing related to Code::Blocks during the CMake process. The CMake GUI, on the bottom, states "Current Generator : CodeBlocks - MinGW Makefiles". I don't want it tied to any project or IDE, I just want something I can use, compiled with MinGW or CMake or whatever.

The following is set for CMake...

(click to show/hide)

Hopefully somebody knows what I'm doing wrong, I'd really like to use this library.

Pages: 1 2 [3]