On 03/25/2013 07:25 AM, Jose G�mez wrote:
> Great! I will try it ASAP. However, I am having trouble compiling
> JavaCV. After removing some files that were causing missing
> dependencies (GL*, *CL, ART*, and a few others), this is the error
> that I currently get:
Or you could build with something like `mvn clean package -Pffmpeg`
> /home/user/javacv/build/classes/com/googlecode/javacv/cpp/jniopencv_core.cpp:
> In function �_jobject*
> Java_com_googlecode_javacv_cpp_opencv_1core_cvRedirectError(JNIEnv*,
> jclass, jobject, jobject, jobject)�:
> /home/user/javacv/build/classes/com/googlecode/javacv/cpp/jniopencv_core.cpp:19705:125:
> error: invalid conversion from �char**� to �void**� [-fpermissive]
> In file included from
> /home/user/javacv/build/classes/com/googlecode/javacv/cpp/opencv_adapters.h:21:0,
> from
> /home/user/javacv/build/classes/com/googlecode/javacv/cpp/jniopencv_core.cpp:57:
> /usr/local/include/opencv2/core/core_c.h:1760:24: error:
> initializing argument 3 of �int (* cvRedirectError(CvErrorCallback,
> void*, void**))(int, const char*, const char*, const char*, int,
> void*)� [-fpermissive]
> /home/user/javacv/build.xml:30: Java returned: 1
> BUILD FAILED (total time: 1 minute 15 seconds)
>
> Any suggestion?
Yeah, it looks like the latest modifications I made to JavaCPP
introduced a couple of compile warnings there. As indicated by GCC, use
the -fpermissive option. Something like this should do the trick: `mvn
clean package -Pffmpeg -Djavacpp.options="-Xcompiler -fpermissive"`
Samuel