namelessvoid / qrwar

:european_castle: Pen&Paper like quad ruled war game.
MIT License
6 stars 0 forks source link

Ubuntu 18.04LTS rapport #106

Open AssociationSirius opened 5 years ago

AssociationSirius commented 5 years ago

Hi,

I will answer you as you asked me: These are not critics (I do not allow myself) just remarks

I try to compile and launch your program:

SFML & cmake:

cmake can not find the file findSFML.cmake it is in the /usr/share/SFML/cmake/Module/findSFML.cmake directory I copied it in cmake/module and the cmake test worked (not hard)

tinyXML2

this library is not tested by CMAKE it's a forgot ?(harm?) because the whole structure of CMAKE is set up, it lacks the test as to its existence. (not hard)

compilation

Everything works well. Yep !!!

ldd link

I have this message

/usr/bin/ld: libqrwar.a(introstate.cpp.o): référence au symbole non défini « _ZN2sf9VideoModeC1Ejjj »

/usr/lib/x86_64-linux-gnu/libsfml-window.so.2.4 : erreur lors de l'ajout de symboles : DSO manquant dans la ligne de commande

Who can I help you ?

SFML is full installed:

image

namelessvoid commented 5 years ago

Merci beaucoup for your effort and detailed information! Your remarks are very valuable to me!

To provide better compatibility checks on my side, I'm currently trying to create a Ubuntu 18.04 based docker image for CI.

AssociationSirius commented 5 years ago

image

Compilation done. I will take time to install SFML2.5 and see what happens

image

At first time:

image

If the user does not pay attention to the warnings, then the warning will not be read.

I suggest to modifiy CMakeLists with

find_package(tinyxml2 REQUIRED)
if(TINYXML2_FOUND)
    include_directories(${TINYXML2_INCLUDE_DIR})
    set(LIBS ${LIBS} ${TINYXML2_LIBRARIES})
else(TINYXML2_FOUND)
    message(FATAL_ERROR "no TINYXML2 was found")
endif(TINYXML2_FOUND)

With this, the program will compile and link correctly.