Page 4 of 11

Posted: Tue Jun 20, 2006 7:05 pm
by Fice
Hi,

I get the following errors when recompiling Irrlicht with Visual C++ 2005 Express. I'm using this compiler for 2 days, so write slowly or i won't get it ;)

I get these linker errors

Code: Select all

CXAnimationPlayer.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall irr::scene::IAnimatedMeshX::useCMeshBones(class irr::core::array<class irr::core::matrix4> *,bool)" (?useCMeshBones@IAnimatedMeshX@scene@irr@@UAEXPAV?$array@Vmatrix4@core@irr@@@core@3@_N@Z)
CXAnimationPlayer.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall irr::scene::IAnimatedMeshX::getBones(class irr::core::array<class irr::core::matrix4> *)" (?getBones@IAnimatedMeshX@scene@irr@@UAEXPAV?$array@Vmatrix4@core@irr@@@core@3@@Z)
.\..\Release/Irrlicht.dll : fatal error LNK1120: 2 unresolved externals
I had some other unresolveld symbols before, but i needed hours to find out how to add ne libs to the linker. But these Symbol are from Irrlicht, so what do i have to change?

Btw: I'm using Irrlicht for 2 weeks and i haven't done any changes to the source code or to the project settings

Posted: Tue Jun 20, 2006 7:48 pm
by qBiN
Acki wrote:You're using both lib types (static and dynamic) ???
Then only one of these types should not be compiled, the other one should work, right?
I compiled static then I compiled dynamic.Using static.
Well, dynamic and static uses different "Irrlicht.h" files !!!
Why?
Just create the dynamic project and copy "Irrlicht.h" to your include folder.
Then create the static project, rename "Irrlicht.h" to something like "Irrlicht_static.h" and copy it to your include folder, too...
Why I could not (can't) simple #include <irrlicht.h>?
Problem removed.thx man.
ps:preved medved...

Posted: Tue Jun 20, 2006 7:57 pm
by Acki
qBiN wrote:Why I could not (can't) simple #include <irrlicht.h>?
Maybe because there are different declarations for dll imports/exports for static and dynamic !?!?!
Fice wrote:I get the following errors when recompiling Irrlicht with Visual C++ 2005 Express.
Well, this error is known to me... :shock:
But since IrrExt was written for MinGW (gcc) I don't know what this error caused by !?!?! :cry:

Some others had the same problem with MSVC++, but I don't know if they solved it and if so, how ???

Posted: Tue Jun 20, 2006 8:25 pm
by qBiN
Sorry,but I need help again.In past project I include old lib,and now I patched Irrlicht source(replace ansi to unicode char,becose Irrlicht don't support Russian in EditBox etc) and recompiled.I create Irrlicht.dll libIrrlicht.a libIrrlicht.def then i make libIrrlicht.exp libIrrlicht.lib (VC include utility lib.exe)I compiled my project,but I have that error.I copy irrlicht.h and rename to irrlicht_.h,include lib file but linker get error.

Posted: Wed Jun 21, 2006 7:57 am
by qBiN
In MinGW code(Irrwizzard framework lite) compiled and linked success(i linked by hands,in C::B have error too...),but I must link in VC....
HELP!!!

Posted: Fri Jun 23, 2006 2:29 pm
by Acki
Because of own needs I added separate colors for button text !!!

!!! New version, demo and update are avilable now !!!

Posted: Thu Jul 06, 2006 1:00 pm
by Acki
And another extension was just released (again ;) ) !!!

Each IGUICheckBox can now have its own text color and font !!!

Posted: Thu Jul 06, 2006 3:34 pm
by dawasw
Man u are the best!

Posted: Fri Jul 07, 2006 12:04 am
by Acki
Thanx !!! 8)

Well, why stopping when I have a run !?!?! :lol:

The same extension now for IGUIComboBox !!!

Also MSVC should now compile (thx to Ixen for the fix) !!!

Posted: Sun Jul 09, 2006 3:25 pm
by Acki
I just changed the code for creating an Irrlicht device within a win32 window !!!

The problem was that the screen resolution was not taken from the creation parameter, but from the window itself !!!
So if you create a Irrlicht device with resolution 800*600 and your desktop has another resolution, the resolution from the desktop was taken !!!
So it didn't matter what resolution you defined, it was ignored and the desktop resolution was taken...

Now the resolution you define with the creation parameter is taken !!!

Posted: Mon Sep 18, 2006 3:11 pm
by Acki
Finally I updated my IrrExtensions to Irrlicht V1.1 !!! 8)
Please read the main thread for more informations !!! ;)

