Main Menu
Menu

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.

Show posts Menu

Messages - Law

#26
Help requests / Questions
10 August 2014, 14:47:07
Hello,

So TGUI seems to be running perfectly on my computer now, which is already great. I was compiling the examples shown on the website, and one question arises... Where can I download Black.conf ?

Also, I was wondering if that was possible to make a chatbox or listbox with buttons in every line? Though this is not what I want to do, an example would be to make two buttons per line, one whose goal is to move the line one rank higher, and the other one one rank lower.

Thanks!
#27
Installation help / Re: Cmake problem
10 August 2014, 01:07:40
Yes I had to install a few packages, but I managed to find and install them all eventually.

Then I entered all the instructions you listed and they went fine (for both SFML and TGUI). I now have them both installed on my computer. I compiled a file of mine and it compiled with no error, just as usual. So I think my problem is solved.

Thanks a lot! I'm going to bed now^^ I should hope no problem will appear tomorrow :)
#28
Installation help / Re: Cmake problem
10 August 2014, 00:42:36
Okay, I installed muon so that I could safely uninstall all SFML packages.
After that, I installed xrandr like you suggested.
Then I started over and after entering "cmake ..", I bumped into this :

[...]
-- Looking for shmat - found
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so 
-- UDev not found.
-- UDev: You can specify includes: -DUDEV_PATH_INCLUDES=/opt/udev/include
--       currently found includes: UDEV_INCLUDE_DIR-NOTFOUND
-- UDev: You can specify libs: -DUDEV_PATH_LIB=/opt/udev/lib
--       currently found libs: UDEV_LIBRARIES-NOTFOUND
CMake Error at cmake/Modules/FindUDev.cmake:49 (MESSAGE):
  Could not find UDev library
Call Stack (most recent call first):
  src/SFML/Window/CMakeLists.txt:203 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/lol/SFML/build/CMakeFiles/CMakeOutput.log".
#29
Installation help / Re: Cmake problem
10 August 2014, 00:20:22
Will do asap but how do I uninstall SFML safely?

At first I thought it shouldn't be a problem and I *should* directly install with git without any problems, but when I did:

-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
CMake Error at src/SFML/Window/CMakeLists.txt:188 (message):
  Xrandr library not found


-- Configuring incomplete, errors occurred!
See also "/home/lol/SFML/build/CMakeFiles/CMakeOutput.log".


So how do I do?
#30
Installation help / Re: Cmake problem
10 August 2014, 00:08:25
Okay thank you for your help :)

I will ask for more help in the appropriate forum (SFML's forum), I'm sure this will be fixed, eventually. Thanks again for your time, I look forward to using TGUI  :D
#31
Installation help / Re: Cmake problem
09 August 2014, 23:57:58
Okay I added the "--dynamic" and got a few results. I found

[...]
0000000000010de0 T _ZN2sf5ImageC1Ev
0000000000010de0 T _ZN2sf5ImageC2Ev
[...]


but not _ZN2sf5ImageD1Ev and _ZN2sf5ImageD2Ev like you said.

I then searched for "sf::Image::~Image" like you suggested and got 0 results :

lol@Gaara:~/Documents/TGUI-0.6$ nm --dynamic /usr/lib/x86_64-linux-gnu/libsfml-graphics.so | grep sf::Image::~Image
lol@Gaara:~/Documents/TGUI-0.6$ nm --dynamic /usr/lib/x86_64-linux-gnu/libsfml-graphics.so.2 | grep sf::Image::~Image
lol@Gaara:~/Documents/TGUI-0.6$ nm --dynamic /usr/lib/x86_64-linux-gnu/libsfml-graphics.so.2.1 | grep sf::Image::~Image

#32
Installation help / Re: Cmake problem
09 August 2014, 23:42:50
My .so files are in /usr/lib/x86_64-linux-gnu/, not in /usr/local/lib/, so I changed things a bit.

Here is what I entered and got :

lol@Gaara:~/Documents/TGUI-0.6$ nm /usr/local/lib/libsfml-graphics.so | grep sf5Image
nm: '/usr/local/lib/libsfml-graphics.so': No such file
lol@Gaara:~/Documents/TGUI-0.6$ nm /usr/lib/x86_64-linux-gnu/libsfml-graphics.so | grep sf5Image
nm: /usr/lib/x86_64-linux-gnu/libsfml-graphics.so: no symbols
lol@Gaara:~/Documents/TGUI-0.6$ nm /usr/lib/x86_64-linux-gnu/libsfml-graphics.so.2 | grep sf5Image
nm: /usr/lib/x86_64-linux-gnu/libsfml-graphics.so.2: no symbols
lol@Gaara:~/Documents/TGUI-0.6$ nm /usr/lib/x86_64-linux-gnu/libsfml-graphics.so.2.1 | grep sf5Image
nm: /usr/lib/x86_64-linux-gnu/libsfml-graphics.so.2.1: no symbols


:/
#33
Installation help / Re: Cmake problem
09 August 2014, 23:17:33
Thank you for the fast reply.

I entered

sudo make install -j6

again but this time, it goes directly to [89%] and lists the same errors. I don't think I ever did anything special, I have the latest SFML version and I could use it to draw moving cards in a RenderWindow already.

I entered

cmake -DTGUI_BUILD_FORM_BUILDER=FALSE ..

and I got

lol@Gaara:~/Documents/TGUI-0.6$ cmake -DTGUI_BUILD_FORM_BUILDER=FALSE ..
CMake Error: The source directory "/home/lol/Documents" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.


So I had to remove the ".." and try again. After that, everything went perfectly.
#34
Installation help / Cmake problem
09 August 2014, 22:55:25
Hello, I followed the instructions regarding the installation via cmake, and this is what I bump into:

[...]
[ 84%] Building CXX object src/TGUI/CMakeFiles/tgui.dir/ChatBox.cpp.o
[ 87%] Building CXX object src/TGUI/CMakeFiles/tgui.dir/MessageBox.cpp.o
[ 89%] Building CXX object src/TGUI/CMakeFiles/tgui.dir/Knob.cpp.o
Linking CXX shared library ../../lib/libtgui.so
[ 89%] Built target tgui
Scanning dependencies of target FormBuilder
[ 92%] [ 94%] [ 97%] [100%] Building CXX object src/TGUI/FormBuilder/CMakeFiles/FormBuilder.dir/Form.cpp.o
Building CXX object src/TGUI/FormBuilder/CMakeFiles/FormBuilder.dir/main.cpp.o
Building CXX object src/TGUI/FormBuilder/CMakeFiles/FormBuilder.dir/FormBuilder.cpp.o
Building CXX object src/TGUI/FormBuilder/CMakeFiles/FormBuilder.dir/MenuBar.cpp.o
Linking CXX executable FormBuilder
../../../lib/libtgui.so.0.6.4: undefined reference to `sf::Image::~Image()'
collect2: error: ld returned 1 exit status
make[2]: *** [src/TGUI/FormBuilder/FormBuilder] Error 1
make[1]: *** [src/TGUI/FormBuilder/CMakeFiles/FormBuilder.dir/all] Error 2
make: *** [all] Error 2


How do I sort this out ? Or maybe this is a minor problem that doesn't need to be fixed ?

Thank you.