I have done particle simulation using the BoostCompute
This header-only library depends on the OpenCL framework. I want to include this library in the OF as well.
It would be nice to refer me to similar example where the thrid-party library has been included in any of the OF sample project. I would be a hint to serve my purpose.
I believe that the generated makefile has to go through some changes. Some reference to those possible changes would be helpful.
I checked the config.make file for one of the examples and noticed that the whole content of the file is commented.
I am not sure if the file is used at all.
For example i am inside the directory fboTrailExample and the directory contains the config.make file and your are suggesting to make the necessary changes as you suggested in your previous post, right?
Now , do i have to change anything else inside the config.make file if create several .h and .cpp files inside the directory that will be used the project - “fboTrailExample”
Sometimes it depends on what OS you are working on. I needed to change that file to make the ofxOpenNI samples work properly on Ubuntu.
If your app doesn’t need extra libraries, which means the ones that come with OF are enough, you don’t need to change/add anything. Many extra addons need their own libraries and then it could be necessary to add an include path or library by changing this file It is useful to read. their readme it gives you an idea of what you need to install.
I didn’t digg on your example to respond if you need or not to add something.
Now the very first line is giving me the following error:
e/src/main.o -o obj/linux/Release/src/main.o -c src/main.cpp
In file included from ../../../libs/openFrameworks/utils/ofConstants.h:344:0,
from ../../../libs/openFrameworks/ofMain.h:5,
from src/main.cpp:1:
/usr/include/c++/4.6/cmath:99:11: error: ‘::acos’ has not been declared
/usr/include/c++/4.6/cmath:115:11: error: ‘::asin’ has not been declared
/usr/include/c++/4.6/cmath:131:11: error: ‘::atan’ has not been declared
/usr/include/c++/4.6/cmath:147:11: error: ‘::atan2’ has not been declared
/usr/include/c++/4.6/cmath:166:11: error: ‘::ceil’ has not been declared
/usr/include/c++/4.6/cmath:182:11: error: ‘::cos’ has not been declared
/usr/include/c++/4.6/cmath:198:11: error: ‘::cosh’ has not been declared
/usr/include/c++/4.6/cmath:214:11: error: ‘::exp’ has not been declared
/usr/include/c++/4.6/cmath:230:11: error: ‘::fabs’ has not been declared
/usr/include/c++/4.6/cmath:246:11: error: ‘::floor’ has not been declared
/usr/include/c++/4.6/cmath:262:11: error: ‘::fmod’ has not been declared
/usr/include/c++/4.6/cmath:272:11: error: ‘::frexp’ has not been declared
/usr/include/c++/4.6/cmath:288:11: error: ‘::ldexp’ has not been declared
/usr/include/c++/4.6/cmath:304:11: error: ‘::log’ has not been declared
/usr/include/c++/4.6/cmath:320:11: error: ‘::log10’ has not been declared
/usr/include/c++/4.6/cmath:336:11: error: ‘::modf’ has not been declared
/usr/include/c++/4.6/cmath:346:11: error: ‘::pow’ has not been declared
/usr/include/c++/4.6/cmath:381:11: error: ‘::sin’ has not been declared
/usr/include/c++/4.6/cmath:397:11: error: ‘::sinh’ has not been declared
/usr/include/c++/4.6/cmath:413:11: error: ‘::sqrt’ has not been declared
/usr/include/c++/4.6/cmath:429:11: error: ‘::tan’ has not been declared
/usr/include/c++/4.6/cmath:445:11: error: ‘::tanh’ has not been declared
/usr/include/c++/4.6/cmath: In function ‘typename __gnu_cxx::__enable_if<std::__is_arithmetic<_Tp>::__value, int>::__type std::fpclassify(_Tp)’:
/usr/include/c++/4.6/cmath:737:35: error: ‘FP_NAN’ was not declared in this scope
/usr/include/c++/4.6/cmath:737:43: error: ‘FP_INFINITE’ was not declared in this scope
/usr/include/c++/4.6/cmath:737:56: error: ‘FP_NORMAL’ was not declared in this scope
/usr/include/c++/4.6/cmath:738:7: error: ‘FP_SUBNORMAL’ was not declared in this scope
/usr/include/c++/4.6/cmath:738:21: error: ‘FP_ZERO’ was not declared in this scope
In file included from ../../../libs/openFrameworks/types/ofPoint.h:3:0,
from ../../../libs/openFrameworks/math/ofMath.h:15,
from ../../../libs/openFrameworks/types/ofColor.h:5,
from ../../../libs/openFrameworks/types/ofTypes.h:4,
from ../../../libs/openFrameworks/utils/ofLog.h:5,
from ../../../libs/openFrameworks/ofMain.h:7,
from src/main.cpp:1:
../../../libs/openFrameworks/math/ofVec3f.h: In member function ‘ofVec3f ofVec3f::getRotated(float, float, float) const’:
../../../libs/openFrameworks/math/ofVec3f.h:566:38: error: call of overloaded ‘cos(double)’ is ambiguous
../../../libs/openFrameworks/math/ofVec3f.h:566:38: note: candidates are:
/usr/include/c++/4.6/cmath:185:3: note: float std::cos(float)
/usr/include/c++/4.6/cmath:189:3: note: long double std::cos(long double)
../../../libs/openFrameworks/math/ofVec3f.h:567:38: error: call of overloaded ‘sin(double)’ is ambiguous
../../../libs/openFrameworks/math/ofVec3f.h:567:38: note: candidates are:
/usr/include/c++/4.6/cmath:384:3: note: float std::sin(float)
/usr/include/c++/4.6/cmath:388:3: note: long double std::sin(long double)
../../../libs/openFrameworks/math/ofVec3f.h:568:38: error: call of overloaded ‘cos(double)’ is ambiguous
../../../libs/openFrameworks/math/ofVec3f.h:568:38: note: candidates are:
/usr/include/c++/4.6/cmath:185:3: note: float std::cos(float)
/usr/include/c++/4.6/cmath:189:3: note: long double std::cos(long double)
../../../libs/openFrameworks/math/ofVec3f.h:569:38: error: call of overloaded ‘sin(double)’ is ambiguous
../../../libs/openFrameworks/math/ofVec3f.h:569:38: note: candidates are:
/usr/include/c++/4.6/cmath:384:3: note: float std::sin(float)
/usr/include/c++/4.6/cmath:388:3: note: long double std::sin(long double)
../../../libs/openFrameworks/math/ofVec3f.h:570:38: error: call of overloaded ‘cos(double)’ is ambiguous
../../../libs/openFrameworks/math/ofVec3f.h:570:38: note: candidates are:
/usr/include/c++/4.6/cmath:185:3: note: float std::cos(float)
/usr/include/c++/4.6/cmath:189:3: note: long double std::cos(long double)
../../../libs/openFrameworks/math/ofVec3f.h:571:38: error: call of overloaded ‘sin(double)’ is ambiguous
../../../libs/openFrameworks/math/ofVec3f.h:571:38: note: candidates are:
/usr/include/c++/4.6/cmath:384:3: note: float std::sin(float)
/usr/include/c++/4.6/cmath:388:3: note: long double std::sin(long double)
../../../libs/openFrameworks/math/ofVec3f.h: In member function ‘ofVec3f& ofVec3f::rotate(float, float, float)’:
../../../libs/openFrameworks/math/ofVec3f.h:597:38: error: call of overloaded ‘cos(double)’ is ambiguous
../../../libs/openFrameworks/math/ofVec3f.h:597:38: note: candidates are:
/usr/include/c++/4.6/cmath:185:3: note: float std::cos(float)
/usr/include/c++/4.6/cmath:189:3: note: long double std::cos(long double)
../../../libs/openFrameworks/math/ofVec3f.h:598:38: error: call of overloaded ‘sin(double)’ is ambiguous
../../../libs/openFrameworks/math/ofVec3f.h:598:38: note: candidates are:
/usr/include/c++/4.6/cmath:384:3: note: float std::sin(float)
/usr/include/c++/4.6/cmath:388:3: note: long double std::sin(long double)
../../../libs/openFrameworks/math/ofVec3f.h:599:38: error: call of overloaded ‘cos(double)’ is ambiguous
../../../libs/openFrameworks/math/ofVec3f.h:599:38: note: candidates are:
/usr/include/c++/4.6/cmath:185:3: note: float std::cos(float)
/usr/include/c++/4.6/cmath:189:3: note: long double std::cos(long double)
../../../libs/openFrameworks/math/ofVec3f.h:600:38: error: call of overloaded ‘sin(double)’ is ambiguous
../../../libs/openFrameworks/math/ofVec3f.h:600:38: note: candidates are:
/usr/include/c++/4.6/cmath:384:3: note: float std::sin(float)
/usr/include/c++/4.6/cmath:388:3: note: long double std::sin(long double)
../../../libs/openFrameworks/math/ofVec3f.h:601:38: error: call of overloaded ‘cos(double)’ is ambiguous
../../../libs/openFrameworks/math/ofVec3f.h:601:38: note: candidates are:
/usr/include/c++/4.6/cmath:185:3: note: float std::cos(float)
/usr/include/c++/4.6/cmath:189:3: note: long double std::cos(long double)
../../../libs/openFrameworks/math/ofVec3f.h:602:38: error: call of overloaded ‘sin(double)’ is ambiguous
../../../libs/openFrameworks/math/ofVec3f.h:602:38: note: candidates are:
/usr/include/c++/4.6/cmath:384:3: note: float std::sin(float)
/usr/include/c++/4.6/cmath:388:3: note: long double std::sin(long double)
In file included from ../../../libs/openFrameworks/types/ofColor.h:5:0,
from ../../../libs/openFrameworks/types/ofTypes.h:4,
from ../../../libs/openFrameworks/utils/ofLog.h:5,
from ../../../libs/openFrameworks/ofMain.h:7,
from src/main.cpp:1:
../../../libs/openFrameworks/math/ofMath.h: In function ‘Type ofInterpolateCosine(Type, Type, float)’:
../../../libs/openFrameworks/math/ofMath.h:91:22: error: call of overloaded ‘cos(double&)’ is ambiguous
../../../libs/openFrameworks/math/ofMath.h:91:22: note: candidates are:
/usr/include/c++/4.6/cmath:185:3: note: float std::cos(float)
/usr/include/c++/4.6/cmath:189:3: note: long double std::cos(long double)
In file included from ../../../libs/poco/include/Poco/Mutex.h:57:0,
from ../../../libs/openFrameworks/types/ofTypes.h:69,
from ../../../libs/openFrameworks/utils/ofLog.h:5,
from ../../../libs/openFrameworks/ofMain.h:7,
from src/main.cpp:1:
../../../libs/poco/include/Poco/Mutex_POSIX.h: In member function ‘bool Poco::MutexImpl::tryLockImpl()’:
../../../libs/poco/include/Poco/Mutex_POSIX.h:91:17: error: ‘EBUSY’ was not declared in this scope
make[1]: *** [obj/linux/Release/src/main.o] Error 1
make[1]: Leaving directory `/home/sajjad/Downloads/openFrameworks/release/of_v0.8.1_linux_release/apps/myApps/mySmokeParticles'
make: *** [Release] Error 2
If i comment the first line i do not get this error. But i need to provide the path for the OpenCL include file.
Sorry for my late response. I have no much info of the configuration, installation and so on this library requires.
It seems some include path are missing in the config.make file or maybe wrong settled.
(I took for granted you already did it within the code #include ·your_library.h")