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

#1
Thank you! That worked great :)
#2
tgui::Panel::setBackGroundColor

I can't find that function in the newer version, nor can I find a way to change the color of the panel (without themes), am I missing something obvious?

Edit: I should probably mention, I'm porting over my old code tgui 0.7 (5 years ago?) to tgui 1.0, could tgui::Panel perhaps been moved to tgui::PanelRenderer?
#3
General Discussion / Re: TGUI License?
26 June 2016, 23:39:57
awesome, I'll be sure to credit TGUI appropriately! <3
#4
General Discussion / TGUI License?
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?
#5
Installation help / Re: CMAKE Error
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.
#6
Installation help / Re: CMAKE Error
25 June 2016, 14:58:33
Solved: Had to manually add MinGW path to enviromental paths, then RESTART computer.
#7
Installation help / Re: CMAKE Error
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
#8
Installation help / Re: CMAKE Error
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



#9
Installation help / CMAKE Error
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?
#10
Quote from: texus on 25 March 2014, 21:40:15
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!
#11
Quote from: texus on 24 March 2014, 10:13:16
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.



Quote from: texus on 24 March 2014, 10:13:16
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?



Quote from: texus on 24 March 2014, 10:13:16
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.
#12
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?
#13
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.
#14
Attached.
#15
I want to put a image of a button on my GUI without stretching it. It always ends up stretched though, any solutions?


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);



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
#16
Success!


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.
#17
Quote from: texus on 22 September 2013, 19:49:26Ar you able to compile sfml, or is this only a problem with tgui?
I can compile SFML fine.

Quote from: texus on 22 September 2013, 20:05:02
QuoteUsing the CodeBlocks MinGW compiler
QuoteCheck 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.
#18
I reinstalled CMAKE, and I still got the same result. I'll try to reinstall CodeBlocks, but I doubt the results will be different. Same results.
#19
After following this step " https://tgui.eu/wp-content/uploads/2013/03/CMakeBuildTGUICodeBlocksMinGW.jpg " from "  https://tgui.eu/tutorials/v06/codeblocks/ " is when I get a popup: https://puu.sh/4wjCy.png ..

Additional information:
OS: Windows XP (SP3)
Using the CodeBlocks MinGW compiler as my native compiler.

CMake console:

The C compiler identification is GNU 4.8.1
The CXX compiler identification is GNU 4.8.1
Check for working C compiler: h:/MinGW/bin/gcc.exe
Check for working C compiler: h:/MinGW/bin/gcc.exe -- works
Detecting C compiler ABI info
CMake Error at H:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerABI.cmake:31 (try_compile):
  Cannot copy output executable

    ''

  to destination specified by COPY_FILE:

    'H:/Program Files/TGUI/build/CMakeFiles/2.8.11.2/CMakeDetermineCompilerABI_C.bin'

  Unable to find the executable at any of:

    H:/Program Files/TGUI/build/CMakeFiles/CMakeTmp/cmTryCompileExec2339646467.exe
    H:/Program Files/TGUI/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec2339646467.exe
    H:/Program Files/TGUI/build/CMakeFiles/CMakeTmp/Development/cmTryCompileExec2339646467.exe

Call Stack (most recent call first):
  H:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:75 (CMAKE_DETERMINE_COMPILER_ABI)
  CMakeLists.txt:21 (project)


Detecting C compiler ABI info - done
CMake Error at H:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerABI.cmake:52 (file):
  file STRINGS file "H:/Program
  Files/TGUI/build/CMakeFiles/2.8.11.2/CMakeDetermineCompilerABI_C.bin"
  cannot be read.
Call Stack (most recent call first):
  H:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:75 (CMAKE_DETERMINE_COMPILER_ABI)
  CMakeLists.txt:21 (project)


Check for working CXX compiler: h:/MinGW/bin/g++.exe
Check for working CXX compiler: h:/MinGW/bin/g++.exe -- works
Detecting CXX compiler ABI info
CMake Error at H:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerABI.cmake:31 (try_compile):
  Cannot copy output executable

    ''

  to destination specified by COPY_FILE:

    'H:/Program Files/TGUI/build/CMakeFiles/2.8.11.2/CMakeDetermineCompilerABI_CXX.bin'

  Unable to find the executable at any of:

    H:/Program Files/TGUI/build/CMakeFiles/CMakeTmp/cmTryCompileExec484653838.exe
    H:/Program Files/TGUI/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec484653838.exe
    H:/Program Files/TGUI/build/CMakeFiles/CMakeTmp/Development/cmTryCompileExec484653838.exe

Call Stack (most recent call first):
  H:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:68 (CMAKE_DETERMINE_COMPILER_ABI)
  CMakeLists.txt:21 (project)


Detecting CXX compiler ABI info - done
CMake Error at H:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerABI.cmake:52 (file):
  file STRINGS file "H:/Program
  Files/TGUI/build/CMakeFiles/2.8.11.2/CMakeDetermineCompilerABI_CXX.bin"
  cannot be read.
Call Stack (most recent call first):
  H:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:68 (CMAKE_DETERMINE_COMPILER_ABI)
  CMakeLists.txt:21 (project)


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*
CMake Error at H:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CheckTypeSize.cmake:89 (try_compile):
  Cannot copy output executable

    ''

  to destination specified by COPY_FILE:

    'H:/Program Files/TGUI/build/CMakeFiles/CheckTypeSize/SIZEOF_VOID_PTR.bin'

  Unable to find the executable at any of:

    H:/Program Files/TGUI/build/CMakeFiles/CMakeTmp/cmTryCompileExec1542734059.exe
    H:/Program Files/TGUI/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec1542734059.exe
    H:/Program Files/TGUI/build/CMakeFiles/CMakeTmp/Development/cmTryCompileExec1542734059.exe

Call Stack (most recent call first):
  H:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CheckTypeSize.cmake:174 (__check_type_size_impl)
  cmake/Config.cmake:8 (check_type_size)
  CMakeLists.txt:24 (include)


CMake Error at cmake/Config.cmake:14 (message):
  Unsupported architecture
Call Stack (most recent call first):
  CMakeLists.txt:24 (include)


Configuring incomplete, errors occurred!


After checking the H:/Program Files/TGUI/build/CMakeFiles/CMakeTmp, I see: https://puu.sh/4wjF2.png

I am very confused on why this is happening. I have tried just installing TGUI 0.5, but it gave me the same results.