problēma ar SFML
Re: problēma ar SFML
Atverot studijas projektu un spiežot Build. Tieši tāpat kā tavu programmu.
- kristapuciitis
- Posts: 163
- Joined: 03 Jun 2011, 14:22
Re: problēma ar SFML
Tur ir kaut kādi cmake, bet nav .vcproj vai .sln . Es novilku no http://www.sfml-dev.org/download.php SFML 2.0 snapshot, vai vajadzēja citu vilkt?
Gooby pls
Re: problēma ar SFML
Tu vilki pareizo. CMake ir cross-platform build sistēma. Tev jānovelk cmake, ar kuru tu varēsi uzģenerēt studijas projektu.
- kristapuciitis
- Posts: 163
- Joined: 03 Jun 2011, 14:22
Re: problēma ar SFML
Sekoju http://www.sfml-dev.org/tutorials/2.0/c ... -cmake.php , bet apstājos pie
Atverot Visual Studio Command Prompt izlec konsole, kurā ierakstot pilnu path uz vcvars32.bat, izlec kļūda, vai arī ierakstot bin\vcvars32.bat arī izlec kļūda. Es nespartu, ko tieši jāraksta konsolē.
With Visual C++, you can either run CMake from the "Visual Studio command prompt" available from the start menu, or call the vcvars32.bat file of your Visual Studio installation; it will setup the environment variables properly.
Atverot Visual Studio Command Prompt izlec konsole, kurā ierakstot pilnu path uz vcvars32.bat, izlec kļūda, vai arī ierakstot bin\vcvars32.bat arī izlec kļūda. Es nespartu, ko tieši jāraksta konsolē.
Gooby pls
Re: problēma ar SFML
Konvertējam programmētājiem saprotamā formātā:
Nav abi kopā jājauc. Vai nu izsauc cmake no VS cmd. prompta, vai arī palaid vcvars32.bat un tad palaid cmake no kuras vietas gribi (tikai, cik saprotu, no tā paša command prompt'a).With Visual C++, you can EITHER{ run CMake from the "Visual Studio command prompt" available from the start menu }OR{ call the vcvars32.bat file of your Visual Studio installation } it will setup the environment variables properly.
Re: problēma ar SFML
CMake līdzi nāk GUI un nevajag nekādu komandrindu izmantot, ja negrib.
- kristapuciitis
- Posts: 163
- Joined: 03 Jun 2011, 14:22
Re: problēma ar SFML
Pirms tam es biju palaidis vcvars32.batCMake Error: Could not find cmake module file:C:/Users/Kristaps/Desktop/SFML_bin/CMakeFiles/CMakeRCCompiler.cmake
CMake Error: your RC compiler: "CMAKE_RC_COMPILER-NOTFOUND" was not found. Please set CMAKE_RC_COMPILER to a valid compiler path or name.
CMake Error: your C compiler: "cl" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name.
CMake Error: your CXX compiler: "cl" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
Configuring incomplete, errors occurred!
Gooby pls
Re: problēma ar SFML
Ja tajā komandrindas logā ierakstots cl.exe saka, ka tā neatpazīta komanda, tad tu neesi palaidis vai arī palaidis kautkādu nepareizo vcvars32.bat.
Lieto cmake-gui, nebūs vajadzība čakarēties ar vcvars32.bat un komandrindu.
Lieto cmake-gui, nebūs vajadzība čakarēties ar vcvars32.bat un komandrindu.
- kristapuciitis
- Posts: 163
- Joined: 03 Jun 2011, 14:22
Re: problēma ar SFML
Es arī to lietoju, kad uzspiedu Configure, viss gāja, bet pēc tam apstājās un izleca errori.
Gooby pls