Foros del Web » Programación para mayores de 30 ;) » Java »

puerto serial y lnxcomm

Estas en el tema de puerto serial y lnxcomm en el foro de Java en Foros del Web. Hola a todos estoy tratando de hacer una conexion por medio del puerto serial a un brazo robotico, pero me manda el siguiente error al ...
  #1 (permalink)  
Antiguo 25/10/2013, 11:28
 
Fecha de Ingreso: junio-2010
Mensajes: 11
Antigüedad: 13 años, 10 meses
Puntos: 0
puerto serial y lnxcomm

Hola a todos estoy tratando de hacer una conexion por medio del puerto serial a un brazo robotico, pero me manda el siguiente error al compilar en el IDE de Netbeans, ya agregue la libreria del lnxcomm al proyecto;

no se en que este mal


"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory `/home/alex/NetBeansProjects/rs232'
"/usr/bin/make" -f nbproject/Makefile-Debug.mk dist/Debug/GNU-Linux-x86/rs232
make[2]: Entering directory `/home/alex/NetBeansProjects/rs232'
mkdir -p build/Debug/GNU-Linux-x86
rm -f build/Debug/GNU-Linux-x86/main.o.d
g++ -c -g -MMD -MP -MF build/Debug/GNU-Linux-x86/main.o.d -o build/Debug/GNU-Linux-x86/main.o main.cpp
main.cpp: In function ‘int main()’:
main.cpp:22: warning: deprecated conversion from string constant to ‘char*’
main.cpp:24: warning: deprecated conversion from string constant to ‘char*’
mkdir -p dist/Debug/GNU-Linux-x86
g++ -o dist/Debug/GNU-Linux-x86/rs232 build/Debug/GNU-Linux-x86/main.o
build/Debug/GNU-Linux-x86/main.o: In function `Thread_Port(void*)':
/home/alex/Downloads/Lnxcomm/com/serielinux.h:639: undefined reference to `SERIAL_PORT_EVENT(int*)'
build/Debug/GNU-Linux-x86/main.o: In function `Create_Thread_Port(int*)':
/home/alex/Downloads/Lnxcomm/com/serielinux.h:654: undefined reference to `pthread_create'
build/Debug/GNU-Linux-x86/main.o: In function `main':
/home/alex/NetBeansProjects/rs232/main.cpp:26: undefined reference to `escrituraLecturaScorbot(char*, int)'
/home/alex/NetBeansProjects/rs232/main.cpp:27: undefined reference to `escrituraLecturaScorbot(char*, int)'
/home/alex/NetBeansProjects/rs232/main.cpp:28: undefined reference to `escrituraLecturaScorbot(char*, int)'
/home/alex/NetBeansProjects/rs232/main.cpp:29: undefined reference to `escrituraLecturaScorbot(char*, int)'
/home/alex/NetBeansProjects/rs232/main.cpp:30: undefined reference to `escrituraLecturaScorbot(char*, int)'
collect2: ld returned 1 exit status
make[2]: *** [dist/Debug/GNU-Linux-x86/rs232] Error 1
make[2]: Leaving directory `/home/alex/NetBeansProjects/rs232'
make[1]: *** [.build-conf] Error 2
make[1]: Leaving directory `/home/alex/NetBeansProjects/rs232'
make: *** [.build-impl] Error 2


Gracias y espero me puedan ayudar :)
  #2 (permalink)  
Antiguo 25/10/2013, 11:33
 
Fecha de Ingreso: junio-2010
Mensajes: 11
Antigüedad: 13 años, 10 meses
Puntos: 0
Respuesta: puerto serial y lnxcomm

y esto aparece cuando agrega los .h maunalmente al netbeans como librerias

"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory `/home/alex/NetBeansProjects/rs232'
"/usr/bin/make" -f nbproject/Makefile-Debug.mk dist/Debug/GNU-Linux-x86/rs232
make[2]: Entering directory `/home/alex/NetBeansProjects/rs232'
mkdir -p dist/Debug/GNU-Linux-x86
g++ -o dist/Debug/GNU-Linux-x86/rs232 build/Debug/GNU-Linux-x86/main.o -lbaudios.h -lserial.h -lserielinux.h -lseriewindows.h
/usr/bin/ld: cannot find -lbaudios.h
collect2: ld returned 1 exit status
make[2]: *** [dist/Debug/GNU-Linux-x86/rs232] Error 1
make[2]: Leaving directory `/home/alex/NetBeansProjects/rs232'
make[1]: *** [.build-conf] Error 2
make[1]: Leaving directory `/home/alex/NetBeansProjects/rs232'
make: *** [.build-impl] Error 2


no se porque???? ayuda

Etiquetas: netbeans, puerto, serial, string
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 17:28.