ahlekoofe / gamekit

Automatically exported from code.google.com/p/gamekit
0 stars 0 forks source link

compiling error with LUA support #232

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.svn checkout
2.cmake -DSAMPLES_LUA_EDITOR=ON or any other lua related options
3.

What is the expected output? What do you see instead?
It should compile, but I got error 
"gamekit/wxWidgets-2.9.1/src/expat/lib/xmlparse.c:30:26: fatal error: 
expat_config.h: No such file or directory
compilation terminated."

What version of the product are you using? On what operating system?
Latest svn checkout. On archlinux with gcc4.7

Please provide any additional information below.

Original issue reported on code.google.com by sftry...@gmail.com on 11 May 2012 at 3:20

GoogleCodeExporter commented 8 years ago
I tested on win7, it compiles fine with OGREKIT_COMPILE_WXWIDGETS on.

Original comment by sftry...@gmail.com on 11 May 2012 at 4:23

GoogleCodeExporter commented 8 years ago
Afaik the lua-editor has problems to be compiled under linux/macosx. Tried it 
once, didn't work, so I left it alone... Actually I never felt the urge to use 
it.
@people that know the editor:Is there something you can do, that you can't from 
within blender? 
But of course I agree that it is always crap to give an option that leads to an 
error...

Original comment by thomas.t...@googlemail.com on 11 May 2012 at 4:52

GoogleCodeExporter commented 8 years ago
It seems that only some editors need wxWidget. I don't need them anyway.

The main part works for me both on pc and android.

Original comment by sftry...@gmail.com on 11 May 2012 at 5:47

GoogleCodeExporter commented 8 years ago
LuaEditor is not running on win7 either, although it compiles. I got OIS 
related error
12:51:54: WINDOW handle: 0xb0770
12:51:54: Win32Keyboard::Win32Keyboard >> coop error!
12:51:54: Unable setup gkWindow input objects.
12:51:54: Unable setup gkWindow object.

I checked it on youtube. LuaEditor is a great tool. It could be better to have 
it run on at least windows.

I attached the running log of my LuaEditor.

Original comment by sftry...@gmail.com on 12 May 2012 at 5:27

Attachments:

GoogleCodeExporter commented 8 years ago
Does it crash? The logs look ok to me...
as soon as I get to a win7-computer I will give it a try (even though I still 
don't see the plus of the editor over blender beside having a good 
sample...that will make it worth the effort to make it work again)
Actually all kinds of gui-stuff in the samples needs the wxWidgets and afaik 
lua-editor is the only one with issues. Embed-demo and FileInspector do compile 
and work (last time I checked)

Original comment by thomas.t...@googlemail.com on 13 May 2012 at 12:44

GoogleCodeExporter commented 8 years ago
It crashes. If your check my log, there is an error. I tracked the code. It 
crashes while constructing input, at this 
"m_input->enableAddOnFactory(OIS::InputManager::AddOn_All);" code.

All the Samples are compiling without errors.

Embed-demo and LuaEditor crash, while FileInspector and NodeEditor are working 
fine.

Original comment by sftry...@gmail.com on 13 May 2012 at 3:54

GoogleCodeExporter commented 8 years ago
I also did some goolge. It seems to have something to do with the window 
handler passed into OIS.

Original comment by sftry...@gmail.com on 13 May 2012 at 3:56

GoogleCodeExporter commented 8 years ago
I finally get it work on win7. It is said that OIS need the most top window 
handle. So I hack the code in an ugly way to get the handle. Please check my 
patch out to see if it helps.

Original comment by sftry...@gmail.com on 13 May 2012 at 4:10

Attachments:

GoogleCodeExporter commented 8 years ago
Glad you got it work. And thx for providing the patch. I will test it on my 
windows-system right after my holiday.

Original comment by thomas.t...@googlemail.com on 13 May 2012 at 9:05

GoogleCodeExporter commented 8 years ago
Thanks a lot man!!

Original comment by rad...@gmail.com on 4 Jun 2012 at 11:27

GoogleCodeExporter commented 8 years ago
Ok, finally I commited your patch! Thx again.

http://code.google.com/p/gamekit/source/detail?r=1116

Original comment by thomas.t...@googlemail.com on 17 Jul 2012 at 4:13