Menú

Mostrar Mensajes

Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.

Mostrar Mensajes Menú

Mensajes - yoxter

#21
Muestra lo que llebas para poderte ayudar mejor  ;)
#22
Gracias por las respuestas.

hasta donde se curl se usa para gestinar descargas y todo eso, se un poco de QT talvez averigue sobre el webkit no se me abia ocurrido  :o

Edito:

creo que encontre algo que me servira lo dejo por alguien mas lo necesita

http://savannah.nongnu.org/projects/swinput/
#23
Programación C/C++ / libreria para crear un bot
2 Octubre 2012, 07:56 AM
Saludos,

Busco una manera de crear un bot (algo censillo solo un par de cliks en una pagina web) pero estoy en linux y solo encuentro referencias a winapi y c#.

para ser concreto necesito un bot que de clik en X parte de una web. no tengo idea del api de x11(ni siquiera estoy seguro si sirve para eso)
necesito algo que permita simular el moviento del raton.

si me pudieran ayudar con libreria que serviera para eso, Gracias.

#24
Cita de: 0xDani en  1 Octubre 2012, 16:24 PM
No conozco el clang, pero en los parametros de linkaje en gcc/g++ se pondria:
-lGL -lglew -lglfw -lglut
en vez de:
-LGL -Lglew -Lglfw -Lglut

Saludos.

Gracias por la respuesta al final el problema fue mi version de glfw tenia la 2.6 y solo en la 2.7 se incluyo GLFW_OPENGL_VERSION_MAJOR y GLFW_OPENGL_PROFILE, removi la version 2.6 he instale la 2.7 manualmente el camando quedo a si :

Código (bash) [Seleccionar]
g++  1.cpp -o 1 -I/usr/include -L/usr/lib64 -lGL -lGLEW -lglfw
#25
Programación C/C++ / error compilando con glfw
1 Octubre 2012, 03:40 AM
Saludos estaba empesando con opengl y tengo probelmas para compilar el primer ejemplo.  :-[

codigo que estoy usando
// Include standard headers
#include <stdio.h>
#include <stdlib.h>

// Include GLEW
#include <GL/glew.h>

// Include GLFW
#include <GL/glfw.h>

// Include GLM
#include <glm/glm.hpp>
using namespace glm;

int main( void )
{
// Initialise GLFW
if( !glfwInit() )
{
fprintf( stderr, "Failed to initialize GLFW\n" );
return -1;
}

glfwOpenWindowHint(GLFW_FSAA_SAMPLES, 4);
glfwOpenWindowHint(GLFW_OPENGL_VERSION_MAJOR, 3);
glfwOpenWindowHint(GLFW_OPENGL_VERSION_MINOR, 3);
glfwOpenWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);

// Open a window and create its OpenGL context
if( !glfwOpenWindow( 1024, 768, 0,0,0,0, 32,0, GLFW_WINDOW ) )
{
fprintf( stderr, "Failed to open GLFW window. If you have an Intel GPU, they are not 3.3 compatible. Try the 2.1 version of the tutorials.\n" );
glfwTerminate();
return -1;
}

// Initialize GLEW
if (glewInit() != GLEW_OK) {
fprintf(stderr, "Failed to initialize GLEW\n");
return -1;
}

glfwSetWindowTitle( "Tutorial 01" );

// Ensure we can capture the escape key being pressed below
glfwEnable( GLFW_STICKY_KEYS );

// Dark blue background
glClearColor(0.0f, 0.0f, 0.3f, 0.0f);

do{
// Draw nothing, see you in tutorial 2 !

// Swap buffers
glfwSwapBuffers();

} // Check if the ESC key was pressed or the window was closed
while( glfwGetKey( GLFW_KEY_ESC ) != GLFW_PRESS &&
   glfwGetWindowParam( GLFW_OPENED ) );

// Close OpenGL window and terminate GLFW
glfwTerminate();

return 0;
}



g++ 1.cpp -I/usr/include -L/usr/lib -L/usr/lib64 -LGL -Lglew -Lglfw -Lglut
1.cpp: In function 'int main()':
1.cpp:25:21: error: 'GLFW_OPENGL_VERSION_MAJOR' was not declared in this scope
1.cpp:26:21: error: 'GLFW_OPENGL_VERSION_MINOR' was not declared in this scope
1.cpp:27:21: error: 'GLFW_OPENGL_PROFILE' was not declared in this scope
1.cpp:27:42: error: 'GLFW_OPENGL_CORE_PROFILE' was not declared in this scope



Código (bash) [Seleccionar]
clang++ 1.cpp -I/usr/include -L/usr/lib -L/usr/lib64 -LGL -Lglew -Lglfw -Lglut
1.cpp:25:21: error: use of undeclared identifier 'GLFW_OPENGL_VERSION_MAJOR'
        glfwOpenWindowHint(GLFW_OPENGL_VERSION_MAJOR, 3);
                           ^
1.cpp:26:21: error: use of undeclared identifier 'GLFW_OPENGL_VERSION_MINOR'
        glfwOpenWindowHint(GLFW_OPENGL_VERSION_MINOR, 3);
                           ^
1.cpp:27:21: error: use of undeclared identifier 'GLFW_OPENGL_PROFILE'
        glfwOpenWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
                           ^
3 errors generated.



si pudieran ayudarme estaria agredecido.
estoy seguro de que glfw esta instalado, estoy usando gentoo.
#26
Cita de: flony en 30 Septiembre 2012, 03:40 AM
pero creo que eso es para GNU Compiler Collection .
Yo quiero para visual c++

nunca he usado VS solo he usado clang y gcc no veo mucho problema por correr gcc en windows.
#27
Código (bash) [Seleccionar]
g++ archivo1.cpp archivo2.cpp -o myprograma
#28
Saludos creo que esto lo que buscas

#include <stdio.h>

int main() {

char *nombre;
char *saludo = "buenos dias";

printf("por favor ingrese su nombre \n");
scanf("%s", nombre);


printf("%s %s",saludo,nombre);



return 0;
}
#29
Lo que tienes que compilar estaticamente es OpenCL no el programa y luego llamarlo usando el path donde lo que compilaste estaticamente, corrigeme si me quivoco
#30
Te recomiendo poxis es mas simple que fork (hasta donde se no le he provado)

https://computing.llnl.gov/tutorials/pthreads/