gcc errors in linux
« on: 08 July 2013, 21:04:18 »

Re: gcc errors in linux
« Reply #1 on: 08 July 2013, 21:19:53 »

Re: gcc errors in linux -0.5.2 and 0.6-dev
« Reply #2 on: 08 July 2013, 21:30:53 »
So anyone got and idea what am i doing wrong ? And how to fix it ?

additional info:
kernel: 3.2.0-48-generic-pae #74-Ubuntu SMP
os: Elementary os luna beta 2
sfml: 2.0  and sfml 2.0 tested, everything sfml 2.0 related works. Also tested 1.6 code which didnt work [ just to be shure i have sfml 2.0]. If need more info ask and i will reply.
« Last Edit: 08 July 2013, 21:33:18 by wmbuRn »

Re: gcc errors in linux
« Reply #3 on: 08 July 2013, 23:09:50 »
Maybe you are using outdated SFML2 version? Download sfml2 current sources and compile it using:
Code: [Select]
cmake .
make
sudo make install

Also make sure you use the same commands to compile tgui.

(just a guess, I never encountered something like that with tgui on linux)
« Last Edit: 08 July 2013, 23:11:44 by netrick »

Re: gcc errors in linux
« Reply #4 on: 08 July 2013, 23:19:36 »
I found .deb files from ppa lauchpad from. There was sfml 2.0 and tgui 0.4.2-2 , so my sfml version is definatly current. 0.4.2 wasnt tested enought since formbuilder wont start. window just flashes and nothing happends. Will download sfml and will compile it and will report in few minutes.

Re: gcc errors in linux
« Reply #5 on: 08 July 2013, 23:26:04 »
It could have been sfml 2.0 rc in launchpad or some mismatch in libs (your os may be a bit different from regular ubuntu). Generally it's better to compile libs on your own on linux, it's so damn easy and can avoid many problems usually.

Edit:
If you can't compile sfml then run:
Code: [Select]
sudo apt-get install libpthread-stubs0-dev libgl1-mesa-dev libxrandr-dev libfreetype6-dev libglew-dev libjpeg8-dev libsndfile1-dev libopenal-dev
It will install dependencies needed.
« Last Edit: 08 July 2013, 23:29:31 by netrick »

Re: gcc errors in linux
« Reply #6 on: 08 July 2013, 23:31:14 »
It was stable branch and it contained 2.0.1 of sfml, [ not a RC] so i will try sfml from development and if thats not working will compile source myself and will report back. Thank you for your answer

Re: gcc errors in linux
« Reply #7 on: 08 July 2013, 23:33:12 »
All to the newest version according to apt :) also all versions are OK since i installed sfml from .deb file.

Re: gcc errors in linux
« Reply #8 on: 08 July 2013, 23:44:15 »
Okay. Tell me if dev version from ppa or compiling sfml from source helped.

The error you get while compiling TGUI seems to me like it's using SFML header of some older version. Maybe it's a bug in .deb package? I'm almost sure that compiling sfml from source should solve it.

*

texus

  • *****
  • 1143
    • View Profile
    • Texus's Blog
Re: gcc errors in linux
« Reply #9 on: 08 July 2013, 23:47:12 »
The sfml package from the ppa is the sfml2-RC version which only works with tgui v0.4.

The development version in the ppa contains the real sfml2 and tgui v0.5.

The errors about 'sf::Font' conversion to 'sf::Font*' do mean that the sfml version is not up-to-date and is still the RC version.

And tgui v0.4 is indeed very buggy, it shouldn't be used.

Re: gcc errors in linux
« Reply #10 on: 08 July 2013, 23:50:12 »
So I was right. Simply use development version of SFML from ppa and you can easily compile TGUI 0.6 that way (or use 0.5 from ppa).

Re: gcc errors in linux
« Reply #11 on: 09 July 2013, 00:08:51 »
« Last Edit: 09 July 2013, 00:13:17 by wmbuRn »

Re: gcc errors in linux
« Reply #12 on: 09 July 2013, 00:12:18 »
It seems strange. Are you sure that "sudo apt-get install libgl1-mesa-dev" says it's up to date?

Anyway, you can download tgui 0.5 from development ppa. That must work.

Re: gcc errors in linux
« Reply #13 on: 09 July 2013, 00:19:59 »
I am knowm murphy. [murphy law :) ]

here is full output of compiling 0.5.2 : [ i can use pastebin if needed]

