Author Message

<  Compiling Issues  ~  Linux-friendly version

PostPosted: Sat Jan 09, 2010 7:50 pm
Posts: 3Joined: Sat Jan 09, 2010 7:40 pm
Hi all,

I just finished my 'alpha' prototype of the glasses and tried it out with the Mac OS X version of the calibration program. It works! Whoo-hoo!

However, in the long run, I'd like to get the software running under Linux. This would enable me to create a bootable USB stick with everything installed and ready to go, ready to be used on any PC and even many Intel-based Macs.

I figured since this project was based on openFrameworks, it should be relatively straightforward to get running under Linux, but unfortunately, the downloads available are very IDE-dependent. No makefiles or anything.

Has anyone gotten this software running under Linux? I don't have a lot of experience with ofx, but I have at least built the examples under Linux. Anyone know how to put together a makefile for this project, like the ones that are in the Linux distribution of ofx?

Thanks in advance for any help/pointers!


Offline Profile
PostPosted: Tue Jan 12, 2010 3:09 pm
Posts: 15Joined: Tue Nov 10, 2009 9:21 pm
I will ping arturo, the linux genius behind the OF package, he could help with compiling this for linux. I think the only non standard thing is getting GSL working and maybe making sure the ps3 works fine, but I can't imagine that's too tricky, since it's a very popular package.

the linux OF apps do all come with makefiles (which are generated from CBP), and there is a script that should install all the necessary packages.

Also, I know chris has been rocking linux too, so maybe she can help.

hope to have linux eyewriter up and running soon !

take care,
zach


Offline Profile
PostPosted: Tue Jan 12, 2010 4:46 pm
Posts: 2Joined: Tue Jan 12, 2010 4:39 pm
hey hey

have just tried to compile it with the makefiles and it works almost out of the box:

- download the source package.
- download OF 0061
- run the install_dependencies and install_codeblocks scripts in scripts/ubuntu
- uncompress the temptTracker folder in apps/eyeWriter/temptTracker
- copy the two attached files to this post in that folder
- install gsl:
Code:
sudo apt-get install libgsl0-dev

-compile:
Code:
make

- run:
Code:
cd bin
./clickToLaunchApp_Release.sh

- have fun! ; )

will post the codeblocks files, just did the makefiles as it's super easy to setup.

haven't really tried with a camera just that it compiles and run, but tell me if there's any problem

arturo
Attachments:
eyew_makefile.tar.gz [2.2 KiB]
Downloaded 107 times

Offline Profile
PostPosted: Tue Jan 12, 2010 6:55 pm
Posts: 3Joined: Sat Jan 09, 2010 7:40 pm
Awesome. Thanks for the quick replies guys. I'll give it a shot and let you know how it turns out.


Offline Profile
PostPosted: Tue Jan 12, 2010 7:31 pm
Posts: 3Joined: Sat Jan 09, 2010 7:40 pm
Bingo. Thanks arturo. Everything worked without a hitch (except that 'fullscreen' just maximizes the window - no 'true' fullscreen). By the way I should note that the latest Linux kernels have support for the PS3 eye built in...all you need to do is plug it in.

Could you tell me how you made the makefile? I've never had to bother with doing that myself, so I'd be interested in learning. I guess I'll need to put together a makefile for the drawing app, too.

Thanks again for the help guys.


Offline Profile
PostPosted: Tue Jan 12, 2010 10:52 pm
Posts: 2Joined: Tue Jan 12, 2010 4:39 pm
in linux the fullscreen mode doesn't work, it just maximizes the window, but you can get true fullscreen by using OF_GAME_MODE instead of OF_FULLSCREEN

about the makefile, in 0061 there's a new makefile system that autodetects almost everything, if you copy the makefile that i posted to any project (or any of the makefiles that come with the examples) and type:

make help

you'll get some explanations on how to use it. there's only 4 variables at the beginning of the file that you need to edit, everything else should just work.

also if you want to use some addon, just edit the addons.make file and add a new line with the name of the addon that you want to use. as long as it is in the addons folder and it's folder structure is the same as the official ones it should work.


Offline Profile
PostPosted: Tue Mar 09, 2010 6:44 pm
Posts: 1Joined: Tue Mar 09, 2010 6:25 pm
i am trying to get the eyetracker application to work on karmic running on a mpb.
openframeworks is installed and all the example apps are working well.
i dowloaded the mac-osx package and followed the instructions in this thread(installed gsl and copied the makefiles), but when i try to use make all i get is a huge amount of errors.

it seems that g++ can't find some of the gsl header files, but gsl is installed. it just can'T figure out, where it's going from. plese help


this is the g++ call, make executes and the first errors occuring:

