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

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

Pages: [1] 2
1
The issue in Travis-ci comes from SFML which needs libudev.so1 whereas apt-get can only install libudev.so0. I tried symlinking it but it doesn't work. Here is the message :

/usr/bin/ld: warning: libudev.so.1, needed by ../libs/SFML-2.3.2/lib/libsfml-window.so, not found (try using -rpath or -rpath-link)
../libs/SFML-2.3.2/lib/libsfml-window.so: undefined reference to `udev_device_get_action@LIBUDEV_183'
../libs/SFML-2.3.2/lib/libsfml-window.so: undefined reference to `udev_list_entry_get_next@LIBUDEV_183'
[...]
collect2: error: ld returned 1 exit status
make[2]: *** [runner] Error 1
make[1]: *** [CMakeFiles/runner.dir/all] Error 2
make: *** [all] Error 2

2
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

I fixed this last issue by updating from gcc-4.8 to gcc-4.9. Compilation succeeded in local  ;D

Still,  I have to fix travis-ci having undefined ref with "udev" (installed udev0 but it needs udev1 that doesn't exist)

3
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

4
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.


5
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

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

7
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".

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

9
Hello,


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

10
Can you show the verbose log ("export VERBOSE=1" in console before running make)?

11
So what's the exact error message?

Here is the log of command make

12
Yes it's what I do each time by deleting build folder, just checked again and it fails at "linking CXX executable"

13
Hello, thanks but same issue with your proposition :/ I did thought about it this afternoon (and had forgotten it just after, though)

14
Cmake is working by replacing :
FIND_PACKAGE(SFML 2 COMPONENTS system window graphics audio REQUIRED )
by
FIND_PACKAGE(SFML 2.3 COMPONENTS system window graphics audio REQUIRED )

but "make" have undefined references for sf::color and sf::renderstate only

here is attached the command that make executes for linking into an executable

15
I had indeed an old version on my system. I understood "you must" as what I should do

Pages: [1] 2
anything