But now I have a little problem: the new created DLLs are more than 4MB great !?!?!
I didn't change any defines for debug...
Well, at least it works !!! :lol:

Posted: Mon Sep 18, 2006 4:59 pm
by Halan
FINALLLYYYY :)

i thought you gave up :lol:

greets,
Halan

edit: can compile it :cry: i get :

Code: Select all

C:\Users\Heiko\Documents\irrlichtSVN\source\Irrlicht\CGUIEnvironment.cpp In member function `virtual irr::gui::IGUISkin* irr::gui::CGUIEnvironment::createSkin(irr::gui::EGUI_SKIN_TYPE)': 
304 C:\Users\Heiko\Documents\irrlichtSVN\source\Irrlicht\CGUIEnvironment.cpp cannot allocate an object of type `irr::gui::CGUISkin' 
304 C:\Users\Heiko\Documents\irrlichtSVN\source\Irrlicht\CGUIEnvironment.cpp   because the following virtual functions are abstract: 
264 C:\Users\Heiko\Documents\irrlichtSVN\source\Irrlicht\include\IGUISkin.h  virtual void irr::gui::IGUISkin::draw3DTabButton(irr::gui::IGUIElement*, bool, const irr::core::rect<irr::s32>&, const irr::core::rect<irr::s32>*, irr::gui::EGUI_VERTICAL_ALIGNMENT) 
276 C:\Users\Heiko\Documents\irrlichtSVN\source\Irrlicht\include\IGUISkin.h  virtual void irr::gui::IGUISkin::draw3DTabBody(irr::gui::IGUIElement*, bool, bool, const irr::core::rect<irr::s32>&, const irr::core::rect<irr::s32>*, irr::s32, irr::gui::EGUI_VERTICAL_ALIGNMENT) 
 C:\Users\Heiko\Documents\irrlichtSVN\source\Irrlicht\MakefileDev.cgw [Build Error]  [DevCpp/obj/CGUIEnvironment.o] Error 1 

Posted: Mon Sep 18, 2006 8:19 pm
by Acki
Hmmm,
what is your compiler ???
Also it looks like you're using the SVN version !?!?!
I don't know anything about the structure of the SVN version, the extensions are made for the normal Irrlicht version, so it's possible that other versions don't work !!!

edit: oh, I saw you're using Dev... ;)
I just updated the Code::Blocks project (what I suggest you to change to) !!!
Well, I'll check IrrExtensions with Dev (what I'll have to install first), too...
With the MSVC project I can't test it, because I don't have MSVC, so I need help from someone who uses this...

edit2: I just tested DevCpp and it works with no problems !!!
So it must depand on your Irrlicht version, sorry !!!

Posted: Tue Sep 19, 2006 3:59 pm
by Halan
ok thanks i try the normal version.

btw: you should maybe contact niko or hybrid and helf/force them to implent some of your stuff in the standart version of irrlicht

greets,
Halan

Posted: Tue Sep 19, 2006 4:31 pm
by Acki
I already contacted Niko when I created the CustomBones...
He was impressed of it, but didn't add it to Irrlicht... :cry:
This was with Irrlicht V0.9 !!!

Maybe if enough people bother Niko to implement it he has no choice !?!?! :lol: