Bonjours,
tout d'abord, veuillez ne pas me tapper s'il vous plait :p . Pour ma lib utilisant la SFML, j'essaye de la compiler via cross compilation avec cmake. Lorsque je compile mon projet sous linux avec g++ (pas mingw), je n'ai aucun soucis de linkage, la lib se compile toute seul sans soucis.
Cependant, que se soit sous Windows ou en cross compilation depuis linux, voici les erreurs que j'obtient :
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text+0xb84): undefined reference to `__imp___ZN2sf13Transformable9setOriginEff'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text+0xba8): undefined reference to `__imp___ZN2sf13Transformable9setOriginEff'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text+0xbd1): undefined reference to `__imp___ZN2sf13Transformable9setOriginEff'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text+0xbf4): undefined reference to `__imp___ZNK2sf4Text15getGlobalBoundsEv'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text+0xc2d): undefined reference to `__imp___ZN2sf13Transformable9setOriginEff'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text+0xc57): undefined reference to `__imp___ZN2sf13Transformable9setOriginEff'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text+0xc84): undefined reference to `__imp___ZN2sf13Transformable6rotateEf'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text+0xc9c): undefined reference to `__imp___ZNK2sf4Text15getGlobalBoundsEv'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text+0xcc4): undefined reference to `__imp___ZN2sf4Text8setStyleEj'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text+0xce4): undefined reference to `__imp___ZN2sf13Transformable11setRotationEf'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text+0xcfc): undefined reference to `__imp___ZNK2sf4Text15getGlobalBoundsEv'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text+0xd24): undefined reference to `__imp___ZN2sf4Text7setFontERKNS_4FontE'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text+0xd46): undefined reference to `__imp___ZN2sf4Text16setCharacterSizeEj'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text+0xd54): undefined reference to `__imp___ZNK2sf4Text15getGlobalBoundsEv'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text+0xd94): undefined reference to `__imp___ZN2sf4Text8setColorERKNS_5ColorE'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text+0xdb4): undefined reference to `__imp___ZN2sf4Text9setStringERKNS_6StringE'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text+0xe41): undefined reference to `__imp___ZN2sf6StringC1ERKSsRKSt6locale'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text+0xe60): undefined reference to `__imp___ZN2sf4Text9setStringERKNS_6StringE'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text+0xfee): undefined reference to `__imp___ZN2sf6StringaSERKS0_'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text+0x10e7): undefined reference to `__imp___ZN2sf6StringaSERKS0_'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text+0x11d4): undefined reference to `__imp___ZNK2sf4Text9getStringEv'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text+0x11e9): undefined reference to `__imp___ZNK2sf6String7getSizeEv'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text+0x1252): undefined reference to `__imp___ZTVN2sf8DrawableE'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text+0x130b): undefined reference to `__imp___ZTVN2sf4TextE'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text+0x133e): undefined reference to `__imp___ZN2sf6StringC1ERKS0_'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text+0x13a0): undefined reference to `__imp___ZTVN2sf11VertexArrayE'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text+0x162c): undefined reference to `__imp___ZN2sf13TransformableD2Ev'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text+0x168b): undefined reference to `__imp___ZNK2sf6String7getSizeEv'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text+0x172b): undefined reference to `__imp___ZN2sf4TextC1ERKNS_6StringERKNS_4FontEj'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text+0x18f3): undefined reference to `__imp___ZN2sf6StringC1ERKSsRKSt6locale'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text+0x192d): undefined reference to `__imp___ZN2sf4TextC1ERKNS_6StringERKNS_4FontEj'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text+0x1ad7): undefined reference to `__imp___ZNK2sf4Text7getFontEv'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text+0x1ae9): undefined reference to `__imp___ZNK2sf4Text9getStringEv'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text+0x1afe): undefined reference to `__imp___ZNK2sf6String7getSizeEv'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text+0x1b9e): undefined reference to `__imp___ZN2sf4TextC1ERKNS_6StringERKNS_4FontEj'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text+0x1c1c): undefined reference to `__imp___ZNK2sf4Text16getCharacterSizeEv'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text+0x1c3c): undefined reference to `__imp___ZN2sf4Text16setCharacterSizeEj'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text+0x1c64): undefined reference to `__imp___ZNK2sf4Text15getGlobalBoundsEv'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text+0x1db5): undefined reference to `__imp___ZTVN2sf4TextE'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text+0x1dcc): undefined reference to `__imp___ZTVN2sf11VertexArrayE'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text+0x1de6): undefined reference to `__imp___ZTVN2sf8DrawableE'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text+0x1e20): undefined reference to `__imp___ZN2sf13TransformableD2Ev'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text+0x1eff): undefined reference to `__imp___ZTVN2sf8DrawableE'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text$_ZN2sf8DrawableD1Ev[sf::Drawable::~Drawable()]+0x1): undefined reference to `__imp___ZTVN2sf8DrawableE'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text$_ZN2sf8DrawableD0Ev[sf::Drawable::~Drawable()]+0x4): undefined reference to `__imp___ZTVN2sf8DrawableE'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text$_ZN5guiml5LabelD1Ev[guiml::Label::~Label()]+0x43): undefined reference to `__imp___ZTVN2sf4TextE'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text$_ZN5guiml5LabelD1Ev[guiml::Label::~Label()]+0x54): undefined reference to `__imp___ZTVN2sf11VertexArrayE'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text$_ZN5guiml5LabelD1Ev[guiml::Label::~Label()]+0x78): undefined reference to `__imp___ZTVN2sf8DrawableE'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text$_ZN5guiml5LabelD1Ev[guiml::Label::~Label()]+0xb3): undefined reference to `__imp___ZN2sf13TransformableD2Ev'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text$_ZN5guiml5LabelD0Ev[guiml::Label::~Label()]+0x43): undefined reference to `__imp___ZTVN2sf4TextE'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text$_ZN5guiml5LabelD0Ev[guiml::Label::~Label()]+0x54): undefined reference to `__imp___ZTVN2sf11VertexArrayE'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text$_ZN5guiml5LabelD0Ev[guiml::Label::~Label()]+0x78): undefined reference to `__imp___ZTVN2sf8DrawableE'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text$_ZN5guiml5LabelD0Ev[guiml::Label::~Label()]+0xb3): undefined reference to `__imp___ZN2sf13TransformableD2Ev'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text$_ZN2sf4TextD1Ev[sf::Text::~Text()]+0x39): undefined reference to `__imp___ZTVN2sf4TextE'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text$_ZN2sf4TextD1Ev[sf::Text::~Text()]+0x4d): undefined reference to `__imp___ZTVN2sf11VertexArrayE'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text$_ZN2sf4TextD1Ev[sf::Text::~Text()]+0x71): undefined reference to `__imp___ZTVN2sf8DrawableE'
CMakeFiles/GUIML.dir/objects.a(Label.cpp.obj):Label.cpp:(.text$_ZN2sf4TextD1Ev[sf::Text::~Text()]+0xa8): undefined reference to `__imp___ZN2sf13TransformableD2Ev'
CMakeFiles/GUIML.dir/objects.a(EventManager.cpp.obj):EventManager.cpp:(.text+0x4f): undefined reference to `__imp___ZN2sf5ClockC1Ev'
CMakeFiles/GUIML.dir/objects.a(EventManager.cpp.obj):EventManager.cpp:(.text+0x6c): undefined reference to `__imp___ZNK2sf6Window7getSizeEv'
CMakeFiles/GUIML.dir/objects.a(EventManager.cpp.obj):EventManager.cpp:(.text+0x263): undefined reference to `__imp___ZNK2sf5Clock14getElapsedTimeEv'
CMakeFiles/GUIML.dir/objects.a(EventManager.cpp.obj):EventManager.cpp:(.text+0x275): undefined reference to `__imp___ZNK2sf4Time14asMillisecondsEv'
CMakeFiles/GUIML.dir/objects.a(EventManager.cpp.obj):EventManager.cpp:(.text+0x28b): undefined reference to `__imp___ZN2sf5Clock7restartEv'
CMakeFiles/GUIML.dir/objects.a(EventManager.cpp.obj):EventManager.cpp:(.text+0x2fe): undefined reference to `__imp___ZN2sf6Window9pollEventERNS_5EventE'
CMakeFiles/GUIML.dir/objects.a(EventManager.cpp.obj):EventManager.cpp:(.text+0x304): undefined reference to `__imp___ZN2sf6Window5closeEv'
CMakeFiles/GUIML.dir/objects.a(Render.cpp.obj):Render.cpp:(.text+0xd0): undefined reference to `__imp___ZNK2sf4View9getCenterEv'
CMakeFiles/GUIML.dir/objects.a(Render.cpp.obj):Render.cpp:(.text+0xe5): undefined reference to `__imp___ZNK2sf4View7getSizeEv'
CMakeFiles/GUIML.dir/objects.a(Render.cpp.obj):Render.cpp:(.text+0x1bd): undefined reference to `__imp___ZNK2sf4View9getCenterEv'
CMakeFiles/GUIML.dir/objects.a(Render.cpp.obj):Render.cpp:(.text+0x1ce): undefined reference to `__imp___ZNK2sf4View7getSizeEv'
CMakeFiles/GUIML.dir/objects.a(Render.cpp.obj):Render.cpp:(.text+0x23e): undefined reference to `__imp___ZNK2sf4View11getViewportEv'
CMakeFiles/GUIML.dir/objects.a(Render.cpp.obj):Render.cpp:(.text+0x3b7): undefined reference to `__imp___ZN2sf4ViewC1Ev'
CMakeFiles/GUIML.dir/objects.a(Render.cpp.obj):Render.cpp:(.text+0x57e): undefined reference to `__imp___ZN2sf4View4moveEff'
CMakeFiles/GUIML.dir/objects.a(Render.cpp.obj):Render.cpp:(.text+0x5bd): undefined reference to `__imp___ZN2sf4View4moveEff'
CMakeFiles/GUIML.dir/objects.a(Render.cpp.obj):Render.cpp:(.text+0x5fe): undefined reference to `__imp___ZN2sf4View7setSizeEff'
CMakeFiles/GUIML.dir/objects.a(Render.cpp.obj):Render.cpp:(.text+0x63d): undefined reference to `__imp___ZN2sf4View7setSizeEff'
CMakeFiles/GUIML.dir/objects.a(Render.cpp.obj):Render.cpp:(.text+0x680): undefined reference to `__imp___ZNK2sf4View7getSizeEv'
CMakeFiles/GUIML.dir/objects.a(Render.cpp.obj):Render.cpp:(.text+0x6b6): undefined reference to `__imp___ZN2sf4View9setCenterEff'
CMakeFiles/GUIML.dir/objects.a(Render.cpp.obj):Render.cpp:(.text+0x6ee): undefined reference to `__imp___ZN2sf4View7setSizeEff'
CMakeFiles/GUIML.dir/objects.a(Render.cpp.obj):Render.cpp:(.text+0x72d): undefined reference to `__imp___ZN2sf4View7setSizeEff'
CMakeFiles/GUIML.dir/objects.a(Render.cpp.obj):Render.cpp:(.text+0x75f): undefined reference to `__imp___ZNK2sf4View7getSizeEv'
CMakeFiles/GUIML.dir/objects.a(Render.cpp.obj):Render.cpp:(.text+0x795): undefined reference to `__imp___ZN2sf4View9setCenterEff'
CMakeFiles/GUIML.dir/objects.a(Render.cpp.obj):Render.cpp:(.text+0x7c5): undefined reference to `__imp___ZN2sf4View11setViewportERKNS_4RectIfEE'
CMakeFiles/GUIML.dir/objects.a(Button.cpp.obj):Button.cpp:(.text$_ZN5guiml6ButtonD1Ev[guiml::Button::~Button()]+0x55): undefined reference to `__imp___ZTVN2sf4TextE'
CMakeFiles/GUIML.dir/objects.a(Button.cpp.obj):Button.cpp:(.text$_ZN5guiml6ButtonD1Ev[guiml::Button::~Button()]+0x7a): undefined reference to `__imp___ZTVN2sf11VertexArrayE'
CMakeFiles/GUIML.dir/objects.a(Button.cpp.obj):Button.cpp:(.text$_ZN5guiml6ButtonD1Ev[guiml::Button::~Button()]+0x9f): undefined reference to `__imp___ZTVN2sf8DrawableE'
CMakeFiles/GUIML.dir/objects.a(Button.cpp.obj):Button.cpp:(.text$_ZN5guiml6ButtonD1Ev[guiml::Button::~Button()]+0xd9): undefined reference to `__imp___ZN2sf13TransformableD2Ev'
CMakeFiles/GUIML.dir/objects.a(Button.cpp.obj):Button.cpp:(.text$_ZN5guiml6ButtonD0Ev[guiml::Button::~Button()]+0x55): undefined reference to `__imp___ZTVN2sf4TextE'
CMakeFiles/GUIML.dir/objects.a(Button.cpp.obj):Button.cpp:(.text$_ZN5guiml6ButtonD0Ev[guiml::Button::~Button()]+0x7a): undefined reference to `__imp___ZTVN2sf11VertexArrayE'
CMakeFiles/GUIML.dir/objects.a(Button.cpp.obj):Button.cpp:(.text$_ZN5guiml6ButtonD0Ev[guiml::Button::~Button()]+0x9f): undefined reference to `__imp___ZTVN2sf8DrawableE'
CMakeFiles/GUIML.dir/objects.a(Button.cpp.obj):Button.cpp:(.text$_ZN5guiml6ButtonD0Ev[guiml::Button::~Button()]+0xd9): undefined reference to `__imp___ZN2sf13TransformableD2Ev'
CMakeFiles/GUIML.dir/objects.a(CheckBox.cpp.obj):CheckBox.cpp:(.text+0xe4): undefined reference to `__imp___ZN2sf13Transformable11setPositionEff'
CMakeFiles/GUIML.dir/objects.a(CheckBox.cpp.obj):CheckBox.cpp:(.text+0xfc): undefined reference to `__imp___ZN2sf11VertexArrayixEj'
CMakeFiles/GUIML.dir/objects.a(CheckBox.cpp.obj):CheckBox.cpp:(.text+0x1b4): undefined reference to `__imp___ZN2sf14RectangleShape7setSizeERKNS_7Vector2IfEE'
CMakeFiles/GUIML.dir/objects.a(CheckBox.cpp.obj):CheckBox.cpp:(.text+0x1c8): undefined reference to `__imp___ZN2sf11VertexArrayixEj'
CMakeFiles/GUIML.dir/objects.a(CheckBox.cpp.obj):CheckBox.cpp:(.text+0x270): undefined reference to `__imp___ZN2sf12RenderStates7DefaultE'
CMakeFiles/GUIML.dir/objects.a(CheckBox.cpp.obj):CheckBox.cpp:(.text+0x2fe): undefined reference to `__imp___ZN2sf11VertexArrayixEj'
CMakeFiles/GUIML.dir/objects.a(CheckBox.cpp.obj):CheckBox.cpp:(.text+0x354): undefined reference to `__imp___ZN2sf5Shape15setOutlineColorERKNS_5ColorE'
CMakeFiles/GUIML.dir/objects.a(CheckBox.cpp.obj):CheckBox.cpp:(.text+0x364): undefined reference to `__imp___ZN2sf5Shape12setFillColorERKNS_5ColorE'
CMakeFiles/GUIML.dir/objects.a(CheckBox.cpp.obj):CheckBox.cpp:(.text+0x38e): undefined reference to `__imp___ZN2sf11VertexArrayixEj'
CMakeFiles/GUIML.dir/objects.a(CheckBox.cpp.obj):CheckBox.cpp:(.text+0x3e4): undefined reference to `__imp___ZN2sf5Shape19setOutlineThicknessEf'
CMakeFiles/GUIML.dir/objects.a(CheckBox.cpp.obj):CheckBox.cpp:(.text+0x6ec): undefined reference to `__imp___ZTVN2sf5ShapeE'
CMakeFiles/GUIML.dir/objects.a(CheckBox.cpp.obj):CheckBox.cpp:(.text+0x74f): undefined reference to `__imp___ZTVN2sf11VertexArrayE'
CMakeFiles/GUIML.dir/objects.a(CheckBox.cpp.obj):CheckBox.cpp:(.text+0x9e5): undefined reference to `__imp___ZTVN2sf14RectangleShapeE'
CMakeFiles/GUIML.dir/objects.a(CheckBox.cpp.obj):CheckBox.cpp:(.text+0xd47): undefined reference to `__imp___ZTVN2sf8DrawableE'
CMakeFiles/GUIML.dir/objects.a(CheckBox.cpp.obj):CheckBox.cpp:(.text+0xd69): undefined reference to `__imp___ZN2sf13TransformableD2Ev'
CMakeFiles/GUIML.dir/objects.a(CheckBox.cpp.obj):CheckBox.cpp:(.text+0xda1): undefined reference to `__imp___ZTVN2sf8DrawableE'
CMakeFiles/GUIML.dir/objects.a(CheckBox.cpp.obj):CheckBox.cpp:(.text+0xdc8): undefined reference to `__imp___ZTVN2sf8DrawableE'
CMakeFiles/GUIML.dir/objects.a(CheckBox.cpp.obj):CheckBox.cpp:(.text+0xdec): undefined reference to `__imp___ZTVN2sf8DrawableE'
CMakeFiles/GUIML.dir/objects.a(CheckBox.cpp.obj):CheckBox.cpp:(.text+0xf91): undefined reference to `__imp___ZN2sf14RectangleShapeC1ERKNS_7Vector2IfEE'
CMakeFiles/GUIML.dir/objects.a(CheckBox.cpp.obj):CheckBox.cpp:(.text+0xfb4): undefined reference to `__imp___ZN2sf11VertexArrayC1ENS_13PrimitiveTypeEj'
CMakeFiles/GUIML.dir/objects.a(CheckBox.cpp.obj):CheckBox.cpp:(.text+0x102d): undefined reference to `__imp___ZN2sf13Transformable11setPositionEff'
CMakeFiles/GUIML.dir/objects.a(CheckBox.cpp.obj):CheckBox.cpp:(.text+0x1035): undefined reference to `__imp___ZN2sf5Color5WhiteE'
CMakeFiles/GUIML.dir/objects.a(CheckBox.cpp.obj):CheckBox.cpp:(.text+0x1042): undefined reference to `__imp___ZN2sf5Shape15setOutlineColorERKNS_5ColorE'
CMakeFiles/GUIML.dir/objects.a(CheckBox.cpp.obj):CheckBox.cpp:(.text+0x1054): undefined reference to `__imp___ZN2sf5Shape19setOutlineThicknessEf'
CMakeFiles/GUIML.dir/objects.a(CheckBox.cpp.obj):CheckBox.cpp:(.text+0x1066): undefined reference to `__imp___ZN2sf11VertexArrayixEj'
CMakeFiles/GUIML.dir/objects.a(CheckBox.cpp.obj):CheckBox.cpp:(.text+0x1073): undefined reference to `__imp___ZN2sf5Color5BlackE'
CMakeFiles/GUIML.dir/objects.a(CheckBox.cpp.obj):CheckBox.cpp:(.text+0x108e): undefined reference to `__imp___ZN2sf5Color5BlackE'
CMakeFiles/GUIML.dir/objects.a(CheckBox.cpp.obj):CheckBox.cpp:(.text+0x10a9): undefined reference to `__imp___ZN2sf5Color5BlackE'
CMakeFiles/GUIML.dir/objects.a(CheckBox.cpp.obj):CheckBox.cpp:(.text+0x10c4): undefined reference to `__imp___ZN2sf5Color5BlackE'
CMakeFiles/GUIML.dir/objects.a(CheckBox.cpp.obj):CheckBox.cpp:(.text$_ZN5guiml8CheckBoxD1Ev[guiml::CheckBox::~CheckBox()]+0x4a): undefined reference to `__imp___ZTVN2sf11VertexArrayE'
CMakeFiles/GUIML.dir/objects.a(CheckBox.cpp.obj):CheckBox.cpp:(.text$_ZN5guiml8CheckBoxD1Ev[guiml::CheckBox::~CheckBox()]+0x73): undefined reference to `__imp___ZTVN2sf8DrawableE'
CMakeFiles/GUIML.dir/objects.a(CheckBox.cpp.obj):CheckBox.cpp:(.text$_ZN5guiml8CheckBoxD1Ev[guiml::CheckBox::~CheckBox()]+0xb7): undefined reference to `__imp___ZTVN2sf14RectangleShapeE'
CMakeFiles/GUIML.dir/objects.a(CheckBox.cpp.obj):CheckBox.cpp:(.text$_ZN5guiml8CheckBoxD1Ev[guiml::CheckBox::~CheckBox()]+0xd4): undefined reference to `__imp___ZN2sf5ShapeD2Ev'
CMakeFiles/GUIML.dir/objects.a(CheckBox.cpp.obj):CheckBox.cpp:(.text$_ZN5guiml8CheckBoxD0Ev[guiml::CheckBox::~CheckBox()]+0x4a): undefined reference to `__imp___ZTVN2sf11VertexArrayE'
CMakeFiles/GUIML.dir/objects.a(CheckBox.cpp.obj):CheckBox.cpp:(.text$_ZN5guiml8CheckBoxD0Ev[guiml::CheckBox::~CheckBox()]+0x73): undefined reference to `__imp___ZTVN2sf8DrawableE'
CMakeFiles/GUIML.dir/objects.a(CheckBox.cpp.obj):CheckBox.cpp:(.text$_ZN5guiml8CheckBoxD0Ev[guiml::CheckBox::~CheckBox()]+0xb7): undefined reference to `__imp___ZTVN2sf14RectangleShapeE'
CMakeFiles/GUIML.dir/objects.a(Image.cpp.obj):Image.cpp:(.text+0x4d94): undefined reference to `__imp___ZN2sf7TextureC1Ev'
CMakeFiles/GUIML.dir/objects.a(Image.cpp.obj):Image.cpp:(.text+0x4de7): undefined reference to `__imp___ZN2sf7Texture12loadFromFileERKSsRKNS_4RectIiEE'
CMakeFiles/GUIML.dir/objects.a(Image.cpp.obj):Image.cpp:(.text+0x5066): undefined reference to `__imp___ZN2sf6SpriteC1Ev'
CMakeFiles/GUIML.dir/objects.a(Image.cpp.obj):Image.cpp:(.text$_ZN2sf6SpriteD1Ev[sf::Sprite::~Sprite()]+0x39): undefined reference to `__imp___ZTVN2sf6SpriteE'
CMakeFiles/GUIML.dir/objects.a(Image.cpp.obj):Image.cpp:(.text$_ZN2sf6SpriteD1Ev[sf::Sprite::~Sprite()]+0x59): undefined reference to `__imp___ZN2sf13TransformableD2Ev'
CMakeFiles/GUIML.dir/objects.a(Image.cpp.obj):Image.cpp:(.text$_ZN2sf6SpriteD1Ev[sf::Sprite::~Sprite()]+0x5e): undefined reference to `__imp___ZTVN2sf8DrawableE'
CMakeFiles/GUIML.dir/objects.a(Image.cpp.obj):Image.cpp:(.text$_ZN2sf6SpriteD1Ev[sf::Sprite::~Sprite()]+0x82): undefined reference to `__imp___ZTVN2sf8DrawableE'
CMakeFiles/GUIML.dir/objects.a(Window.cpp.obj):Window.cpp:(.text+0x44): undefined reference to `__imp___ZNK2sf12RenderTarget14getDefaultViewEv'
CMakeFiles/GUIML.dir/objects.a(Window.cpp.obj):Window.cpp:(.text+0x76): undefined reference to `__imp___ZN2sf12RenderTarget7setViewERKNS_4ViewE'
CMakeFiles/GUIML.dir/objects.a(Window.cpp.obj):Window.cpp:(.text+0xaf): undefined reference to `__imp___ZN2sf6Window8setTitleERKSs'
CMakeFiles/GUIML.dir/objects.a(Window.cpp.obj):Window.cpp:(.text+0x13f): undefined reference to `__imp___ZN2sf6Window7setSizeENS_7Vector2IjEE'
CMakeFiles/GUIML.dir/objects.a(Window.cpp.obj):Window.cpp:(.text+0x1c5): undefined reference to `__imp___ZN2sf6Window11setPositionERKNS_7Vector2IiEE'
CMakeFiles/GUIML.dir/objects.a(Window.cpp.obj):Window.cpp:(.text+0x1f7): undefined reference to `__imp___ZN2sf12RenderTarget4drawERKNS_8DrawableERKNS_12RenderStatesE'
CMakeFiles/GUIML.dir/objects.a(Window.cpp.obj):Window.cpp:(.text+0x258): undefined reference to `__imp___ZN2sf12RenderTarget5clearERKNS_5ColorE'
CMakeFiles/GUIML.dir/objects.a(Window.cpp.obj):Window.cpp:(.text+0x281): undefined reference to `__imp___ZN2sf6Window7displayEv'
CMakeFiles/GUIML.dir/objects.a(Window.cpp.obj):Window.cpp:(.text+0x377): undefined reference to `__imp___ZN2sf12RenderWindowD2Ev'
CMakeFiles/GUIML.dir/objects.a(Window.cpp.obj):Window.cpp:(.text+0x477): undefined reference to `__imp___ZN2sf12RenderWindowD2Ev'
CMakeFiles/GUIML.dir/objects.a(Window.cpp.obj):Window.cpp:(.text+0x597): undefined reference to `__imp___ZN2sf12RenderWindowD2Ev'
CMakeFiles/GUIML.dir/objects.a(Window.cpp.obj):Window.cpp:(.text+0x6a3): undefined reference to `__imp___ZN2sf12RenderWindowD2Ev'
CMakeFiles/GUIML.dir/objects.a(Window.cpp.obj):Window.cpp:(.text+0x866): undefined reference to `__imp___ZN2sf12RenderWindowC2ENS_9VideoModeERKSsjRKNS_15ContextSettingsE'
CMakeFiles/GUIML.dir/objects.a(Window.cpp.obj):Window.cpp:(.text+0x8d6): undefined reference to `__imp___ZN2sf6Window11setPositionERKNS_7Vector2IiEE'
CMakeFiles/GUIML.dir/objects.a(Window.cpp.obj):Window.cpp:(.text+0x8eb): undefined reference to `__imp___ZN2sf6Window17setFramerateLimitEj'
CMakeFiles/GUIML.dir/objects.a(Window.cpp.obj):Window.cpp:(.text+0x936): undefined reference to `__imp___ZNK2sf12RenderTarget14getDefaultViewEv'
CMakeFiles/GUIML.dir/objects.a(Window.cpp.obj):Window.cpp:(.text+0x947): undefined reference to `__imp___ZN2sf12RenderTarget7setViewERKNS_4ViewE'
CMakeFiles/GUIML.dir/objects.a(Window.cpp.obj):Window.cpp:(.text+0x96d): undefined reference to `__imp___ZN2sf12RenderTarget5clearERKNS_5ColorE'
CMakeFiles/GUIML.dir/objects.a(Window.cpp.obj):Window.cpp:(.text+0x9c0): undefined reference to `__imp___ZN2sf12RenderWindowD2Ev'
CMakeFiles/GUIML.dir/objects.a(Window.cpp.obj):Window.cpp:(.rdata$_ZTVN5guiml6WindowE[vtable for guiml::Window]+0xb0): undefined reference to `sf::RenderWindow::onCreate()'
CMakeFiles/GUIML.dir/objects.a(Window.cpp.obj):Window.cpp:(.rdata$_ZTVN5guiml6WindowE[vtable for guiml::Window]+0xb4): undefined reference to `sf::RenderWindow::onResize()'
CMakeFiles/GUIML.dir/objects.a(Window.cpp.obj):Window.cpp:(.rdata$_ZTVN5guiml6WindowE[vtable for guiml::Window]+0xb8): undefined reference to `sf::RenderWindow::getSize() const'
CMakeFiles/GUIML.dir/objects.a(Window.cpp.obj):Window.cpp:(.rdata$_ZTVN5guiml6WindowE[vtable for guiml::Window]+0xbc): undefined reference to `sf::RenderWindow::activate(bool)'
CMakeFiles/GUIML.dir/objects.a(Window.cpp.obj):Window.cpp:(.rdata$_ZTVN5guiml6WindowE[vtable for guiml::Window]+0xd0): undefined reference to `non-virtual thunk to sf::RenderWindow::getSize() const'
CMakeFiles/GUIML.dir/objects.a(Window.cpp.obj):Window.cpp:(.rdata$_ZTVN5guiml6WindowE[vtable for guiml::Window]+0xd4): undefined reference to `non-virtual thunk to sf::RenderWindow::activate(bool)'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text+0x74): undefined reference to `__imp___ZNK2sf12RenderTarget14getDefaultViewEv'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text+0x97): undefined reference to `__imp___ZN2sf12RenderTarget4drawERKNS_8DrawableERKNS_12RenderStatesE'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text+0x136): undefined reference to `__imp___ZN2sf13RenderTexture6createEjjb'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text+0x36c): undefined reference to `__imp___ZN2sf13Transformable11setPositionERKNS_7Vector2IfEE'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text+0x3c0): undefined reference to `__imp___ZN2sf12RenderTarget7setViewERKNS_4ViewE'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text+0x561): undefined reference to `__imp___ZNK2sf6String12toAnsiStringERKSt6locale'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text+0xc22): undefined reference to `__imp___ZN2sf12RenderTarget5clearERKNS_5ColorE'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text+0xc52): undefined reference to `__imp___ZN2sf13RenderTexture7displayEv'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text+0xc5c): undefined reference to `__imp___ZNK2sf13RenderTexture10getTextureEv'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text+0xc7d): undefined reference to `__imp___ZN2sf6Sprite10setTextureERKNS_7TextureEb'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text+0xc8f): undefined reference to `__imp___ZN2sf12RenderStates7DefaultE'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text+0xe2f): undefined reference to `__imp___ZN2sf7TextureC1Ev'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text+0xec0): undefined reference to `__imp___ZN2sf6SpriteC1ERKNS_7TextureERKNS_4RectIiEE'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text+0xee2): undefined reference to `__imp___ZN2sf6Sprite8setColorERKNS_5ColorE'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text+0xf6f): undefined reference to `__imp___ZTVN2sf6SpriteE'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text+0xf98): undefined reference to `__imp___ZN2sf13TransformableD2Ev'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text+0xf9d): undefined reference to `__imp___ZTVN2sf8DrawableE'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text+0xfbc): undefined reference to `__imp___ZN2sf7TextureD1Ev'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text+0x102e): undefined reference to `__imp___ZN2sf7TextureD1Ev'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text+0x1047): undefined reference to `__imp___ZTVN2sf8DrawableE'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text+0x1101): undefined reference to `__imp___ZN2sf13RenderTextureC2Ev'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text+0x112e): undefined reference to `__imp___ZNK2sf13RenderTexture10getTextureEv'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text+0x1147): undefined reference to `__imp___ZN2sf6SpriteC1ERKNS_7TextureE'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text+0x123e): undefined reference to `__imp___ZTVN2sf4TextE'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text+0x1257): undefined reference to `__imp___ZTVN2sf11VertexArrayE'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text+0x127a): undefined reference to `__imp___ZTVN2sf8DrawableE'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text+0x12b1): undefined reference to `__imp___ZN2sf13TransformableD2Ev'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text+0x138c): undefined reference to `__imp___ZN2sf7TextureC1Ev'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text+0x1413): undefined reference to `__imp___ZN2sf6SpriteC1ERKNS_7TextureERKNS_4RectIiEE'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text+0x1435): undefined reference to `__imp___ZN2sf6Sprite8setColorERKNS_5ColorE'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text+0x152e): undefined reference to `__imp___ZN2sf5Color5WhiteE'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text+0x1592): undefined reference to `__imp___ZN2sf13RenderTexture6createEjjb'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text+0x159f): undefined reference to `__imp___ZNK2sf12RenderTarget14getDefaultViewEv'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text+0x15c1): undefined reference to `__imp___ZN2sf12RenderTarget7setViewERKNS_4ViewE'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text+0x1670): undefined reference to `__imp___ZTVN2sf6SpriteE'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text+0x16bc): undefined reference to `__imp___ZN2sf7TextureD1Ev'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text+0x1798): undefined reference to `__imp___ZN2sf13RenderTextureD2Ev'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text+0x17fa): undefined reference to `__imp___ZN2sf7TextureD1Ev'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text+0x1815): undefined reference to `__imp___ZTVN2sf8DrawableE'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text+0x183d): undefined reference to `__imp___ZTVN2sf8DrawableE'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text$_ZN5guiml5FrameD1Ev[guiml::Frame::~Frame()]+0x72): undefined reference to `__imp___ZTVN2sf4TextE'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text$_ZN5guiml5FrameD1Ev[guiml::Frame::~Frame()]+0x92): undefined reference to `__imp___ZTVN2sf11VertexArrayE'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text$_ZN5guiml5FrameD1Ev[guiml::Frame::~Frame()]+0xb9): undefined reference to `__imp___ZTVN2sf8DrawableE'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text$_ZN5guiml5FrameD1Ev[guiml::Frame::~Frame()]+0xf4): undefined reference to `__imp___ZN2sf13TransformableD2Ev'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text$_ZN5guiml5FrameD1Ev[guiml::Frame::~Frame()]+0x405): undefined reference to `__imp___ZTVN2sf6SpriteE'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text$_ZN5guiml5FrameD1Ev[guiml::Frame::~Frame()]+0x454): undefined reference to `__imp___ZN2sf13RenderTextureD2Ev'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text$_ZN5guiml5FrameD1Ev[guiml::Frame::~Frame()]+0x691): undefined reference to `__imp___ZN2sf13RenderTextureD2Ev'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text$_ZN5guiml5FrameD0Ev[guiml::Frame::~Frame()]+0x72): undefined reference to `__imp___ZTVN2sf4TextE'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text$_ZN5guiml5FrameD0Ev[guiml::Frame::~Frame()]+0x92): undefined reference to `__imp___ZTVN2sf11VertexArrayE'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text$_ZN5guiml5FrameD0Ev[guiml::Frame::~Frame()]+0xb9): undefined reference to `__imp___ZTVN2sf8DrawableE'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text$_ZN5guiml5FrameD0Ev[guiml::Frame::~Frame()]+0xf4): undefined reference to `__imp___ZN2sf13TransformableD2Ev'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text$_ZN5guiml5FrameD0Ev[guiml::Frame::~Frame()]+0x405): undefined reference to `__imp___ZTVN2sf6SpriteE'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text$_ZN5guiml5FrameD0Ev[guiml::Frame::~Frame()]+0x454): undefined reference to `__imp___ZN2sf13RenderTextureD2Ev'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.text$_ZN5guiml5FrameD0Ev[guiml::Frame::~Frame()]+0x62a): undefined reference to `__imp___ZN2sf13RenderTextureD2Ev'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.rdata$_ZTVN5guiml5FrameE[vtable for guiml::Frame]+0xb0): undefined reference to `sf::RenderTexture::getSize() const'
CMakeFiles/GUIML.dir/objects.a(Frame.cpp.obj):Frame.cpp:(.rdata$_ZTVN5guiml5FrameE[vtable for guiml::Frame]+0xb4): undefined reference to `sf::RenderTexture::activate(bool)'
CMakeFiles/GUIML.dir/objects.a(Widget.cpp.obj):Widget.cpp:(.text+0xe46): undefined reference to `__imp___ZN2sf7TextureD1Ev'
CMakeFiles/GUIML.dir/objects.a(Slide.cpp.obj):Slide.cpp:(.text+0xe2): undefined reference to `__imp___ZTVN2sf4TextE'
CMakeFiles/GUIML.dir/objects.a(Slide.cpp.obj):Slide.cpp:(.text+0x107): undefined reference to `__imp___ZTVN2sf11VertexArrayE'
CMakeFiles/GUIML.dir/objects.a(Slide.cpp.obj):Slide.cpp:(.text+0x12c): undefined reference to `__imp___ZTVN2sf8DrawableE'
CMakeFiles/GUIML.dir/objects.a(Slide.cpp.obj):Slide.cpp:(.text+0x166): undefined reference to `__imp___ZN2sf13TransformableD2Ev'
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libGUIML.dll] Erreur 1
make[1]: *** [CMakeFiles/GUIML.dir/all] Erreur 2
make: *** [all] Erreur 2
J'ai regardé un peu sur le forum, le __imp__ suppose que la lib ne sélectionne pas la version static de la SFML (pas compris pourquoi) et qu'il fallait utilisé un #define SFML_STATIC quelque part.
Voici le CMakeList.txt :
cmake_minimum_required(VERSION 2.6)
project(GUIML)
set(LIBRARY_OUTPUT_PATH lib)
set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -std=c++0x")
include_directories(${sfml_include_dir} include)
link_directories(${sfml_link_dir})
set(CMAKE_BUILD_TYPE "Release")
file(
GLOB_RECURSE
sources_files
src/*
include/*
)
add_library(
GUIML
SHARED
${sources_files}
)
add_library(
GUIMLStatic
STATIC
${sources_files}
)
#target link for the .so
target_link_libraries(
GUIML
${sfml_system_lib_name}
${sfml_window_lib_name}
${sfml_graphics_lib_name}
${sfml_audio_lib_name}
)
#target link for the .a
target_link_libraries(
GUIMLStatic
${sfml_system_lib_name}
${sfml_window_lib_name}
${sfml_graphics_lib_name}
${sfml_audio_lib_name}
)
set_target_properties(GUIMLStatic PROPERTIES OUTPUT_NAME GUIML)
set(sfml_include_dir "/usr/i486-mingw32/include" CACHE PATH "Où se situe le Dossier SFML")
set(sfml_link_dir "/usr/i486-mingw32/bin" CACHE PATH "Où se situe les lib SFML dynamique")
set(sfml-system_lib_name "sfml-system" CACHE STRING "Le nom de la lib system de la sfml")
set(sfml-window_lib_name "sfml-window" CACHE STRING "Le nom de la lib window de la sfml")
set(sfml-graphics_lib_name "sfml-graphics" CACHE STRING "Le nom de la lib graphics de la sfml")
set(sfml-audio_lib_name "sfml-audio" CACHE STRING "Le nom de la lib audio de la sfml")
Je pense qu'il st assez simple de le lire
.
Voila, merci d'avance et désoler du dérangement.