Horde3D

Next-Generation Graphics Engine
It is currently 22.11.2024, 12:34

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: building own app
PostPosted: 05.01.2012, 07:59 
Offline

Joined: 05.01.2012, 07:38
Posts: 2
hi all! : )
i've build h3d and samples work fine ( just Knight's fps not stable ) but when i try to build any other app it fails
using win xp + latest mingw

here code i took from h3d site

main.cpp
Code:
#include"glfw.h"
#include"Horde3D.h"
#include"Horde3DUtils.h"

int main() {
   glfwInit();

   if( !glfwOpenWindow(640,480,8,8,8,8,24,8,GLFW_WINDOW) ) {
      glfwTerminate();
      return 1;
   }

   h3dInit();
   h3dRelease();

   glfwCloseWindow();
   glfwTerminate();
}


building like this:
g++ main.cpp -lglfw

dll files near main.cpp,
libglfw.a in "mingw/lib"
glfw.h in "mingw/include"

and geting this:
Image

can anyone please describe how to build your app with h3d on windows from a to z ( no vs ) ? are there any differences inside h3d app for win, linux ?


Top
 Profile  
Reply with quote  
 Post subject: Re: building own app
PostPosted: 05.01.2012, 10:29 
Offline

Joined: 05.01.2012, 07:38
Posts: 2
i have searched through make files and i think i found solution:
Code:
g++ main.cpp -lhorde3dutils.dll -lhorde3d.dll -lglfw -lopengl32

it compiles clear and runs with no errors
if someone got any comments, will be glad to hear : )


Top
 Profile  
Reply with quote  
 Post subject: Re: building own app
PostPosted: 05.01.2012, 10:55 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
No reason to comment, you've solved it quite correctly. The symbols that were missing are part of the libraries you've linked in your solution.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 19 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group