Bon j'ai tout les .a qu'il me faut sauf celui de la librairie assimp, il n'y a que les .lib et lorsque j'essaie de le compiler avec mingw il me donne cette erreur :
C:\Users\Laurent\Downloads\assimp-master\assimp-master\build>mingw32-make
[ 0%] Generating zlib1rc.obj
'C:\Program' n’est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\windres.exe: preprocessing failed.
mingw32-make[2]: *** [contrib\zlib\CMakeFiles\zlib.dir\build.make:61: contrib/zlib/zlib1rc.obj] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:244: contrib/zlib/CMakeFiles/zlib.dir/all] Error 2
mingw32-make: *** [Makefile:129: all] Error 2
Donc, je suis bloqué.
Mais assimp est un projet git cwc devrait le téléchargé et le compilé, hors que j'ai du mettre les headers de assimp dans le dossier manuellement.
PS : j'ai mis le fichier libglew32.a et libssl.a dans le dossier ODFAEG/extlibs/libs-mingw/x86/ et j'ai essayé de les linké au projet : -lglew32 -lsfml-system -lsfml-window -lsfml-graphics -lsfml-network -lsfml-audio
-luser32 -lssl -lgdi32 -lopengl32
Mais j'ai toujours des erreurs d'undefined reference vers les fonctions de glew, de sfml et de openssl.
obj/cpp_Windows_O2/lib/ODFAEG/srkserveur.o:srkserveur.cpp:(.text$_ZN2sf11TcpListenerD1Ev[__ZN2sf11TcpListenerD1Ev]+0x7): undefined reference to `sf::Socket::~Socket()'
obj/cpp_Windows_O2/lib/ODFAEG/srkserveur.o:srkserveur.cpp:(.text$_ZN2sf11TcpListenerD0Ev[__ZN2sf11TcpListenerD0Ev]+0xd): undefined reference to `sf::Socket::~Socket()'
obj/cpp_Windows_O2/lib/ODFAEG/srkserveur.o:srkserveur.cpp:(.text$_ZN6odfaeg7network9SrkServerD2Ev+0x51): undefined reference to `sf::SocketSelector::remove(sf::Socket&)'
obj/cpp_Windows_O2/lib/ODFAEG/srkserveur.o:srkserveur.cpp:(.text$_ZN6odfaeg7network9SrkServerD2Ev+0x87): undefined reference to `sf::TcpListener::close()'
obj/cpp_Windows_O2/lib/ODFAEG/srkserveur.o:srkserveur.cpp:(.text$_ZN6odfaeg7network9SrkServerD2Ev+0xad): undefined reference to `sf::Socket::~Socket()'
obj/cpp_Windows_O2/lib/ODFAEG/srkserveur.o:srkserveur.cpp:(.text$_ZN6odfaeg7network9SrkServerD2Ev+0xbb): undefined reference to `sf::Socket::~Socket()'
obj/cpp_Windows_O2/lib/ODFAEG/srkserveur.o:srkserveur.cpp:(.text$_ZN6odfaeg7network9SrkServerD2Ev+0xc2): undefined reference to `sf::SocketSelector::~SocketSelector()'
obj/cpp_Windows_O2/lib/ODFAEG/srkserveur.o:srkserveur.cpp:(.text$_ZN6odfaeg7network9SrkServerC2Ev+0x69): undefined reference to `sf::SocketSelector::SocketSelector()'
obj/cpp_Windows_O2/lib/ODFAEG/srkserveur.o:srkserveur.cpp:(.text$_ZN6odfaeg7network9SrkServerC2Ev+0x83): undefined reference to `sf::TcpListener::TcpListener()'
obj/cpp_Windows_O2/lib/ODFAEG/srkserveur.o:srkserveur.cpp:(.text$_ZN6odfaeg7network9SrkServerC2Ev+0x97): undefined reference to `sf::UdpSocket::UdpSocket()'
obj/cpp_Windows_O2/lib/ODFAEG/srkserveur.o:srkserveur.cpp:(.text$_ZN6odfaeg7network9SrkServerC2Ev+0xf5): undefined reference to `sf::SocketSelector::~SocketSelector()'
obj/cpp_Windows_O2/lib/ODFAEG/srkserveur.o:srkserveur.cpp:(.text$_ZN6odfaeg7network9SrkServerC2Ev+0x110): undefined reference to `sf::Socket::~Socket()'
obj/cpp_Windows_O2/lib/ODFAEG/client.o:client.cpp:(.text$_ZN2sf9UdpSocketD1Ev[__ZN2sf9UdpSocketD1Ev]+0x22): undefined reference to `sf::Socket::~Socket()'
obj/cpp_Windows_O2/lib/ODFAEG/client.o:client.cpp:(.text$_ZN2sf9TcpSocketD1Ev[__ZN2sf9TcpSocketD1Ev]+0x22): undefined reference to `sf::Socket::~Socket()'
obj/cpp_Windows_O2/lib/ODFAEG/client.o:client.cpp:(.text$_ZN2sf9UdpSocketD0Ev[__ZN2sf9UdpSocketD0Ev]+0x1e): undefined reference to `sf::Socket::~Socket()'
obj/cpp_Windows_O2/lib/ODFAEG/client.o:client.cpp:(.text$_ZN2sf9TcpSocketD0Ev[__ZN2sf9TcpSocketD0Ev]+0x1e): undefined reference to `sf::Socket::~Socket()'
obj/cpp_Windows_O2/lib/ODFAEG/client.o:client.cpp:(.text$_ZN6odfaeg7network9SrkClientC2Ev+0x4e): undefined reference to `sf::TcpSocket::TcpSocket()'
obj/cpp_Windows_O2/lib/ODFAEG/client.o:client.cpp:(.text$_ZN6odfaeg7network9SrkClientC2Ev+0x68): undefined reference to `sf::UdpSocket::UdpSocket()'
obj/cpp_Windows_O2/lib/ODFAEG/client.o:client.cpp:(.text$_ZN6odfaeg7network9SrkClientC2Ev+0x80): undefined reference to `sf::SocketSelector::SocketSelector()'
obj/cpp_Windows_O2/lib/ODFAEG/client.o:client.cpp:(.text$_ZN6odfaeg7network9SrkClientC2Ev+0x94): undefined reference to `sf::IpAddress::IpAddress()'
obj/cpp_Windows_O2/lib/ODFAEG/client.o:client.cpp:(.text$_ZN6odfaeg7network9SrkClientC2Ev+0xfd): undefined reference to `sf::SocketSelector::~SocketSelector()'
obj/cpp_Windows_O2/lib/ODFAEG/entity.o:entity.cpp:(.text$_ZN6odfaeg7graphic6Entity9initTypesB5cxx11Ev[__ZN6odfaeg7graphic6Entity9initTypesB5cxx11Ev]+0x35): undefined reference to `odfaeg::graphic::Entity::types[abi:cxx11]'
obj/cpp_Windows_O2/lib/ODFAEG/entity.o:entity.cpp:(.text$_ZN6odfaeg7graphic6Entity12getIntOfTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x9): undefined reference to `odfaeg::graphic::Entity::types[abi:cxx11]'
obj/cpp_Windows_O2/lib/ODFAEG/entity.o:entity.cpp:(.text$_ZN6odfaeg7graphic6Entity7setTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x93): undefined reference to `odfaeg::graphic::Entity::types[abi:cxx11]'
obj/cpp_Windows_O2/lib/ODFAEG/entity.o:entity.cpp:(.text$_ZN6odfaeg7graphic6Entity7setTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x112): undefined reference to `odfaeg::graphic::Entity::nbEntitiesTypes'
obj/cpp_Windows_O2/lib/ODFAEG/entity.o:entity.cpp:(.text$_ZN6odfaeg7graphic6Entity7setTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x1e2): undefined reference to `odfaeg::graphic::Entity::types[abi:cxx11]'
obj/cpp_Windows_O2/lib/ODFAEG/entity.o:entity.cpp:(.text$_ZN6odfaeg7graphic6Entity7setTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x1f5): undefined reference to `odfaeg::graphic::Entity::nbEntitiesTypes'
obj/cpp_Windows_O2/lib/ODFAEG/entity.o:entity.cpp:(.text$_ZN6odfaeg7graphic6EntityC2ENS_4math5Vec3fES3_S3_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPS1_+0x606): undefined reference to `odfaeg::math::Vec3f::zAxis'
obj/cpp_Windows_O2/lib/ODFAEG/entity.o:entity.cpp:(.text$_ZN6odfaeg7graphic6EntityC2ENS_4math5Vec3fES3_S3_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPS1_+0x619): undefined reference to `odfaeg::math::Vec3f::zAxis'
obj/cpp_Windows_O2/lib/ODFAEG/entity.o:entity.cpp:(.text$_ZN6odfaeg7graphic6EntityC2ENS_4math5Vec3fES3_S3_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPS1_+0x622): undefined reference to `odfaeg::math::Vec3f::zAxis'
obj/cpp_Windows_O2/lib/ODFAEG/entity.o:entity.cpp:(.text$_ZN6odfaeg7graphic6EntityC2ENS_4math5Vec3fES3_S3_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPS1_+0x62b): undefined reference to `odfaeg::math::Vec3f::zAxis'
obj/cpp_Windows_O2/lib/ODFAEG/entity.o:entity.cpp:(.text$_ZN6odfaeg7graphic6EntityC2ENS_4math5Vec3fES3_S3_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPS1_+0xae8): undefined reference to `odfaeg::graphic::Entity::types[abi:cxx11]'
obj/cpp_Windows_O2/lib/ODFAEG/entity.o:entity.cpp:(.text$_ZN6odfaeg7graphic6EntityC2ENS_4math5Vec3fES3_S3_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPS1_+0xaff): undefined reference to `odfaeg::graphic::Entity::types[abi:cxx11]'
obj/cpp_Windows_O2/lib/ODFAEG/entity.o:entity.cpp:(.text$_ZN6odfaeg7graphic6EntityC2ENS_4math5Vec3fES3_S3_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPS1_+0xb7b): undefined reference to `odfaeg::graphic::Entity::types[abi:cxx11]'
obj/cpp_Windows_O2/lib/ODFAEG/entity.o:entity.cpp:(.text$_ZN6odfaeg7graphic6EntityC2ENS_4math5Vec3fES3_S3_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPS1_+0xbf3): undefined reference to `odfaeg::graphic::Entity::nbEntities'
obj/cpp_Windows_O2/lib/ODFAEG/entity.o:entity.cpp:(.text$_ZN6odfaeg7graphic6EntityC2ENS_4math5Vec3fES3_S3_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPS1_+0xc26): undefined reference to `odfaeg::graphic::Entity::nbEntities'
obj/cpp_Windows_O2/lib/ODFAEG/entity.o:entity.cpp:(.text$_ZN6odfaeg7graphic6EntityC2ENS_4math5Vec3fES3_S3_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPS1_+0xcfe): undefined reference to `odfaeg::math::Vec3f::zAxis'
obj/cpp_Windows_O2/lib/ODFAEG/entity.o:entity.cpp:(.text$_ZN6odfaeg7graphic6EntityC2ENS_4math5Vec3fES3_S3_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPS1_+0xd51): undefined reference to `odfaeg::graphic::Entity::nbEntitiesTypes'
obj/cpp_Windows_O2/lib/ODFAEG/entity.o:entity.cpp:(.text$_ZN6odfaeg7graphic6EntityC2ENS_4math5Vec3fES3_S3_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPS1_+0xe4f): undefined reference to `odfaeg::graphic::Entity::types[abi:cxx11]'
obj/cpp_Windows_O2/lib/ODFAEG/entity.o:entity.cpp:(.text$_ZN6odfaeg7graphic6EntityC2ENS_4math5Vec3fES3_S3_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPS1_+0xe5d): undefined reference to `odfaeg::graphic::Entity::nbEntitiesTypes'
obj/cpp_Windows_O2/lib/ODFAEG/odfaeg/Math/ray.o:ray.cpp:(.text$_ZN6odfaeg4math3RayC2ENS0_5Vec3fES2_+0x4f): undefined reference to `_imp___ZN6odfaeg4math5Vec3fmiERKS1_'
obj/cpp_Windows_O2/lib/ODFAEG/odfaeg/Math/ray.o:ray.cpp:(.text$_ZN6odfaeg4math3Ray15intersectsWhereERS1_+0x56): undefined reference to `_imp___ZN6odfaeg4math5Vec3fmiERKS1_'
obj/cpp_Windows_O2/lib/ODFAEG/odfaeg/Math/ray.o:ray.cpp:(.text$_ZN6odfaeg4math3Ray15intersectsWhereERS1_+0x5c): undefined reference to `_imp___ZNK6odfaeg4math5Vec3f5crossERKS1_'
obj/cpp_Windows_O2/lib/ODFAEG/odfaeg/Math/ray.o:ray.cpp:(.text$_ZN6odfaeg4math3Ray15intersectsWhereERS1_+0x86): undefined reference to `_imp___ZNK6odfaeg4math5Vec3f3dotERKS1_'
obj/cpp_Windows_O2/lib/ODFAEG/odfaeg/Math/ray.o:ray.cpp:(.text$_ZN6odfaeg4math3Ray15intersectsWhereERS1_+0x106): undefined reference to `_imp___ZN6odfaeg4math5Vec3f4dot2ERKS1_'
obj/cpp_Windows_O2/lib/ODFAEG/odfaeg/Math/ray.o:ray.cpp:(.text$_ZN6odfaeg4math3Ray15intersectsWhereERS1_+0x131): undefined reference to `_imp___ZNK6odfaeg4math5Vec3f11magnSquaredEv'
obj/cpp_Windows_O2/lib/ODFAEG/animation.o:animation.cpp:(.text$_ZN6odfaeg7graphic4AnimC2Ev+0x235): undefined reference to `sf::Clock::Clock()'
obj/cpp_Windows_O2/lib/ODFAEG/animation.o:animation.cpp:(.text$_ZN6odfaeg7graphic4AnimC2EfNS_4math5Vec3fES3_PNS0_6EntityE+0x1e9): undefined reference to `sf::Clock::Clock()'
obj/cpp_Windows_O2/lib/ODFAEG/vertexArray.o:vertexArray.cpp:(.text$_ZN6odfaeg7graphic11VertexArrayD2Ev+0x1ba): undefined reference to `__glewDeleteBuffers'
obj/cpp_Windows_O2/lib/ODFAEG/vertexArray.o:vertexArray.cpp:(.text$_ZN6odfaeg7graphic11VertexArrayD2Ev+0x1f5): undefined reference to `__glewDeleteBuffers'
obj/cpp_Windows_O2/lib/ODFAEG/vertexArray.o:vertexArray.cpp:(.text$_ZN6odfaeg7graphic11VertexArrayD2Ev+0x22a): undefined reference to `__glewDeleteBuffers'
obj/cpp_Windows_O2/lib/ODFAEG/renderStates.o:renderStates.cpp:(.text$_ZN6odfaeg7graphic12RenderStatesC2Ev+0xa): undefined reference to `sf::BlendAlpha'
obj/cpp_Windows_O2/lib/ODFAEG/renderStates.o:renderStates.cpp:(.text$_ZN6odfaeg7graphic12RenderStatesC2Ev+0x12): undefined reference to `sf::BlendAlpha'
obj/cpp_Windows_O2/lib/ODFAEG/renderStates.o:renderStates.cpp:(.text$_ZN6odfaeg7graphic12RenderStatesC2Ev+0x1a): undefined reference to `sf::BlendAlpha'
obj/cpp_Windows_O2/lib/ODFAEG/renderStates.o:renderStates.cpp:(.text$_ZN6odfaeg7graphic12RenderStatesC2Ev+0x22): undefined reference to `sf::BlendAlpha'
obj/cpp_Windows_O2/lib/ODFAEG/renderStates.o:renderStates.cpp:(.text$_ZN6odfaeg7graphic12RenderStatesC2Ev+0x2a): undefined reference to `sf::BlendAlpha'
obj/cpp_Windows_O2/lib/ODFAEG/renderStates.o:renderStates.cpp:(.text$_ZN6odfaeg7graphic12RenderStatesC2Ev+0x32): more undefined references to `sf::BlendAlpha' follow
obj/cpp_Windows_O2/lib/ODFAEG/renderTarget.o:renderTarget.cpp:(.text$_ZN6odfaeg7graphic12RenderTarget14applyBlendModeERKN2sf9BlendModeE+0xc): undefined reference to `__glewBlendFuncSeparate'
obj/cpp_Windows_O2/lib/ODFAEG/renderTarget.o:renderTarget.cpp:(.text$_ZN6odfaeg7graphic12RenderTarget14applyBlendModeERKN2sf9BlendModeE+0xba): undefined reference to `__glewBlendEquationSeparate'
obj/cpp_Windows_O2/lib/ODFAEG/renderTarget.o:renderTarget.cpp:(.text$_ZN6odfaeg7graphic12RenderTarget14applyTransformERNS0_15TransformMatrixE+0x9): undefined reference to `glLoadIdentity@0'
obj/cpp_Windows_O2/lib/ODFAEG/renderTarget.o:renderTarget.cpp:(.text$_ZN6odfaeg7graphic12RenderTarget14applyTransformERNS0_15TransformMatrixE+0x62): undefined reference to `glMultMatrixf@4'
obj/cpp_Windows_O2/lib/ODFAEG/renderTarget.o:renderTarget.cpp:(.text$_ZN6odfaeg7graphic12RenderTarget16applyCurrentViewEv+0x190): undefined reference to `glViewport@16'
obj/cpp_Windows_O2/lib/ODFAEG/renderTarget.o:renderTarget.cpp:(.text$_ZN6odfaeg7graphic12RenderTarget16applyCurrentViewEv+0x1b3): undefined reference to `glMatrixMode@4'
obj/cpp_Windows_O2/lib/ODFAEG/renderTarget.o:renderTarget.cpp:(.text$_ZN6odfaeg7graphic12RenderTarget16applyCurrentViewEv+0x234): undefined reference to `glLoadMatrixf@4'
obj/cpp_Windows_O2/lib/ODFAEG/renderTarget.o:renderTarget.cpp:(.text$_ZN6odfaeg7graphic12RenderTarget16applyCurrentViewEv+0x2b9): undefined reference to `glMultMatrixf@4'
obj/cpp_Windows_O2/lib/ODFAEG/renderTarget.o:renderTarget.cpp:(.text$_ZN6odfaeg7graphic12RenderTarget16applyCurrentViewEv+0x2e7): undefined reference to `glMatrixMode@4'
obj/cpp_Windows_O2/lib/ODFAEG/renderTarget.o:renderTarget.cpp:(.text$_ZN6odfaeg7graphic12RenderTarget13resetGLStatesEv+0x91): undefined reference to `glGetError@0'
obj/cpp_Windows_O2/lib/ODFAEG/renderTarget.o:renderTarget.cpp:(.text$_ZN6odfaeg7graphic12RenderTarget13resetGLStatesEv+0xb5): undefined reference to `glDisable@4'
obj/cpp_Windows_O2/lib/ODFAEG/renderTarget.o:renderTarget.cpp:(.text$_ZN6odfaeg7graphic12RenderTarget13resetGLStatesEv+0xd8): undefined reference to `glDisable@4'
obj/cpp_Windows_O2/lib/ODFAEG/renderTarget.o:renderTarget.cpp:(.text$_ZN6odfaeg7graphic12RenderTarget13resetGLStatesEv+0xfb): undefined reference to `glEnable@4'
obj/cpp_Windows_O2/lib/ODFAEG/renderTarget.o:renderTarget.cpp:(.text$_ZN6odfaeg7graphic12RenderTarget13resetGLStatesEv+0x13b): undefined reference to `glDisable@4'
obj/cpp_Windows_O2/lib/ODFAEG/renderTarget.o:renderTarget.cpp:(.text$_ZN6odfaeg7graphic12RenderTarget13resetGLStatesEv+0x176): undefined reference to `glAlphaFunc@8'
obj/cpp_Windows_O2/lib/ODFAEG/renderTarget.o:renderTarget.cpp:(.text$_ZN6odfaeg7graphic12RenderTarget13resetGLStatesEv+0x199): undefined reference to `glDepthFunc@4'
obj/cpp_Windows_O2/lib/ODFAEG/renderTarget.o:renderTarget.cpp:(.text$_ZN6odfaeg7graphic12RenderTarget13resetGLStatesEv+0x1bc): undefined reference to `glEnable@4'
obj/cpp_Windows_O2/lib/ODFAEG/renderTarget.o:renderTarget.cpp:(.text$_ZN6odfaeg7graphic12RenderTarget13resetGLStatesEv+0x1df): undefined reference to `glEnable@4'
obj/cpp_Windows_O2/lib/ODFAEG/renderTarget.o:renderTarget.cpp:(.text$_ZN6odfaeg7graphic12RenderTarget13resetGLStatesEv+0x202): undefined reference to `glEnable@4'
obj/cpp_Windows_O2/lib/ODFAEG/renderTarget.o:renderTarget.cpp:(.text$_ZN6odfaeg7graphic12RenderTarget13resetGLStatesEv+0x223): undefined reference to `glClearDepth@8'
obj/cpp_Windows_O2/lib/ODFAEG/renderTarget.o:renderTarget.cpp:(.text$_ZN6odfaeg7graphic12RenderTarget13resetGLStatesEv+0x246): undefined reference to `glDepthMask@4'
obj/cpp_Windows_O2/lib/ODFAEG/renderTarget.o:renderTarget.cpp:(.text$_ZN6odfaeg7graphic12RenderTarget13resetGLStatesEv+0x269): undefined reference to `glDisable@4'
obj/cpp_Windows_O2/lib/ODFAEG/renderTarget.o:renderTarget.cpp:(.text$_ZN6odfaeg7graphic12RenderTarget13resetGLStatesEv+0x296): undefined reference to `sf::BlendAlpha'
Pourtant j'ai bien tout mis les .a dans les dossiers (je l'ai ai update sur git), voici le fichier build :
Bon j'ai tout les .a qu'il me faut sauf celui de la librairie assimp, il n'y a que les .lib
Je pense que Mingw accepte les .lib, j'avais déjà compilé ce projet avec succès, (qui utilise assimp)
'C:\Program' n’est pas reconnu en tant que commande interne
Ça c'est une erreur, d'utilisation des espaces dans les "paths", il faut mettre des guillemet si c'est le cas: "C:\Program Files\mingw-w64\..." , ou bien utilisé autre chose que cmake...
OmbreNoire a écrit:
Mais assimp est un projet git cwc devrait le téléchargé et le compilé, hors que j'ai du mettre les headers de assimp dans le dossier manuellement.
Je voulais dire un projet github qui utilise Cwc, faut au minimum un .cwMake dans le projet. Ce qui est possible, c'est de faire un fork du projet et ajouté les instructions de build. Pour assimp c'est sûrement quelque chose que je vais faire prochainement. (Plus il y aura de projet "Cwc" et plus ce sera user friendly)
GZE, un moteur multiplateforme, adapté pour de la 2D, 3D et création de logiciels.
J'ai mit en commentaire les lignes pour généré l'exécutable de ODFAEG, maintenant il compile ODFAEGDEMO, mais j'ai cette erreur en compilation :
/usr/include/c++/4.9/new:129:41: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter [-fpermissive]
/usr/include/c++/4.9/new:131:41: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter [-fpermissive]
/usr/include/c++/4.9/new:137:41: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter [-fpermissive]
/usr/include/c++/4.9/new:139:41: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter [-fpermissive]
/usr/include/c++/4.9/new:146:51: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter [-fpermissive]
/usr/include/c++/4.9/new:148:53: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter [-fpermissive]
In file included from /usr/include/c++/4.9/bits/basic_string.h:42,
from /usr/include/c++/4.9/string:52,
from /usr/include/c++/4.9/bits/locale_classes.h:40,
from /usr/include/c++/4.9/bits/ios_base.h:41,
from /usr/include/c++/4.9/ios:42,
from /usr/include/c++/4.9/ostream:38,
from /usr/include/c++/4.9/iostream:39,
from main.cpp:1:
/usr/include/c++/4.9/initializer_list:47:11: fatal error: definition of 'class std::initializer_list<_E>' does not match '#include <initializer_list>'
compilation terminated.
--Stop Build--
--- End with 7 errors --- 9.84 sec
PS : j'ai remit à jour le dépôt git, apparemment le code de ODFAEG-DEMO n'avait pas été mit à jour.
Bon je peux pas push (Pourrais-tu me donné les droits?) mais ton fichier source.pp.cpp ne ressemble pas à du C++
je t'ai ajouté comme contributor normalement maintenant tu peux push, le fichier source.pp.cpp tu peux le supprimer, je l'ai supprimé c'était ça la cause de l'erreur en compilation.
Maintenant j'ai d'autres erreur au linkage :
C:/Users/Laurent/Downloads/Cwc-0.0.95.7/Cwc-0.0.95.7/Toolchain/VLianceTool/LibRT/LibRT-8.0.3/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/bin/ld.exe: skipping incompatible ../ODFAEG/extlibs/libs-mingw/x86//libssl.a when searching for -lssl
C:/Users/Laurent/Downloads/Cwc-0.0.95.7/Cwc-0.0.95.7/Toolchain/VLianceTool/LibRT/LibRT-8.0.3/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/bin/ld.exe: skipping incompatible ../ODFAEG/extlibs/libs-mingw/x86//libssl.a when searching for -lssl
C:/Users/Laurent/Downloads/Cwc-0.0.95.7/Cwc-0.0.95.7/Toolchain/VLianceTool/LibRT/LibRT-8.0.3/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/bin/ld.exe: skipping incompatible ../ODFAEG/extlibs/libs-mingw/x86//libssl.a when searching for -lssl
C:/Users/Laurent/Downloads/Cwc-0.0.95.7/Cwc-0.0.95.7/Toolchain/VLianceTool/LibRT/LibRT-8.0.3/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lssl
collect2.exe: error: ld returned 1 exit status
--Stop Build--
--- End with 1 error --- 4.33 sec
Pourtant j'ai téléchargé la librairie précompilée d'openssl pour mingw.
Tu peux pas comparer ce que tu as construit progressivement sous Linux et passer à une autre plateforme en espérant que ça fonctionne. Le temps que ta passé sous Linux n'est sans doute pas comparable.
Tout ce qui te reste à faire c'est regarder où se situe les fonctions qui manque et t'assurer qu'elle sont linké ou compilé.
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_addr.o):(.text+0xa8): undefined reference to `_imp__getnameinfo@28'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_addr.o):(.text+0xde): undefined reference to `_imp__ntohs@4'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_addr.o):(.text+0x275): undefined reference to `gai_strerrorW'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_addr.o):(.text+0x790): undefined reference to `_imp__freeaddrinfo@4'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_addr.o):(.text+0xaeb): undefined reference to `_imp__getaddrinfo@16'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_addr.o):(.text+0xb52): undefined reference to `gai_strerrorW'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_addr.o):(.text+0xc33): undefined reference to `_imp__getaddrinfo@16'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_addr.o):(.text+0xca2): undefined reference to `gai_strerrorW'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock.o):(.text+0xd9): undefined reference to `_imp__WSAStartup@8'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock.o):(.text+0xea): undefined reference to `_imp__WSAGetLastError@0'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock.o):(.text+0x2b7): undefined reference to `_imp__WSAStartup@8'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock.o):(.text+0x2c8): undefined reference to `_imp__WSAGetLastError@0'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock.o):(.text+0x3a1): undefined reference to `_imp__ntohs@4'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock.o):(.text+0x3fc): undefined reference to `_imp__getsockopt@20'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock.o):(.text+0x413): undefined reference to `_imp__WSAGetLastError@0'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock.o):(.text+0x42c): undefined reference to `_imp__gethostbyname@4'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock.o):(.text+0x47b): undefined reference to `_imp__WSAStartup@8'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock.o):(.text+0x492): undefined reference to `_imp__WSAGetLastError@0'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock.o):(.text+0x51c): undefined reference to `_imp__WSACleanup@0'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock.o):(.text+0x53d): undefined reference to `_imp__ioctlsocket@12'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock.o):(.text+0x553): undefined reference to `_imp__WSAGetLastError@0'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock.o):(.text+0x727): undefined reference to `_imp__WSAStartup@8'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock.o):(.text+0x738): undefined reference to `_imp__WSAGetLastError@0'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock.o):(.text+0x932): undefined reference to `_imp__WSAGetLastError@0'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock.o):(.text+0x9bc): undefined reference to `_imp__setsockopt@20'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock.o):(.text+0x9f5): undefined reference to `_imp__ioctlsocket@12'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock.o):(.text+0xa12): undefined reference to `_imp__WSAGetLastError@0'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock.o):(.text+0xa86): undefined reference to `_imp__getsockname@12'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock.o):(.text+0xae4): undefined reference to `_imp__WSAGetLastError@0'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock2.o):(.text+0x27): undefined reference to `_imp__socket@12'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock2.o):(.text+0x49): undefined reference to `_imp__WSAGetLastError@0'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock2.o):(.text+0x11c): undefined reference to `_imp__setsockopt@20'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock2.o):(.text+0x157): undefined reference to `_imp__connect@12'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock2.o):(.text+0x195): undefined reference to `_imp__setsockopt@20'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock2.o):(.text+0x1a6): undefined reference to `_imp__WSAGetLastError@0'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock2.o):(.text+0x264): undefined reference to `_imp__WSAGetLastError@0'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock2.o):(.text+0x2c3): undefined reference to `_imp__WSAGetLastError@0'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock2.o):(.text+0x362): undefined reference to `_imp__bind@12'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock2.o):(.text+0x3c2): undefined reference to `_imp__WSAGetLastError@0'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock2.o):(.text+0x477): undefined reference to `_imp__getsockopt@20'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock2.o):(.text+0x48b): undefined reference to `_imp__WSAGetLastError@0'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock2.o):(.text+0x543): undefined reference to `_imp__setsockopt@20'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock2.o):(.text+0x58e): undefined reference to `_imp__bind@12'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock2.o):(.text+0x5fd): undefined reference to `_imp__listen@8'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock2.o):(.text+0x60b): undefined reference to `_imp__WSAGetLastError@0'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock2.o):(.text+0x695): undefined reference to `_imp__setsockopt@20'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock2.o):(.text+0x6a6): undefined reference to `_imp__WSAGetLastError@0'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock2.o):(.text+0x737): undefined reference to `_imp__setsockopt@20'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock2.o):(.text+0x748): undefined reference to `_imp__WSAGetLastError@0'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock2.o):(.text+0x7b2): undefined reference to `_imp__WSAGetLastError@0'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock2.o):(.text+0x813): undefined reference to `_imp__WSAGetLastError@0'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock2.o):(.text+0x8b6): undefined reference to `_imp__accept@12'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock2.o):(.text+0x8f7): undefined reference to `_imp__WSAGetLastError@0'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock2.o):(.text+0x95b): undefined reference to `_imp__closesocket@4'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock2.o):(.text+0x97c): undefined reference to `_imp__closesocket@4'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(bss_sock.o):(.text+0x1a1): undefined reference to `_imp__WSASetLastError@4'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(bss_sock.o):(.text+0x1c0): undefined reference to `_imp__send@16'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(bss_sock.o):(.text+0x1fa): undefined reference to `_imp__WSAGetLastError@0'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(bss_sock.o):(.text+0x262): undefined reference to `_imp__WSASetLastError@4'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(bss_sock.o):(.text+0x289): undefined reference to `_imp__send@16'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(bss_sock.o):(.text+0x2ba): undefined reference to `_imp__WSAGetLastError@0'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(bss_sock.o):(.text+0x32d): undefined reference to `_imp__WSASetLastError@4'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(bss_sock.o):(.text+0x350): undefined reference to `_imp__recv@16'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(bss_sock.o):(.text+0x38a): undefined reference to `_imp__WSAGetLastError@0'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(bss_sock.o):(.text+0x457): undefined reference to `_imp__WSAGetLastError@0'
obj/cpp_Windows_O2/lib/ODFAEG/rsa.o:rsa.cpp:(.text$_ZN6odfaeg7network3Rsa21ossl_encryptWithPrKeyEPKhiRi+0x6f): undefined reference to `ERR_load_crypto_strings'
obj/cpp_Windows_O2/lib/ODFAEG/rsa.o:rsa.cpp:(.text$_ZN6odfaeg7network3Rsa21ossl_decryptWithPrKeyEPKhiRi+0x6f): undefined reference to `ERR_load_crypto_strings'
obj/cpp_Windows_O2/lib/ODFAEG/rsa.o:rsa.cpp:(.text$_ZN6odfaeg7network3Rsa21ossl_encryptWithPbKeyEPKhiRi+0x6f): undefined reference to `ERR_load_crypto_strings'
obj/cpp_Windows_O2/lib/ODFAEG/rsa.o:rsa.cpp:(.text$_ZN6odfaeg7network3Rsa21ossl_decryptWithPbKeyEPKhiRi+0x6f): undefined reference to `ERR_load_crypto_strings'
obj/cpp_Windows_O2/lib/ODFAEG/aes.o:aes.cpp:(.text$_ZN6odfaeg7network7AES_ENC12ossl_decryptEPKhjRj+0xd0): undefined reference to `ERR_load_crypto_strings'
Tout est bien compilé et linké, je vais repassé sous linux je pense ça sera plus simple. Là il télécharge les dépendances et les installe directement dans le bon dossier et quand je les link au projet avec codeblocks je n'ai pas toutes ses erreurs d'undefined reference. PS : j'ai regardé dans quel dossier sont les libs de SFML et c'est le bon dossier je ne comprends pas pourquoi il ne link pas SFML. Et pareil pour les autres librairies.
J'ai regardé si les .a sont bien dans les dossiers mentionnés avec l'option —L, apparemment oui, donc là je bloque, je suis contraint d'abandonner la version Windows.
Il manque pas grand chose, je vais regarder ça lorsque j'aurais un peu de temps
Tu utilise quel version de SFML sous Linux?
En attendant j'ai fais quelques corrections (avec un commit).
Edit:
J'en ai corrigé beaucoup, il ne reste plus que ça:
obj/cpp_Windows_Debug/lib/ODFAEG/SFML/sfmlWindowImpl.o:sfmlWindowImpl.cpp:(.rdata$_ZTVN6odfaeg6window14SFMLWindowImplE[__ZTVN6odfaeg6window14SFMLWindowImplE]+0x1c): undefined reference to `odfaeg::window::SFMLWindowImpl::filterEvent(odfaeg::window::IEvent const&)'
obj/cpp_Windows_Debug/lib/ODFAEG/Network/aes.o: In function `ZN6odfaeg7network7AES_ENC12ossl_decryptEPKhjRj':
E:\_Test\ODFAEG\cwc/../ODFAEG/src/odfaeg/Network/aes.cpp:951: undefined reference to `ERR_load_crypto_strings'
obj/cpp_Windows_Debug/lib/ODFAEG/Network/rsa.o: In function `ZN6odfaeg7network3Rsa21ossl_encryptWithPrKeyEPKhiRi':
E:\_Test\ODFAEG\cwc/../ODFAEG/src/odfaeg/Network/rsa.cpp:236: undefined reference to `ERR_load_crypto_strings'
obj/cpp_Windows_Debug/lib/ODFAEG/Network/rsa.o: In function `ZN6odfaeg7network3Rsa21ossl_decryptWithPrKeyEPKhiRi':
E:\_Test\ODFAEG\cwc/../ODFAEG/src/odfaeg/Network/rsa.cpp:249: undefined reference to `ERR_load_crypto_strings'
obj/cpp_Windows_Debug/lib/ODFAEG/Network/rsa.o: In function `ZN6odfaeg7network3Rsa21ossl_encryptWithPbKeyEPKhiRi':
E:\_Test\ODFAEG\cwc/../ODFAEG/src/odfaeg/Network/rsa.cpp:262: undefined reference to `ERR_load_crypto_strings'
obj/cpp_Windows_Debug/lib/ODFAEG/Network/rsa.o: In function `ZN6odfaeg7network3Rsa21ossl_decryptWithPbKeyEPKhiRi':
E:\_Test\ODFAEG\cwc/../ODFAEG/src/odfaeg/Network/rsa.cpp:276: undefined reference to `ERR_load_crypto_strings'
obj/cpp_Windows_Debug/lib/ODFAEG/Network/symEncPacket.o: In function `ZN6odfaeg7network7AES_ENCD1Ev':
E:/_Test/ODFAEG/ODFAEG/include/odfaeg/Network/aes.h:106: undefined reference to `EVP_CIPHER_CTX_cleanup'
E:/_Test/ODFAEG/ODFAEG/include/odfaeg/Network/aes.h:107: undefined reference to `EVP_CIPHER_CTX_cleanup'
obj/cpp_Windows_Debug/lib/ODFAEG/Network/symEncPacket.o: In function `ZN6odfaeg7network7AES_ENC16ossl_generateKeyEi':
E:/_Test/ODFAEG/ODFAEG/include/odfaeg/Network/aes.h:256: undefined reference to `EVP_CIPHER_CTX_init'
E:/_Test/ODFAEG/ODFAEG/include/odfaeg/Network/aes.h:258: undefined reference to `EVP_CIPHER_CTX_init'
obj/cpp_Windows_Debug/lib/ODFAEG/Graphics/GUI/menu.o: In function `ZN6odfaeg7graphic3gui4MenuC2ERNS0_12RenderWindowEPKNS0_4FontENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE':
E:\_Test\ODFAEG\cwc/../ODFAEG/src/odfaeg/Graphics/GUI/menu.cpp:8: undefined reference to `sf::String::operator std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >() const'
obj/cpp_Windows_Debug/lib/ODFAEG/Graphics/GUI/menuItem.o: In function `ZN6odfaeg7graphic3gui8MenuItemC2ERNS0_12RenderWindowEPKNS0_4FontENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE':
E:\_Test\ODFAEG\cwc/../ODFAEG/src/odfaeg/Graphics/GUI/menuItem.cpp:10: undefined reference to `sf::String::operator std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >() const'
obj/cpp_Windows_Debug/lib/ODFAEG/Graphics/GUI/optionPane.o: In function `ZN6odfaeg7graphic3gui10OptionPaneC2ENS_4math5Vec3fES4_PKNS0_4FontEN2sf6StringENS2_4TYPEE':
E:\_Test\ODFAEG\cwc/../ODFAEG/src/odfaeg/Graphics/GUI/optionPane.cpp:33: undefined reference to `sf::String::operator std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >() const'
obj/cpp_Windows_Debug/lib/ODFAEG/Graphics/GUI/optionPane.o: In function `ZN6odfaeg7graphic3gui10OptionPane7setTextENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE':
E:\_Test\ODFAEG\cwc/../ODFAEG/src/odfaeg/Graphics/GUI/optionPane.cpp:81: undefined reference to `sf::String::operator std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >() const'
obj/cpp_Windows_Debug/lib/ODFAEG/Graphics/3D/model.o: In function `ZN6odfaeg7graphic3g3d5Model9loadModelENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE':
E:\_Test\ODFAEG\cwc/../ODFAEG/src/odfaeg/Graphics/3D/model.cpp:13: undefined reference to `Assimp::Importer::Importer()'
E:\_Test\ODFAEG\cwc/../ODFAEG/src/odfaeg/Graphics/3D/model.cpp:17: undefined reference to `Assimp::Importer::GetErrorString() const'
E:\_Test\ODFAEG\cwc/../ODFAEG/src/odfaeg/Graphics/3D/model.cpp:22: undefined reference to `Assimp::Importer::~Importer()'
E:\_Test\ODFAEG\cwc/../ODFAEG/src/odfaeg/Graphics/3D/model.cpp:13: undefined reference to `Assimp::Importer::~Importer()'
obj/cpp_Windows_Debug/lib/ODFAEG/Graphics/3D/model.o: In function `ZN6Assimp8Importer8ReadFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEj':
E:\_Test\ODFAEG\cwc/../Extlib/Assimp/include/assimp/Importer.hpp:647: undefined reference to `Assimp::Importer::ReadFile(char const*, unsigned int)'
obj/cpp_Windows_Debug/lib/ODFAEG/Graphics/2D/directionnalLight.o: In function `ZN6odfaeg7graphic3g2d17DirectionnalLight11computeConeEv':
E:\_Test\ODFAEG\cwc/../ODFAEG/src/odfaeg/Graphics/2D/directionnalLight.cpp:379: undefined reference to `odfaeg::graphic::TransformMatrix::setRotation(int)'
E:/_Project/_Cwc/Toolchain/VLianceTool/LibRT/LibRT-8.0.3/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib/libmingw32.a(lib32_libmingw32_a-crt0_c.o):crt0_c.c:(.text.startup+0x39): undefined reference to `WinMain@16'
- Edité par Maeiky 5 février 2020 à 5:02:17
GZE, un moteur multiplateforme, adapté pour de la 2D, 3D et création de logiciels.
Ah pour SFML il fallait rajouté le s vu que j'ai compilé SFML en static.
J'ai encore quelque undefined references :
../ExtLib/SFML-2.5.1/lib//libsfml-audio-s.a(SoundFileReaderOgg.cpp.obj):SoundFileReaderOgg.cpp:(.text+0xb7): undefined reference to `ov_clear'
../ExtLib/SFML-2.5.1/lib//libsfml-audio-s.a(SoundFileReaderOgg.cpp.obj):SoundFileReaderOgg.cpp:(.text+0xda): undefined reference to `ov_clear'
../ExtLib/SFML-2.5.1/lib//libsfml-audio-s.a(SoundFileReaderOgg.cpp.obj):SoundFileReaderOgg.cpp:(.text+0x12b): undefined reference to `ov_pcm_seek'
../ExtLib/SFML-2.5.1/lib//libsfml-audio-s.a(SoundFileReaderOgg.cpp.obj):SoundFileReaderOgg.cpp:(.text+0x1a8): undefined reference to `ov_read'
../ExtLib/SFML-2.5.1/lib//libsfml-audio-s.a(SoundFileReaderOgg.cpp.obj):SoundFileReaderOgg.cpp:(.text+0x240): undefined reference to `ov_open_callbacks'
../ExtLib/SFML-2.5.1/lib//libsfml-audio-s.a(SoundFileReaderOgg.cpp.obj):SoundFileReaderOgg.cpp:(.text+0x254): undefined reference to `ov_info'
../ExtLib/SFML-2.5.1/lib//libsfml-audio-s.a(SoundFileReaderOgg.cpp.obj):SoundFileReaderOgg.cpp:(.text+0x272): undefined reference to `ov_pcm_total'
../ExtLib/SFML-2.5.1/lib//libsfml-audio-s.a(SoundFileReaderOgg.cpp.obj):SoundFileReaderOgg.cpp:(.text+0x38e): undefined reference to `ov_test_callbacks'
../ExtLib/SFML-2.5.1/lib//libsfml-audio-s.a(SoundFileReaderOgg.cpp.obj):SoundFileReaderOgg.cpp:(.text+0x39c): undefined reference to `ov_clear'
../ExtLib/SFML-2.5.1/lib//libsfml-audio-s.a(SoundFileReaderOgg.cpp.obj):SoundFileReaderOgg.cpp:(.text+0x3f4): undefined reference to `ov_clear'
../ExtLib/SFML-2.5.1/lib//libsfml-audio-s.a(SoundFileWriterOgg.cpp.obj):SoundFileWriterOgg.cpp:(.text+0xa9c): undefined reference to `vorbis_encode_init_vbr'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_addr.o):(.text+0xa8): undefined reference to `_imp__getnameinfo@28'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_addr.o):(.text+0x275): undefined reference to `gai_strerrorW'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_addr.o):(.text+0xb52): undefined reference to `gai_strerrorW'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_addr.o):(.text+0xca2): undefined reference to `gai_strerrorW'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock.o):(.text+0x3fc): undefined reference to `_imp__getsockopt@20'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock.o):(.text+0x42c): undefined reference to `_imp__gethostbyname@4'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(b_sock2.o):(.text+0x477): undefined reference to `_imp__getsockopt@20'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(bss_sock.o):(.text+0x1a1): undefined reference to `_imp__WSASetLastError@4'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(bss_sock.o):(.text+0x262): undefined reference to `_imp__WSASetLastError@4'
../ODFAEG/extlibs/libs-mingw/x86//libcrypto.a(bss_sock.o):(.text+0x32d): undefined reference to `_imp__WSASetLastError@4'
obj/cpp_Windows_O2/lib/ODFAEG/rsa.o:rsa.cpp:(.text$_ZN6odfaeg7network3Rsa21ossl_encryptWithPrKeyEPKhiRi+0x6f): undefined reference to `ERR_load_crypto_strings'
obj/cpp_Windows_O2/lib/ODFAEG/rsa.o:rsa.cpp:(.text$_ZN6odfaeg7network3Rsa21ossl_decryptWithPrKeyEPKhiRi+0x6f): undefined reference to `ERR_load_crypto_strings'
obj/cpp_Windows_O2/lib/ODFAEG/rsa.o:rsa.cpp:(.text$_ZN6odfaeg7network3Rsa21ossl_encryptWithPbKeyEPKhiRi+0x6f): undefined reference to `ERR_load_crypto_strings'
obj/cpp_Windows_O2/lib/ODFAEG/rsa.o:rsa.cpp:(.text$_ZN6odfaeg7network3Rsa21ossl_decryptWithPbKeyEPKhiRi+0x6f): undefined reference to `ERR_load_crypto_strings'
obj/cpp_Windows_O2/lib/ODFAEG/aes.o:aes.cpp:(.text$_ZN6odfaeg7network7AES_ENC12ossl_decryptEPKhjRj+0xd0): undefined reference to `ERR_load_crypto_strings'
obj/cpp_Windows_O2/lib/ODFAEG/Win32/InputImpl.o:InputImpl.cpp:(.text$_ZN2sf4priv9InputImpl16getMousePositionERKNS_6WindowE+0xb): undefined reference to `_imp___ZNK2sf6Window15getSystemHandleEv'
obj/cpp_Windows_O2/lib/ODFAEG/Win32/InputImpl.o:InputImpl.cpp:(.text$_ZN2sf4priv9InputImpl16setMousePositionERKNS_7Vector2IiEERKNS_6WindowE+0xe): undefined reference to `_imp___ZNK2sf6Window15getSystemHandleEv'
obj/cpp_Windows_O2/lib/ODFAEG/odfaeg/Math/ray.o:ray.cpp:(.text$_ZN6odfaeg4math3RayC2ENS0_5Vec3fES2_+0x4f): undefined reference to `_imp___ZN6odfaeg4math5Vec3fmiERKS1_'
obj/cpp_Windows_O2/lib/ODFAEG/odfaeg/Math/ray.o:ray.cpp:(.text$_ZN6odfaeg4math3Ray15intersectsWhereERS1_+0x56): undefined reference to `_imp___ZN6odfaeg4math5Vec3fmiERKS1_'
obj/cpp_Windows_O2/lib/ODFAEG/odfaeg/Math/ray.o:ray.cpp:(.text$_ZN6odfaeg4math3Ray15intersectsWhereERS1_+0x5c): undefined reference to `_imp___ZNK6odfaeg4math5Vec3f5crossERKS1_'
obj/cpp_Windows_O2/lib/ODFAEG/odfaeg/Math/ray.o:ray.cpp:(.text$_ZN6odfaeg4math3Ray15intersectsWhereERS1_+0x86): undefined reference to `_imp___ZNK6odfaeg4math5Vec3f3dotERKS1_'
obj/cpp_Windows_O2/lib/ODFAEG/odfaeg/Math/ray.o:ray.cpp:(.text$_ZN6odfaeg4math3Ray15intersectsWhereERS1_+0x106): undefined reference to `_imp___ZN6odfaeg4math5Vec3f4dot2ERKS1_'
obj/cpp_Windows_O2/lib/ODFAEG/odfaeg/Math/ray.o:ray.cpp:(.text$_ZN6odfaeg4math3Ray15intersectsWhereERS1_+0x131): undefined reference to `_imp___ZNK6odfaeg4math5Vec3f11magnSquaredEv'
obj/cpp_Windows_O2/lib/ODFAEG/Audio/SoundFile.o:SoundFile.cpp:(.text$_ZN6odfaeg5audio4priv9SoundFile4readEPsj+0x2e): undefined reference to `sf_read_short'
obj/cpp_Windows_O2/lib/ODFAEG/symEncPacket.o:symEncPacket.cpp:(.text$__tcf_1+0x75): undefined reference to `EVP_CIPHER_CTX_cleanup'
obj/cpp_Windows_O2/lib/ODFAEG/symEncPacket.o:symEncPacket.cpp:(.text$__tcf_1+0x82): undefined reference to `EVP_CIPHER_CTX_cleanup'
obj/cpp_Windows_O2/lib/ODFAEG/symEncPacket.o:symEncPacket.cpp:(.text.startup._GLOBAL__sub_I__ZN6odfaeg7network12SymEncPacket3aesE+0x1d9): undefined reference to `EVP_CIPHER_CTX_init'
obj/cpp_Windows_O2/lib/ODFAEG/symEncPacket.o:symEncPacket.cpp:(.text.startup._GLOBAL__sub_I__ZN6odfaeg7network12SymEncPacket3aesE+0x1ed): undefined reference to `EVP_CIPHER_CTX_init'
obj/cpp_Windows_O2/Demo/caracter.o:caracter.cpp:(.text$_ZN6sorrok8Caracter6setDirEN6odfaeg4math5Vec2fE+0x23): undefined reference to `odfaeg::math::Vec2f::yAxis'
obj/cpp_Windows_O2/lib/ODFAEG/GlContext.o:GlContext.cpp:(.text$__tcf_3+0x7): undefined reference to `_imp___ZN2sf5MutexD1Ev'
obj/cpp_Windows_O2/lib/ODFAEG/GlContext.o:GlContext.cpp:(.text$__tcf_1+0x7): undefined reference to `_imp___ZN2sf11ThreadLocalD2Ev'
obj/cpp_Windows_O2/lib/ODFAEG/GlContext.o:GlContext.cpp:(.text$__tcf_0+0x7): undefined reference to `_imp___ZN2sf11ThreadLocalD2Ev'
obj/cpp_Windows_O2/lib/ODFAEG/GlContext.o:GlContext.cpp:(.text.startup._GLOBAL__sub_I__ZN6odfaeg4priv9GlContext10globalInitEv+0xb): undefined reference to `_imp___ZN2sf11ThreadLocalC2EPv'
obj/cpp_Windows_O2/lib/ODFAEG/GlContext.o:GlContext.cpp:(.text.startup._GLOBAL__sub_I__ZN6odfaeg4priv9GlContext10globalInitEv+0x89): undefined reference to `_imp___ZN2sf5MutexC1Ev'
obj/cpp_Windows_O2/lib/ODFAEG/Window/symEncPacket.o:symEncPacket.cpp:(.text$__tcf_1+0x75): undefined reference to `EVP_CIPHER_CTX_cleanup'
obj/cpp_Windows_O2/lib/ODFAEG/Window/symEncPacket.o:symEncPacket.cpp:(.text$__tcf_1+0x82): undefined reference to `EVP_CIPHER_CTX_cleanup'
obj/cpp_Windows_O2/lib/ODFAEG/Window/symEncPacket.o:symEncPacket.cpp:(.text.startup._GLOBAL__sub_I__ZN6odfaeg7network12SymEncPacket3aesE+0x1d9): undefined reference to `EVP_CIPHER_CTX_init'
obj/cpp_Windows_O2/lib/ODFAEG/Window/symEncPacket.o:symEncPacket.cpp:(.text.startup._GLOBAL__sub_I__ZN6odfaeg7network12SymEncPacket3aesE+0x1ed): undefined reference to `EVP_CIPHER_CTX_init'
obj/cpp_Windows_O2/lib/ODFAEG/odfaeg/Window/contextImpl.o:contextImpl.cpp:(.text$__tcf_4+0x7): undefined reference to `_imp___ZN2sf11ThreadLocalD2Ev'
obj/cpp_Windows_O2/lib/ODFAEG/odfaeg/Window/contextImpl.o:contextImpl.cpp:(.text$__tcf_3+0x7): undefined reference to `_imp___ZN2sf5MutexD1Ev'
obj/cpp_Windows_O2/lib/ODFAEG/odfaeg/Window/contextImpl.o:contextImpl.cpp:(.text.startup._GLOBAL__sub_I__ZN6odfaeg6window11ContextImpl10extensionsB5cxx11E+0xd7): undefined reference to `_imp___ZN2sf5MutexC1Ev'
obj/cpp_Windows_O2/lib/ODFAEG/odfaeg/Window/contextImpl.o:contextImpl.cpp:(.text.startup._GLOBAL__sub_I__ZN6odfaeg6window11ContextImpl10extensionsB5cxx11E+0xf5): undefined reference to `_imp___ZN2sf11ThreadLocalC2EPv'
obj/cpp_Windows_O2/lib/ODFAEG/odfaeg/Graphics/GlContext.o:GlContext.cpp:(.text$__tcf_3+0x7): undefined reference to `_imp___ZN2sf5MutexD1Ev'
obj/cpp_Windows_O2/lib/ODFAEG/odfaeg/Graphics/GlContext.o:GlContext.cpp:(.text$__tcf_1+0x7): undefined reference to `_imp___ZN2sf11ThreadLocalD2Ev'
obj/cpp_Windows_O2/lib/ODFAEG/odfaeg/Graphics/GlContext.o:GlContext.cpp:(.text$__tcf_0+0x7): undefined reference to `_imp___ZN2sf11ThreadLocalD2Ev'
obj/cpp_Windows_O2/lib/ODFAEG/odfaeg/Graphics/GlContext.o:GlContext.cpp:(.text.startup._GLOBAL__sub_I__ZN6odfaeg4priv9GlContext10globalInitEv+0xb): undefined reference to `_imp___ZN2sf11ThreadLocalC2EPv'
obj/cpp_Windows_O2/lib/ODFAEG/odfaeg/Graphics/GlContext.o:GlContext.cpp:(.text.startup._GLOBAL__sub_I__ZN6odfaeg4priv9GlContext10globalInitEv+0x89): undefined reference to `_imp___ZN2sf5MutexC1Ev'
obj/cpp_Windows_O2/lib/ODFAEG/Network/symEncPacket.o:symEncPacket.cpp:(.text$__tcf_1+0x75): undefined reference to `EVP_CIPHER_CTX_cleanup'
obj/cpp_Windows_O2/lib/ODFAEG/Network/symEncPacket.o:symEncPacket.cpp:(.text$__tcf_1+0x82): undefined reference to `EVP_CIPHER_CTX_cleanup'
obj/cpp_Windows_O2/lib/ODFAEG/Network/symEncPacket.o:symEncPacket.cpp:(.text.startup._GLOBAL__sub_I__ZN6odfaeg7network12SymEncPacket3aesE+0x1d9): undefined reference to `EVP_CIPHER_CTX_init'
obj/cpp_Windows_O2/lib/ODFAEG/Network/symEncPacket.o:symEncPacket.cpp:(.text.startup._GLOBAL__sub_I__ZN6odfaeg7network12SymEncPacket3aesE+0x1ed): undefined reference to `EVP_CIPHER_CTX_init'
obj/cpp_Windows_O2/lib/ODFAEG/odfaeg/Window/Windows/wglContext.o:wglContext.cpp:(.text$__tcf_2+0x7): undefined reference to `_imp___ZN2sf11ThreadLocalD2Ev'
obj/cpp_Windows_O2/lib/ODFAEG/odfaeg/Window/Windows/wglContext.o:wglContext.cpp:(.text.startup._GLOBAL__sub_I__ZN6odfaeg6window20ensureExtensionsInitEP5HDC__+0x11): undefined reference to `_imp___ZN2sf11ThreadLocalC2EPv'
collect2.exe: error: ld returned 1 exit status
--Stop Build--
--- End with 4 errors --- 14.31 sec
Ca se termine mais là encore une fois je suis bloqué.
EDIT : les modules qui dépendent d'autre par exemple le module sfml-window qui dépend de sfml-system il faut le mettre avant ou après sfml-system, je ne me souviens plus.
mmm ov_clear c'est dans quel lib ça ?
et ça ? _imp__getnameinfo@28
Et dans le module window il ne trouve pas ça _imp___ZN2sf11ThreadLocalC2EPv, pourtant je l'ai link (sfml-system).
ERR_load_crypto_strings c'est dans libcrypto probablement, je l'ai link mais il trouve pas la fonction.
Et dans network il ne trouve pas EVP_CIPHER_CTX_init, je l'ai link aussi openssl mais il ne trouve pas la fonction.
Il y avait plusieurs choses, mais en gros le problème d’utilisé des libs pré-compilé c'est de faire face à des incompatibilité.
Entre autre, il y a souvent une version dynamique et static, et ce n'est jamais clair laquel est générer, ensuite ta les problème de compatibilité du compilateur, le système d’exceptions, etc.
Ensuite la version de la lib même, ici pour libcrypto je soupçonne ne pas avoir la bonne version entre: OpenSSL 1.0 vs 1.1
Idéalement il aurait fallu compiler le moteur avec le moins de dépendance et ensuite progressivement ajouté le reste. Si t'aurais une version minimal du moteur par exemple.
GZE, un moteur multiplateforme, adapté pour de la 2D, 3D et création de logiciels.
Il y avait plusieurs choses, mais en gros le problème d’utilisé des libs pré-compilé c'est de faire face à des incompatibilité.
Entre autre, il y a souvent une version dynamique et static, et ce n'est jamais clair laquel est générer, ensuite ta les problème de compatibilité du compilateur, le système d’exceptions, etc.
Ensuite la version de la lib même, ici pour libcrypto je soupçonne ne pas avoir la bonne version entre: OpenSSL 1.0 vs 1.1
J'utilisais openssl 1.0.2 et donc libcrypto 1.0 aussi sûrement.
Idéalement il aurait fallu compiler le moteur avec le moins de dépendance et ensuite progressivement ajouté le reste. Si t'aurais une version minimal du moteur par exemple.
C'est ce que j'avais commencé à faire, avec le module fenêtre par exemple, j'ai fais mes propres classes et des interfaces (IWindow, IContext) pour rajouter des dépendances au besoin.
Un seul soucis, je ne sais pas comment générer de grands nombres premiers de manière rapide pour le chiffrement rsa, j'ai essayé avec la librairie gmp mais j'aimerais bien faire ça moi même. Bref, je vais essayer d'éliminer le maximum de dépendances.
Edit : comment compiler openssl 1.0 avec cwc ?
On dirait que ogg et vorbis ne sont pas compatible avec la version de sfml, sous linux je compilais SFML en dynamique.
Je ne peux vraiment pas me passer des dépendances, elles font des choses complexes que je ne suis pas capable de faire moi même.
Je voulais faire un moteur sans dépendances pour virer tout ces problèmes d'incompatibilité entre les différentes libs mais je ne pense pas que ça soit une bonne idée.
La meilleure chose à faire c'est de recompiler les dépendances cependant comme j'ai des erreurs en compilation là je ne peux pas avancer.
Apparemment c'est le C:/Program files qui pose problème.
Maeiky je me demande comment tu as fait pour avoir une version d'openssl compatible avec ton compilateur, openssl ne compile que avec msys2 et le compilateur de mingw 64 bits de msys2 qui est incompatible avec le tien.
Edit je pense qu'il faut le compiler en 32 bits, j'avais prit des version d'openssl 1.0 en 64 bits...., pour ça que c'est incompatible.
Salut! J'ai réussi à corrigé toutes les undefined references mais maintenant je me retrouve avec une erreur à l'exécution :
Debug: C:/Users/Laurent/Windows/cwc/_out/Windows_O2/App.exe
O> GNU gdb (GDB) 7.7.50.20140303-cvs
O> Copyright (C) 2014 Free Software Foundation, Inc.
O> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
O> This is free software: you are free to change and redistribute it.
O> There is NO WARRANTY, to the extent permitted by law. Type "show copying"
O> and "show warranty" for details.
O> This GDB was configured as "i686-pc-mingw32".
O> Type "show configuration" for configuration details.
O> For bug reporting instructions, please see:
O> <http://www.gnu.org/software/gdb/bugs/>.
O> Find the GDB manual and other documentation resources online at:
O> <http://www.gnu.org/software/gdb/documentation/>.
O> For help, type "help".
O> Type "apropos word" to search for commands related to "word".
O> This binary was built by Equation Solution <http://www.Equation.com>...
O> Reading symbols from C:/Users/Laurent/Windows/cwc/_out/Windows_O2/App.exe...(no debugging symbols found)...done.
E> During startup program exited with code 0xc000007b.
O> (gdb) Working directory C:/Users/Laurent/Windows/cwc/_out/Windows_O2.
O> (gdb) (gdb) (gdb) (gdb) Starting program: C:/Users/Laurent/Windows/cwc/_out/Windows_O2/App.exe
O> [New Thread 1172.0x1bac]
O> [New Thread 1172.0x8c4]
O> [New Thread 1172.0x2af4]
O> [New Thread 1172.0x1b9c]
O> [Thread 1172.0x1b9c exited with code 3221225595]
O> [Thread 1172.0x8c4 exited with code 3221225595]
--- End --- 4.73 sec
Quand j'essaie de l'exécuté dans l'explorateur de fichier windows il me met : l'application n'a pas réussi à démarrer correctement (0xc000007b).
Apparemment ça se produit quand on mélange des librairies 32 bits et 64 bits, lorsque tu as téléchargé les fichiers SFML tu as bien pris la version 32 bits ? Bien que normalement il doit y avoir une incompatibilité à la compilation dans ce cas. Mais apparemment le compilateur que tu utilises compile en 32 bits non ?
J'ai update le repo mais apparemment ça viendrait d'un mélange entre des versions 32 bits et 64 bits, le compilateur c++ que tu utilises compile en 32 bits ou en 64 bits ?
EDIT : les .dll sont là car je les ai ajouté.
Bon maintenant je n'ai plus cette erreur mais le programme plante il me met qu'il a cessé de fonctionné.
J'ai essayé en debug ça marche pas :
obj/cpp_Windows_Debug/lib/ODFAEG/Graphics/GUI/menu.o: In function `ZN6odfaeg7graphic3gui4MenuC2ERNS0_12RenderWindowEPKNS0_4FontENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE':
C:\Users\Laurent\Windows\cwc/../ODFAEG/src/odfaeg/Graphics/GUI/menu.cpp:8: undefined reference to `sf::String::operator std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >() const'
obj/cpp_Windows_Debug/lib/ODFAEG/Graphics/GUI/menuItem.o: In function `ZN6odfaeg7graphic3gui8MenuItemC2ERNS0_12RenderWindowEPKNS0_4FontENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE':
C:\Users\Laurent\Windows\cwc/../ODFAEG/src/odfaeg/Graphics/GUI/menuItem.cpp:10: undefined reference to `sf::String::operator std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >() const'
obj/cpp_Windows_Debug/lib/ODFAEG/Graphics/GUI/optionPane.o: In function `ZN6odfaeg7graphic3gui10OptionPaneC2ENS_4math5Vec3fES4_PKNS0_4FontEN2sf6StringENS2_4TYPEE':
C:\Users\Laurent\Windows\cwc/../ODFAEG/src/odfaeg/Graphics/GUI/optionPane.cpp:33: undefined reference to `sf::String::operator std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >() const'
obj/cpp_Windows_Debug/lib/ODFAEG/Graphics/GUI/optionPane.o: In function `ZN6odfaeg7graphic3gui10OptionPane7setTextENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE':
C:\Users\Laurent\Windows\cwc/../ODFAEG/src/odfaeg/Graphics/GUI/optionPane.cpp:81: undefined reference to `sf::String::operator std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >() const'
obj/cpp_Windows_Debug/lib/ODFAEG/Graphics/3D/model.o: In function `ZN6odfaeg7graphic3g3d5Model9loadModelENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE':
C:\Users\Laurent\Windows\cwc/../ODFAEG/src/odfaeg/Graphics/3D/model.cpp:13: undefined reference to `Assimp::Importer::Importer()'
C:\Users\Laurent\Windows\cwc/../ODFAEG/src/odfaeg/Graphics/3D/model.cpp:17: undefined reference to `Assimp::Importer::GetErrorString() const'
C:\Users\Laurent\Windows\cwc/../ODFAEG/src/odfaeg/Graphics/3D/model.cpp:22: undefined reference to `Assimp::Importer::~Importer()'
C:\Users\Laurent\Windows\cwc/../ODFAEG/src/odfaeg/Graphics/3D/model.cpp:13: undefined reference to `Assimp::Importer::~Importer()'
obj/cpp_Windows_Debug/lib/ODFAEG/Graphics/3D/model.o: In function `ZN6Assimp8Importer8ReadFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEj':
C:\Users\Laurent\Windows\cwc/../Extlib/Assimp/include/assimp/Importer.hpp:647: undefined reference to `Assimp::Importer::ReadFile(char const*, unsigned int)'
obj/cpp_Windows_Debug/lib/ODFAEG/Graphics/2D/directionnalLight.o: In function `ZN6odfaeg7graphic3g2d17DirectionnalLight11computeConeEv':
C:\Users\Laurent\Windows\cwc/../ODFAEG/src/odfaeg/Graphics/2D/directionnalLight.cpp:379: undefined reference to `odfaeg::graphic::TransformMatrix::setRotation(int)'
C:/Users/Laurent/Downloads/Cwc-0.0.95.7/Cwc-0.0.95.7/Toolchain/VLianceTool/LibRT/LibRT-8.0.3/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib/libmingw32.a(lib32_libmingw32_a-crt0_c.o):crt0_c.c:(.text.startup+0x39): undefined reference to `WinMain@16'
collect2.exe: error: ld returned 1 exit status
--Stop Build--
--- End with 1 error --- 5.7 sec
Mais en release ça compile.
Il ne met pas ou ça plante par contre, je n'ai que des adresses de fonctions :
Program received signal SIGSEGV, Segmentation fault.
O> 0x00581fe8 in ?? ()
>>---- (0x00581fe8)()
at ??
>>---- (0x00602909)()
at ??
>>---- (0x006a0268)()
at ??
>>---- (0x0040138b)()
at ??
>>---- KERNEL32!BaseThreadInitThunk()
at ??
>>---- ntdll!RtlGetAppContainerNamedObjectPath()
at ??
>>---- ntdll!RtlGetAppContainerNamedObjectPath()
at ??
>>---- (0x00000000)()
at ??
Je suppose que en mode Debug j'aurai plus d'informations mais pourquoi il compile en release mais pas en debug bizarre ça!
Tu utilise le même build? Sinon change le -{_sOpt}="Debug" Mais je voie qu'en debug tu compile pas le Main, donc ce n'est pas la même compilation ou bien tu utilise de vieux fichier .o compilé. Supprime le dossier "obj" pour être certain.
GZE, un moteur multiplateforme, adapté pour de la 2D, 3D et création de logiciels.
J'ai juste rajouté le -{_sOpt}="Debug" mais juste en rajoutant cette ligne j'ai des erreurs :
obj/cpp_Windows_Debug/lib/ODFAEG/Graphics/GUI/menu.o: In function `ZN6odfaeg7graphic3gui4MenuC2ERNS0_12RenderWindowEPKNS0_4FontENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE':
C:\Users\Laurent\Windows\cwc/../ODFAEG/src/odfaeg/Graphics/GUI/menu.cpp:8: undefined reference to `sf::String::operator std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >() const'
obj/cpp_Windows_Debug/lib/ODFAEG/Graphics/GUI/menuItem.o: In function `ZN6odfaeg7graphic3gui8MenuItemC2ERNS0_12RenderWindowEPKNS0_4FontENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE':
C:\Users\Laurent\Windows\cwc/../ODFAEG/src/odfaeg/Graphics/GUI/menuItem.cpp:10: undefined reference to `sf::String::operator std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >() const'
obj/cpp_Windows_Debug/lib/ODFAEG/Graphics/GUI/optionPane.o: In function `ZN6odfaeg7graphic3gui10OptionPaneC2ENS_4math5Vec3fES4_PKNS0_4FontEN2sf6StringENS2_4TYPEE':
C:\Users\Laurent\Windows\cwc/../ODFAEG/src/odfaeg/Graphics/GUI/optionPane.cpp:33: undefined reference to `sf::String::operator std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >() const'
obj/cpp_Windows_Debug/lib/ODFAEG/Graphics/GUI/optionPane.o: In function `ZN6odfaeg7graphic3gui10OptionPane7setTextENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE':
C:\Users\Laurent\Windows\cwc/../ODFAEG/src/odfaeg/Graphics/GUI/optionPane.cpp:81: undefined reference to `sf::String::operator std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >() const'
obj/cpp_Windows_Debug/lib/ODFAEG/Graphics/3D/model.o: In function `ZN6odfaeg7graphic3g3d5Model9loadModelENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE':
C:\Users\Laurent\Windows\cwc/../ODFAEG/src/odfaeg/Graphics/3D/model.cpp:13: undefined reference to `Assimp::Importer::Importer()'
C:\Users\Laurent\Windows\cwc/../ODFAEG/src/odfaeg/Graphics/3D/model.cpp:17: undefined reference to `Assimp::Importer::GetErrorString() const'
C:\Users\Laurent\Windows\cwc/../ODFAEG/src/odfaeg/Graphics/3D/model.cpp:22: undefined reference to `Assimp::Importer::~Importer()'
C:\Users\Laurent\Windows\cwc/../ODFAEG/src/odfaeg/Graphics/3D/model.cpp:13: undefined reference to `Assimp::Importer::~Importer()'
obj/cpp_Windows_Debug/lib/ODFAEG/Graphics/3D/model.o: In function `ZN6Assimp8Importer8ReadFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEj':
C:\Users\Laurent\Windows\cwc/../Extlib/Assimp/include/assimp/Importer.hpp:647: undefined reference to `Assimp::Importer::ReadFile(char const*, unsigned int)'
obj/cpp_Windows_Debug/lib/ODFAEG/Graphics/2D/directionnalLight.o: In function `ZN6odfaeg7graphic3g2d17DirectionnalLight11computeConeEv':
C:\Users\Laurent\Windows\cwc/../ODFAEG/src/odfaeg/Graphics/2D/directionnalLight.cpp:379: undefined reference to `odfaeg::graphic::TransformMatrix::setRotation(int)'
C:/Users/Laurent/Downloads/Cwc-0.0.95.7/Cwc-0.0.95.7/Toolchain/VLianceTool/LibRT/LibRT-8.0.3/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib/libmingw32.a(lib32_libmingw32_a-crt0_c.o):crt0_c.c:(.text.startup+0x39): undefined reference to `WinMain@16'
collect2.exe: error: ld returned 1 exit status
--Stop Build--
--- End with 1 error --- 6.69 sec
Pourtant c'est la même compilation.
Juste la création d'une fenêtre ça crash je n'ai pas ça sous linux.
Je pense que la version optimisé enlève certaine fonctions non utilisé. Donc on obtient pas d'undefined reférence. Sinon, il y a tout de même quelques #define différents, qui peuvent changer la donne.
Soit tu retire les fonction non utilisé, ou bien tu ajoutes les bonnes libs.
GZE, un moteur multiplateforme, adapté pour de la 2D, 3D et création de logiciels.
Mouais mais je ne crois pas qu'il marche ton compilo sous linux je n'ai pas de plantage. Ici j'ai un plantage lors de l'appel d'une fonction statique et aussi lors de l'appel d'une fonction virtuelle.
J'avais aussi essayé avec un autre compilateur sous windows et ça ne plantait pas, mais maintenant ça ne marche plus, même en ayant spécifié le dossier include de la SFML avec cmake le compilateur ne le trouve pas :
C:\Users\Laurent\ODFAEG build>mingw32-make
[ 0%] Building CXX object src/odfaeg/Core/CMakeFiles/odfaeg-core.dir/application.cpp.obj
In file included from C:/Users/Laurent/GitODFAEG/ODFAEG/include/odfaeg/Window/windowFactory.hpp:3,
from C:/Users/Laurent/GitODFAEG/ODFAEG/include/odfaeg/Window/window.hpp:3,
from C:/Users/Laurent/GitODFAEG/ODFAEG/include/odfaeg/Graphics/renderWindow.h:40,
from C:/Users/Laurent/GitODFAEG/ODFAEG/include/odfaeg/Core/application.h:4,
from C:\Users\Laurent\GitODFAEG\ODFAEG\src\odfaeg\Core\application.cpp:1:
C:/Users/Laurent/GitODFAEG/ODFAEG/include/odfaeg/Window/iWindow.hpp:7:10: fatal error: SFML/Window/Cursor.hpp: No such file or directory
#include <SFML/Window/Cursor.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
mingw32-make[2]: *** [src\odfaeg\Core\CMakeFiles\odfaeg-core.dir\build.make:91: src/odfaeg/Core/CMakeFiles/odfaeg-core.dir/application.cpp.obj] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:237: src/odfaeg/Core/CMakeFiles/odfaeg-core.dir/all] Error 2
mingw32-make: *** [Makefile:129: all] Error 2
C'est dans ton kernel que ça plante.
Program received signal SIGSEGV, Segmentation fault.
>>---- (0x004d8488)()
at ??
>>---- (0x0054d70a)()
at ??
>>---- (0x0040138b)()
at ??
>>---- KERNEL32!BaseThreadInitThunk()
at ??
>>---- ntdll!RtlGetAppContainerNamedObjectPath()
at ??
>>---- ntdll!RtlGetAppContainerNamedObjectPath()
at ??
>>---- (0x00000000)()
at ??
Exit: gdb
--End Execution--
E>
O> (gdb)
Par contre je ne comprend pas les undefined reference à sf::String et à Assimp::Importer en mode Debug qui pourtant sont bien liés au projet. (sf::String c'est dans lsfml-system-s et Assimp::Importer dans lassimp.
EDIT : c'est quelle version de mingw que tu as prises pour ton compilateur ? Ca me parait être une version assez récente pourtant vu qu'il comprend le c++14.
Je ne sais plus quoi faire, à part continuer sous linux.
void RenderWindow::onCreate()
{
priv::ensureGlewInit();
// RenderTarget::setVersionMajor(getSettings().versionMajor);
// RenderTarget::setVersionMinor(getSettings().versionMinor);
// Just initialize the render target part
RenderTarget::initialize(0);
}
Maintenant j'ai ça:
O> create window
E> Failed to load image "tilesets/herbe.png". Reason: Unable to open file
E> terminate called after throwing an instance of 'odfaeg::core::Erreur'
E> what(): ResourceManager::load - Failed to load tilesets/herbe.png
Edit2: Bon c'est DrMemory qui change le working dir
Edit3: Ensuite ici:
bool RenderTexture::create(unsigned int width, unsigned int height, window::ContextSettings settings, unsigned int precision, unsigned int format, unsigned int type, bool useSeparateContext)
{
if (useSeparateContext)
m_context = new window::Context(settings, width, height);
// RenderTarget::setVersionMajor(m_context->getSettings().versionMajor);
// RenderTarget::setVersionMinor(m_context->getSettings().versionMinor);
Ensuite ça segfault:
O> create window
O> [New Thread 19728.0x50c0]
E> warning: onecore/com/combase/objact/objact.cxx(836)/combase.dll!773CAE4C: (caller: 773C9E1B) ReturnHr(1) tid(3cd4) 800401F0 CoInitialize has not been called.
O> [New Thread 19728.0x40d0]
O> [New Thread 19728.0x6f20]
O> [New Thread 19728.0x644c]
O> [New Thread 19728.0x4b70]
O> FBO not avalaible
O> Thread 1 received signal SIGSEGV, Segmentation fault.
O> 0x0048c616 in odfaeg::graphic::RenderTexture::create (this=0x11a26d68, width=800, height=600, settings=..., precision=32856, format=6408, type=5121, useSeparateContext=true) at E:/_Test/ODFAEG/ODFAEG/src/odfaeg/Graphics/renderTexture.cpp:89
O> 89 if (!m_impl->create(width, height, (m_context) ? m_context->getSettings() : settings, m_texture.m_texture))
- Edité par Maeiky 16 février 2020 à 7:37:04
GZE, un moteur multiplateforme, adapté pour de la 2D, 3D et création de logiciels.
obj/cpp_Windows_Debug/lib/ODFAEG/Graphics/GUI/menu.o: In function `ZN6odfaeg7graphic3gui4MenuC2ERNS0_12RenderWindowEPKNS0_4FontENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE':
C:\Users\Laurent\Windows\cwc/../ODFAEG/src/odfaeg/Graphics/GUI/menu.cpp:8: undefined reference to `sf::String::operator std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >() const'
obj/cpp_Windows_Debug/lib/ODFAEG/Graphics/GUI/menuItem.o: In function `ZN6odfaeg7graphic3gui8MenuItemC2ERNS0_12RenderWindowEPKNS0_4FontENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE':
C:\Users\Laurent\Windows\cwc/../ODFAEG/src/odfaeg/Graphics/GUI/menuItem.cpp:10: undefined reference to `sf::String::operator std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >() const'
obj/cpp_Windows_Debug/lib/ODFAEG/Graphics/GUI/optionPane.o: In function `ZN6odfaeg7graphic3gui10OptionPaneC2ENS_4math5Vec3fES4_PKNS0_4FontEN2sf6StringENS2_4TYPEE':
C:\Users\Laurent\Windows\cwc/../ODFAEG/src/odfaeg/Graphics/GUI/optionPane.cpp:33: undefined reference to `sf::String::operator std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >() const'
obj/cpp_Windows_Debug/lib/ODFAEG/Graphics/GUI/optionPane.o: In function `ZN6odfaeg7graphic3gui10OptionPane7setTextENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE':
C:\Users\Laurent\Windows\cwc/../ODFAEG/src/odfaeg/Graphics/GUI/optionPane.cpp:81: undefined reference to `sf::String::operator std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >() const'
obj/cpp_Windows_Debug/lib/ODFAEG/Graphics/3D/model.o: In function `ZN6odfaeg7graphic3g3d5Model9loadModelENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE':
C:\Users\Laurent\Windows\cwc/../ODFAEG/src/odfaeg/Graphics/3D/model.cpp:13: undefined reference to `Assimp::Importer::Importer()'
C:\Users\Laurent\Windows\cwc/../ODFAEG/src/odfaeg/Graphics/3D/model.cpp:17: undefined reference to `Assimp::Importer::GetErrorString() const'
C:\Users\Laurent\Windows\cwc/../ODFAEG/src/odfaeg/Graphics/3D/model.cpp:22: undefined reference to `Assimp::Importer::~Importer()'
C:\Users\Laurent\Windows\cwc/../ODFAEG/src/odfaeg/Graphics/3D/model.cpp:13: undefined reference to `Assimp::Importer::~Importer()'
obj/cpp_Windows_Debug/lib/ODFAEG/Graphics/3D/model.o: In function `ZN6Assimp8Importer8ReadFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEj':
C:\Users\Laurent\Windows\cwc/../Extlib/Assimp/include/assimp/Importer.hpp:647: undefined reference to `Assimp::Importer::ReadFile(char const*, unsigned int)'
collect2.exe: error: ld returned 1 exit status
--Stop Build--
--- End with 1 error --- 102.17 sec
C'est la fonction getSettings() qui fait tout planter mais pourquoi ?
C'est simple, puisque c'est des fonctions qui ne servent pas dans ce build, je les ai misent en commentaire. (Qui sont probablement des fonctions retirés dans les nouvelles versions des libs)
Déjà il y a ça:
../ODFAEG/src/odfaeg/Window/context.cpp: In member function 'const odfaeg::window::ContextSettings& odfaeg::window::Context::getSettings() const':
../ODFAEG/src/odfaeg/Window/context.cpp:49:29: warning: reference to local variable 'empty' returned [-Wreturn-local-addr]
ContextSettings empty(0, 0, 0, 0, 0);
^~~~~
Donc, mettre empty en static, ou autre ...
GZE, un moteur multiplateforme, adapté pour de la 2D, 3D et création de logiciels.
J'ai essayé de retourner une copie plutôt qu'une référence mais ça ne résout pas le problème.
Ça m'étonne parce que sur linux ça ne plante pas, ça ne compile pas de la même façon sous windows ?
EDIT : le débugueur ne m'indique pas grand chose :
> -#Run
Debug: C:/Users/Laurent/Windows/cwc/_out/Windows_Debug/App.exe
O> GNU gdb (GDB) 7.7.50.20140303-cvs
O> Copyright (C) 2014 Free Software Foundation, Inc.
O> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
O> This is free software: you are free to change and redistribute it.
O> There is NO WARRANTY, to the extent permitted by law. Type "show copying"
O> and "show warranty" for details.
O> This GDB was configured as "i686-pc-mingw32".
O> Type "show configuration" for configuration details.
O> For bug reporting instructions, please see:
O> <http://www.gnu.org/software/gdb/bugs/>.
O> Find the GDB manual and other documentation resources online at:
O> <http://www.gnu.org/software/gdb/documentation/>.
O> For help, type "help".
O> Type "apropos word" to search for commands related to "word".
O> This binary was built by Equation Solution <http://www.Equation.com>...
--- End --- 61.1 sec
E>
O> Reading symbols from C:/Users/Laurent/Windows/cwc/_out/Windows_Debug/App.exe...
Exit: gdb
--End Execution--
Et DrMemory...
-#Run
Debug: C:/Users/Laurent/Windows/cwc/_out/Windows_Debug/App.exe
--- End --- 88.75 sec
E> INFO: targeting application: "C:/Users/Laurent/Windows/cwc/_out/Windows_Debug/App.exe"
E> INFO: app cmdline: "C:/Users/Laurent/Windows/cwc/_out/Windows_Debug/App.exe"
E> INFO: logdir is "C:/Users/Laurent/Downloads/Cwc-0.0.95.7/Cwc-0.0.95.7/Toolchain/VLianceTool/LibRT/LibRT-8.0.3/DrMemory/drmemory/logs"
E> INFO: symcache_dir is "C:/Users/Laurent/Downloads/Cwc-0.0.95.7/Cwc-0.0.95.7/Toolchain/VLianceTool/LibRT/LibRT-8.0.3/DrMemory/drmemory/logs/symcache"
E> INFO: Setting TZ to Paris, Madrid for i#2164 workaround
E> INFO: DynamoRIO configuration directory is C:/Users/Laurent/dynamorio
E> INFO: configuring App.exe pid=4328 dr_ops="-disable_traces -bb_single_restore_prefix -max_bb_instrs 256 -vm_size 256M -no_enable_reset -no_vm_base_near_app -no_early_inject -msgbox_mask 0 -logdir `C:/Users/Laurent/Downloads/Cwc-0.0.95.7/Cwc-0.0.95.7/Toolchain/VLianceTool/LibRT/LibRT-8.0.3/DrMemory/drmemory/logs/dynamorio` "
E> INFO: configuring client "C:/Users/Laurent/Downloads/Cwc-0.0.95.7/Cwc-0.0.95.7/Toolchain/VLianceTool/LibRT/LibRT-8.0.3/DrMemory/bin/release/drmemorylib.dll" ops="`-no_callstack_use_fp` `-no_callstack_use_top_fp` `-exit_code_if_errors` `1` `-malloc_callstacks` -logdir `C:/Users/Laurent/Downloads/Cwc-0.0.95.7/Cwc-0.0.95.7/Toolchain/VLianceTool/LibRT/LibRT-8.0.3/DrMemory/drmemory/logs` -symcache_dir `C:/Users/Laurent/Downloads/Cwc-0.0.95.7/Cwc-0.0.95.7/Toolchain/VLianceTool/LibRT/LibRT-8.0.3/DrMemory/drmemory/logs/symcache` -lib_blacklist `C:/WINDOWS*.d??,C:/Program Files (x86)/Common Files/Microsoft Shared*.d??,C:/Program Files (x86)/Common Files/Microsoft Shared*.d??` -resfile 4328 "
E> INFO: waiting for app to exit...
E> ~~Dr.M~~ WARNING: libraries needed by the application are missing. Check that it runs successfully on its own and check that all needed libraries are in its directory or on the PATH.
E> ~~Dr.M~~ WARNING: application exited with abnormal code 0xc0000135
Exit: bin
--End Execution--
Salut, oui c'est vraiment pas de chance avec ton app, gdb lui même crash direct, c'est la première fois que je voie ça.
Sinon on dirait un bug de GDB dans la version 7.7.5, tu peux temporairement prendre la version 7.12 ici en attendant que je corrige de mon coté et remplacer le gdb_32.exe dans "Cwc\Toolchain\VLianceTool\LibRT\LibRT-8.0.2\gdb\" (C'est dommage car l'affichage sera un peu tout croche, mais au moins tu pourras déboguer)
" libraries needed by the application are missing."
Vérifie que le .exe se lance, par exemple "libeay32.dll" manquant...
- Edité par Maeiky 19 février 2020 à 21:56:55
GZE, un moteur multiplateforme, adapté pour de la 2D, 3D et création de logiciels.
GZE, un moteur multiplateforme, adapté pour de la 2D, 3D et création de logiciels.
GZE, un moteur multiplateforme, adapté pour de la 2D, 3D et création de logiciels.
GZE, un moteur multiplateforme, adapté pour de la 2D, 3D et création de logiciels.
GZE, un moteur multiplateforme, adapté pour de la 2D, 3D et création de logiciels.
GZE, un moteur multiplateforme, adapté pour de la 2D, 3D et création de logiciels.
GZE, un moteur multiplateforme, adapté pour de la 2D, 3D et création de logiciels.
GZE, un moteur multiplateforme, adapté pour de la 2D, 3D et création de logiciels.
GZE, un moteur multiplateforme, adapté pour de la 2D, 3D et création de logiciels.
GZE, un moteur multiplateforme, adapté pour de la 2D, 3D et création de logiciels.
GZE, un moteur multiplateforme, adapté pour de la 2D, 3D et création de logiciels.
GZE, un moteur multiplateforme, adapté pour de la 2D, 3D et création de logiciels.
GZE, un moteur multiplateforme, adapté pour de la 2D, 3D et création de logiciels.
GZE, un moteur multiplateforme, adapté pour de la 2D, 3D et création de logiciels.