Code:
g++ -march=core2 -O3 -Wall -fexceptions -I.  -I../../../libs/FreeImage/include -I../../../libs/fmodex/include -I../../../libs/freetype/include -I../../../libs/freetype/include/freetype2 -I../../../libs/freetype/include/freetype2/freetype -I../../../libs/freetype/include/freetype2/freetype/config -I../../../libs/glee/include -I../../../libs/gstappsink/include -I../../../libs/gstappsink/include/gst -I../../../libs/gstappsink/include/gst/app -I../../../libs/poco/include -I../../../libs/poco/include/Poco -I../../../libs/poco/include/Poco/Util -I../../../libs/poco/include/Poco/Net -I../../../libs/poco/include/Poco/XML -I../../../libs/poco/include/Poco/SAX -I../../../libs/poco/include/Poco/DOM -I../../../libs/poco/include/Poco/Dynamic -I../../../libs/poco/include/CppUnit -I../../../libs/rtAudio/include -I../../../libs/unicap/include -I../../../libs/openFrameworks/ -I../../../libs/openFrameworks/app -I../../../libs/openFrameworks/communication -I../../../libs/openFrameworks/utils -I../../../libs/openFrameworks/video -I../../../libs/openFrameworks/sound -I../../../libs/openFrameworks/events -I../../../libs/openFrameworks/graphics `pkg-config  gstreamer-0.10 gstreamer-video-0.10 gstreamer-base-0.10 libudev --cflags` -I../../../addons/ofx3DModelLoader/src/ -I../../../addons/ofx3DModelLoader/src/3DS -I../../../addons/ofxDirList/src/ -I../../../addons/ofxNetwork/src/ -I../../../addons/ofxOpenCv/src/ -I../../../addons/ofxOsc/src/ -I../../../addons/ofxThread/src/ -I../../../addons/ofxVectorGraphics/src/ -I../../../addons/ofxVectorMath/src/ -I../../../addons/ofxXmlSettings/src/ -I../../../addons/ofxOpenCv/libs/ -I../../../addons/ofxOpenCv/libs/opencv -I../../../addons/ofxOpenCv/libs/opencv/lib -I../../../addons/ofxOpenCv/libs/opencv/lib/linux -I../../../addons/ofxOpenCv/libs/opencv/include -I../../../addons/ofxOsc/libs/ -I../../../addons/ofxOsc/libs/oscpack -I../../../addons/ofxOsc/libs/oscpack/lib -I../../../addons/ofxOsc/libs/oscpack/lib/linux -I../../../addons/ofxOsc/libs/oscpack/include -I../../../addons/ofxOsc/libs/oscpack/include/osc -I../../../addons/ofxOsc/libs/oscpack/include/ip -I../../../addons/ofxVectorGraphics/libs/ -I../../../addons/ofxXmlSettings/libs/ -Isrc/calibration -Isrc/gsl  -Isrc/gsl/gsl -Isrc/utils/buttons -Isrc/utils/ofxControlPanel -Isrc/tracking -o obj/Release/src/calibration/calibrationManager.o -c `echo obj/Release/src/calibration/calibrationManager.o | sed "s/obj\\/Release\\///" | sed "s/\.o/\.cpp/"`
In file included from src/calibration/calibrationManager.cpp:3:
src/gsl/gsl_math.h:23:21: error: gsl_sys.h: No such file or directory
src/calibration/calibrationManager.cpp:5:21: error: gsl_fit.h: No such file or directory
src/calibration/calibrationManager.cpp:6:26: error: gsl_multifit.h: No such file or directory
src/calibration/calibrationManager.cpp:7:31: error: gsl_multifit_nlin.h: No such file or directory
src/calibration/calibrationManager.cpp:8:22: error: gsl_blas.h: No such file or directory
src/calibration/calibrationManager.cpp:9:28: error: gsl_ieee_utils.h: No such file or directory


Offline Profile
PostPosted: Sun Mar 21, 2010 10:32 am
Posts: 2Joined: Sun Mar 21, 2010 9:18 am
@extralooping -- if the gsl development headers are installed, try searching your filesystem for one of the files and then modify the makefile to include the appropriate path (add -Ipath/to/headers). Although, from my experience, installing the mentioned package on 9.10 works perfectly well.

@arturo -- This works great on Ubuntu 9.10 64bit . Thank you everyone!

Cheers,
Jason


Offline Profile
PostPosted: Sat Jul 10, 2010 1:32 pm
Posts: 2Joined: Wed Jul 07, 2010 9:01 pm
Hey guys.
I just tried a linux compile on Fedora 12. Everything compiles fine, but when I run the program, I get this hideous error:

Quote:
./clickToLaunchApp_Release.sh
/home/alex/openframeworks/apps/temp1/eyeWriterTracker/bin

(<unknown>:7878): GStreamer-WARNING **: pad source:src returned caps which are not a real subset of its template caps

(<unknown>:7878): GStreamer-WARNING **: pad source:src returned caps which are not a real subset of its template caps

(<unknown>:7878): GStreamer-WARNING **: pad video_source:src returned caps which are not a real subset of its template caps
./clickToLaunchApp_Release.sh: line 5: 7878 Illegal instruction (core dumped) ./eyeWriterTracker


I've attached the make log. The other attached file is stuff that wasn't caught by piping make's output

Thanks for any help,
-MrOzBarry
Attachments:
File comment: Stuff make > * didn't catch
make-eyewriter-uncaught.tar.gz [2.84 KiB]
Downloaded 17 times

File comment: this is from commanline:
make > make-eyewriter
I tar.gz'd it.
make-eyewriter.tar.gz [2.43 KiB]
Downloaded 18 times

Offline Profile

Display posts from previous:  Sort by:

All times are UTC
Page 1 of 1
9 posts
Users browsing this forum: No registered users and 1 guest
Search for:
Post new topic  Reply to topic
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
cron