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

Pages: [1] 2
1
General Discussion / Re: TGUI License?
« on: 26 June 2016, 23:39:57 »
awesome, I'll be sure to credit TGUI appropriately! <3

2
General Discussion / TGUI License?
« on: 26 June 2016, 21:48:36 »
What type of license does TGUI follow exactly? SFML license allows free use of all libraries (including for commercial purposes), as long as SFML is mentioned in the source/documentation ( https://www.sfml-dev.org/license.php ). Can/Should I assume that TGUI is under the same license as SFML?

3
Installation help / Re: CMAKE Error
« on: 25 June 2016, 17:21:24 »
For some reason Codeblock's MinGW compiler was missing some DLL files that cmake required (Even after several re-installations). I just switched everything to use the standalone MinGW compiler instead.

4
Installation help / Re: CMAKE Error
« on: 25 June 2016, 14:58:33 »
Solved: Had to manually add MinGW path to enviromental paths, then RESTART computer.

5
Installation help / Re: CMAKE Error
« on: 24 June 2016, 19:48:59 »
Same error after moving it to C:/ and removing spaces in the folder names. Maybe I'll try to download an older version of cmake or something like that, thanks for you help! Very fast response <3

6
Installation help / Re: CMAKE Error
« on: 24 June 2016, 19:18:16 »
I should mention I'm building for Code::Block's default compiler.

Edit: I have been deleting cache between configurations.

Here is output log from CMAKE build:




Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: C:/Program Files (x86)/CodeBlocks/MinGW/bin/gcc.exe
Build flags:
Id flags:

The output was:
1


Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: C:/Program Files (x86)/CodeBlocks/MinGW/bin/gcc.exe
Build flags:
Id flags: -c

The output was:
1


Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: C:/Program Files (x86)/CodeBlocks/MinGW/bin/gcc.exe
Build flags:
Id flags: -Aa

The output was:
1
<command-line>:0:1: error: missing '(' after predicate


Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: C:/Program Files (x86)/CodeBlocks/MinGW/bin/gcc.exe
Build flags:
Id flags: -D__CLASSIC_C__

The output was:
1


Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler":
gcc.exe: fatal error: no input files
compilation terminated.
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: C:/Program Files (x86)/CodeBlocks/MinGW/bin/g++.exe
Build flags:
Id flags:

The output was:
1


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: C:/Program Files (x86)/CodeBlocks/MinGW/bin/g++.exe
Build flags:
Id flags: -c

The output was:
1


Checking whether the CXX compiler is IAR using "" did not match "IAR .+ Compiler":
g++.exe: fatal error: no input files
compilation terminated.
Determining if the C compiler works failed with the following output:
Change Dir: D:/SFML/TGUI Build/CMakeFiles/CMakeTmp

Run Build Command:"C:/PROGRA~2/CODEBL~1/MinGW/bin/mingw32-make.exe" "cmTC_7e3c5/fast"
C:/PROGRA~2/CODEBL~1/MinGW/bin/mingw32-make.exe -f CMakeFiles\cmTC_7e3c5.dir\build.make CMakeFiles/cmTC_7e3c5.dir/build

mingw32-make.exe[1]: Entering directory 'D:/SFML/TGUI Build/CMakeFiles/CMakeTmp'

Building C object CMakeFiles/cmTC_7e3c5.dir/testCCompiler.c.obj

C:\PROGRA~2\CODEBL~1\MinGW\bin\gcc.exe     -o CMakeFiles\cmTC_7e3c5.dir\testCCompiler.c.obj   -c "D:\SFML\TGUI Build\CMakeFiles\CMakeTmp\testCCompiler.c"

CMakeFiles\cmTC_7e3c5.dir\build.make:64: recipe for target 'CMakeFiles/cmTC_7e3c5.dir/testCCompiler.c.obj' failed

mingw32-make.exe[1]: *** [CMakeFiles/cmTC_7e3c5.dir/testCCompiler.c.obj] Error 1

mingw32-make.exe[1]: Leaving directory 'D:/SFML/TGUI Build/CMakeFiles/CMakeTmp'

Makefile:125: recipe for target 'cmTC_7e3c5/fast' failed

mingw32-make.exe: *** [cmTC_7e3c5/fast] Error 2




7
Installation help / CMAKE Error
« on: 24 June 2016, 19:08:40 »
Just downloaded the latest stable source and cmake itself doesn't really want to work? Any thoughts?

Error occurs after I click configure (source and build folders are linked correctly). Perhaps it's because I'm not using an external (non)default hard drive?

8
Not only does it include the static versions, it also includes a copy of the sfml extlibs folder (since v0.6.2).
I downloaded the precompiled version, and linked everything up. I've gotten everything to configure and generate fine. And on top of that, I've just finished building the tgui.cbp project with Code::Blocks. Thank you for helping me work through my foolish mistake!

9
When linking statically, sfml now forces you to link to its dependencies yourself.

You can solve your problem by changing the FREETYPE_LIBRARY property to "H:/Program Files/SFML/extlibs/mingw/x68/freetype.a" (or something like that). Same for GLEW_LIBRARY and FREETYPE_LIBRARY.


I actually don't see any of the "extlibs" "mingw" "x68" or "freetype.a" keywords that you used as an example.



But what tgui version are u using? I tried to make tgui automatically find these extlibs in v0.6.1. Maybe my fix is no longer working?



Any reason why you are not using the precompiled tgui libraries? (if you are using mingw 4.8 then you would have a valid reason).
I thought the precompiled tgui libraries wouldn't include a static version like I needed.



By the way, sorry for the delay on getting back to you.

EDIT:
I just realized that I downloaded the 0.6 version from the tutorial page. (derp)
I'll get the 0.6.2 version right now.

10
I can't seem to figure out why this isn't working, maybe someone else has an idea?


I have downloaded the Code::Blocks Cmake files, and have hooked everything up correctly (I'm pretty sure). I've successfully configured the files once, and it says I need to specify the location. I type "H:Program Files/SFML" and the thing will configure fine.

IMAGE:



Now when I configure the file but leave the "TGUI_SHARED_LIBS" option unchecked. The thing gives me an error when I configure again.


I don't exactly see what I did wrong, and how I could fix it. So, any ideas?

11
Help requests / Re: tgui::Button::Ptr button(gui); button size
« on: 26 September 2013, 08:09:38 »
Please pay attention to the "Down.png" file. It uses a pattern over the actual image. When you click on it, the image is stretched.

12
Help requests / Re: tgui::Button::Ptr button(gui); button size
« on: 25 September 2013, 22:17:18 »
Attached.

13
Help requests / tgui::Button::Ptr button(gui); button size
« on: 25 September 2013, 07:30:15 »
I want to put a image of a button on my GUI without stretching it. It always ends up stretched though, any solutions?

Code: [Select]
tgui::Button::Ptr button(gui);
    button->load("gfx/GUI.conf");
    button->setSize(120, 39);
    button->setPosition(630, 250);
    button->setText("Login");
    button->setTextSize(14);
    button->setTextColor(sf::Color(255, 255, 255));
    button->bindCallback(tgui::Button::LeftMouseClicked);
    button->setCallbackId(1);

Code: [Select]
Button:
    NormalImage_L  = "gui/button/Normal.png" (0, 0, 9, 39)
    NormalImage_M  = "gui/button/Normal.png" (10, 0, 100, 39)
    NormalImage_R  = "gui/button/Normal.png" (111, 0, 9, 39)
    HoverImage_L   = "gui/button/Hover.png"  (0, 0, 9, 39)
    HoverImage_M   = "gui/button/Hover.png"  (10, 0, 100, 39)
    HoverImage_R   = "gui/button/Hover.png"  (111, 0, 9, 39)
    DownImage_L    = "gui/button/Down.png"   (0, 0, 9, 39)
    DownImage_M    = "gui/button/Down.png"   (10, 0, 100, 39)
    DownImage_R    = "gui/button/Down.png"   (111, 0, 9, 39)
   
    TextColor          = (100, 100, 100)
    SeparateHoverImage = true

14
Success!

Code: [Select]
The C compiler identification is GNU 4.7.1
The CXX compiler identification is GNU 4.7.1
Check for working C compiler: H:/Program Files/CodeBlocks/MinGW/bin/gcc.exe
Check for working C compiler: H:/Program Files/CodeBlocks/MinGW/bin/gcc.exe -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler: H:/Program Files/CodeBlocks/MinGW/bin/g++.exe
Check for working CXX compiler: H:/Program Files/CodeBlocks/MinGW/bin/g++.exe -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Looking for sys/types.h
Looking for sys/types.h - found
Looking for stdint.h
Looking for stdint.h - found
Looking for stddef.h
Looking for stddef.h - found
Check size of void*
Check size of void* - done
Could NOT find SFML (missing:  SFML_GRAPHICS_LIBRARY SFML_WINDOW_LIBRARY SFML_SYSTEM_LIBRARY)
CMake Error at CMakeLists.txt:84 (message):
  CMake couldn't find SFML.  Set the SFML_ROOT entry to SFML's root directory
  (containing "include" and "lib" directories).


Configuring incomplete, errors occurred!

I will be getting back to the tutorial on how to install it from here. Thank you for helping! If I have anymore problems I'll post them here.

15
Ar you able to compile sfml, or is this only a problem with tgui?
I can compile SFML fine.

Quote
Using the CodeBlocks MinGW compiler
Quote
Code: [Select]
Check for working C compiler: h:/MinGW/bin/gcc.exe
That is not the compiler from CodeBlocks!
The one from CodeBlocks is in the 'C:\Program Files\CodeBlocks\MinGW\bin' folder.

Why are you on the H drive instead of the C drive anyway? It isn't really the default.
I'll see if I can manually set it to choose the CodeBlocks compiler. And also, my main hard drive failed a year or two back. I installed a new one, and it just was "H:/" ever since.

Pages: [1] 2