Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changed oF/addons to a C project for eclipse #2936

Merged
merged 2 commits into from Apr 15, 2014

Conversation

fx-lange
Copy link
Contributor

addons is still no C project for eclipse. this way it isn't possible to rebuild the index or to use code completion, call hierarchy or symbol following in its full capacity.
(for example try to jump from ofxSlider.h to ofxBaseGui via F3 in line 7)

I always import from "existing code as makefile project" instead of "existing projects ..." when it comes to oF/addons. I'm using the Linux GCC Toolchain for the indexer.

for me it works fine but I have to rebuild the indexer from time to time.

@bilderbuchi
Copy link
Member

that sounds good. that always annoyed me, but I never kenw how to fix it.
what about the libs/.project project, does that have to be converted to a .cproject, too?

pinging @arturoc

@fx-lange
Copy link
Contributor Author

I'm not sure right now - never stumbled over this. perhaps I never digged that deep and because libs/openFrameworks is itself a C project.

for example I find AbstractPriorityDelegate in the resources (Strg + Shift + O) but can't jump to it from ofDelegate.h.

arturoc added a commit that referenced this pull request Apr 15, 2014
changed oF/addons to a C project for eclipse
@arturoc arturoc merged commit d4b0c07 into openframeworks:master Apr 15, 2014
@arturoc
Copy link
Member

arturoc commented Apr 15, 2014

i've been lately just importing the addons i use as linked folders in the projects, it's a little bit more work but it works well. not sure about the libs project, since OF is inside libs it can be problematic but haven't really tried

@fx-lange fx-lange deleted the feature-addonsEclipse branch April 16, 2014 02:58
@bilderbuchi
Copy link
Member

@fx-lange @arturoc can you build without issue with this new addons project? when I build the openframeworks project in eclipse, I get an error/problem report about the addons project: make: *** No rule to make targetall'. Stop.` (which seems logical, as you can't "build" the addons project"). how did you solve this?

@fx-lange
Copy link
Contributor Author

@bilderbuchi, sorry for the late reply. For me - I just ignored the error. There is this run anyway dialogue - and I checked it as default. Compared to other eclipse+oF problems before this was just a minor issue for me.

One option would be to create a "do nothing" makefile?

@bilderbuchi
Copy link
Member

Ah, a somewhat dirty workaround, but I'll look for this run anyway thing. I'm not sure if having a no-op makefile would be a good approach. @arturoc ?

@fx-lange
Copy link
Contributor Author

Yes it is, I tried a Makefile like this

all:
Release:
Debug:

and get make: Nothing to be done for 'all'. which is just a notice/warning. Another option would be the make option -v. If we add make -v to the Build command under C/C++ Build settings - we get a short print out about make but don't need extra files. The modification would be saved in the addons/.cproject. Still "hacky" but only visible for Eclipse users.

arturoc added a commit that referenced this pull request Jul 15, 2014
@bilderbuchi
Copy link
Member

@fx-lange I just now realized this, but please don't force-add files (as you must have done for addons/.cproject). If git ignores a file, either don't add the file (because it's not a good idea to), or adjust/update the .gitignore pattern so that the file is not being ignored (or ask for help with this).

@fx-lange
Copy link
Contributor Author

argh, you are right - sorry for that. does this cause any trouble? should I update the .gitignore accordingly?

@bilderbuchi
Copy link
Member

it's not a big deal, I just wanted to flag this for you in case you were unaware. I have already corrected the gitignore pattern

MartinHN pushed a commit to MartinHN/openFrameworks that referenced this pull request Dec 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants