openFrameworks-RaspberryPi / openFrameworks

This repo has migrated into the openFramworks core! Please go to http://github.com/openFrameworks/openFrameworks for the latest!
http://github.com/openFrameworks/openFrameworks
Other
104 stars 11 forks source link

Update Project Generator to work on E-Linux Systems #3

Open bakercp opened 11 years ago

bakercp commented 11 years ago

Fix project generator to easily generate files using the new makefile system.

bakercp commented 11 years ago

This means a deeper integration with the new makefile system. Headless operation should be working well at this point with @arturoc's latest updates.

kalwalt commented 11 years ago

trying to build the PG i got this error:

obj/armv7lDebug/src/main.o: In function main': /home/walter/openFrameworks-develop-raspberrypi/apps/projectGenerator/projectGeneratorSimple/src/main.cpp:11: undefined reference toofAppGlutWindow::ofAppGlutWindow()' obj/armv7lDebug/src/main.o: In function ~ofAppGlutWindow': /home/walter/openFrameworks-develop-raspberrypi/apps/projectGenerator/projectGeneratorSimple/../../../libs/openFrameworks/app/ofAppGlutWindow.h:16: undefined reference tovtable for ofAppGlutWindow' collect2: ld returned 1 exit status make: *\ [bin/projectGeneratorSimple_debug] Error 1 there has been a problem compiling the projectGenerator please report this problem in the forums

i m'using the develop-raspberrypi branch . This issue was fixed?

danzeeeman commented 11 years ago

Not that I know of. The PG doesnt compile yet for the pi. You should look at the makefile_example is apps/devApps and copy:Makefile and config.make to the project you wish to build. On Dec 12, 2012 9:04 AM, "Walter Perdan" notifications@github.com wrote:

trying to build the PG i got this error:

obj/armv7lDebug/src/main.o: In function main': /home/walter/openFrameworks-develop-raspberrypi/apps/projectGenerator/projectGeneratorSimple/src/main.cpp:11: undefined reference toofAppGlutWindow::ofAppGlutWindow()' obj/armv7lDebug/src/main.o: In function ~ofAppGlutWindow': /home/walter/openFrameworks-develop-raspberrypi/apps/projectGenerator/projectGeneratorSimple/../../../libs/openFrameworks/app/ofAppGlutWindow.h:16: undefined reference tovtable for ofAppGlutWindow' collect2: ld returned 1 exit status make: *\ [bin/projectGeneratorSimple_debug] Error 1 there has been a problem compiling the projectGenerator please report this problem in the forums

i m'using the develop-raspberrypi branch . This issue was fixed?

— Reply to this email directly or view it on GitHubhttps://github.com/openFrameworks-RaspberryPi/openFrameworks/issues/3#issuecomment-11289753.

kalwalt commented 11 years ago

ok i understood. Copy and paste will be my setup for Pandaboard dev!

arturoc commented 11 years ago

for the PG to work you'll need to change main.cpp to not use ofAppGlutWindow check any of the examples to see how it works.

using the linux config it should work but creating a project is just a matter of copying the Makefile and config.make from the makefile example in devApps

kalwalt commented 11 years ago

ok but this will works also for the Pandaboard? Are you using the PG ?

danzeeeman commented 11 years ago

The PG is pretty useless for this I mean you only need the Makefile, config.make, addons.make, and a src dir for the project. We could make a script or update the PG tonjist generate the addons.make, dir structure, blank cpp and header files, and copy the makefile & config.make. On Dec 12, 2012 9:39 AM, "Walter Perdan" notifications@github.com wrote:

ok but this will works also for the Pandaboard? Are you using the PG ?

— Reply to this email directly or view it on GitHubhttps://github.com/openFrameworks-RaspberryPi/openFrameworks/issues/3#issuecomment-11291045.

arturoc commented 11 years ago

That is actually what the linux version of the PG does + generates the codeblocks projects so it should work for arm too

On 12/12/2012 03:44 PM, Dan Moore wrote:

The PG is pretty useless for this I mean you only need the Makefile, config.make, addons.make, and a src dir for the project. We could make a script or update the PG tonjist generate the addons.make, dir structure, blank cpp and header files, and copy the makefile & config.make. On Dec 12, 2012 9:39 AM, "Walter Perdan" notifications@github.com wrote:

ok but this will works also for the Pandaboard? Are you using the PG ?

— Reply to this email directly or view it on GitHubhttps://github.com/openFrameworks-RaspberryPi/openFrameworks/issues/3#issuecomment-11291045.

— Reply to this email directly or view it on GitHub https://github.com/openFrameworks-RaspberryPi/openFrameworks/issues/3#issuecomment-11291227.

kalwalt commented 11 years ago

i will see if i can make it works for arm. i think it is a nice tool. Now i'will test other examples and after ofxARToolkit addon (but before i need to build the arm lib for it) and ofxSuperCollider. I will inform you of my progress.

bakercp commented 11 years ago

Hello all, I've done work on PG over on this branch : https://github.com/openFrameworks-RaspberryPi/openFrameworks/tree/makefile-cleanup

The current issue is getting the PG's custom xml lib to compile. It should be possible, but the makefile system needs to be tweaked a little more. If you are interested in getting it to work, please check it out.

CB

kalwalt commented 11 years ago

i'm currently working on it . This is the branch: https://github.com/kalwalt/openFrameworks/tree/kalwalt-projectGenerator-develop-armv7l . I have the GUI but it'is not working properly. ofxGui works good outside the PG (i checked with the ofxGui example) . I've also change in ofUtils.cpp ofGetTargetPlatform() to accept armv7l arch. I have the suspect that ofAppNoWindow not works properly at the moment.