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

API graphiques Discussion :

Problème de linkage aec Ogg


Sujet :

API graphiques

  1. #1
    Membre habitué Avatar de Kromagg
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Août 2008
    Messages
    275
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 37
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Opérateur de télécommunications

    Informations forums :
    Inscription : Août 2008
    Messages : 275
    Points : 198
    Points
    198
    Par défaut Problème de linkage aec Ogg
    Bonjour à tous

    Voila j'ai un petit problème avec la librairie Ogg.

    Je travaille sous Ubuntu avec CodeBlocks. J'ai 2 projets dans mon workspace : un qui représente mon moteur de jeu (une libraire statique), et un qui représente une démo montrant l'utilisation du moteur (un exécutable). J'utilise OpenAL, Ogg-Vorbis pour charger mes sons Ogg. Tout compile niquel pour la libraire statique (le moteur de jeu), pas de problème de linkage, par contre quand je compile la démo voici ce que me sort le compilateur
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
     
    ||=== Demo, Debug ===|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_get_next_page':|
    (.text+0x546)||undefined reference to `ogg_sync_pageseek'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_get_next_page':|
    (.text+0x599)||undefined reference to `ogg_sync_buffer'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_get_next_page':|
    (.text+0x5cc)||undefined reference to `ogg_sync_wrote'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_decode_clear':|
    (.text+0x693)||undefined reference to `vorbis_dsp_clear'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_decode_clear':|
    (.text+0x6a1)||undefined reference to `vorbis_block_clear'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_headers':|
    (.text+0x6e4)||undefined reference to `vorbis_info_init'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_headers':|
    (.text+0x6ef)||undefined reference to `vorbis_comment_init'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_headers':|
    (.text+0x704)||undefined reference to `ogg_page_bos'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_headers':|
    (.text+0x714)||undefined reference to `ogg_page_serialno'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_headers':|
    (.text+0x720)||undefined reference to `ogg_stream_reset_serialno'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_headers':|
    (.text+0x72c)||undefined reference to `ogg_stream_pagein'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_headers':|
    (.text+0x73b)||undefined reference to `ogg_stream_packetout'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_headers':|
    (.text+0x74a)||undefined reference to `vorbis_synthesis_idheader'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_headers':|
    (.text+0x7b4)||undefined reference to `vorbis_info_clear'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_headers':|
    (.text+0x7bf)||undefined reference to `vorbis_comment_clear'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_headers':|
    (.text+0x814)||undefined reference to `vorbis_synthesis_headerin'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_headers':|
    (.text+0x856)||undefined reference to `vorbis_synthesis_headerin'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_headers':|
    (.text+0x87d)||undefined reference to `ogg_stream_packetout'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_headers':|
    (.text+0x8ba)||undefined reference to `ogg_page_serialno'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_headers':|
    (.text+0x8c6)||undefined reference to `ogg_page_bos'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_headers':|
    (.text+0x8f5)||undefined reference to `ogg_stream_pagein'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_make_decode_ready':|
    (.text+0x980)||undefined reference to `vorbis_synthesis_init'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_make_decode_ready':|
    (.text+0x996)||undefined reference to `vorbis_block_init'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_and_process_packet':|
    (.text+0xa62)||undefined reference to `ogg_page_serialno'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_and_process_packet':|
    (.text+0xa6e)||undefined reference to `ogg_page_bos'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_and_process_packet':|
    (.text+0xab5)||undefined reference to `ogg_page_serialno'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_and_process_packet':|
    (.text+0xb01)||undefined reference to `ogg_stream_reset_serialno'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_and_process_packet':|
    (.text+0xb26)||undefined reference to `ogg_stream_pagein'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_and_process_packet':|
    (.text+0xb48)||undefined reference to `ogg_stream_packetout'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_and_process_packet':|
    (.text+0xb74)||undefined reference to `vorbis_synthesis'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_and_process_packet':|
    (.text+0xbc7)||undefined reference to `vorbis_synthesis_pcmout'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_and_process_packet':|
    (.text+0xbe6)||undefined reference to `vorbis_synthesis_blockin'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_and_process_packet':|
    (.text+0xbff)||undefined reference to `vorbis_synthesis_pcmout'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_and_process_packet':|
    (.text+0xc74)||undefined reference to `vorbis_synthesis_pcmout'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_and_process_packet':|
    (.text+0xca7)||undefined reference to `vorbis_info_clear'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_and_process_packet':|
    (.text+0xcb2)||undefined reference to `vorbis_comment_clear'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_and_process_packet':|
    (.text+0xd51)||undefined reference to `vorbis_synthesis_pcmout'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_ov_initprime':|
    (.text+0xe34)||undefined reference to `vorbis_synthesis_pcmout'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `ov_read_float':|
    (.text+0xe9d)||undefined reference to `vorbis_synthesis_pcmout'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `ov_read_float':|
    (.text+0xec6)||undefined reference to `vorbis_synthesis_read'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `ov_read':|
    (.text+0xf95)||undefined reference to `vorbis_synthesis_pcmout'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `ov_read':|
    (.text+0x10e4)||undefined reference to `vorbis_synthesis_read'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_ov_getlap':|
    (.text+0x1406)||undefined reference to `vorbis_synthesis_pcmout'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_ov_getlap':|
    (.text+0x147a)||undefined reference to `vorbis_synthesis_read'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_ov_getlap':|
    (.text+0x14c6)||undefined reference to `vorbis_synthesis_lapout'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_seek_helper':|
    (.text+0x16bf)||undefined reference to `ogg_sync_reset'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `ov_raw_seek':|
    (.text+0x18a4)||undefined reference to `ogg_stream_reset_serialno'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `ov_raw_seek':|
    (.text+0x18b2)||undefined reference to `vorbis_synthesis_restart'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `ov_raw_seek':|
    (.text+0x18da)||undefined reference to `ogg_stream_init'|
    /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `ov_raw_seek':|
    (.text+0x18e2)||undefined reference to `ogg_stream_reset'|
    ||More errors follow but not being shown.|
    ||Edit the max errors limit in compiler options...|
    ||=== Build finished: 50 errors, 0 warnings ===|
    J'ai linker les 2 projets de cette façon :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    Project/Build Options/Linker settings/Link libraries
    avec les librairies
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
     
    /usr/lib/libopenal.a
    /usr/lib/libogg.a
    /usr/lib/libvorbis.a
    /usr/lib/libvorbisfile.a
    Je vois vraiment pas d'où vient l'erreur
    C'est dans ses rêves que l'homme trouve la liberté cela fut, est et restera la vérité! (John Keating - Le cercle des poètes disparus)

  2. #2
    Expert confirmé
    Avatar de shenron666
    Homme Profil pro
    avancé
    Inscrit en
    Avril 2005
    Messages
    2 524
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 47
    Localisation : France, Seine et Marne (Île de France)

    Informations professionnelles :
    Activité : avancé

    Informations forums :
    Inscription : Avril 2005
    Messages : 2 524
    Points : 5 184
    Points
    5 184
    Par défaut
    je me demande si ce n'est pas un problème de lien statique / dynamique
    si ta bibliothèque ogg est une version statique tu dois peut-être paramétrer une commande préprocesseur
    c'est juste un supposition vu que je ne connais pas ogg

    tu as regardé sur le site officiel s'ils en parlaient dans un exemple, tutoriel, forum ou autre ?
    Tutoriels OpenGL
    Je ne répondrai à aucune question en MP
    - Si c'est simple tu dis que c'est compliqué et tu le fait
    - Si c'est compliqué tu dis que c'est simple et tu le sous-traite ou le fait faire par un stagiaire.

  3. #3
    Membre habitué Avatar de Kromagg
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Août 2008
    Messages
    275
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 37
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Opérateur de télécommunications

    Informations forums :
    Inscription : Août 2008
    Messages : 275
    Points : 198
    Points
    198
    Par défaut
    En effet tu as raison shenron c'était bien un problème lien statique. J'ai récupérer des nouvelles lib statiques et tout fonctionne pour le mieux, merci encore

    Naoss.
    C'est dans ses rêves que l'homme trouve la liberté cela fut, est et restera la vérité! (John Keating - Le cercle des poètes disparus)

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

Discussions similaires

  1. Code::Blocks sous Linux problème de linkage
    Par JuTs dans le forum Code::Blocks
    Réponses: 3
    Dernier message: 22/03/2006, 16h54
  2. [Code::Blocks] Problème de linkage: "msvcrt.lib"
    Par skhay dans le forum Code::Blocks
    Réponses: 8
    Dernier message: 14/03/2006, 19h39
  3. Plusieurs fichiers => Problème de Linkage
    Par loic911 dans le forum C++
    Réponses: 6
    Dernier message: 01/03/2006, 00h11
  4. Problème de linkage avec la librairie DevIl
    Par Drannor dans le forum DevIL
    Réponses: 1
    Dernier message: 18/01/2006, 23h05
  5. Problème de linkage
    Par lvdnono dans le forum Windows
    Réponses: 4
    Dernier message: 15/06/2004, 12h32

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