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 - MyOwnBitch

Pages: [1]
1
General / Golang, cgo, gosml2, csfml linking problem
« on: January 22, 2014, 05:09:31 pm »
Hi all,

Do we have any golang ninjas at the forum?

I have a really annoying problem with cgo, csfml and gosfml2 that is related to linking...

Somehow it doesn't find the libs when building gosfml2 with CGO_CFLAGS=-I/usr/local/include CGO_LDFLAGS=-L/usr/lib go build -a -x.

The last rows of output:
$WORK/bitbucket.org/krepa098/gosfml2/_obj/window.cgo2.o -L/usr/lib -lcsfml-window -lcsfml-graphics -lcsfml-audio
# bitbucket.org/krepa098/gosfml2
ld: library not found for -lcsfml-window
clang: error: linker command failed with exit code 1 (use -v to see invocation)

If I ls -l /usr/lib:
libcsfml-window.2.1.dylib
libcsfml-window.2.dylib -> libcsfml-window.2.1.dylib
libcsfml-window.dylib -> libcsfml-window.2.dylib

The lib are clearly there. I'm going nuts, what am I missing?

/Fredrik

2
General / Re: libGLEW and libsfml-graphics.so
« on: August 09, 2012, 01:42:15 pm »
Ok, cool. That was the problem. Before I compiled myself I used the precompiled version that was installed under /usr/lib64. However, when I compiled it myself it only installed itself under /usr/lib.

A copy from /usr/lib to /usr/lib64 made the trick :)

Thanks for the help.

3
General / Re: libGLEW and libsfml-graphics.so
« on: August 09, 2012, 01:25:03 pm »
I'm really confused about this as well.

I fetched a fresh copy of sfml with git and compiled it. In my system I have sfml-libs in two paths /usr/lib and /usr/lib64/.

The SFML-libs are structured like this in both paths libsfml-audio.so -> libsfml-audio.so.2 -> libsfml-audio.so.2.0

When I execute "sudo yum info libGLEW / GLEW / GLEW-devel", all of them is 1.6.

So yes... I'm sure I'm not using old sfml-libs :)



4
General / Re: libGLEW and libsfml-graphics.so
« on: August 09, 2012, 12:35:17 pm »
Yes, its in /usr/lib64/ which also is the path for sfml libs and the linker has no problem finding them...

The reason its not finding 1.5 is that I have the 1.6 version of glew. But I compiled sfml with 1.6 so I thought it would be possible to compile my own program with 1.6 as well?

What am I missing? =)

5
General / libGLEW and libsfml-graphics.so
« on: August 09, 2012, 11:56:43 am »
Hi!

My first post so I just want to start with saying I'm a huge fan of SFML, wonderful job.

However, I have a problem with latest sfml fetched with git. I'm using cmake to generate build-files.

When I compile my own project (using on cmake as well), which using SFML, I get this:
/bin/ld: warning: libGLEW.so.1.5, needed by /usr/lib/gcc/x86_64-redhat-linux/4.7.0/../../../../lib64/libsfml-graphics.so, not found (try using -rpath or -rpath-link)

Any ideas?

Thanks,
Fredrik

Pages: [1]