Jump to content

jaydubeww

Members
  • Posts

    9
  • Joined

  • Last visited

Everything posted by jaydubeww

  1. Metatron was right, my main class 'main' was interfering with Gamelibs method 'main'. Now it seems to be looking for OpenGL commands. I figured I should add 'C:/mingw/lib' to my search directory, but that didn't help. Note: These are not all of the errors, but I figured you got the jist of it. .libGameLibGameLib.o:GameLib.cpp|| undefined reference to `glMatrixMode@4'| .libGameLibGameLib.o:GameLib.cpp|| undefined reference to `glPushMatrix@0'| .libGameLibGameLib.o:GameLib.cpp|| undefined reference to `glLoadIdentity@0'| .libGameLibGameLib.o:GameLib.cpp|| undefined reference to `glFrustum@48'| .libGameLibGameLib.o:GameLib.cpp|| undefined reference to `glMatrixMode@4'| .libGameLibGameLib.o:GameLib.cpp|| undefined reference to `glPushMatrix@0'| .libGameLibGameLib.o:GameLib.cpp|| undefined reference to `glLoadIdentity@0'| .libGameLibGameLib.o:GameLib.cpp|| undefined reference to `glScalef@12'| .libGameLibGameLib.o:GameLib.cpp|| undefined reference to `gluLookAt@72'| .libGameLibGameLib.o:GameLib.cpp|| undefined reference to `glEnable@4'| .libGameLibGameLib.o:GameLib.cpp|| undefined reference to `glBlendFunc@8'| .libGameLibGameLib.o:GameLib.cpp|| undefined reference to `glCullFace@4'| .libGameLibGameLib.o:GameLib.cpp|| undefined reference to `glEnable@4'| .libGameLibGameLib.o:GameLib.cpp|| undefined reference to `glColor4f@16'| .libGameLibGameLib.o:GameLib.cpp|| undefined reference to `glEnable@4'| .libGameLibGameLib.o:GameLib.cpp|| undefined reference to `glCullFace@4'| .libGameLibGameLib.o:GameLib.cpp|| undefined reference to `glPushMatrix@0'| .libGameLibGameLib.o:GameLib.cpp|| undefined reference to `glGetIntegerv@8'| .libGameLibGameLib.o:GameLib.cpp|| undefined reference to `gluOrtho2D@32'| ||More errors follow but not being shown.| ||Edit the max errors limit in compiler options...| ||=== Build finished: 50 errors, 0 warnings ===| I'd check the GameLib tutorials, but those seem to be down quite often..
  2. Hi all, I'm new to C++ and having a bit of trouble compiling the basic LEBuilder Gamelib project. I added all the include/search directories and now I receive these build errors: Also note: I haven't changed anything to the files. The Error occurs on the last line in the .cpp; RunClass(main). ||=== main, Release ===| C:Programmingprojects_codeblocksbasic_frameworkmainsourcesrcmain.cpp||In function 'int main(int, char**)':| C:Programmingprojects_codeblocksbasic_frameworkmainsourcesrcmain.cpp|32|error: expected ';' before 'app'| C:Programmingprojects_codeblocksbasic_frameworkmainsourcesrcmain.cpp|32|warning: statement is a reference, not call, to function 'main'| C:Programmingprojects_codeblocksbasic_frameworkmainsourcesrcmain.cpp|32|warning: statement has no effect| C:Programmingprojects_codeblocksbasic_frameworkmainsourcesrcmain.cpp|32|error: 'app' was not declared in this scope| ||=== Build finished: 2 errors, 2 warnings ===| the RunClass() definition in Application.h namespace GameLib { #define RunClass(UserApp,...) int main(int argc, char* argv[]) { /*chdir(__VA_ARGS__);*/ UserApp app(argc,argv); app.Load(); app.Run(); return app.GetResult(); } the .h #pragma once #include "GameLib.h" // GameLib #define APPNAME "main" #define APPVER "0.0.0.0" class main : public Application { public: main(int argc, char* argv[]); // Constructor void RenderActive3D(); // Overridden 3D rendering void RenderActive2D(); // Overridden 2D rendering Cube cube, ground; // Create cube and ground void Load(); // Overridden scene loading and population stuff Material material; // Material for cube and ground DirectionalLight sun; // Create sun }; the .cpp #include "main.h" main::main(int argc, char* argv[]): Application("data",APPNAME" "APPVER) { // TODO: Add stuff here which is done once per application launch } void main::Load() { game.scene.cam.Move(0,0,-2); sun.Turn(Vec3(45)); material.Load("Models/CobbleStones/CobbleStones.mat"); cube.Paint(material); ground.Paint(material); ground.Scale(Vec3(10,1,10)); ground.SetPosition(Vec3(0,-2,0)); } void main::RenderActive3D() { if(Keyboard::I****()) Quit(); double n=AppSpeed(); cube.Turn(n,n*2,0); } void main::RenderActive2D() { Draw::Text(50,50,"%0.0f",FPS()); } RunClass(main);
  3. Oops, I wasn't very specific in my last post. Those errors are from trying to compile pfwgui into a lib, not my project.
  4. Great looking gui! But I'm having some trouble. Firstly, I'm new to c++ and all that jazz. However, I was able to compile Freetype 2.4.8 and FTGL 2.1.3-rc5. After adding the Freetype and FTGL environment variables and compiling, I receive these errors: ||=== PFWGui, Debug Win32 ===| C:\Programming\CPPTools\common\PFWGui\PFWGui\Src\ksignal\Signal1.cpp||In member function 'virtual void ksignal1::Signal1<Parameter>::disconnect(const BaseSlot1<Parameter>&)':| C:\Programming\CPPTools\common\PFWGui\PFWGui\Src\ksignal\Signal1.cpp|36|error: need 'typename' before 'std::vector<BaseSlot1<Parameter>*>::iterator' because 'std::vector<BaseSlot1<Parameter>*>' is a dependent scope| C:\Programming\CPPTools\common\PFWGui\PFWGui\Src\ksignal\Signal1.cpp|36|error: expected ';' before 'it'| C:\Programming\CPPTools\common\PFWGui\PFWGui\Src\ksignal\Signal1.cpp|38|error: 'it' was not declared in this scope| C:\Programming\CPPTools\common\PFWGui\PFWGui\Src\ksignal\Slot1.h|100|error: 'slot' was not declared in this scope| C:\Programming\CPPTools\common\PFWGui\PFWGui\Src\GuiAxis.cpp||In member function 'virtual void GuiAxis::draw()':| C:\Programming\CPPTools\common\PFWGui\PFWGui\Src\GuiAxis.cpp|48|error: no matching function for call to 'GuiPainter::drawAxis(int&, int, int&, int, float&, float&, float&, GuiColor, GuiFont*&, bool&, int&)'| C:\Programming\CPPTools\common\PFWGui\PFWGui\Src\GuiPainter.h|167|note: candidate is: void GuiPainter::drawAxis(int, int, int, int, float, float, float, GuiColor&, GuiFont*, bool, int)| C:\Programming\CPPTools\common\PFWGui\PFWGui\Src\GuiAxis.cpp|50|error: no matching function for call to 'GuiPainter::drawAxis(int, int&, int, int&, float&, float&, float&, GuiColor, GuiFont*&, bool&, int&)'| C:\Programming\CPPTools\common\PFWGui\PFWGui\Src\GuiPainter.h|167|note: candidate is: void GuiPainter::drawAxis(int, int, int, int, float, float, float, GuiColor&, GuiFont*, bool, int)| C:\Programming\CPPTools\common\PFWGui\PFWGui\Src\GuiAxis.cpp||In member function 'void GuiAxis::calculateSizes()':| C:\Programming\CPPTools\common\PFWGui\PFWGui\Src\GuiAxis.cpp|114|error: 'sprintf' was not declared in this scope| ||=== Build finished: 9 errors, 0 warnings ===| Any help would be appreciated.
  5. Ahh, I see. I'll be using the articles for the current tutorials in bmx. Thanks!
  6. Hello! As a new user to Leadwerks I've stumbled upon my first issue, I can't seem to load any .obj or .bmp file... I'm simply following this tutorial: http://www.leadwerks.com/files/Tutorials/Introduction_To_Meshes_BMX.pdf And yes, the meshes and material files are in the root folder as well. The console error reads: Warning: Failed to load texture "c:/blitzmaxtools/projects/meshes/color_map.bmp": No loader available for extension. Same error is given for .obj files. fyi I can use CreateCube() just fine. What gives?
  7. Awesome, expect a purchase in the near future!
  8. Yes, I was hoping to give the evaluation kit a go one more time before I purchase. On a side note, how well supported is Blitzmax?
  9. Simply put, I downloaded and installed the Evaluation kit and played around for not much more than 30min. Now the 30 days have passed and it wont let me load the examples anymore. Is there any way I can by bypass this DRM and mess around with it again? Thanks!
×
×
  • Create New...