Irrlicht and Kdevelop3

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
L_Draven
Posts: 21
Joined: Sun Mar 07, 2004 11:36 am

Irrlicht and Kdevelop3

Post by L_Draven »

Hi all, i am new member of Irrlicht community.

I am worked with irrlicht in DEVC++ IDE in OGL mode without problems. (i am waititng DX support in DEVC++ XD)

But now i am working in linux and Kdeveloop and i dont know ow configure the project option to work with irrlicht (i have a cpp and h files of the project that i was working y DEVC++ for use in linux).

In the project option/Compiler/configure section, in "directories tab" i write:

in "--x-includes=" section: i write the path of the "include" folder of the Irrlicht directory

in "--x-libraries=" section: i write the path of the "libs\Linux" folder of the Irrlicht directory

The project is a C++ project type.

Are these options correctly???

Anyone can help me to configure Kdevelop for work with irrlicht??

A lot of thanks.
rodmc
Posts: 3
Joined: Sat Mar 06, 2004 12:37 pm

Kdevelop and Irrlicht

Post by rodmc »

Yes I tried as well, I even tried putting the libraries in as additional files. In all cases its just endless warnings and errors I get.

If you get a response off-forum would you mind sharing it with me?

Best,

Rod
IT Public Relations and Usability Consultant
Guest

Post by Guest »

Of course

if i get off-forum response i will share here ;-).
schill.out
Posts: 2
Joined: Mon Mar 08, 2004 3:46 pm

Post by schill.out »

In KDevelop 3.0.1 you must add -lIrrlicht -lGL -ljpeg -lz -L"/usr/X11R6/lib" -lXxf86vm to Project option/Configure options/Linker Flags and -I $PATH_TO_IRRLICHT_HEADERS to Project option/Configure options/"C/C++ preprocessor flags". The flags are passed to gcc.

Also read the infopage of gcc.
L_Draven
Posts: 21
Joined: Sun Mar 07, 2004 11:36 am

Post by L_Draven »

Thanks schill for your help.

One question:

What type of project you use in kdevelop 3x???

c++ Hello world project???

i use this last but when i run it give an error with namespaces and other errors that width the same code in DEVC (windows) dont give me.

Any idea??

PD: i put the configuration in FLAGS that schill wrote.

Anyone can write the steps for configure and start a project in Linux?? with Kdevelop or Anjuta or other IDE.??? where put the lib/Linux and /include files from irrlicht zip file.

Thanks again
schill.out
Posts: 2
Joined: Mon Mar 08, 2004 3:46 pm

Post by schill.out »

lib/LINUX must be placed in /us r/local/lib and the include files can be placed under /usr/include/irrlicht for example. Then you set Project option/Configure options/"C/C++ preprocessor flags" to -I /usr/include/irrlicht.

Are you using the c++ standard headers lke iostream?

I use a simple c++ Hello Worrld project

The following Program compiles on my machine:

Code: Select all

#include <iostream>
#include <cstdlib>
#include <irrlicht.h>

using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;


int main(int argc, char *argv[])
{

    IrrlichtDevice* device = createDevice(EDT_OPENGL, dimension2d<s32>(800, 600),
                                          16, false, false, NULL);

    IVideoDriver* driver = device->getVideoDriver();
    ISceneManager* smgr = device->getSceneManager();



    while(device->run())
    {
        driver->beginScene(true, true, video::SColor(0,100,100,100));
        smgr->drawAll();
        driver->endScene();
    }

    device->drop();

    return EXIT_SUCCESS;
}
L_Draven
Posts: 21
Joined: Sun Mar 07, 2004 11:36 am

Post by L_Draven »

A LOT OF THANKS AGAIN ;-) SCHILL.

IT WORKS your sample code XDDDD. perfect

one question:

anyone know why give me this error when i load a jpg??

JPEG parameter struct mismatch: library thinks size is 464, caller expects 428
Post Reply