Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Drawing UTF-8 string extracted from variable/xml with sf::Text  (Read 6494 times)

0 Members and 1 Guest are viewing this topic.

bokoblin

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Drawing UTF-8 string extracted from variable/xml with sf::Text
« Reply #15 on: February 03, 2017, 08:13:22 am »
So what's the exact error message?

Here is the log of command make

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Drawing UTF-8 string extracted from variable/xml with sf::Text
« Reply #16 on: February 03, 2017, 08:33:58 am »
Can you show the verbose log ("export VERBOSE=1" in console before running make)?
Laurent Gomila - SFML developer

bokoblin

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Drawing UTF-8 string extracted from variable/xml with sf::Text
« Reply #17 on: February 03, 2017, 08:51:09 am »
Can you show the verbose log ("export VERBOSE=1" in console before running make)?

bokoblin

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Drawing UTF-8 string extracted from variable/xml with sf::Text
« Reply #18 on: February 04, 2017, 03:47:53 pm »
Hello,


You want more files or the github repo to understand my issue on linux ?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Drawing UTF-8 string extracted from variable/xml with sf::Text
« Reply #19 on: February 04, 2017, 04:11:41 pm »
On Linux, .a libraries are static libraries. And if you linke SFML statically, you must define the SFML_STATIC preprocessor symbol.
Laurent Gomila - SFML developer

bokoblin

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Drawing UTF-8 string extracted from variable/xml with sf::Text
« Reply #20 on: February 04, 2017, 04:18:02 pm »
On Linux, .a libraries are static libraries. And if you linke SFML statically, you must define the SFML_STATIC preprocessor symbol.

Well I'm defining SFML like this (linked CMakeList.txt),
with this hierarchy :
PROJECT FOLDER > libs > SFML-2.3.2 > include (with the .hpp and .inl) && lib (with  .a/ -d.a / -s.a files ).

I'm not defining them static (I checked with SFML_STATIC_LIBRARIES and it was false)
« Last Edit: February 04, 2017, 04:43:23 pm by bokoblin »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Drawing UTF-8 string extracted from variable/xml with sf::Text
« Reply #21 on: February 04, 2017, 05:00:10 pm »
Where did you get these .a files anyway? The Linux release only contains dynamic libraries (.so files).
Laurent Gomila - SFML developer

bokoblin

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Drawing UTF-8 string extracted from variable/xml with sf::Text
« Reply #22 on: February 04, 2017, 05:02:32 pm »
Where did you get these .a files anyway? The Linux release only contains dynamic libraries (.so files).

I mainly develop on Windows, so I installed SFML for CodeBlocks on Windows a year ago,
in the meantime I worked at University with QT Creator and Qmake and its .pro file.
But since October, I work with CLion on Windows which works with Cmake. Currently, I have to use Travis-CI for another project for school, so I'm trying to make this SFML project benefits from Travis-CI by compiling it with just "cmake .. && make".
« Last Edit: February 04, 2017, 05:10:45 pm by bokoblin »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Drawing UTF-8 string extracted from variable/xml with sf::Text
« Reply #23 on: February 05, 2017, 09:48:22 am »
Quote
[... lot of irrelevant stuff ...] compiling it with just "cmake .. && make"
;D
Ok, this is not enough to figure out how SFML is really compiled. Can you please give the full set of CMake options that you use when you configure the build?
« Last Edit: February 05, 2017, 01:31:32 pm by Laurent »
Laurent Gomila - SFML developer

bokoblin

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Drawing UTF-8 string extracted from variable/xml with sf::Text
« Reply #24 on: February 05, 2017, 11:24:03 am »
Quote
[... lot of irrelevant stuff ...] compiling it with just "cmake .. && make"
;D
Ok, this is not enough to figure out how SFML is really compiled. Can you please give the full set of CMake options that you use when you configure the build?

"[... lot of irrelevant stuff ...] " lol
I just do :
mkdir build
cd build
cmake ..
make

The only " full set of CMake options..." are in the CMakeList.txt that is in attachment at reply #20,
I do these command on Ubuntu 14.04  (I know that there are options to add after cmake, but my teacher did only "cmake .." the other day -- that wasn't a SFML project, though)
« Last Edit: February 05, 2017, 01:31:42 pm by Laurent »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Drawing UTF-8 string extracted from variable/xml with sf::Text
« Reply #25 on: February 05, 2017, 01:33:43 pm »
Default configuration (ie. just "cmake" without arguments) should produce the same build as official SFML releases, so I still don't understand how you got these .a files.

Can you show the verbose log of compiling SFML?
« Last Edit: February 05, 2017, 02:52:28 pm by Laurent »
Laurent Gomila - SFML developer

bokoblin

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Drawing UTF-8 string extracted from variable/xml with sf::Text
« Reply #26 on: February 05, 2017, 01:43:26 pm »
Default configuration (ie. just "cmake" without arguments) whouls produce the same build as official SFML releases, so I still don't understand how you got these .a files.

Can you show the verbose log of compiling SFML?

The .a are already there, I had downloaded a zip, sometime ago, where  there were already .hpp, .inl, .a (-s / -d) in it. Here is the log for cmake and make commands

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Drawing UTF-8 string extracted from variable/xml with sf::Text
« Reply #27 on: February 05, 2017, 02:53:36 pm »
Quote
The .a are already there, I had downloaded a zip, sometime ago
Why didn't you say that the first time I asked? ...
Laurent Gomila - SFML developer

bokoblin

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Drawing UTF-8 string extracted from variable/xml with sf::Text
« Reply #28 on: February 05, 2017, 03:02:49 pm »
Quote
The .a are already there, I had downloaded a zip, sometime ago
Why didn't you say that the first time I asked? ...

I thought you understood at reply#20 when I indicated that sfml .a are in libs/ (library folder) and not in build/ (compilation folder), sorry.


Ok, I understood concerning the .so and .a, so what I just did is getting the GCCx64 release of SFML 2.3.2 on your site, and I put all the .so/.so2.3/.so2.3.2 in my folder PROJECT FOLDER > libs > SFML-2.3.2 > lib.

Now there is only one error (no more undefined ref) :
PROJECT FOLDER/libs/SFML-2.3.2/lib/libsfml-audio.so :
fichier non reconnu : Fichier tronqué
collect2: error: ld returned 1 exit status
make[2]: *** [runner] Erreur 1
make[1]: *** [CMakeFiles/runner.dir/all] Erreur 2
make: *** [all] Erreur 2

I know I shouldn't take the 3 : .so / .so2.3 / .so2.3.2 but I don't know which one(s) I should take only.

« Last Edit: February 05, 2017, 04:05:29 pm by bokoblin »

bokoblin

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Drawing UTF-8 string extracted from variable/xml with sf::Text
« Reply #29 on: February 05, 2017, 03:54:10 pm »
I replaced the file using "tar -xzf" instead of unzipping it with z-zip.
I had libxcb-image0 missing, I downloaded it via apt-get and now I have the following error :

../libs/SFML-2.3.2/lib/libsfml-audio.so : référence indéfinie vers « std::__throw_out_of_range_fmt(char const*, ...)@GLIBCXX_3.4.20 »
collect2: error: ld returned 1 exit status
make[2]: *** [runner] Erreur 1
make[1]: *** [CMakeFiles/runner.dir/all] Erreur 2
make: *** [all] Erreur 2