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

#1
Installation help / Re: Cmake can't find TGUI
20 October 2018, 02:59:36
Okey, it was hard, but i can  :o
I'm "reordered" my project
So, i'm downloaded sources from github, built it with cmake, install it with mingw32-make, copied libs from /TGUI/build/libs/ to /ProjectName/cmake-build-debug/ and... It's worked
Thanks for all
#2
Installation help / Re: Cmake can't find TGUI
09 October 2018, 23:46:46
Ok, i did it
But, TGUIConfig.cmake set TGUI_FOUND to FALSE
I'm check TGUIConfig.cmake, and i found condition, when TGUI_FOUND may set FALSE
I think - it's problem with {targets_config_file}, because i can't found file like "/TGUI${config_name}Targets.cmake"

But, these are just my guesses
What am I doing wrong?

upd: I was choosing shared libraries
upd2: I fixed this problem. I forgot press Generate button in CMake-gui.
After this i'm copied libraries from TGUI/lib/ to TGUI/build/lib/
But it create one more problem. If i definition any variable with "tgui"-like type

std::cout << "Hello, World!" << std::endl;
tgui::Gui gui(window);

Program build, but not executed

During startup program exited with code 0xc0000135.
Process finished with exit code 1

It's worked, if i commented line with gui

Hello, World!
Process finished with exit code 0

If I'm not mistaken, this error is due with wrong installation of libraries
#3
Installation help / Re: Cmake can't find TGUI
09 October 2018, 22:26:49
No, this folder has only libs
#4
Installation help / Re: Cmake can't find TGUI
09 October 2018, 21:31:26
It's a personal project, first time
So, i can't find this directory: "TGUI/lib/cmake/TGUI"
I have directories like in my screenshot
In directory cmake exist file "Config.cmake". You mean this file as "TGUIConfig.cmake"?
#5
Installation help / Cmake can't find TGUI
09 October 2018, 01:12:40
Hi,
I'm use CLion on Windows, and i want in tgui, but my cmake can't find him


cmake_minimum_required(VERSION 3.12)
project(testSFML)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules" ${CMAKE_MODULE_PATH})

add_executable(testSFML main.cpp)

include_directories(D:/Andrew/Resources/SFML/include)
link_directories(D:/Andrew/Resources/SFML/lib)
include_directories(D:/Andrew/Resources/TGUI/include)
link_directories(D:/Andrew/Resources/TGUI/lib)

find_package(SFML REQUIRED COMPONENTS system window graphics network audio)
find_package(TGUI REQUIRED)

if(NOT SFML_FOUND)
    message(FATAL_ERROR "Could not find SFML")
endif()

if(NOT TGUI_FOUND)
    message(FATAL_ERROR "CMake couldn't find TGUI. Set the TGUI_ROOT entry to TGUI's root directory (containing \"include\" and \"lib\" directories).")
endif()


include_directories(${SFML_INCLUDE_DIR})
target_link_libraries(testSFML ${TGUI_LIBRARY})
target_link_libraries(testSFML tgui sfml-system sfml-window sfml-graphics sfml-network sfml-audio)

And i have error:
QuoteCMake Error at CMakeLists.txt:15 (find_package): By not providing "FindTGUI.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "TGUI", but CMake did not find one.

Where i can find FindTGUI.cmake?
#6
Quote from: texus on 06 September 2018, 19:06:33
...but I have implemented that now
Thank, you awesome!
#7
Hi
I'm added ChildWindow at other GUI-elements, and i want to forbidden change position for him. Can i "freeze" his?