Resultados 1 al 8 de 8

Necesito ayuda

  1. #1 Necesito ayuda 
    Moderador Global
    Fecha de ingreso
    Aug 2005
    Mensajes
    6.279
    Descargas
    7
    Uploads
    0
    Muy buenas, el caso es que estoy tratando de compilar unas librerías (dtk) usadas por el programa Devolution-Security.
    Recibo los siguientes errores:
    Código:
       
    application.cpp:6:19: X11/X.h: No such file or directory
    application.cpp:7:22: X11/Xlib.h: No such file or directory
    In file included from ../include/dtk_object.h:4,
                     from ../include/dtk_application.h:4,
                     from application.cpp:9:
    ../include/dtk_event.h:4:19: X11/X.h: No such file or directory
    ../include/dtk_event.h:5:22: X11/Xlib.h: No such file or directory
    In file included from ../include/dtk_object.h:4,
                     from ../include/dtk_application.h:4,
                     from application.cpp:9:
    ../include/dtk_event.h:70: error: syntax error before `*' token
    In file included from ../include/dtk_widget.h:4,
                     from ../include/dtk_dialog.h:4,
                     from ../include/dtk_application.h:5,
                     from application.cpp:9:
    ../include/dtk_basewidget.h:6:19: X11/X.h: No such file or directory
    ../include/dtk_basewidget.h:7:22: X11/Xlib.h: No such file or directory
    ../include/dtk_basewidget.h:11:27: X11/keysymdef.h: No such file or directory
    In file included from ../include/dtk_widget.h:4,
                     from ../include/dtk_dialog.h:4,
                     from ../include/dtk_application.h:5,
                     from application.cpp:9:
    ../include/dtk_basewidget.h:32: error: `Pixmap' was not declared in this scope
    ../include/dtk_basewidget.h:32: error: parse error before `)' token
    ../include/dtk_basewidget.h:67: error: ISO C++ forbids declaration of `Window'
       with no type
    ../include/dtk_basewidget.h:67: error: `Window' declared as a `virtual' field
    ../include/dtk_basewidget.h:67: error: parse error before `(' token
    ../include/dtk_basewidget.h:68: error: ISO C++ forbids declaration of `Display'
       with no type
    ../include/dtk_basewidget.h:68: error: parse error before `*' token
    ../include/dtk_basewidget.h:70: error: ISO C++ forbids declaration of `Display'
       with no type
    ../include/dtk_basewidget.h:70: error: declaration of `int BaseWidget::Display'
    ../include/dtk_basewidget.h:68: error: conflicts with previous declaration `int
       BaseWidget::Display'
    ../include/dtk_basewidget.h:70: error: parse error before `*' token
    ../include/dtk_basewidget.h:77: error: `XEvent' was not declared in this scope
    ../include/dtk_basewidget.h:77: error: `ev' was not declared in this scope
    ../include/dtk_basewidget.h:77: error: invalid data member initialization
    ../include/dtk_basewidget.h:77: error: (use `=' to initialize static data
       members)
    ../include/dtk_basewidget.h:77: error: `HandleKeyPress' declared as a `virtual'
       field
    ../include/dtk_basewidget.h:81: error: ISO C++ forbids declaration of `Display'
       with no type
    ../include/dtk_basewidget.h:81: error: declaration of `int BaseWidget::Display'
    ../include/dtk_basewidget.h:68: error: conflicts with previous declaration `int
       BaseWidget::Display'
    ../include/dtk_basewidget.h:81: error: parse error before `*' token
    ../include/dtk_basewidget.h:85: error: 'Atom' is used as a type, but is not
       defined as a type.
    ../include/dtk_basewidget.h:86: error: 'Window' is used as a type, but is not
       defined as a type.
    ../include/dtk_basewidget.h:87: error: 'Pixmap' is used as a type, but is not
       defined as a type.
    ../include/dtk_basewidget.h:89: error: 'GC' is used as a type, but is not
       defined as a type.
    ../include/dtk_basewidget.h:90: error: 'Pixmap' is used as a type, but is not
       defined as a type.
    ../include/dtk_basewidget.h:91: error: syntax error before `*' token
    ../include/dtk_basewidget.h:93: error: 'GC' is used as a type, but is not
       defined as a type.
    In file included from application.cpp:9:
    ../include/dtk_application.h:7:19: X11/X.h: No such file or directory
    ../include/dtk_application.h:8:22: X11/Xlib.h: No such file or directory
    application.cpp: In member function `virtual int Application::Init()':
    application.cpp:33: error: 'class Widget' has no member named 'XConnect'
    application.cpp: In member function `virtual int Application::RunOnce()':
    application.cpp:40: error: `XEvent' undeclared (first use this function)
    application.cpp:40: error: (Each undeclared identifier is reported only once
       for each function it appears in.)
    application.cpp:40: error: parse error before `;' token
    application.cpp:41: error: `Display' undeclared (first use this function)
    application.cpp:41: error: `d' undeclared (first use this function)
    application.cpp:41: error: 'class Widget' has no member named 'GetXDisplay'
    application.cpp:44: error: `XPending' undeclared (first use this function)
    application.cpp:47: error: `xev' undeclared (first use this function)
    application.cpp:47: error: `XNextEvent' undeclared (first use this function)
    application.cpp:50: error: 'struct TEvent' has no member named 'xev'
    application.cpp: In member function `virtual int
       Application::RunDialog(Dialog*)':
    application.cpp:75: error: parse error before `;' token
    application.cpp:84: error: 'class Widget' has no member named 'GetXDisplay'
    application.cpp:86: error: `XPending' undeclared (first use this function)
    application.cpp:87: error: `XNextEvent' undeclared (first use this function)
    application.cpp:88: error: 'struct TEvent' has no member named 'xev'
    ¿Puede ser porque falta el video4linux? Este programa ha sido probado en ubuntu y yo uso debian Sarge

    Muchas gracias por adelantado.

    . . . . . . . . . . . . . . . . . . . .
    [[ NORMAS DEL FORO ]]
    . . . . . . . . . . . . . . . . . . . .
    __________
    Citar  
     

  2. #2  
    Moderador Global
    Fecha de ingreso
    Aug 2005
    Mensajes
    6.279
    Descargas
    7
    Uploads
    0
    Por favoooorrr... ¿Alguien me ve agonizar?

    . . . . . . . . . . . . . . . . . . . .
    [[ NORMAS DEL FORO ]]
    . . . . . . . . . . . . . . . . . . . .
    __________
    Citar  
     

  3. #3  
    Avanzado
    Fecha de ingreso
    Dec 2001
    Ubicación
    BCN
    Mensajes
    469
    Descargas
    0
    Uploads
    0
    Ni idea. Pero se me ocurre que te falten archivos de cabecera. .... si te sirve.
    La resitencia es futil, todos sereis asimilados.
    NeoGenessis
    Citar  
     

  4. #4  
    Moderador Global
    Fecha de ingreso
    Aug 2005
    Mensajes
    6.279
    Descargas
    7
    Uploads
    0
    Gracias NeoGenessis, ¿te refieres a los del kernel?

    . . . . . . . . . . . . . . . . . . . .
    [[ NORMAS DEL FORO ]]
    . . . . . . . . . . . . . . . . . . . .
    __________
    Citar  
     

  5. #5  
    Iniciado
    Fecha de ingreso
    Feb 2006
    Mensajes
    4
    Descargas
    0
    Uploads
    0
    Parece que faltan las librerias de X11. Busca en que parte estan.
    trata de compilar del siguiente modo:
    gcc Programa.c -I/[ruta_libreriasX11].

    Que hace exactamente el Devolution - Security?
    Citar  
     

  6. #6  
    Moderador Global
    Fecha de ingreso
    Aug 2005
    Mensajes
    6.279
    Descargas
    7
    Uploads
    0
    Cita Iniciado por Lord_Daemon
    Que hace exactamente el Devolution - Security?
    http://devsec.sourceforge.net/

    Es un sistema de cámaras con sistema de detección de movimiento. Era un proyecto comercial que finalmente fue liberado.



    Parece que faltan las librerias de X11. Busca en que parte estan.
    trata de compilar del siguiente modo:
    gcc Programa.c -I/[ruta_libreriasX11].
    Gracias Lord_Daemon. Esto es lo que tengo bajo /usr/lib/X11, no sé si es lo que me pide o si lo busca en otro lugar.



    Salu2
    Última edición por j8k6f4v9j; 17-02-2006 a las 18:40

    . . . . . . . . . . . . . . . . . . . .
    [[ NORMAS DEL FORO ]]
    . . . . . . . . . . . . . . . . . . . .
    __________
    Citar  
     

  7. #7  
    Iniciado
    Fecha de ingreso
    Feb 2006
    Mensajes
    4
    Descargas
    0
    Uploads
    0
    Tienes que buscar las bibliotecas de X11, en los errores de compilacion aparcen que no se encuentran los siguientes archivos:
    X.h y Xlib.h
    Citar  
     

  8. #8  
    Iniciado
    Fecha de ingreso
    Feb 2006
    Mensajes
    4
    Descargas
    0
    Uploads
    0
    Se me olvidaba que tienes que enlazar las librerias:
    gcc Programa.c -I/[rutas_cabecerasX11] -lX11
    Citar  
     

Temas similares

  1. Necesito ayuda
    Por asiciv en el foro MALWARE
    Respuestas: 2
    Último mensaje: 02-01-2010, 23:08
  2. necesito ayuda csd
    Por yoyo en el foro DIGITAL+
    Respuestas: 3
    Último mensaje: 13-11-2008, 19:08
  3. Respuestas: 1
    Último mensaje: 17-09-2006, 22:46
  4. Necesito ayuda
    Por ozedane en el foro TELEVISION
    Respuestas: 6
    Último mensaje: 06-05-2006, 00:47
  5. necesito ayuda
    Por skullpirats en el foro HACK HiSPANO
    Respuestas: 1
    Último mensaje: 02-06-2002, 10:09

Marcadores

Marcadores