Developing and building from Linux

64 bit / 32 bit desktops

Moderators: ezraanderson, spacepluk

Re: Developing and building from Linux

Postby RurouniGPL » Sat Dec 15, 2012 10:30 am

I think I found another bug:

MOAIFrameBuffer renders a black screen and changing "setClearColor" does nothing.
RurouniGPL
 
Posts: 244
Joined: Wed Jun 27, 2012 11:54 am

Re: Developing and building from Linux

Postby spacepluk » Sat Dec 15, 2012 10:45 am

That's interesting, MOAIFramebuffer also works fine for me. Are you sure you're on the correct branch?
User avatar
spacepluk
 
Posts: 40
Joined: Thu Apr 12, 2012 9:09 am
Location: Madrid, Spain

Re: Developing and building from Linux

Postby RurouniGPL » Sat Dec 15, 2012 10:50 am

Uhmmm... the command line I write is this one:

git clone https://github.com/spacepluk/moai-dev moai-dev.spacepluk

Do you refer to that?
RurouniGPL
 
Posts: 244
Joined: Wed Jun 27, 2012 11:54 am

Re: Developing and building from Linux

Postby RurouniGPL » Sat Dec 15, 2012 11:25 am

Another detail: that "black" screen is in fact the global clear color... It does not use the fb clear color.

Excuse me! It was my fault!!! The render order of the layers was incorrect... solved then :P
RurouniGPL
 
Posts: 244
Joined: Wed Jun 27, 2012 11:54 am

Re: Developing and building from Linux

Postby spacepluk » Sun Dec 16, 2012 3:16 am

Hehehe, cool :)
User avatar
spacepluk
 
Posts: 40
Joined: Thu Apr 12, 2012 9:09 am
Location: Madrid, Spain

Re: Developing and building from Linux

Postby Larza » Thu Jan 10, 2013 7:11 pm

Hi,

me and my friends are trying to make moai host with qt but we decided to use precompiled libs (just o make developing faster) from other projects. This works fine on windows when we use libs that are compiled with VS2010 project. And we decided to use spacepluk's project for compiling the libs for linux and there is some problem with libaku.a.

These are the steps we do:
1. build spacepluk's project (host that is compiled as result of spacepluk's project works fine)
2. copy all library files under libs folder of our moai qt host project (all of those files are defined as precompiled libs to be used)
3. compile in Qt Creator

This gives errors which are saying that file AKU.cpp is not found from libaku.a for other libs there is no errors (I tested removing them and then there was errors so it means that all other libs are ok for our qt project but the aku lib is not).

So is there some special stuff we should have noticed when compiling the whole project? I mean is there something special stuff connected to libaku.a?
Larza
 
Posts: 3
Joined: Thu Jan 10, 2013 6:45 pm

Re: Developing and building from Linux

Postby spacepluk » Fri Jan 11, 2013 11:37 am

Hi there,
I don't really understand your problem. Can you provide some logs or source? I'd say is a problem with your QtCreator setup. Have you tried compiling manually?

BTW your Qt host project sounds very interesting. How are you planning to integrate Moai with Qt? Graphics View?
User avatar
spacepluk
 
Posts: 40
Joined: Thu Apr 12, 2012 9:09 am
Location: Madrid, Spain

Re: Developing and building from Linux

Postby Larza » Fri Jan 11, 2013 3:14 pm

If you mean by manually compiling compiling with command line yes I have tried it and it gives longer error information seems about the same as on Qt Creator.

I put compiling error file here (forum doesn't allow putting it as attachment) if that helps to get better impression of the problem.

We use QGLWidget to integrate moai to Qt and our host works already quite fine on Windows so we are now trying to get it work on Linux and OS X too,
Larza
 
Posts: 3
Joined: Thu Jan 10, 2013 6:45 pm

Re: Developing and building from Linux

Postby zeldin » Sun Jan 13, 2013 12:28 am

In case someone is interrested, I just made an ebuild for compiling MOAI on Gentoo, using spacepluk's linux-cmake branch.

The ebuild is in my overlay, which is available on GitHub. This also contains an ebuild for the correct version of Chipmunk.

There is also an overlay.xml if you are using layman...

If you enabled the "examples" USE flag, you should be able to do
Code: Select all
  1. cd /usr/share/doc/moai-9999/examples/hello-moai

  2. moai-untz main.lua

after emerging moai.
zeldin
 
Posts: 7
Joined: Sun May 13, 2012 7:07 am
Location: Linköping

Re: Developing and building from Linux

Postby Larza » Sat Jan 19, 2013 11:51 am

Problem solved. Library order needed to be specific meaning that aku had to be added to Qt LIBS before moaicore otherwise it didn't work. Small mistake but caused a lot of trouble.
Larza
 
Posts: 3
Joined: Thu Jan 10, 2013 6:45 pm

Re: Developing and building from Linux

Postby framp » Fri Feb 08, 2013 6:57 pm

MOAI is now in the AUR too, for all the Arch Linux users out there!

https://aur.archlinux.org/packages/moai-git/
It's using the linux branch of moai-dev on github (for more info: http://franciscotufro.com/2013/01/compi ... -on-linux/)
framp
 
Posts: 5
Joined: Thu Feb 23, 2012 1:50 pm

Previous

Return to Linux

Who is online

Users browsing this forum: No registered users and 0 guests

cron

x