Skip to content
This repository has been archived by the owner on Dec 1, 2020. It is now read-only.

CodeBlocks each time recompile the ofxUI headers #56

Closed
perov opened this issue Aug 16, 2012 · 3 comments
Closed

CodeBlocks each time recompile the ofxUI headers #56

perov opened this issue Aug 16, 2012 · 3 comments

Comments

@perov
Copy link

perov commented Aug 16, 2012

Hello!

Small pre-history: (I have raised this question here: http://forum.openframeworks.cc/index.php/topic,10257.0.html)

I am developing a relatively simple C++ project in Ubuntu, basing on the OpenFrameworks toolkit, including the addon ofxUI. I use the CodeBlocks as IDE.

Each time when I build the project, it seems that the CodeBlocks and the gcc recompile all ofxUI files, in spite of the fact that these files have not been changed. In this case, it takes very much time to build the project every time even after a very tiny editing.

There is the "build log": http://pastebin.com/AMrRMAAY

I have tried to include ofxUI files to the CodeBlocks, but it does not benefit anyhow. I believe the solution for this problem should be very simple, it seems I do not understand something in the compilation process.

Main part

Thanks to arturo from the openFrameworks forum, he has supposed that the problem is that the whole ofxUI code is in header files, there are no "*.cpp" files. Could you tell, please, maybe, there is some solution to avoid recompiling the whole ofxUI code each time, excepting the solution to reprogram the ofxUI in a way of separating *.h and *.cpp files?

Thank you in advance!

@rezaali
Copy link
Owner

rezaali commented Aug 16, 2012

Hi @perov thanks for pointing this out. When I first started developing ofxUI, I just started coding like a crazy person to meet a deadline, hence why there aren't any .cpp files. Since then I have quite a bit about making libraries (esp. with C++).

ofxUI needs to be separated into .h and .cpp files for this issue to be resolved...unfortunately I won't have the time to do this in the next two weeks.

May I suggest you try building the application in xCode on OSX, then taking the finished code and porting it to Ubuntu and CodeBlocks? That way development time would be quicker and you would only need to finish off touches in CodeBlocks.

Lets discuss.

@rezaali
Copy link
Owner

rezaali commented Dec 31, 2013

done, check out the develop branch!

@rezaali rezaali closed this as completed Dec 31, 2013
@perov
Copy link
Author

perov commented Jan 1, 2014

Excuse me, please, I was a bit busy that time year ago, and then moved to another project. Thank you very much! Happy New Year! :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants