IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Moteurs 3D Discussion :

[Cal3D] Problème de compilation avec Cal3D sous windows


Sujet :

Moteurs 3D

  1. #1
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Novembre 2006
    Messages
    55
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Novembre 2006
    Messages : 55
    Points : 34
    Points
    34
    Par défaut [Cal3D] Problème de compilation avec Cal3D sous windows
    Je suis en train de porter un prog qui fonctionne à merveille sous linux vers windows. Seulement voila, après une demi journée de tests je n'arrive pas à faire fonctionner Cal3D normalement.

    J'ai compilé moi-même Cal3D car pas moyen de trouver une version précompilée pour windows.

    * Sous Dev-CPP, j'ai (comme je l'ai fait pour glut) :

    - copié le fichier cal3d.lib dans le répertoire lib
    - copié le répertoire cal3d avec les headers dans le rep include
    - copié cal3d.dll dans winnt/system32 et dans le répertoire du projet
    - ajouté cal3d.lib dans les librairies de mon projet

    Résultat, la compilation échoue au moment du linckage ... Paraît-il que toutes les références des classes de Cal3D sont indéfinies.

    J'arrive au même résultat avec Visual Studio 8. Sauf que je sais pas comment on ajoute une librairie au projet, je me dis que c'est peut-être automatique ... :

    Linking...
    MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CalCoreSkeleton::calculateBoundingBoxes(class CalCoreModel *)" (__imp_?calculateBoundingBoxes@CalCoreSkeleton@@QAEXPAVCalCoreModel@@@Z) referenced in function "public: __thiscall MFEModel::MFEModel(char *)" (??0MFEModel@@QAE@PAD@Z)
    MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class CalCoreSkeleton * __thiscall CalCoreModel::getCoreSkeleton(void)" (__imp_?getCoreSkeleton@CalCoreModel@@QAEPAVCalCoreSkeleton@@XZ) referenced in function "public: __thiscall MFEModel::MFEModel(char *)" (??0MFEModel@@QAE@PAD@Z)
    MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall CalCoreModel::setCoreMaterialId(int,int,int)" (__imp_?setCoreMaterialId@CalCoreModel@@QAE_NHHH@Z) referenced in function "public: __thiscall MFEModel::MFEModel(char *)" (??0MFEModel@@QAE@PAD@Z)
    MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall CalCoreModel::createCoreMaterialThread(int)" (__imp_?createCoreMaterialThread@CalCoreModel@@QAE_NH@Z) referenced in function "public: __thiscall MFEModel::MFEModel(char *)" (??0MFEModel@@QAE@PAD@Z)
    MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall CalCoreMaterial::setMapUserData(int,void *)" (__imp_?setMapUserData@CalCoreMaterial@@QAE_NHPAX@Z) referenced in function "public: __thiscall MFEModel::MFEModel(char *)" (??0MFEModel@@QAE@PAD@Z)
    MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const & __thiscall CalCoreMaterial::getMapFilename(int)" (__imp_?getMapFilename@CalCoreMaterial@@QAEABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z) referenced in function "public: __thiscall MFEModel::MFEModel(char *)" (??0MFEModel@@QAE@PAD@Z)
    MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall CalCoreMaterial::getMapCount(void)" (__imp_?getMapCount@CalCoreMaterial@@QAEHXZ) referenced in function "public: __thiscall MFEModel::MFEModel(char *)" (??0MFEModel@@QAE@PAD@Z)
    MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class CalCoreMaterial * __thiscall CalCoreModel::getCoreMaterial(int)" (__imp_?getCoreMaterial@CalCoreModel@@QAEPAVCalCoreMaterial@@H@Z) referenced in function "public: __thiscall MFEModel::MFEModel(char *)" (??0MFEModel@@QAE@PAD@Z)
    MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall CalCoreModel::getCoreMaterialCount(void)" (__imp_?getCoreMaterialCount@CalCoreModel@@QAEHXZ) referenced in function "public: __thiscall MFEModel::MFEModel(char *)" (??0MFEModel@@QAE@PAD@Z)
    MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall CalCoreModel::loadCoreMaterial(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?loadCoreMaterial@CalCoreModel@@QAEHABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: __thiscall MFEModel::MFEModel(char *)" (??0MFEModel@@QAE@PAD@Z)
    MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall CalCoreModel::loadCoreMesh(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?loadCoreMesh@CalCoreModel@@QAEHABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: __thiscall MFEModel::MFEModel(char *)" (??0MFEModel@@QAE@PAD@Z)
    MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall CalCoreModel::loadCoreAnimation(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?loadCoreAnimation@CalCoreModel@@QAEHABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: __thiscall MFEModel::MFEModel(char *)" (??0MFEModel@@QAE@PAD@Z)
    MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl CalError::printLastError(void)" (__imp_?printLastError@CalError@@YAXXZ) referenced in function "public: __thiscall MFEModel::MFEModel(char *)" (??0MFEModel@@QAE@PAD@Z)
    MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall CalCoreModel::loadCoreSkeleton(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?loadCoreSkeleton@CalCoreModel@@QAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: __thiscall MFEModel::MFEModel(char *)" (??0MFEModel@@QAE@PAD@Z)
    MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall CalCoreModel::CalCoreModel(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_??0CalCoreModel@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: __thiscall MFEModel::MFEModel(char *)" (??0MFEModel@@QAE@PAD@Z)
    MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall CalMixer::blendCycle(int,float,float)" (__imp_?blendCycle@CalMixer@@QAE_NHMM@Z) referenced in function "public: __thiscall MFEModelInstance::MFEModelInstance(class MFEModel *)" (??0MFEModelInstance@@QAE@PAVMFEModel@@@Z)
    MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class CalMixer * __thiscall CalModel::getMixer(void)const " (__imp_?getMixer@CalModel@@QBEPAVCalMixer@@XZ) referenced in function "public: __thiscall MFEModelInstance::MFEModelInstance(class MFEModel *)" (??0MFEModelInstance@@QAE@PAVMFEModel@@@Z)
    MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CalModel::setMaterialSet(int)" (__imp_?setMaterialSet@CalModel@@QAEXH@Z) referenced in function "public: __thiscall MFEModelInstance::MFEModelInstance(class MFEModel *)" (??0MFEModelInstance@@QAE@PAVMFEModel@@@Z)
    MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall CalModel::attachMesh(int)" (__imp_?attachMesh@CalModel@@QAE_NH@Z) referenced in function "public: __thiscall MFEModelInstance::MFEModelInstance(class MFEModel *)" (??0MFEModelInstance@@QAE@PAVMFEModel@@@Z)
    MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall CalCoreModel::getCoreMeshCount(void)" (__imp_?getCoreMeshCount@CalCoreModel@@QAEHXZ) referenced in function "public: __thiscall MFEModelInstance::MFEModelInstance(class MFEModel *)" (??0MFEModelInstance@@QAE@PAVMFEModel@@@Z)
    MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall CalModel::CalModel(class CalCoreModel *)" (__imp_??0CalModel@@QAE@PAVCalCoreModel@@@Z) referenced in function "public: __thiscall MFEModelInstance::MFEModelInstance(class MFEModel *)" (??0MFEModelInstance@@QAE@PAVMFEModel@@@Z)
    MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CalRenderer::endRendering(void)" (__imp_?endRendering@CalRenderer@@QAEXXZ) referenced in function "public: void __thiscall MFEModelInstance::Render(bool,bool)" (?Render@MFEModelInstance@@QAEX_N0@Z)
    MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void * __thiscall CalRenderer::getMapUserData(int)" (__imp_?getMapUserData@CalRenderer@@QAEPAXH@Z) referenced in function "public: void __thiscall MFEModelInstance::Render(bool,bool)" (?Render@MFEModelInstance@@QAEX_N0@Z)
    MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall CalRenderer::getMapCount(void)" (__imp_?getMapCount@CalRenderer@@QAEHXZ) referenced in function "public: void __thiscall MFEModelInstance::Render(bool,bool)" (?Render@MFEModelInstance@@QAEX_N0@Z)
    MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall CalRenderer::getFaces(int *)" (__imp_?getFaces@CalRenderer@@QAEHPAH@Z) referenced in function "public: void __thiscall MFEModelInstance::Render(bool,bool)" (?Render@MFEModelInstance@@QAEX_N0@Z)
    MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall CalRenderer::getTextureCoordinates(int,float *,int)" (__imp_?getTextureCoordinates@CalRenderer@@QAEHHPAMH@Z) referenced in function "public: void __thiscall MFEModelInstance::Render(bool,bool)" (?Render@MFEModelInstance@@QAEX_N0@Z)
    MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall CalRenderer::getNormals(float *,int)" (__imp_?getNormals@CalRenderer@@QAEHPAMH@Z) referenced in function "public: void __thiscall MFEModelInstance::Render(bool,bool)" (?Render@MFEModelInstance@@QAEX_N0@Z)
    MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall CalRenderer::getVertices(float *,int)" (__imp_?getVertices@CalRenderer@@QAEHPAMH@Z) referenced in function "public: void __thiscall MFEModelInstance::Render(bool,bool)" (?Render@MFEModelInstance@@QAEX_N0@Z)
    MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CalRenderer::getSpecularColor(unsigned char *)" (__imp_?getSpecularColor@CalRenderer@@QAEXPAE@Z) referenced in function "public: void __thiscall MFEModelInstance::Render(bool,bool)" (?Render@MFEModelInstance@@QAEX_N0@Z)
    MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CalRenderer::getDiffuseColor(unsigned char *)" (__imp_?getDiffuseColor@CalRenderer@@QAEXPAE@Z) referenced in function "public: void __thiscall MFEModelInstance::Render(bool,bool)" (?Render@MFEModelInstance@@QAEX_N0@Z)
    MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CalRenderer::getAmbientColor(unsigned char *)" (__imp_?getAmbientColor@CalRenderer@@QAEXPAE@Z) referenced in function "public: void __thiscall MFEModelInstance::Render(bool,bool)" (?Render@MFEModelInstance@@QAEX_N0@Z)
    MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall CalRenderer::selectMeshSubmesh(int,int)" (__imp_?selectMeshSubmesh@CalRenderer@@QAE_NHH@Z) referenced in function "public: void __thiscall MFEModelInstance::Render(bool,bool)" (?Render@MFEModelInstance@@QAEX_N0@Z)
    MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall CalRenderer::getSubmeshCount(int)" (__imp_?getSubmeshCount@CalRenderer@@QAEHH@Z) referenced in function "public: void __thiscall MFEModelInstance::Render(bool,bool)" (?Render@MFEModelInstance@@QAEX_N0@Z)
    MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall CalRenderer::getMeshCount(void)" (__imp_?getMeshCount@CalRenderer@@QAEHXZ) referenced in function "public: void __thiscall MFEModelInstance::Render(bool,bool)" (?Render@MFEModelInstance@@QAEX_N0@Z)
    MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall CalRenderer::beginRendering(void)" (__imp_?beginRendering@CalRenderer@@QAE_NXZ) referenced in function "public: void __thiscall MFEModelInstance::Render(bool,bool)" (?Render@MFEModelInstance@@QAEX_N0@Z)
    MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class CalRenderer * __thiscall CalModel::getRenderer(void)const " (__imp_?getRenderer@CalModel@@QBEPAVCalRenderer@@XZ) referenced in function "public: void __thiscall MFEModelInstance::Render(bool,bool)" (?Render@MFEModelInstance@@QAEX_N0@Z)
    MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CalSkeleton::calculateBoundingBoxes(void)" (__imp_?calculateBoundingBoxes@CalSkeleton@@QAEXXZ) referenced in function "public: void __thiscall MFEModelInstance::Render(bool,bool)" (?Render@MFEModelInstance@@QAEX_N0@Z)
    MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class CalSkeleton * __thiscall CalModel::getSkeleton(void)const " (__imp_?getSkeleton@CalModel@@QBEPAVCalSkeleton@@XZ) referenced in function "public: void __thiscall MFEModelInstance::Render(bool,bool)" (?Render@MFEModelInstance@@QAEX_N0@Z)
    MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CalModel::update(float)" (__imp_?update@CalModel@@QAEXM@Z) referenced in function "public: void __thiscall MFEModelInstance::Render(bool,bool)" (?Render@MFEModelInstance@@QAEX_N0@Z)
    MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup

    Ca serait sympa de me débloquer parce que là, je n'en peut plus !

  2. #2
    Rédacteur
    Avatar de Laurent Gomila
    Profil pro
    Développeur informatique
    Inscrit en
    Avril 2003
    Messages
    10 651
    Détails du profil
    Informations personnelles :
    Âge : 40
    Localisation : France, Moselle (Lorraine)

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Avril 2003
    Messages : 10 651
    Points : 15 920
    Points
    15 920
    Par défaut
    Il faut aller dans les options de ton projet, section "linker", "input" et ajouter cal3d.lib. Car non, ce n'est pas automatique

  3. #3
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Novembre 2006
    Messages
    55
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Novembre 2006
    Messages : 55
    Points : 34
    Points
    34
    Par défaut
    Eh oui, c'est ça. Mieux vaut en rire qu'en pleurer
    Merci en tout cas

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Réponses: 5
    Dernier message: 16/07/2013, 09h10
  2. compiler avec gcc sous windows
    Par haydens dans le forum Autres éditeurs
    Réponses: 3
    Dernier message: 06/07/2009, 14h11
  3. Problème de compilation avec GSOAP sous Windows
    Par qiqi1111 dans le forum C++
    Réponses: 1
    Dernier message: 17/03/2009, 11h48
  4. Réponses: 5
    Dernier message: 09/04/2006, 19h02

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo