A good looking idea and project but need help to get feeling how it works

19 views
Skip to first unread message

Joonhwan Lee

unread,
Jan 17, 2013, 3:12:32 AM1/17/13
to aos...@googlegroups.com
Hi,

After I read several articles aos site and got hooked on it.
I did clone the repository and build it successfuly(I installed vs2010 for it! :-O).
But, when I run using F5, after creating a new sequnce and got stucked around signal connection.


    void EditorManager::react_project_open( const core::Project& project )
    {
        connect( &project, SIGNAL(edition_session_begin(const core::EditionSession&)), this, SLOT(react_edition_session_begin(const core::EditionSession&)) );
        connect( &project, SIGNAL(edition_session_end(const core::EditionSession&)), this, SLOT(react_edition_session_end(const core::EditionSession&)), Qt::QueuedConnection );

        connect( &project, SIGNAL(sequence_created(const core::Sequence&)), this, SLOT(react_sequence_created(const core::Sequence&)) );
        connect( &project, SIGNAL(sequence_deleted(const core::Sequence&)), this, SLOT(react_sequence_deleted(const core::Sequence&)), Qt::QueuedConnection );

        const auto* initial_session_selection = project.selected_edition_session();
 // ....


I think there need be qRegisterMetaType<>() for core::EditonSession class(but doesn't seem to be possible to me, cause it is QObject that is not copyable).

Need help to go further.


Klaim - Joël Lamotte

unread,
Jan 17, 2013, 6:18:20 AM1/17/13
to Art Of Sequence Development
Hi! Thanks for your interest! :)


Could your precise me which repository you got sources from? 
I'm migrating the sources and the google-project one are not up to date...

Also, I'm migrating the AOS Designer project to Qt5 and VS2012, see: https://bitbucket.org/artofsequence
aos is the full repo up to date, the other repos are a split of the main repo.
I didn't finish yet to make all this back to stable code, but I should be able to finish soon.

Joel Lamotte

Klaim - Joël Lamotte

unread,
Jan 17, 2013, 6:21:59 AM1/17/13
to Art Of Sequence Development

On Thu, Jan 17, 2013 at 9:12 AM, Joonhwan Lee <joonhw...@gmail.com> wrote:
I think there need be qRegisterMetaType<>() for core::EditonSession class(but doesn't seem to be possible to me, cause it is QObject that is not copyable).

Also, I didn't understand what you mean by this. I'm not yet a pro at Qt so maybe I'm missing something.

Joel Lamotte

Joonhwan Lee

unread,
Jan 17, 2013, 11:26:31 PM1/17/13
to aos...@googlegroups.com
Ok, when you run aos designer, set QT_FATAL_WARNINGS environment variable's value 1 (if not exists, make one).
You can turn this variable on

1. Win+R
2. type "sysdm.cpl"
3. goto "Advance" tab
4. click "Environemnt Variable" button
5. Make a new [System] Environment Variable name:QT_FATAL_WARNINGS(not QT_FATAL_WARNING) value: 1

restart visual studio, and F5 to go. Then you got debug message box when you create new project/sequence.
In the same time, you can see the following messages in Debug output

QObject::connect: Cannot queue arguments of type 'core::EditionSession'
(Make sure 'core::EditionSession' is registered using qRegisterMetaType().)

The EditionSession class QObject derived type which not copiable, and cannot be used QueuedConnection between sig/slot
cannot pass this object(Queued connected sig/slot SHOULD BE ABLE TO COPY arguments).
I think extract several ciritical data members from EditionSession class to a simple non-QObject derived class and then let signal pass it(In this case you
still need qRegisterMetaType<>() ) ....
or just pass pointer to EditionSession object to signal.

BTW, I also learning Qt and very happy about it. I believe you so.

My Env is

CMake : 2.8.10
Qt : 4.8.4



2013/1/17 Klaim - Joël Lamotte <mjk...@gmail.com>



--
이준환
www.joonhwan.org

Joonhwan Lee

unread,
Jan 17, 2013, 11:32:23 PM1/17/13
to aos...@googlegroups.com
Oh I cloned repository in goolge project. :-(
BTW, I only have VS2010 and is there any difference between those two version for AOS designer?


2013년 1월 17일 목요일 오후 8시 18분 20초 UTC+9, Klaim - Joël Lamotte 님의 말:

Joonhwan Lee

unread,
Jan 17, 2013, 11:41:41 PM1/17/13
to aos...@googlegroups.com
Ok.. I must confess I'm totally newbie in mercurial. There are 5 repositories
How can I kick in?
Can I use VS2010?


2013년 1월 18일 금요일 오후 1시 32분 23초 UTC+9, Joonhwan Lee 님의 말:

Klaim - Joël Lamotte

unread,
Jan 18, 2013, 2:34:05 AM1/18/13
to Art Of Sequence Development
On Fri, Jan 18, 2013 at 5:26 AM, Joonhwan Lee <joonhw...@gmail.com> wrote:
Ok, when you run aos designer, set QT_FATAL_WARNINGS environment variable's value 1 (if not exists, make one).
You can turn this variable on

1. Win+R
2. type "sysdm.cpl"
3. goto "Advance" tab
4. click "Environemnt Variable" button
5. Make a new [System] Environment Variable name:QT_FATAL_WARNINGS(not QT_FATAL_WARNING) value: 1

restart visual studio, and F5 to go. Then you got debug message box when you create new project/sequence.
In the same time, you can see the following messages in Debug output

QObject::connect: Cannot queue arguments of type 'core::EditionSession'
(Make sure 'core::EditionSession' is registered using qRegisterMetaType().)


Ah yes I see, actually if you use Qt VSAddin plugin, you'll see the warning inside VS.
 
The EditionSession class QObject derived type which not copiable, and cannot be used QueuedConnection between sig/slot
cannot pass this object(Queued connected sig/slot SHOULD BE ABLE TO COPY arguments).
I think extract several ciritical data members from EditionSession class to a simple non-QObject derived class and then let signal pass it(In this case you
still need qRegisterMetaType<>() ) ....
or just pass pointer to EditionSession object to signal.


I agree. I had plans to totally isolate everything in core:: from Qt.
In fact I want to move it in a separate library that would not depend on qt.
I didn't do it yet because I had to work on the web player ( http://demo.artofsequence.org ) and the update of AOSL.

At the moment I'm finishing the migration of the development resources.
As soon as it's finished, I'll be back on AOS Designer code, but it will need a lot of refactoring I think.
 

BTW, I also learning Qt and very happy about it. I believe you so.


Actually I'm not really happy with Qt, but it's the best we have at the moment.
But in the future I think it will be better, if we can, to make platform-specific UIs, to exploit each platform's idioms.
 
My Env is

CMake : 2.8.10
Qt : 4.8.4


Ok, that's good.
The changes I did to make it work with Qt5 are in a separate branch.
These changes will just make it compile with Qt5 but at the moment I can't link it because
I'm using VS2012. Unfortunately I have a bug that forbidd me to install correctly VS2010 because of the VS2010 installer 
not setting up the standard library. So I can't reinstall VS2010 (it's a big problem actually) but 
you should be able to use VS2010 with Qt5 with no problems;
to do this you have to use this repository: https://bitbucket.org/artofsequence/aos/
And once you got it, switch to the branch wip_qt5

Joel Lamotte

Klaim - Joël Lamotte

unread,
Jan 18, 2013, 2:35:26 AM1/18/13
to Art Of Sequence Development
On Fri, Jan 18, 2013 at 5:32 AM, Joonhwan Lee <joonhw...@gmail.com> wrote:
Oh I cloned repository in goolge project. :-(

Sorry, I added a warning to the page to make it clear.
 
BTW, I only have VS2010 and is there any difference between those two version for AOS designer?


It's ok to work with VS2010 for now, I don't use yet any VS2012 specific features.

Joel Lamotte

Klaim - Joël Lamotte

unread,
Jan 18, 2013, 2:39:46 AM1/18/13
to Art Of Sequence Development
On Fri, Jan 18, 2013 at 5:41 AM, Joonhwan Lee <joonhw...@gmail.com> wrote:
Ok.. I must confess I'm totally newbie in mercurial. There are 5 repositories
How can I kick in?

Mercurial is almost like git if you used it before?

About the repositories: 
Only this one is up to date and usable: https://bitbucket.org/artofsequence/aos/
Use it for now.
The others are current work-in-progress, they are just the same repository but split in separate
repositories by project. I didn't finish yet that too, so please don't use the other repositories.
You can use the central repository for now, even for patches/pull-requests.

I'll make an announcement once I finish fixing the other repositories and fixed the 
documentation about that.

 
Can I use VS2010?



Yes. If you update the repository to the wip_qt5 branch, however, you will need Qt5.
This branch will be merged soon in the default branch.
It will be done once Qt team provide VS2012 binaries. 
You will still be able to use VS2010 until I start to add code that can't be compiled in VS2010.

Joel Lamotte

Klaim - Joël Lamotte

unread,
Jan 18, 2013, 2:43:30 AM1/18/13
to Art Of Sequence Development
Sorry, it's a bit of a mess right now as I'm alone trying to find time to reorganise the project.
As soon as I finish this I'll be able to get back to the code.

Joel Lamotte

Klaim - Joël Lamotte

unread,
Feb 12, 2013, 7:49:29 PM2/12/13
to Art Of Sequence Development
Hi,

I'm getting back to AOSD code so I think somewhere next week it will be in better shape so that we can work on it 
with less problems.

On Fri, Jan 18, 2013 at 5:41 AM, Joonhwan Lee <joonhw...@gmail.com> wrote:
Can I use VS2010?

Yes, I'm currently making sure it works with Qt5 on VS2010 (I had to fix a problem I had with my install).
I will change the requirement to VS2012 when
 - Qt5 5.0.2 is finally out (with VS2012 binaries)
 - I checked that the current code compiles and run (which imply there is no problem like missing CMake info - Qt 5.0.1 do miss CMake infos)

Once this is done, VS2012 will be required.
I am also considering switching to QtCreator and GCC4.7 on all platforms, which would help for some code, but not all.

I will post in this mailing list once I figure out what is the best way.

Also, I am in the process of isolating totally the "core" of AOSD from the "view" that use Qt.
I want to make easy for other developers to build better interfaces than the Qt one because I believe a native-idioms implementation is always better.

If you have other questions, please feel free to ask here.

Klaim / Joel Lamotte

Klaim - Joël Lamotte

unread,
Feb 13, 2013, 7:24:45 PM2/13/13
to Art Of Sequence Development

On Fri, Jan 18, 2013 at 5:26 AM, Joonhwan Lee <joonhw...@gmail.com> wrote:
restart visual studio, and F5 to go. Then you got debug message box when you create new project/sequence.
In the same time, you can see the following messages in Debug output

QObject::connect: Cannot queue arguments of type 'core::EditionSession'
(Make sure 'core::EditionSession' is registered using qRegisterMetaType().)

By the way, I finally got that error (I wonder how I was doing before...) and I'm planning a fix very soon, 
so I'll keep you up to date on this.

Joel Lamotte

Joonhwan Lee

unread,
Feb 13, 2013, 7:27:13 PM2/13/13
to aos...@googlegroups.com
That's good. I am waiting to see it working in my box!

2013년 2월 14일 목요일에 Klaim - Joël Lamotte님이 작성:
--
You received this message because you are subscribed to the Google Groups "Art Of Sequence Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aos-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 


--
이준환
www.joonhwan.org

Klaim - Joël Lamotte

unread,
Feb 13, 2013, 7:41:28 PM2/13/13
to Art Of Sequence Development

On Thu, Feb 14, 2013 at 1:27 AM, Joonhwan Lee <joonhw...@gmail.com> wrote:
That's good. I am waiting to see it working in my box!

Another change I am considering (as I noted before) is switching totally to QtCreator(with GCC or Clang) to avoid Visual Studio/Qt incompatibilities
and help with cross-platform development.
It would require me to change the way some dependencies are used (like the CMake scripts to get CodeSynthesis/XSD) but
it might be a big win in the end.

Would it be a problem for you (or others following the discussion) to work with QtCreator instead of Visual Studio?

Joel Lamotte

Joonhwan Lee

unread,
Feb 14, 2013, 6:33:21 PM2/14/13
to aos...@googlegroups.com
Hi, have you built Qt with Clang in windows BTW? Though Clang for win32 itself quite useable, standard libraries things are not prepared yet as I heard.
On the second thought, if you continue to use cmake build system, even though you think QtCreator is main IDE, the other guys can use their own IDE.
CMake let us confirms specific build tool chain not the IDE I think.

Bottom line. : please continue to use CMake build system and I hope we can build AOS with cmake --build command.

PS: I'm using emacs as my primary editor. and am still beliving that the debugger inside visual studio is a king in win32 world.

Joon




2013/2/14 Klaim - Joël Lamotte <mjk...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Art Of Sequence Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aos-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
이준환
www.joonhwan.org

Klaim - Joël Lamotte

unread,
Feb 14, 2013, 7:32:18 PM2/14/13
to Art Of Sequence Development



On Fri, Feb 15, 2013 at 12:33 AM, Joonhwan Lee <joonhw...@gmail.com> wrote:
Bottom line. : please continue to use CMake build system and I hope we can build AOS with cmake --build command. 


Actually it's not that simple: it seems that the current CMake scripts don't work nicely with QtCreator/GCC4.7 (ignore clang for windows for now).
I will put this problem aside and will get back to it when I or someone else wanting to use something else can't manage to make CMake work.

I indeed don't plan to move away from CMake, it's unperfect but it solves too much problems right now.

Joel Lamotte

Joonhwan Lee

unread,
Feb 14, 2013, 11:05:23 PM2/14/13
to aos...@googlegroups.com
Hmm. Maybe I think I don't seem to have enough experience with QtCreator(especially using it with CMake).
But for AOS, I reluctantly give it a try to use QtCreator no matter it uses CMake or not.

Joon


PS: What exactly you want to achieve w/ or w/o a ceratin tool could be shared with the member of this group and possibly we can talk about it.



2013/2/15 Klaim - Joël Lamotte <mjk...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Art Of Sequence Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aos-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
이준환
www.joonhwan.org

Joonhwan Lee

unread,
Feb 15, 2013, 12:57:29 AM2/15/13
to aos...@googlegroups.com
That's good. I am waiting to see it working in my box!

2013년 2월 14일 목요일에 Klaim - Joël Lamotte님이 작성:
Joel Lamotte

--
You received this message because you are subscribed to the Google Groups "Art Of Sequence Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aos-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 


--
이준환
www.joonhwan.org

Klaim - Joël Lamotte

unread,
Mar 1, 2013, 10:21:46 AM3/1/13
to aos...@googlegroups.com
I've set an issue to fix this problem: https://github.com/artofsequence/aos-designer/issues/2

Joel Lamotte

Reply all
Reply to author
Forward
0 new messages