Our first attempt to make melon bread
emulators have always fascinated me since I revived my old days of addiction I've been playing Super NES games console on my PC. The experience has become more pleasant and exciting since we discovered with Andrew that we could connect the Xbox 360 controller to play like the real consoles, including feedback from the dual-shock oh! Yeah!
A console that has always escaped me is the PlayStation 2. This console to have a wonderful hardware is the ornamental shoe emulators. Few PCs in the world can emulate the console perfectly, it takes a lot of speed multi-core GPU and CPU to the GPU revalizar PlayStation 2 and two cooprocesadores for vector operations.
Although the software is no longer a hardware problem still haunts us.
Today I was finally able to run the PCSX2
on my computer. In order to stop break my head trying to find a proper BIOS and configure the plug-ins graphics to achieve even see the logo of "Play Station 2" now I got to the limitation that I can not overcome without making a substantial monetary investment, the Hardware.
For now I have to leave out the PS2 emulation. Not because of limitations of software or settings that my hardware but can not match that of a Play Station 2 (I never pretended otherwise, it was only a test).
The Play Station Portable is perhaps a more achievable goal. Its library of games is very tempting and encourages me to think that is a console that may not be so hard to emulate. The only problem so far, emulators, most existing PSP Emulators have something in common, none of them can run commercial games (I have no idea what that emulate then.) The JPCSP
is the first emulator that boasts of being able to run commercial games (even has a page for compatibility with some entries.) This emulator, however, has a critical flaw,
This done in Java and OpenGL! [Yes, yes, you read correctly, Java] I do not know who were thinking of those who did, but Java! god, Java is a language not to run an application like this, these applications need direct rendering and hardware acceleration, things still do not understand Java. And to top it chose graphics library and slow poorest there. OpenGL.
Well, when I saw him I said "JAVA!? Nooo! Forget it, that will never work! Yet my curiosity led me to try, download a Japanese version of Final Fantasy Disidia I loaded the image UMD the emulator and what do you think? If indeed it did not work, most surprising of all is the speed at which it emulates. With top priority the emulator reaches the surprising rate of 1.5 fps
! Well yes, actually is a cake, to the PCSX2 reaches 18 to 20 fps. Very little to play well but at least to see something. The JPCSP was not able to even show the title screen of the game. "Promise? Who knows? Apparently there is a project of porting the emulator to C + +, C + + may improve significantly the situation, I hope so. I hope to see soon a functional PSP emulator.
Sunday, December 13, 2009
Wednesday, December 9, 2009
Lighting Of Lamp Ceremony Quotes
Emu-mania
libQGLViewer
is a library for OpenGL 3D scenes in Qt applications. The good things is that it brings libQGLViewer implemented things like the dynamic movement of the camera, and allows the user to interact with the scene with the mouse and keyboard.
things in Linux libQGLViewer are extremely simple, just install the development package and the library is ready for use. In Windows things change a bit, it's harder to make the library is ready to use and also make use of it.
The official website of libQGLViewer are the steps to compile the library with the Microsoft Visual Studio, but they assume that one has the integration of the commercial version of Qt with Microsoft Visual Studio ell and that's not always the case, in my case example, does not happen. So here are the steps to compile the library using the Microsoft Visual C + + 2008 Express Edition without the need for integrating the commercial version.
These are the steps:
Download the source code libQGLViewer the library
page. Unzip the source code into a folder on your PC. I recommend C: \\ libQGLViewer \\ 2.3.4 (the 2.3.4 was the one I downloaded but it may be that the time you read the post there is a newer version. Also remember that the folder path must not contain spaces) . Open console from Microsoft Visual Studio 2008. Home -> All Programs -> Microsoft Visual C + + 2008 Express Edition -> Visual Studio Tools -> Command Prompt Visual Studio 2008. Go to the folder where you unzipped the source code and there libQGLViewer enter QGLViewer folder. (Must be located in the path C: \\ libQGLViewer \\ 2.3.4 \\ QGLViewer)
Compile using the following commands:
file. Copy this. Dll to C: \\ Windows \\ system32 to make it available to applications using the library.
Then select everything in the release folder and move it to the folder QGLViewer (the parent folder of release) and eliminate the release folder, this will do to facilitate the operation of the library. It's just a matter of ease any more.
That's it. It is possible to use applications that make use of the library libQGLViewer.
now explain how to compile the examples that come with source code package libQGLViewer. Examples are found in the examples folder. In theory you should be able to compile all the time but this does not work so you have to do it one by one. We start with the simplest, the SimpleViewer.
OBJECTS_DIR = obj}
MOC_DIR = moc OBJECTS_DIR = obj
Then remove all the code that is below the OBJECTS_DIR, so it was just something like this:
Windows configuration # # # # # #
MOC_DIR = moc = obj
OBJECTS_DIR
Up of this code there are two lines starting with # INCLUDEPATH and # LIBS. These lines tell the compiler where to look for include files and library libQGLViewer. We edit them to make them point to the correct path, the lines should be something like:
INCLUDEPATH *= C: \\ libQGLViewer \\ 2.3.4
LIBS *=-LC: \\ libQGLViewer \\ 2.3.4 \\ QGLViewer-lQGLViewer2
Note: Do not forget to remove the # that is the beginning of the line as it marks the line as a comment.
That's it. After this run qmake to create the Makefile, then nmake to compile the program. This will generate an executable simpleViewer.exe in the folder. Already compiled by example.
libQGLViewer
is a library for OpenGL 3D scenes in Qt applications. The good things is that it brings libQGLViewer implemented things like the dynamic movement of the camera, and allows the user to interact with the scene with the mouse and keyboard.
things in Linux libQGLViewer are extremely simple, just install the development package and the library is ready for use. In Windows things change a bit, it's harder to make the library is ready to use and also make use of it.
The official website of libQGLViewer are the steps to compile the library with the Microsoft Visual Studio, but they assume that one has the integration of the commercial version of Qt with Microsoft Visual Studio ell and that's not always the case, in my case example, does not happen. So here are the steps to compile the library using the Microsoft Visual C + + 2008 Express Edition without the need for integrating the commercial version.
These are the steps:
Download the source code libQGLViewer the library
page. Unzip the source code into a folder on your PC. I recommend C: \\ libQGLViewer \\ 2.3.4 (the 2.3.4 was the one I downloaded but it may be that the time you read the post there is a newer version. Also remember that the folder path must not contain spaces) . Open console from Microsoft Visual Studio 2008. Home -> All Programs -> Microsoft Visual C + + 2008 Express Edition -> Visual Studio Tools -> Command Prompt Visual Studio 2008. Go to the folder where you unzipped the source code and there libQGLViewer enter QGLViewer folder. (Must be located in the path C: \\ libQGLViewer \\ 2.3.4 \\ QGLViewer)
Compile using the following commands:
qmake-config release nmake is
release compilation creates a folder inside the folder where the QGLViewer QGLViewer2.dll file. Copy this. Dll to C: \\ Windows \\ system32 to make it available to applications using the library.
Then select everything in the release folder and move it to the folder QGLViewer (the parent folder of release) and eliminate the release folder, this will do to facilitate the operation of the library. It's just a matter of ease any more.
That's it. It is possible to use applications that make use of the library libQGLViewer.
now explain how to compile the examples that come with source code package libQGLViewer. Examples are found in the examples folder. In theory you should be able to compile all the time but this does not work so you have to do it one by one. We start with the simplest, the SimpleViewer.
- SimpleViewer In the folder that is located within the source code examples is required to compile SimpleViewer. To compile the example, follow these steps: simpleViewer.pro Open file with a text editor (can be notepad). This file contains
- code to try to automatically detect where the include files and library of QGLViewer but Windows does not work at all well so let's remove all the code is useless.
- locate the file line # # # # # # Unix configuration and remove all code is from there to the line # # # # # # Windows configuration.
- Below the line # # # # # # Windows configuration is the following code: {win32
- MOC_DIR = moc
OBJECTS_DIR = obj}
Let's edit it to look like this:
MOC_DIR = moc OBJECTS_DIR = obj
Then remove all the code that is below the OBJECTS_DIR, so it was just something like this:
Windows configuration # # # # # #
MOC_DIR = moc = obj
OBJECTS_DIR
Up of this code there are two lines starting with # INCLUDEPATH and # LIBS. These lines tell the compiler where to look for include files and library libQGLViewer. We edit them to make them point to the correct path, the lines should be something like:
INCLUDEPATH *= C: \\ libQGLViewer \\ 2.3.4
LIBS *=-LC: \\ libQGLViewer \\ 2.3.4 \\ QGLViewer-lQGLViewer2
Note: Do not forget to remove the # that is the beginning of the line as it marks the line as a comment.
That's it. After this run qmake to create the Makefile, then nmake to compile the program. This will generate an executable simpleViewer.exe in the folder. Already compiled by example.
If you find any examples or problems compiling the library itself with the steps I have left here do not hesitate to write or leave comments.libQGLViewer If you plan to use in your application I recommend that you do not start with one. Pro vacuum, but one copy. Pro who edited the examples to compile and edit the sources and adding headers of their own project, this will greatly facilitate the collection and remove them off problems unresolved external symbols that appear regularly in using libQGLViewer.
Finally a recommendation. The vast majority of those who downloaded the libQGLViewer not downloaded to use applications that use the library or for viewing the examples were shocked but to develop our own applications.
Monday, December 7, 2009
Bacterial Infection Of Throat And Tongue
Manifesto: In Defense of Fundamental Rights of the Internet I (II)
Related Links:
http://www.enriquedans.com/
http:// www.20minutos.com
(between Other sites that because of space it is impossible to link)
After six days of news, appearances by the minister and the president, meetings with journalists and bloggers, etc. I can only add my simple view on this whirlwind of opinions and contraopiniones, but I sincerely believe that through the small views of thousands of people, this time a president has made amends and contradicts his minister and all this thanks to all the granites Sandy who have been contributing from all parts of cyberspace.
In an article in 20minutes ( here) is a good chronology of these days, reaching today finally says the committee but will not close sites, I believe that so has been a small baby step but still not enough. So I'm going too add, even a day late for the addition of this article of the constitution:
In an article in 20minutes ( here) is a good chronology of these days, reaching today finally says the committee but will not close sites, I believe that so has been a small baby step but still not enough. So I'm going too add, even a day late for the addition of this article of the constitution:
Article 20.5 of the Constitution says: "Only The seizure of publications, recordings and other media in a court order." A right which, as stated in paragraph 2 of the manifest violation of the bill that "puts into the hands of a non-judicial body the power to prevent access to any site."
Related Links:
http://www.enriquedans.com/
http:// www.20minutos.com
(between Other sites that because of space it is impossible to link)
Thursday, December 3, 2009
What Mouthwash Should I Drink To Get Drunk
Manifesto: In Defense of Fundamental Rights of the Internet I (I)
Given the inclusion in the Draft Law on Sustainable economy of legislative changes affecting the free exercise of freedoms of expression, information and the right of access to culture through the Internet, journalists, bloggers, users, professionals and Internet developers express our firm opposition to the project, and declare that ...
1 .- The rights of author can not be above the fundamental rights of citizens, including the right to privacy, safety, the presumption of innocence, to effective judicial protection and freedom of expression.
2 .- The suspension of fundamental rights is and must remain the exclusive competence of the judiciary. Not a close without trial. This blueprint, contrary to the provisions of Article 20.5 of the Constitution, put in the hands of a non-judicial body under the Ministry of Culture, the power to prevent English citizens access to any website.
3 .- The new legislation will create legal uncertainty around the English technology sector, damaging one of the few areas of development and future of our economy, hindering entrepreneurship, introducing barriers to competition and slowing its international expansion.
4 .- The new proposed legislation threatens to hinder new creators and cultural creation. With The Internet and new technologies have democratized the creation and release of contents of any kind, no longer come predominantly from the traditional cultural industries, but from many different sources.
5 .- The authors, like all workers are entitled to live out of their creative ideas, business models and activities associated with their creations. Trying to hold legislative changes to an outdated industry that can adapt to this new environment is neither fair nor realistic. If your business model is based on the control of the copies of the works and the Internet is not possible without violating fundamental rights, should find another model.
6 .- We believe that cultural industries need to survive modern alternatives, effective, credible and affordable to suit new social practices, rather than limitations so disproportionate as to be ineffective in that they are pursuing.
7 .- Internet should function freely and without interference from groups that seek to perpetuate outdated business models and make it impossible for human knowledge remains free.
8 .- We ask the Government to guarantee the neutrality law Network in Spain, before any pressure that may occur as a framework for developing a sustainable economy for the future.
9 .- We propose a real reform of intellectual property rights aimed at an end: return to the society of knowledge, promote the public domain and limit abuses of management entities.
10 .- In a democracy, laws and amendments should be adopted after due debate and consultation with all parties involved. It is unacceptable that legislative changes are made that affect fundamental rights in a non-organic law and deals with other matters.
This manifesto, drawn up jointly by several authors, is all and none. If you want to join it, spread it over the Internet.
must-read articles (source):
http://www.enriquedans.com/2009/12/manifiesto-en-defensa-de-los-derechos-fundamentales-en-internet.html
http://www.enriquedans.com/2009/12/involucionismo-digital-la-verguenza-de-la-democracia-o-el-gobierno-de-los-otros.html
http:/ / sinergiasincontrol.blogspot.com/2009/12/estan-intentando-vendernos-al-mejor.html
1 .- The rights of author can not be above the fundamental rights of citizens, including the right to privacy, safety, the presumption of innocence, to effective judicial protection and freedom of expression.
2 .- The suspension of fundamental rights is and must remain the exclusive competence of the judiciary. Not a close without trial. This blueprint, contrary to the provisions of Article 20.5 of the Constitution, put in the hands of a non-judicial body under the Ministry of Culture, the power to prevent English citizens access to any website.
3 .- The new legislation will create legal uncertainty around the English technology sector, damaging one of the few areas of development and future of our economy, hindering entrepreneurship, introducing barriers to competition and slowing its international expansion.
4 .- The new proposed legislation threatens to hinder new creators and cultural creation. With The Internet and new technologies have democratized the creation and release of contents of any kind, no longer come predominantly from the traditional cultural industries, but from many different sources.
5 .- The authors, like all workers are entitled to live out of their creative ideas, business models and activities associated with their creations. Trying to hold legislative changes to an outdated industry that can adapt to this new environment is neither fair nor realistic. If your business model is based on the control of the copies of the works and the Internet is not possible without violating fundamental rights, should find another model.
6 .- We believe that cultural industries need to survive modern alternatives, effective, credible and affordable to suit new social practices, rather than limitations so disproportionate as to be ineffective in that they are pursuing.
7 .- Internet should function freely and without interference from groups that seek to perpetuate outdated business models and make it impossible for human knowledge remains free.
8 .- We ask the Government to guarantee the neutrality law Network in Spain, before any pressure that may occur as a framework for developing a sustainable economy for the future.
9 .- We propose a real reform of intellectual property rights aimed at an end: return to the society of knowledge, promote the public domain and limit abuses of management entities.
10 .- In a democracy, laws and amendments should be adopted after due debate and consultation with all parties involved. It is unacceptable that legislative changes are made that affect fundamental rights in a non-organic law and deals with other matters.
This manifesto, drawn up jointly by several authors, is all and none. If you want to join it, spread it over the Internet.
must-read articles (source):
http://www.enriquedans.com/2009/12/manifiesto-en-defensa-de-los-derechos-fundamentales-en-internet.html
http://www.enriquedans.com/2009/12/involucionismo-digital-la-verguenza-de-la-democracia-o-el-gobierno-de-los-otros.html
http:/ / sinergiasincontrol.blogspot.com/2009/12/estan-intentando-vendernos-al-mejor.html
Thursday, October 29, 2009
Romantic Hebrew Phrases
libQGLViewer on Windows using Microsoft Visual C + + 2008 Express Edition
Well
Well, first thing is to know that Microsoft Visual C + + 2008 Express Edition has two build configurations: Debug and Release. Debug configuration is supposed to compile the executable with debug symbols for Windows and other things, so that the executable is more traceable and larger, Release configuration has nothing of this at the size of the executable is lower. Let
prepro to Microsoft Visual C + + 2008 Express Edition to compile our applications Qt in both configurations, for starters we need to create two files (. Bat) batch to take charge of calling the precompiler Qt and preparing everything for then the Compiler and Linker in the Visual C + + to compile the program, the steps are:
qmake-project qmake nmake
qmake-project qmake-config release nmake
now have the scripts ready, which is now set to Microsoft Visual C + + 2008, for this follow these steps:
1. It will create a new project setup wizard project Makefile:
We click Next and the wizard shows the configuration Debug:
there, which says
Line command generation
write debug \\
before the text that is already in the box (without removing ), ie the text in the example would be:
debug \\ Text-Make.exe
window now shows a very similar only this time it's the settings for the Release, in this we will remove the check mark from the box
As
Debug configuration to activate the fields. Where it says Command Line
generation write qcreate-release is the name of our. Bat for releases, and similarly to what we did before in the box that says Results (for debugging) wrote
release \\
before there enucentra text:
Then we click Finish . Ok, that's it, now you can use the IDE to generate command (Build -> Build Solution / Build Project) or Debug (Debug -> Start Debugging) we can also see errors and warnings in the build (View -> Other Windows -> List of Errors) and click on them so that the IDE takes us straight to the line where the error. only thing that I could make is that the IDE see files Include of Qt, so if I have not been doing that the files Include the Qt have nested includes and Visual C + + 2008 as being too lazy to going to look for references in nested archives then when you write hello. (In the tutorial) can not wait for the Visual C + + to show you the QPushButton class members. If one way of doing encuenta nuevmanete post them. For now I leave. Comments and etc. are always welcome, provided they are not spam.
Well
my previous post
explained how they could build Qt applications on Windows using Microsoft Visual C + + 2008 Express Edition and said I had to compile from the console to no idea how to do it from the IDE, I know how to do well I'll leave it here for your interest.
Well, first thing is to know that Microsoft Visual C + + 2008 Express Edition has two build configurations: Debug and Release. Debug configuration is supposed to compile the executable with debug symbols for Windows and other things, so that the executable is more traceable and larger, Release configuration has nothing of this at the size of the executable is lower. Let
prepro to Microsoft Visual C + + 2008 Express Edition to compile our applications Qt in both configurations, for starters we need to create two files (. Bat) batch to take charge of calling the precompiler Qt and preparing everything for then the Compiler and Linker in the Visual C + + to compile the program, the steps are:
We will create two files (. bat) in the bin folder of the Qt 4 (in my case C : \\ Qt \\ 4.4.3 \\ bin), the first call you qcreate.bat within the command line you write:
qmake-project qmake nmake
'll call the second-release.bat qcreate and the type:
qmake-project qmake-config release nmake
now have the scripts ready, which is now set to Microsoft Visual C + + 2008, for this follow these steps:
1. It will create a new project setup wizard project Makefile:
there, which says
Line command generation
qcreate
write, which is the name of. bat we've created and then click where it says
Results (for debugging)
write debug \\
before the text that is already in the box (without removing ), ie the text in the example would be:
debug \\ Text-Make.exe
, finally we click
Next
.
window now shows a very similar only this time it's the settings for the Release, in this we will remove the check mark from the box
As
Debug configuration to activate the fields. Where it says Command Line
generation write qcreate-release is the name of our. Bat for releases, and similarly to what we did before in the box that says Results (for debugging) wrote
release \\
before there enucentra text:
Then we click Finish . Ok, that's it, now you can use the IDE to generate command (Build -> Build Solution / Build Project) or Debug (Debug -> Start Debugging) we can also see errors and warnings in the build (View -> Other Windows -> List of Errors) and click on them so that the IDE takes us straight to the line where the error. only thing that I could make is that the IDE see files Include of Qt, so if I have not been doing that the files Include the Qt have nested includes and Visual C + + 2008 as being too lazy to going to look for references in nested archives then when you write hello. (In the tutorial) can not wait for the Visual C + + to show you the QPushButton class members. If one way of doing encuenta nuevmanete post them. For now I leave. Comments and etc. are always welcome, provided they are not spam.
Friday, September 25, 2009
Two Stroke Engine Starts Then Stops
Revista Paula Absolutofieltro collection. Sandals
Paula I love the magazine, from which he read the girl who was my mom, who bought or issues that were in the seventies of the cachureos piece of my old house. If you do not buy new editions I used it in the flea market ... and so I have a considerable amount. So suddenly
rarely seen in an article but obviously it's a delicious feeling to look out for my job, especially when pieces of clothing made with love, patience, dedication. :)
Paula I love the magazine, from which he read the girl who was my mom, who bought or issues that were in the seventies of the cachureos piece of my old house. If you do not buy new editions I used it in the flea market ... and so I have a considerable amount. So suddenly
rarely seen in an article but obviously it's a delicious feeling to look out for my job, especially when pieces of clothing made with love, patience, dedication. :)
Thursday, September 3, 2009
Brick Colors Coordination
New year, new experiences that have
s Hi everyone, I hope that with the beginning of the new course can update this blog more often because the truth was something left. And of course after this break almost forced, I have more enthusiasm and ideas to offer, so what better way to start the course, with a post.
From my point of view and my own experience, I've been almost 3 years working with free software or free and has not given me any problems, rather the reverse.
From my point of view and my own experience, I've been almost 3 years working with free software or free and has not given me any problems, rather the reverse.
Normally open source projects are developed by large communities, which are interested to bring forward the software and are therefore more frequent updates where errors found are corrected or improvements, interface. this implies a high reliability that perhaps other software lacks. It is also true that because of these frequent updates, sometimes make you fall behind in the version you use so often end up upgrading to become somewhat more routine than necessary. But I still see more this part as an advantage than a disadvantage.
Furthermore you have the great advantage that is accessible by students or other users by downloading from the Internet, so you just need to tell the address of a repository or page where you can access and download for free. It should be noted that just got a little more involvement of students in learning at home as they can continue what was started in class. On the other hand, especially in free software I found that many people have portable versions that provide more versatility to this software (this concept has been explained in previous posts).
To conclude the post, to comment that I hope to have convinced at least one person to use such software, besides the typical benefits observed are free.
Thank you, and to next.
Furthermore you have the great advantage that is accessible by students or other users by downloading from the Internet, so you just need to tell the address of a repository or page where you can access and download for free. It should be noted that just got a little more involvement of students in learning at home as they can continue what was started in class. On the other hand, especially in free software I found that many people have portable versions that provide more versatility to this software (this concept has been explained in previous posts).
To conclude the post, to comment that I hope to have convinced at least one person to use such software, besides the typical benefits observed are free.
Thank you, and to next.
Thursday, January 29, 2009
Edytor Do Port Royale 2
Cloth
Sandals fuxia applications: before $ 16,900 now $ 14,000 (Only this pair )....... # 38 .... in Trega immediately. exclusive ... only 1 individual.
Available in all shades and from number 34 to 39. (Delivery time: 1 week from order date.)
Shipped throughout Chile v ed Tur-bus position.
Shipped throughout Chile v ed Tur-bus position.
's also the option of using printed fabrics (not available in stores catalog )¡¡¡¡¡ see the previous entries:) or also on facebook!
Tuesday, January 27, 2009
Gitl Masterbates In Car
create Qt applications on Windows using Microsoft Visual C + + 2008 (Compile, Debug and Run from the IDE)
Hello, for those who do not know what Qt is a cross-platform API for creating native applications on Windows, Linux, Mac, Solaris, etc and to carry them without changing a line of code. If you want to see more information about this package visit:
http://www.qtsoftware.com/ I had already written two posts on this blog and how to install Qt on Linux, if you want to give them a look: Replacement of Visual Basic Install Qt4
The truth is that he had been trying to run this package on Windows but so far had failed, I tried to DevCo + + and Eclipse but nothing, who think that the solution was a product of Microsoft. Recently Microsoft released the Express versions of Visual Studio 2008
that can be downloaded free. With this product we can compile Qt and also create your own applications. In this post I will explain how. Obviously the first thing is unloaded and install the Visual C + + 2008 Express Edition, when installed (it weighs about 150 MB) must download the Source Code for Windows Qt4 page
Qt Software. Eye, do not download the version that comes with MinGW but it's just source code. The download weighs 120 MB, is a compressed file.
Download the file and unzip it in C: \\ Qt \\ 4.4.3
[FOLDER NAME should not contain spaces]
(the 4.4.3 was the version I got but it may be that the time you read this is a more recent post.) In that folder is a file called autconf configure.exe this is the builder, run it BUT
In this console will go to C: \\ Qt \\ 4.4.3 \\ (or the directory where you have unpacked the qt), once there run:
C: \\ Qt \\ 4.4.3 \\> configure-platform win32-msvc2008
This statement sets the code so that it can compile with the compiler of Microsoft Visual Studio 2008, once the process Temin see a message like this:
Qt is now configured for building. Just run nmake.
To reconfigure, run nmake confclean and configure.
Then just do what we said there, run nmake to start Visual C + + to compile. This process takes a while, as in Linux, the console will be compiled for a time creating the executables of Qt Designer, Qt Assistant, moc, etc and Qt dll, when the process terminates Qt is compiled and installed in equipment ready for use.
Now let's see how to create a software in Qt using Visual C + +, we create the Hello World Tutorial Qt. But first we must do something extra and add the Qt bin folder to the System Path: We click Home
and then right-click My Computer
, there are going to
Properties tab and the Advanced Degree Options
we click on
Path, select it and we click Edit
. At the end of the text we put a, (semi-colon) and then write the bin path of Qt, which in my case was C: \\ Qt \\ 4.4.3 \\ bin and we click OK in all dialog boxes .
Project Type select Visual C + +
-> General
-> Makefile Project . Select the location and name of the project here will be Hello World. We removed the checkbox Create directory for solution and we click OK . Visual Studio opens a configuration wizard Makefile project, we'll ignore it and simply click Finish . The project will create the folders and files appear usual Visual C + + (creates a lot of garbage). Let's create the main, then, in the Solution Explorer , folder Source Files we right click and there select
Add
->
New Item
and we choose File C + + (. cpp) , we name main and click on OK . Visual Studio opens the code editor, there are going to write code that is in the Qt Assistant, in the Hello World tutorial is this:
# include \u0026lt;QApplication>
# include \u0026lt;QPushButton>
int main (int argc, char * argv []) { QApplication app (argc, argv); QPushButton hello ("Hello world!");
hello.show ( ) app.exec return ();}
Feel free to leave your comments, questions or concerns.
care is Bye Bye.
Hello, for those who do not know what Qt is a cross-platform API for creating native applications on Windows, Linux, Mac, Solaris, etc and to carry them without changing a line of code. If you want to see more information about this package visit:
http://www.qtsoftware.com/ I had already written two posts on this blog and how to install Qt on Linux, if you want to give them a look: Replacement of Visual Basic Install Qt4
The truth is that he had been trying to run this package on Windows but so far had failed, I tried to DevCo + + and Eclipse but nothing, who think that the solution was a product of Microsoft. Recently Microsoft released the Express versions of Visual Studio 2008
that can be downloaded free. With this product we can compile Qt and also create your own applications. In this post I will explain how. Obviously the first thing is unloaded and install the Visual C + + 2008 Express Edition, when installed (it weighs about 150 MB) must download the Source Code for Windows Qt4 page
Qt Software. Eye, do not download the version that comes with MinGW but it's just source code. The download weighs 120 MB, is a compressed file.
Download the file and unzip it in C: \\ Qt \\ 4.4.3
[FOLDER NAME should not contain spaces]
(the 4.4.3 was the version I got but it may be that the time you read this is a more recent post.) In that folder is a file called autconf configure.exe this is the builder, run it BUT
not precipitate, DOWN LEAN . We
to Start -> All Programs -> Microsoft Visual C + + 2008 Express Edition -> Visual Studio Tools -> Command Prompt Visual Studio 2008, this will open a console in the directory of Visual C + + and enables paths to the maker, and the linker. In this console will go to C: \\ Qt \\ 4.4.3 \\ (or the directory where you have unpacked the qt), once there run:
C: \\ Qt \\ 4.4.3 \\> configure-platform win32-msvc2008
This statement sets the code so that it can compile with the compiler of Microsoft Visual Studio 2008, once the process Temin see a message like this:
Qt is now configured for building. Just run nmake.
To reconfigure, run nmake confclean and configure.
Then just do what we said there, run nmake to start Visual C + + to compile. This process takes a while, as in Linux, the console will be compiled for a time creating the executables of Qt Designer, Qt Assistant, moc, etc and Qt dll, when the process terminates Qt is compiled and installed in equipment ready for use.
Now let's see how to create a software in Qt using Visual C + +, we create the Hello World Tutorial Qt. But first we must do something extra and add the Qt bin folder to the System Path: We click Home
and then right-click My Computer
, there are going to
Properties tab and the Advanced Degree Options
we click on
Environment Variables, dialog box appears with the system variables and variables user in the system variables we variable
Path, select it and we click Edit
. At the end of the text we put a, (semi-colon) and then write the bin path of Qt, which in my case was C: \\ Qt \\ 4.4.3 \\ bin and we click OK in all dialog boxes .
Now if we create the Hello World.
Open the Visual C + + 2008 and we believe a New Project, which says
Project Type select Visual C + +
-> General
-> Makefile Project . Select the location and name of the project here will be Hello World. We removed the checkbox Create directory for solution and we click OK . Visual Studio opens a configuration wizard Makefile project, we'll ignore it and simply click Finish . The project will create the folders and files appear usual Visual C + + (creates a lot of garbage). Let's create the main, then, in the Solution Explorer , folder Source Files we right click and there select
Add
->
New Item
and we choose File C + + (. cpp) , we name main and click on OK . Visual Studio opens the code editor, there are going to write code that is in the Qt Assistant, in the Hello World tutorial is this:
# include \u0026lt;QApplication>
# include \u0026lt;QPushButton>
int main (int argc, char * argv []) { QApplication app (argc, argv); QPushButton hello ("Hello world!");
hello.show ( ) app.exec return ();}
We Save and you're ready the project, now the bad news, we can not build from the IDE (or at least I do not I have that need to configure it and I have not put in those) so let's compile the console:
again
Open Command Prompt Visual Studio 2008 to compile the Qt open. In the console go to the folder where we saved the Visual C + + and there write these commands:
qmake-projectqmakeWell, we have created and executed an application on Windows with Qt. If you run the Hello world run anything. :)
nmake
This compiles the program and creates the executable in the folder Debug, in my case world.exe Hello. From the same console or from Windows Explorer can run the application to make sure it works.
Feel free to leave your comments, questions or concerns.
care is Bye Bye.
Monday, January 26, 2009
Best Bra For Small Breasts
Create Qt applications on Windows using Microsoft Visual C + + 2008
Well what happens is that in my previous post like jumping
The client putty
Well, then, we know that we have configured relay team to accept SSH connections through a port accessible through the firewall, in this case we say that the port is 443.
For this example I will show how to play on the server of Lineage 2 of
TehGamers,
I will assume you already have installed and configured the client and already have your hosts file in the folder and it works fine (this the computer is going to play, relay team does not need to have the client installed or modified hosts file).
Well, the first thing we need is information on which port the client connects to Lineage II, this information is online, but do not have to go further: 2106 to the authentication server 7777
for
game server 2009 for the game server
guard 80 is also connected to authentication
91.185.193.200 l2patcher.lineage2.com
216.107.250.194 nProtect.lineage2.com
# Address modified for the port forwarding: 127.0.0.1 l2authd.lineage2.com
127.0.0.1 l2patcher.lineage2.com
# 216.107.250.194 nProtect.lineage2.com
Note that all I did was comment on the original lines server and add three new all pointing to localhost, the reason for this is that when you want to play again outside the firewall as the commented lines and invest now.
2106 for the port that goes to the authentication server, the redirection is: Source port: 2106, Destination: 91.185.193.200:2106
for port 7777 going to the game server, the redirection is : Source port: 7777, Destination: 91.185.193.200:7777 For port 2009 that will guard the game server, the redirection is: Source port: 2009 Destination: 216.107.250.194:2009
to port 80 going to the authentication server redirection is: Source port: 80 Destination: 91.185.193.200:80
What is being done here is to tell the Putty that everything between the local computer ( which lie inside the firewall) on port 2106 forwarded it to the port 91,185,193,200 in 2106 making use of the relay team, and so with the rest of the ports. Note that I put the IP addresses instead of hostnames, the reason for this is that the relay team does not have the Hosts file, if any could have used the names of the hosts. When all tunnels are ready simply to give
Open
to putty. Ready
, if we do a netstat-n-a-p TCP-b see among other entries:
TCP 127.0.0.1:7777 0.0.0.0:0 LISTENING 3852
[putty.exe ]
TCP 127.0.0.1:2009
0.0.0.0:0 LISTENING 3852
[putty.exe]
TCP 127.0.0.1:80
(0% loss),
Well what happens is that in my previous post like jumping
firewalls using OpenSSH as they did not say when the proxy was we were going to skip authentication, as is the case of the university proxy, if use for example the client that comes with the OpenSSH for Windows NEVER going to get through that proxy knows nothing and will always try to direct connection, then pans. [NOTE:] I have realized that putting OpenSSH to serve for the 443 is better than it used by 80 because some ISPs block port 80 (as I do with ETB) but port 443 is blocked by ISPs or by the firewalls, since it is the HTTPS port.)
Well, for this example we need:
A relay team set outside the firewall (see previous post
The client putty
Well, then, we know that we have configured relay team to accept SSH connections through a port accessible through the firewall, in this case we say that the port is 443.
For this example I will show how to play on the server of Lineage 2 of
TehGamers,
I will assume you already have installed and configured the client and already have your hosts file in the folder and it works fine (this the computer is going to play, relay team does not need to have the client installed or modified hosts file).
Well, the first thing we need is information on which port the client connects to Lineage II, this information is online, but do not have to go further:
for
game server 2009 for the game server
guard 80 is also connected to authentication
- So now we know what ports to release, now comes the tricky part is making all the tweaks we need for this to work, so let's start: The first thing to do is modify the hosts file on the computer where we play (that which is inside the firewall and have installed the client) The server hosts file TehGamers look something like this:
- # Tehgamers patch
91.185.193.200 l2patcher.lineage2.com
216.107.250.194 nProtect.lineage2.com
- What we need then is to redirect those connections to localhost, for modify the file like this:
# Address modified for the port forwarding: 127.0.0.1 l2authd.lineage2.com
127.0.0.1 l2patcher.lineage2.com
127.0.0.1 nProtect.lineage2.com# 91.185.193.200 l2patcher.lineage2.com
# Tehgamers patch
edited this three lines ...
# 91.185.193.200 l2authd.lineage2.com
# 216.107.250.194 nProtect.lineage2.com
Note that all I did was comment on the original lines server and add three new all pointing to localhost, the reason for this is that when you want to play again outside the firewall as the commented lines and invest now.
Now need to configure Putty to do the port forwarding, open putty and the first thing we see is this:
Here we introduce the necessary fields in Hostname (or IP Address) introduce the team relay ip or domain that points to it and Port as the port you're using (the 443 in my case). The next thing you do is go to Connection -> Proxy on the left, the window displays the following:
Here we enter the proxy information, then I think there is much to explain, but for example in If the university is: HTTP proxy is so select that option in Proxy Type, then in the proxy address as: proxy.unal.edu.co, the following is the port which is 8080. Ready, all that remains is to put the user name and password of the SIA and already, we will set up Putty to go through the University proxy that requires authentication.
Not so hard right?
[NOTE:] If you are concerned that recording is played Lineage within the university in the proxy do not worry, SSH connections are encrypted with 128 bits, so there is no danger, the only thing they encrypted packets will be going to the 443 (a port that is normal to flow encrypted information). Well, now there Set the forwarding: that we do in Connection -> SSH -> Tunnels:
Here we add each of the ports to which forwarding can we do, we must have regard to the hosts file , then:
2106 for the port that goes to the authentication server, the redirection is: Source port: 2106, Destination: 91.185.193.200:2106
for port 7777 going to the game server, the redirection is : Source port: 7777, Destination: 91.185.193.200:7777 For port 2009 that will guard the game server, the redirection is: Source port: 2009 Destination: 216.107.250.194:2009
to port 80 going to the authentication server redirection is: Source port: 80 Destination: 91.185.193.200:80
What is being done here is to tell the Putty that everything between the local computer ( which lie inside the firewall) on port 2106 forwarded it to the port 91,185,193,200 in 2106 making use of the relay team, and so with the rest of the ports. Note that I put the IP addresses instead of hostnames, the reason for this is that the relay team does not have the Hosts file, if any could have used the names of the hosts. When all tunnels are ready simply to give
Open
to putty. Ready
, if we do a netstat-n-a-p TCP-b see among other entries:
TCP 127.0.0.1:7777 0.0.0.0:0 LISTENING 3852
[putty.exe ]
- TCP 127.0.0.1:2106
- 0.0.0.0:0 LISTENING 3852
- [putty.exe]
TCP 127.0.0.1:2009
0.0.0.0:0 LISTENING 3852
[putty.exe]
TCP 127.0.0.1:80
0.0.0.0:0 LISTENING 3852Packets: Sent = 4, Received = 4, Lost = 0
[putty.exe]
netstat These entries confirm that the forwarding is done, now we must prove that it addresses are being treated by our own team, for this we ping the hosts file addresses:
Pinging l2authd.lineage2.com [127.0.0.1] with 32 bytes of data:
Reply from 127.0.0.1: bytes = 32 time Reply from 127.0.0.1: bytes = 32 time
Answer from 127.0.0.1: bytes = 32 time
Reply from 127.0.0.1: bytes = 32 time Ping statistics for 127.0.0.1:
(0% loss),
Approximate round trip times in milliseconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
<1m ttl="128" If all are answered by localhost (resolve to 127.0.0.1) then we are ready, AHRA if we open the Lineage and fun.
<1m ttl="128"
[NOTE:] This really does not work, after having authenticated with the auth server that tells the client what IP address is the game server to which you are connecting, so that client never does a DNS Lookup to locate the game server and therefore no way to trick you into connecting to localhost. So, when you try to make the connection through the proxy dies. <1m ttl="128"
<1m ttl="128" To do so would be to use a technique called ip-forwarding to conciste to trick the system to send packages that are a certain address to another, I am investigating the asusnto but have not achieved anything for Windows at least. Anyway, I leave the post so they know how to jump the Firewall with proxy authentication.
Subscribe to:
Posts (Atom)