Scanning dependencies of target tgui
[  2%] Building CXX object src/TGUI/CMakeFiles/tgui.dir/TGUI.cpp.o
[  5%] Building CXX object src/TGUI/CMakeFiles/tgui.dir/Objects.cpp.o
[  8%] Building CXX object src/TGUI/CMakeFiles/tgui.dir/Label.cpp.o
[ 11%] Building CXX object src/TGUI/CMakeFiles/tgui.dir/Picture.cpp.o
[ 14%] Building CXX object src/TGUI/CMakeFiles/tgui.dir/Button.cpp.o
[ 17%] Building CXX object src/TGUI/CMakeFiles/tgui.dir/Checkbox.cpp.o
[ 20%] Building CXX object src/TGUI/CMakeFiles/tgui.dir/RadioButton.cpp.o
[ 23%] Building CXX object src/TGUI/CMakeFiles/tgui.dir/EditBox.cpp.o
[ 26%] Building CXX object src/TGUI/CMakeFiles/tgui.dir/Slider.cpp.o
[ 29%] Building CXX object src/TGUI/CMakeFiles/tgui.dir/Scrollbar.cpp.o
[ 32%] Building CXX object src/TGUI/CMakeFiles/tgui.dir/ListBox.cpp.o
[ 35%] Building CXX object src/TGUI/CMakeFiles/tgui.dir/LoadingBar.cpp.o
[ 38%] Building CXX object src/TGUI/CMakeFiles/tgui.dir/ComboBox.cpp.o
[ 41%] Building CXX object src/TGUI/CMakeFiles/tgui.dir/TextBox.cpp.o
[ 44%] Building CXX object src/TGUI/CMakeFiles/tgui.dir/SpriteSheet.cpp.o
[ 47%] Building CXX object src/TGUI/CMakeFiles/tgui.dir/AnimatedPicture.cpp.o
[ 50%] Building CXX object src/TGUI/CMakeFiles/tgui.dir/AnimatedButton.cpp.o
[ 52%] Building CXX object src/TGUI/CMakeFiles/tgui.dir/SpinButton.cpp.o
[ 55%] Building CXX object src/TGUI/CMakeFiles/tgui.dir/Slider2D.cpp.o
[ 58%] Building CXX object src/TGUI/CMakeFiles/tgui.dir/Tab.cpp.o
[ 61%] Building CXX object src/TGUI/CMakeFiles/tgui.dir/ChatBox.cpp.o
[ 64%] Building CXX object src/TGUI/CMakeFiles/tgui.dir/InfoFileParser.cpp.o
[ 67%] Building CXX object src/TGUI/CMakeFiles/tgui.dir/EventManager.cpp.o
[ 70%] Building CXX object src/TGUI/CMakeFiles/tgui.dir/TextureManager.cpp.o
[ 73%] Building CXX object src/TGUI/CMakeFiles/tgui.dir/Group.cpp.o
[ 76%] Building CXX object src/TGUI/CMakeFiles/tgui.dir/GroupObject.cpp.o
[ 79%] Building CXX object src/TGUI/CMakeFiles/tgui.dir/Panel.cpp.o
[ 82%] Building CXX object src/TGUI/CMakeFiles/tgui.dir/ChildWindow.cpp.o
[ 85%] Building CXX object src/TGUI/CMakeFiles/tgui.dir/Grid.cpp.o
[ 88%] Building CXX object src/TGUI/CMakeFiles/tgui.dir/Window.cpp.o
[ 91%] Building CXX object src/TGUI/CMakeFiles/tgui.dir/Form.cpp.o
Linking CXX shared library ../../lib/libtgui.so
[ 91%] Built target tgui
Scanning dependencies of target FormBuilder
[ 94%] Building CXX object src/TGUI/FormBuilder/CMakeFiles/FormBuilder.dir/main.cpp.o
[ 97%] Building CXX object src/TGUI/FormBuilder/CMakeFiles/FormBuilder.dir/Properties.cpp.o
[100%] Building CXX object src/TGUI/FormBuilder/CMakeFiles/FormBuilder.dir/FormBuilder.cpp.o
make[2]: *** No rule to make target `/usr/lib/i386-linux-gnu/libGL.so', needed by `src/TGUI/FormBuilder/FormBuilder'.  Stop.
make[1]: *** [src/TGUI/FormBuilder/CMakeFiles/FormBuilder.dir/all] Error 2
make: *** [all] Error 2

mesa:

sudo apt-get install libgl1-mesa-dev
[sudo] password for hidden:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libgl1-mesa-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

*

texus

  • *****
  • 1143
    • View Profile
    • Texus's Blog
Re: gcc errors in linux
« Reply #14 on: 09 July 2013, 00:22:08 »
Never saw that error before. Did you install  graphics drivers?

You should also try installing tgui 0.5 from the ppa as netrick already suggested. I guess it fits the best with the sfml version from the ppa.