• SFML linker issues: "cannot find -lsfml-system"
    38 replies, posted
I downloaded SFML, and I added the directories according to [url=http://www.sfml-dev.org/tutorials/1.5/start-cb.php]this[/url] tutorial. Unfortunately, I get the error mentioned in the thread title. I think it has something to do with the fact that I'm using Linux, and there was no mingw folder in lib, so I can't like to it. Thanks for any help.
You should not be using the windows tutorial to set up linux... Remove whatever you "installed", all the libraries you copied. Use the system's package management system to install the -dev or -devel SFML libraries, add the appropriate directories to your code blocks project. On ubuntu the packages you want to install are ( the rest will be pulled in automatically ): [code] libsfml1.4-dev - Simple and fast cross-platform multimedia library - Development Files libsfml1.4-doc - Simple and fast cross-platform multimedia library - documentation [/code] And the directories are: [code] Include: /usr/include/SFML Libraries: /usr/lib [/code]
are you sure you downloaded the.. mingw libraries?
If the library isn't in the default /usr/lib/ path, you need to add the directory to the searched list with -L
[QUOTE=blankthemuffin;16949265]You should not be using the windows tutorial to set up linux... Remove whatever you "installed", all the libraries you copied. Use the system's package management system to install the -dev or -devel SFML libraries, add the appropriate directories to your code blocks project. On ubuntu the packages you want to install are ( the rest will be pulled in automatically ): [code] libsfml1.4-dev - Simple and fast cross-platform multimedia library - Development Files libsfml1.4-doc - Simple and fast cross-platform multimedia library - documentation [/code] And the directories are: [code] Include: /usr/include/SFML Libraries: /usr/lib [/code][/QUOTE] It's the Code::Blocks one, not the Windows one. I followed this once before and I'm sure it worked. Also, libsfml is not in the Arch repos, at least not under the names sfml-dev or libsfml. The Linux tutorial is about manually linking when compiling, while I would rather use an IDE. [editline]08:01AM[/editline] [QUOTE=efeX;16951814]are you sure you downloaded the.. mingw libraries?[/QUOTE] MinGW is a windows GNU. [editline]08:02AM[/editline] And yes, I'm aware it looks like I contradicted myself :v:. [editline]08:04AM[/editline] [QUOTE=Cathbadh;16954784]If the library isn't in the default /usr/lib/ path, you need to add the directory to the searched list with -L[/QUOTE] But surely if I add the path to SFML-1.x/lib/ to Search Directories it should work shouldn't it?
That is the Code::Blocks one for Windows. Code::Blocks is a cross platform application. If it's not in the repos build it from source, then it will end up under /usr/local/lib or similar. Mingw is the windows version of gcc.
[QUOTE=blankthemuffin;16957492]Mingw is the windows version of gcc.[/QUOTE] MinGW actually covers the whole GNU toolchain.
Yeah, I dropped a 'the' GCC is the Gnu Compiler Collection.
Got it, thanks muffin :). [editline]04:41PM[/editline] And Catbadh actually.
Damn, I think I am getting graphics driver problems: [code]unknown chip id0x9612, can't guess. unknown chip id0x9612, can't guess. X Error of failed request: GLXBadContext Major opcode of failed request: 154 (GLX) Minor opcode of failed request: 3 (X_GLXCreateContext) Serial number of failed request: 32 Current serial number in output stream: 37[/code] This is in the output console for the program.
Do you have up-to-date drivers? Are you using official ones? If not, then which?
They are up to date, but they are the un-official open source ones. I would like to install the proprietary ones. [editline]04:53PM[/editline] Oh wow. It's doing this for simple console programs now too. What? Hmm, it seems it only does it when I link to "lsfml-graphics".
Hey, does anyone know how to check which Graphics cards are actived? Similar to "fdisk" but for graphics cards. On linux by the way, it appears someone thinks I am meaning Windows.
[QUOTE=nos217;17028811]Similar to "fdisk" but for graphics cards.[/QUOTE] Ur doing it wrong! Anyways, modinfo nvidia.
It's an ATI, and why is my post dumb? I just want to know information about the device.
Well then modinfo fglrx.
Could not fund module. Keep in mind I'm using the Open Source drivers. I thought fglrx was the name of the proprietary ones.
Didn't you say somewhere that you wanted to use the official ones? Use lsmod and pick the driver out of the list.
Bleh, I have no idea what I'm looking for here :downs: sorry. I see "drm... radeon" though.
Sorry, but I'm using proprietary nvidia drivers for my card, so you'll just have to try through. What's wrong with "radeon" though?
Nothing, I have a feeling the drivers are called Mesa. Could anyone clarify this before I go ahead and install it? [editline]08:59PM[/editline] No wait, nevermind. Turns out that's what I have installed already.
Mesa is a software implementation of the OpenGL standard...
Ahhh damn I remember, the AUR didn't have the tarball I needed for the proprietary drivers. I can't believe I forgot. I was going to install them a while back but I couldn't. [editline]09:18PM[/editline] Yes! I found it.
You can also find the proprietary ones on their site. The package manager is not an option for me atm anyway, since I'm using the beta drivers to get OpenGL 3.2 ^.^
Getting them from the site is a bad idea since they won't update when a full system upgrade is done. Ah I see, good luck with that hehe. [editline]10:41PM[/editline] Should I remove my old drivers before installing?
Is it complicated to replace them? Sorry for the late post, I was away.
Ok, I replaced them, but I still get the error, just without the "unknown chip id"s.
this topic is now about fixing linux graphics drivers
Well, more like me rambling on about how much progress I'm making with it :v:.
Which is... failing. I have no idea how I'm going to do this, and programming is on hold at the moment :/.
Sorry, you need to Log In to post a reply to this thread.