[Q] Compile Android camera from sources - libjni-mosaic.so error - Android Q&A, Help & Troubleshooting

I've been trying to compile the ICS/JB Camera application from sources.
Tried both Android sources and CyanogenMod camera app sources.
I got all the classes and resources I need and even managed to make the camera application run and work with stills and video recording.
The only problem I encountered is the Panorama mode, which is the whole reason I'm doing that in the first place
The Panorama mode requires the libjni-mosaic.so shared library.
I downloaded the JNI folder from CyanogenMod sources and using Cygwin and Android-NDK-r8 I tried to build the cpp files.
It started out good but then I got this error:
Code:
Compile++ thumb : jni_mosaic <= feature_mos_jni.cpp
Compile++ thumb : jni_mosaic <= mosaic_renderer_jni.cpp
Compile++ thumb : jni_mosaic <= trsMatrix.cpp
Compile++ thumb : jni_mosaic <= AlignFeatures.cpp
Compile++ thumb : jni_mosaic <= Blend.cpp
Compile++ thumb : jni_mosaic <= Delaunay.cpp
Compile++ thumb : jni_mosaic <= ImageUtils.cpp
Compile++ thumb : jni_mosaic <= Mosaic.cpp
Compile++ thumb : jni_mosaic <= Pyramid.cpp
Compile++ thumb : jni_mosaic <= Renderer.cpp
Compile++ thumb : jni_mosaic <= WarpRenderer.cpp
Compile++ thumb : jni_mosaic <= SurfaceTextureRenderer.cpp
Compile++ thumb : jni_mosaic <= YVURenderer.cpp
Compile++ thumb : jni_mosaic <= FrameBuffer.cpp
Compile++ thumb : jni_mosaic <= db_feature_detection.cpp
Compile++ thumb : jni_mosaic <= db_feature_matching.cpp
Compile++ thumb : jni_mosaic <= db_framestitching.cpp
Compile++ thumb : jni_mosaic <= db_image_homography.cpp
Compile++ thumb : jni_mosaic <= db_rob_image_homography.cpp
Compile++ thumb : jni_mosaic <= db_utilities.cpp
Compile++ thumb : jni_mosaic <= db_utilities_camera.cpp
Compile++ thumb : jni_mosaic <= db_utilities_indexing.cpp
Compile++ thumb : jni_mosaic <= db_utilities_linalg.cpp
Compile++ thumb : jni_mosaic <= db_utilities_poly.cpp
Compile++ thumb : jni_mosaic <= dbreg.cpp
Compile++ thumb : jni_mosaic <= dbstabsmooth.cpp
Compile thumb : jni_mosaic <= vp_motionmodel.c
SharedLibrary : libjni_mosaic.so
./obj/local/armeabi/objs/jni_mosaic/mosaic_renderer_jni.o: In function `bindSurfaceTexture(unsigned int)':
D:\Scamera/jni/mosaic_renderer_jni.cpp:192: undefined reference to `glBindTexture'
D:\Scamera/jni/mosaic_renderer_jni.cpp:196: undefined reference to `glTexParameterf'
D:\Scamera/jni/mosaic_renderer_jni.cpp:198: undefined reference to `glTexParameterf'
D:\Scamera/jni/mosaic_renderer_jni.cpp:201: undefined reference to `glTexParameteri'
D:\Scamera/jni/mosaic_renderer_jni.cpp:203: undefined reference to `glTexParameteri'
./obj/local/armeabi/objs/jni_mosaic/mosaic_renderer_jni.o: In function `Java_com_scam_app_camera_panorama_MosaicRenderer_init':
D:\Scamera/jni/mosaic_renderer_jni.cpp:500: undefined reference to `glBindFramebuffer'
D:\Scamera/jni/mosaic_renderer_jni.cpp:502: undefined reference to `glGenTextures'
./obj/local/armeabi/objs/jni_mosaic/mosaic_renderer_jni.o: In function `checkGlError(char const*)':
D:\Scamera/jni/mosaic_renderer_jni.cpp:182: undefined reference to `glGetError'
./obj/local/armeabi/objs/jni_mosaic/mosaic_renderer_jni.o: In function `Java_com_scam_app_camera_panorama_MosaicRenderer_transferGPUtoCPU':
D:\Scamera/jni/mosaic_renderer_jni.cpp:668: undefined reference to `glBindFramebuffer'
D:\Scamera/jni/mosaic_renderer_jni.cpp:676: undefined reference to `glReadPixels'
D:\Scamera/jni/mosaic_renderer_jni.cpp:681: undefined reference to `glBindFramebuffer'
D:\Scamera/jni/mosaic_renderer_jni.cpp:689: undefined reference to `glReadPixels'
./obj/local/armeabi/objs/jni_mosaic/feature_mos/src/mosaic_renderer/Renderer.o: In function `Renderer::SetupGraphics(FrameBuffer*)':
D:\Scamera/jni/feature_mos/src/mosaic_renderer/Renderer.cpp:157: undefined reference to `glUseProgram'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/Renderer.cpp:160: undefined reference to `glBindFramebuffer'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/Renderer.cpp:166: undefined reference to `glViewport'
./obj/local/armeabi/objs/jni_mosaic/feature_mos/src/mosaic_renderer/Renderer.o: In function `Renderer::SetupGraphics(int, int)':
D:\Scamera/jni/feature_mos/src/mosaic_renderer/Renderer.cpp:126: undefined reference to `glUseProgram'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/Renderer.cpp:129: undefined reference to `glBindFramebuffer'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/Renderer.cpp:135: undefined reference to `glViewport'
./obj/local/armeabi/objs/jni_mosaic/feature_mos/src/mosaic_renderer/Renderer.o: In function `Renderer::Clear(float, float, float, float)':
D:\Scamera/jni/feature_mos/src/mosaic_renderer/Renderer.cpp:185: undefined reference to `glClearColor'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/Renderer.cpp:186: undefined reference to `glClear'
./obj/local/armeabi/objs/jni_mosaic/feature_mos/src/mosaic_renderer/Renderer.o: In function `Renderer::loadShader(unsigned int, char const*)':
D:\Scamera/jni/feature_mos/src/mosaic_renderer/Renderer.cpp:39: undefined reference to `glCreateShader'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/Renderer.cpp:41: undefined reference to `glShaderSource'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/Renderer.cpp:42: undefined reference to `glCompileShader'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/Renderer.cpp:44: undefined reference to `glGetShaderiv'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/Renderer.cpp:47: undefined reference to `glGetShaderiv'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/Renderer.cpp:51: undefined reference to `glGetShaderInfoLog'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/Renderer.cpp:56: undefined reference to `glDeleteShader'
./obj/local/armeabi/objs/jni_mosaic/feature_mos/src/mosaic_renderer/Renderer.o: In function `Renderer::createProgram(char const*, char const*)':
D:\Scamera/jni/feature_mos/src/mosaic_renderer/Renderer.cpp:78: undefined reference to `glCreateProgram'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/Renderer.cpp:81: undefined reference to `glAttachShader'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/Renderer.cpp:83: undefined reference to `glAttachShader'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/Renderer.cpp:86: undefined reference to `glLinkProgram'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/Renderer.cpp:88: undefined reference to `glGetProgramiv'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/Renderer.cpp:95: undefined reference to `glGetProgramiv'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/Renderer.cpp:106: undefined reference to `glDeleteProgram'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/Renderer.cpp:101: undefined reference to `glGetProgramInfoLog'
./obj/local/armeabi/objs/jni_mosaic/feature_mos/src/mosaic_renderer/WarpRenderer.o: In function `WarpRenderer::DrawTexture(float*)':
D:\Scamera/jni/feature_mos/src/mosaic_renderer/WarpRenderer.cpp:119: undefined reference to `glDisable'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/WarpRenderer.cpp:121: undefined reference to `glActiveTexture'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/WarpRenderer.cpp:125: undefined reference to `glBindTexture'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/WarpRenderer.cpp:129: undefined reference to `glUniform1i'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/WarpRenderer.cpp:133: undefined reference to `glVertexAttribPointer'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/WarpRenderer.cpp:137: undefined reference to `glVertexAttribPointer'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/WarpRenderer.cpp:139: undefined reference to `glEnableVertexAttribArray'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/WarpRenderer.cpp:140: undefined reference to `glEnableVertexAttribArray'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/WarpRenderer.cpp:143: undefined reference to `glUniformMatrix4fv'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/WarpRenderer.cpp:144: undefined reference to `glUniformMatrix4fv'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/WarpRenderer.cpp:145: undefined reference to `glUniformMatrix4fv'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/WarpRenderer.cpp:148: undefined reference to `glDrawElements'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/WarpRenderer.cpp:152: undefined reference to `glBindFramebuffer'
./obj/local/armeabi/objs/jni_mosaic/feature_mos/src/mosaic_renderer/WarpRenderer.o: In function `WarpRenderer::InitializeGLProgram()':
D:\Scamera/jni/feature_mos/src/mosaic_renderer/WarpRenderer.cpp:101: undefined reference to `glDeleteProgram'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/WarpRenderer.cpp:82: undefined reference to `glUseProgram'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/WarpRenderer.cpp:86: undefined reference to `glGetAttribLocation'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/WarpRenderer.cpp:87: undefined reference to `glGetUniformLocation'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/WarpRenderer.cpp:88: undefined reference to `glGetUniformLocation'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/WarpRenderer.cpp:89: undefined reference to `glGetUniformLocation'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/WarpRenderer.cpp:90: undefined reference to `glGetAttribLocation'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/WarpRenderer.cpp:93: undefined reference to `glGetUniformLocation'
./obj/local/armeabi/objs/jni_mosaic/feature_mos/src/mosaic_renderer/SurfaceTextureRenderer.o: In function `SurfaceTextureRenderer::DrawTexture(float*)':
D:\Scamera/jni/feature_mos/src/mosaic_renderer/SurfaceTextureRenderer.cpp:132: undefined reference to `glDisable'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/SurfaceTextureRenderer.cpp:134: undefined reference to `glActiveTexture'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/SurfaceTextureRenderer.cpp:138: undefined reference to `glBindTexture'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/SurfaceTextureRenderer.cpp:141: undefined reference to `glUniformMatrix4fv'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/SurfaceTextureRenderer.cpp:142: undefined reference to `glUniformMatrix4fv'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/SurfaceTextureRenderer.cpp:146: undefined reference to `glVertexAttribPointer'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/SurfaceTextureRenderer.cpp:147: undefined reference to `glEnableVertexAttribArray'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/SurfaceTextureRenderer.cpp:150: undefined reference to `glVertexAttribPointer'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/SurfaceTextureRenderer.cpp:151: undefined reference to `glEnableVertexAttribArray'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/SurfaceTextureRenderer.cpp:154: undefined reference to `glDrawElements'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/SurfaceTextureRenderer.cpp:156: undefined reference to `glBindFramebuffer'
./obj/local/armeabi/objs/jni_mosaic/feature_mos/src/mosaic_renderer/SurfaceTextureRenderer.o: In function `SurfaceTextureRenderer::InitializeGLProgram()':
D:\Scamera/jni/feature_mos/src/mosaic_renderer/SurfaceTextureRenderer.cpp:114: undefined reference to `glDeleteProgram'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/SurfaceTextureRenderer.cpp:96: undefined reference to `glUseProgram'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/SurfaceTextureRenderer.cpp:99: undefined reference to `glGetAttribLocation'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/SurfaceTextureRenderer.cpp:101: undefined reference to `glGetAttribLocation'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/SurfaceTextureRenderer.cpp:103: undefined reference to `glGetUniformLocation'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/SurfaceTextureRenderer.cpp:105: undefined reference to `glGetUniformLocation'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/SurfaceTextureRenderer.cpp:107: undefined reference to `glPixelStorei'
./obj/local/armeabi/objs/jni_mosaic/feature_mos/src/mosaic_renderer/YVURenderer.o: In function `YVURenderer::DrawTexture()':
D:\Scamera/jni/feature_mos/src/mosaic_renderer/YVURenderer.cpp:88: undefined reference to `glDisable'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/YVURenderer.cpp:90: undefined reference to `glActiveTexture'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/YVURenderer.cpp:94: undefined reference to `glBindTexture'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/YVURenderer.cpp:98: undefined reference to `glUniform1i'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/YVURenderer.cpp:102: undefined reference to `glVertexAttribPointer'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/YVURenderer.cpp:106: undefined reference to `glVertexAttribPointer'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/YVURenderer.cpp:108: undefined reference to `glEnableVertexAttribArray'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/YVURenderer.cpp:109: undefined reference to `glEnableVertexAttribArray'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/YVURenderer.cpp:112: undefined reference to `glDrawElements'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/YVURenderer.cpp:116: undefined reference to `glBindFramebuffer'
./obj/local/armeabi/objs/jni_mosaic/feature_mos/src/mosaic_renderer/YVURenderer.o: In function `YVURenderer::InitializeGLProgram()':
D:\Scamera/jni/feature_mos/src/mosaic_renderer/YVURenderer.cpp:70: undefined reference to `glDeleteProgram'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/YVURenderer.cpp:54: undefined reference to `glUseProgram'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/YVURenderer.cpp:58: undefined reference to `glGetAttribLocation'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/YVURenderer.cpp:59: undefined reference to `glGetAttribLocation'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/YVURenderer.cpp:62: undefined reference to `glGetUniformLocation'
./obj/local/armeabi/objs/jni_mosaic/feature_mos/src/mosaic_renderer/FrameBuffer.o: In function `FrameBuffer::CreateBuffers()':
D:\Scamera/jni/feature_mos/src/mosaic_renderer/FrameBuffer.cpp:70: undefined reference to `glGenFramebuffers'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/FrameBuffer.cpp:71: undefined reference to `glGenTextures'
./obj/local/armeabi/objs/jni_mosaic/feature_mos/src/mosaic_renderer/FrameBuffer.o: In function `FrameBuffer::Init(int, int, unsigned int)':
D:\Scamera/jni/feature_mos/src/mosaic_renderer/FrameBuffer.cpp:30: undefined reference to `glBindFramebuffer'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/FrameBuffer.cpp:31: undefined reference to `glBindTexture'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/FrameBuffer.cpp:41: undefined reference to `glTexImage2D'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/FrameBuffer.cpp:45: undefined reference to `glTexParameteri'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/FrameBuffer.cpp:46: undefined reference to `glTexParameteri'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/FrameBuffer.cpp:49: undefined reference to `glTexParameteri'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/FrameBuffer.cpp:50: undefined reference to `glTexParameteri'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/FrameBuffer.cpp:57: undefined reference to `glFramebufferTexture2D'
D:\Scamera/jni/feature_mos/src/mosaic_renderer/FrameBuffer.cpp:65: undefined reference to `glBindFramebuffer'
collect2: ld returned 1 exit status
/cygdrive/c/android-ndk/build/core/build-binary.mk:369: recipe for target `obj/local/armeabi/libjni_mosaic.so' failed
make: *** [obj/local/armeabi/libjni_mosaic.so] Error 1
I can understand that some methods references are missing but I really don't know how to solve that.
I'd appreciate if anyone that already went through this process can help.
If you prefer to earn SO points, you can help there: http://stackoverflow.com/questions/13108603/ndk-error-trying-to-build-cyanogenmod-camera-application
Thank you!

Related

Recommend compile method and environment for su?

Edit 2:
I think I finally fixed this. The author needs to clean up this mess though. There is no reason to have to play a guessing game to compile something. Here are the fixes:
error: android_filesystem_config.h: No such file or directory
fix:
copy ~SOURCE_DIRECTORY/system/core/include/cutils
copy ~SOURCE_DIRECTORY/system/core/include/private
error: redefinition of 'struct iovec'
fix: remove body of source version of uio.h (there is an ndk and source version)
struct iovec {
const void* iov_base;
size_t iov_len;
};
extern int readv( int fd, struct iovec* vecs, int count );
extern int writev( int fd, const struct iovec* vecs, int count );
error: undefined reference to '__android_log_print'
fix: after LOCAL_STATIC_LIBRARIES add...
LOCAL_LDLIBS := -llog
Edit:
I have worked around this problem by using another version of the su/superuser source that I had downloaded previously.
A few changes were necessary to get superuser to compile:
add build.xml, add project.properties, add local.properties
r.java (remove line):
package koushikdutta.superuser;
strings.xml (change line):
remove " ' " from "phone's"
To compile su:
./agcc su.c -o su -I~/WORKING_DIRECTORY/external/sqlite/dist/ -I~/WORKING_DIRECTORY/bionic/libc/include/ -lsqlite
You can find the original source and my source link with all changes premade attached to this post or at this thread:
http://forum.xda-developers.com/showthread.php?t=1392593
I have tried to compile ChainDD's tar.gz from Github both with the NDK and with agcc. I am running 64 bit Debian Squeeze with the latest Android sources compiled and the NDK and SDK installed.
This line or variants:
agcc ~/bin/external/sqlite/dist/ -lsqlite su.c -o su -ldiskconfig -lcutils
gives:
undefined reference to 'send_intent'
ndk-build was not so good either. I had to do a lot of stuff to Android.mk to get it to continue further but still was not able to fully compile with it.
I have been able to compile another version of su I have found with agcc but it is only 10.5 Kb so I am not sure if it will work. I was also able to compile Zergrush with agcc.
I will reference these threads which show people having the same trouble as I am.
http://forum.xda-developers.com/showthread.php?t=1062551
http://stackoverflow.com/questions/5153355/compile-su-for-android
https://github.com/ChainsDD/su-binary/issues/1
Anyone out there that can help? I have not done much cross compiling before now. Thanks.
Is there anyone out there who can help with this?
agcc Compiler
Command:
./agcc activity.cpp su.h su.c -o su -I/home/jason/WORKING_DIRECTORY/external/sqlite/dist/ -lsqlite
Error:
su.h:41: error: expected specifier-qualifier-list before 'pid_t'
CodeSourcery Toolchain Compiler
Command:
arm-none-linux-gnueabi-gcc -o su -static su.c su.h activity.cpp -I/home/jason/WORKING_DIRECTORY/system/core/include/ -I/home/jason/WORKING_DIRECTORY/frameworks/base/include/ -I/home/jason/WORKING_DIRECTORY/external/sqlite/dist/
Error:
In file included from /home/jason/WORKING_DIRECTORY/system/core/include/cutils/log.h:40:0,
from su.c:40:
/home/jason/WORKING_DIRECTORY/system/core/include/cutils/uio.h:33:8: error: redefinition of 'struct iovec'
/home/jason/CodeSourcery/Sourcery_G++_Lite/bin/../arm-none-linux-gnueabi/libc/usr/include/bits/uio.h:44:8: note: originally defined here
/home/jason/WORKING_DIRECTORY/system/core/include/cutils/uio.h:38:13: error: conflicting types for 'readv'
/home/jason/CodeSourcery/Sourcery_G++_Lite/bin/../arm-none-linux-gnueabi/libc/usr/include/sys/uio.h:40:16: note: previous declaration of 'readv' was here
/home/jason/WORKING_DIRECTORY/system/core/include/cutils/uio.h:39:13: error: conflicting types for 'writev'
/home/jason/CodeSourcery/Sourcery_G++_Lite/bin/../arm-none-linux-gnueabi/libc/usr/include/sys/uio.h:51:16: note: previous declaration of 'writev' was here
su.h:41:5: error: expected specifier-qualifier-list before 'pid_t'
In file included from activity.cpp:27:0:
su.h:43:14: error: 'PATH_MAX' was not declared in this scope
activity.cpp: In function 'int send_intent(su_initiator*, su_request*, const char*, int, int)':
activity.cpp:93:47: error: 'struct su_initiator' has no member named 'bin'
Maybe the OpenMoko Toolchain is needed to compile?
There must be someone somewhere out there (ChainsDD?) who has compiled this.
So I decided to make changes to get it to compile further.
su.h old:
struct su_initiator {
pid_t pid;
unsigned uid;
char bin[PATH_MAX];
char args[4096];
};
su.h new:
struct su_initiator{
unsigned pid_t;
unsigned pid;
unsigned uid;
char bin[PATH_MAX];
char args[4096];
};
That gets past the first error.
Then I get:
error: 'PATH_MAX' undeclared here (not in a function)
su.h old:
struct su_initiator{
unsigned pid_t;
unsigned pid;
unsigned uid;
char bin[PATH_MAX];
char args[4096];
};
su.h new:
struct su_initiator{
unsigned pid_t;
unsigned pid;
unsigned uid;
char bin[4096];
char args[4096];
};
Now I get a linker error:
Code:
/tmp/cckee4ip.o: In function `socket_create_temp':
su.c:(.text.socket_create_temp+0x114): warning: warning: mktemp() possibly used unsafely; consider using mkstemp()
/tmp/cciiLW0A.o: In function `send_intent':
activity.cpp:(.text.send_intent+0xb8): undefined reference to `android::defaultServiceManager()'
activity.cpp:(.text.send_intent+0x12c): undefined reference to `android::Parcel::Parcel()'
activity.cpp:(.text.send_intent+0x138): undefined reference to `android::Parcel::Parcel()'
activity.cpp:(.text.send_intent+0x168): undefined reference to `android::Parcel::writeInterfaceToken(android::String16 const&)'
activity.cpp:(.text.send_intent+0x1a4): undefined reference to `android::Parcel::writeStrongBinder(android::sp<android::IBinder> const&)'
activity.cpp:(.text.send_intent+0x1f8): undefined reference to `android::Parcel::writeString16(android::String16 const&)'
activity.cpp:(.text.send_intent+0x238): undefined reference to `android::Parcel::writeString16(android::String16 const&)'
activity.cpp:(.text.send_intent+0x254): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x268): undefined reference to `android::Parcel::writeString16(unsigned short const*, unsigned int)'
activity.cpp:(.text.send_intent+0x278): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x298): undefined reference to `android::Parcel::writeString16(unsigned short const*, unsigned int)'
activity.cpp:(.text.send_intent+0x2ac): undefined reference to `android::Parcel::writeString16(unsigned short const*, unsigned int)'
activity.cpp:(.text.send_intent+0x2bc): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x2d8): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x2e8): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x2f4): undefined reference to `android::Parcel::dataPosition() const'
activity.cpp:(.text.send_intent+0x30c): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x31c): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x32c): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x35c): undefined reference to `android::Parcel::writeString16(android::String16 const&)'
activity.cpp:(.text.send_intent+0x378): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x394): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x3a4): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x3d4): undefined reference to `android::Parcel::writeString16(android::String16 const&)'
activity.cpp:(.text.send_intent+0x3f0): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x41c): undefined reference to `android::Parcel::writeString16(android::String16 const&)'
activity.cpp:(.text.send_intent+0x438): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x468): undefined reference to `android::Parcel::writeString16(android::String16 const&)'
activity.cpp:(.text.send_intent+0x484): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x4a0): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x4b0): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x4e0): undefined reference to `android::Parcel::writeString16(android::String16 const&)'
activity.cpp:(.text.send_intent+0x4fc): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x528): undefined reference to `android::Parcel::writeString16(android::String16 const&)'
activity.cpp:(.text.send_intent+0x544): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x574): undefined reference to `android::Parcel::writeString16(android::String16 const&)'
activity.cpp:(.text.send_intent+0x590): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x5b4): undefined reference to `android::Parcel::writeString16(android::String16 const&)'
activity.cpp:(.text.send_intent+0x5d0): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x600): undefined reference to `android::Parcel::writeString16(android::String16 const&)'
activity.cpp:(.text.send_intent+0x61c): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x62c): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x63c): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x66c): undefined reference to `android::Parcel::writeString16(android::String16 const&)'
activity.cpp:(.text.send_intent+0x688): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x698): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x6a4): undefined reference to `android::Parcel::dataPosition() const'
activity.cpp:(.text.send_intent+0x6c8): undefined reference to `android::Parcel::setDataPosition(unsigned int) const'
activity.cpp:(.text.send_intent+0x6e4): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x6f8): undefined reference to `android::Parcel::setDataPosition(unsigned int) const'
activity.cpp:(.text.send_intent+0x70c): undefined reference to `android::Parcel::writeString16(unsigned short const*, unsigned int)'
activity.cpp:(.text.send_intent+0x71c): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x74c): undefined reference to `android::Parcel::writeStrongBinder(android::sp<android::IBinder> const&)'
activity.cpp:(.text.send_intent+0x774): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x788): undefined reference to `android::Parcel::writeString16(unsigned short const*, unsigned int)'
activity.cpp:(.text.send_intent+0x798): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x7c8): undefined reference to `android::Parcel::writeString16(android::String16 const&)'
activity.cpp:(.text.send_intent+0x7e4): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x7f4): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x804): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x888): undefined reference to `android::Parcel::~Parcel()'
activity.cpp:(.text.send_intent+0x894): undefined reference to `android::Parcel::~Parcel()'
collect2: ld returned 1 exit status
I have tried editing the includes in activity.cpp but still with the same errors. Where to go from here?

[Q] Need some help with building cm7 and stock? Having the same issues on both!

I keep running into the same error when compiling cm7 and stock kernels:
Does anyone know of a fix?
Those are not sad faces they are ":" "(" without quotes
arch/arm/mach-msm/built-in.o: In function `parse_tag_msm_partition':
/home/anthony/android/kernel/cm-kernel/arch/arm/mach-msm/nand_partitions.c:126: undefined reference to `msm_nand_data'
arch/arm/mach-msm/built-in.o: In function `sapphire_init':
/home/anthony/android/kernel/cm-kernel/arch/arm/mach-msm/board-sapphire.c:1186: undefined reference to `msm_device_uart_dm1'
arch/arm/mach-msm/built-in.o: In function `sapphire_map_io':
/home/anthony/android/kernel/cm-kernel/arch/arm/mach-msm/board-sapphire.c:1282: undefined reference to `msm_num_clocks_7x01a'
/home/anthony/android/kernel/cm-kernel/arch/arm/mach-msm/board-sapphire.c:1282: undefined reference to `msm_clocks_7x01a'
arch/arm/mach-msm/built-in.o: In function `sapphire_init_panel':
/home/anthony/android/kernel/cm-kernel/arch/arm/mach-msm/board-sapphire-panel.c:1268: undefined reference to `msm_device_mdp'
/home/anthony/android/kernel/cm-kernel/arch/arm/mach-msm/board-sapphire-panel.c:1268: undefined reference to `msm_device_mddi0'
arch/arm/mach-msm/built-in.o: In function `sapphire_init_mmc':
/home/anthony/android/kernel/cm-kernel/arch/arm/mach-msm/board-sapphire-mmc.c:352: undefined reference to `msm_add_sdcc'
/home/anthony/android/kernel/cm-kernel/arch/arm/mach-msm/board-sapphire-mmc.c:355: undefined reference to `msm_add_sdcc'
arch/arm/mach-msm/built-in.o: In function `msm_add_usb_devices':
/home/anthony/android/kernel/cm-kernel/arch/arm/mach-msm/devices_htc.c:206: undefined reference to `msm_device_hsusb'
arch/arm/mach-msm/built-in.o.init.data+0xa0): undefined reference to `msm_device_smd'
arch/arm/mach-msm/built-in.o.init.data+0xa4): undefined reference to `msm_device_nand'
arch/arm/mach-msm/built-in.o.init.data+0xa8): undefined reference to `msm_device_i2c'
arch/arm/mach-msm/built-in.o.init.data+0xac): undefined reference to `msm_device_uart1'
arch/arm/mach-msm/built-in.o.init.data+0xb0): undefined reference to `msm_device_uart3'
arch/arm/mach-msm/built-in.o.init.data+0xb4): undefined reference to `msm_device_uart_dm1'
drivers/built-in.o: In function `msm_i2c_recover_bus_busy':
/home/anthony/android/kernel/cm-kernel/drivers/i2c/busses/i2c-msm.c:276: undefined reference to `msm_set_i2c_mux'
/home/anthony/android/kernel/cm-kernel/drivers/i2c/busses/i2c-msm.c:314: undefined reference to `msm_set_i2c_mux'
drivers/built-in.o: In function `msm_i2c_probe':
/home/anthony/android/kernel/cm-kernel/drivers/i2c/busses/i2c-msm.c:492: undefined reference to `msm_set_i2c_mux'
make: *** [.tmp_vmlinux1] Error 1

Porting THC Hydra to android

Have someone done it?
I'm doing something wrong
Code:
/tmp/ccZLbjr3.o: In function `read_safe':
hydra.c:(.text+0x2e4): undefined reference to `debug'
/tmp/ccZLbjr3.o: In function `hydra_debug':
hydra.c:(.text+0x10c8): undefined reference to `hydra_address2string'
hydra.c:(.text+0x13ec): undefined reference to `debug'
/tmp/ccZLbjr3.o: In function `hydra_restore_write':
hydra.c:(.text+0x1cc8): undefined reference to `debug'
hydra.c:(.text+0x1cd8): undefined reference to `bf_options'
/tmp/ccZLbjr3.o: In function `hydra_restore_read':
hydra.c:(.text+0x28e8): undefined reference to `bf_options'
hydra.c:(.text+0x28f0): undefined reference to `verbose'
hydra.c:(.text+0x28f4): undefined reference to `waittime'
hydra.c:(.text+0x28fc): undefined reference to `port'
hydra.c:(.text+0x2918): undefined reference to `debug'
/tmp/ccZLbjr3.o: In function `killed_childs_report':
hydra.c:(.text+0x34e0): undefined reference to `debug'
/tmp/ccZLbjr3.o: In function `kill_children':
hydra.c:(.text+0x3690): undefined reference to `verbose'
/tmp/ccZLbjr3.o: In function `hydra_service_init':
hydra.c:(.text+0x3b14): undefined reference to `service_cisco_enable_init'
hydra.c:(.text+0x3b8c): undefined reference to `service_cvs_init'
hydra.c:(.text+0x3c04): undefined reference to `service_cisco_init'
hydra.c:(.text+0x3c9c): undefined reference to `service_ftp_init'
hydra.c:(.text+0x3d54): undefined reference to `service_http_form_init'
hydra.c:(.text+0x3dcc): undefined reference to `service_http_proxy_init'
hydra.c:(.text+0x3e44): undefined reference to `service_http_proxy_urlenum_init'
hydra.c:(.text+0x3ebc): undefined reference to `service_icq_init'
hydra.c:(.text+0x3f34): undefined reference to `service_imap_init'
hydra.c:(.text+0x3fb0): undefined reference to `service_ldap_init'
hydra.c:(.text+0x4028): undefined reference to `service_mssql_init'
hydra.c:(.text+0x40a0): undefined reference to `service_nntp_init'
hydra.c:(.text+0x4118): undefined reference to `service_pcanywhere_init'
hydra.c:(.text+0x4190): undefined reference to `service_pcnfs_init'
hydra.c:(.text+0x4208): undefined reference to `service_pop3_init'
hydra.c:(.text+0x4280): undefined reference to `service_rexec_init'
hydra.c:(.text+0x42f8): undefined reference to `service_rlogin_init'
hydra.c:(.text+0x4370): undefined reference to `service_rsh_init'
hydra.c:(.text+0x43e8): undefined reference to `service_smtp_init'
hydra.c:(.text+0x4460): undefined reference to `service_smtp_enum_init'
hydra.c:(.text+0x44d8): undefined reference to `service_snmp_init'
hydra.c:(.text+0x4550): undefined reference to `service_socks5_init'
hydra.c:(.text+0x45c8): undefined reference to `service_teamspeak_init'
hydra.c:(.text+0x4640): undefined reference to `service_telnet_init'
hydra.c:(.text+0x46b8): undefined reference to `service_vmauthd_init'
hydra.c:(.text+0x4730): undefined reference to `service_vnc_init'
hydra.c:(.text+0x47a8): undefined reference to `service_xmpp_init'
hydra.c:(.text+0x47e0): undefined reference to `port'
/tmp/ccZLbjr3.o: In function `hydra_spawn_head':
hydra.c:(.text+0x4a44): undefined reference to `cmdlinetarget'
hydra.c:(.text+0x4a5c): undefined reference to `debug'
hydra.c:(.text+0x4ae0): undefined reference to `port'
hydra.c:(.text+0x4c60): undefined reference to `service_telnet'
hydra.c:(.text+0x4ce8): undefined reference to `service_ftp'
hydra.c:(.text+0x4d70): undefined reference to `service_ftps'
hydra.c:(.text+0x4df8): undefined reference to `service_pop3'
hydra.c:(.text+0x4e80): undefined reference to `service_imap'
hydra.c:(.text+0x4f08): undefined reference to `service_vmauthd'
hydra.c:(.text+0x4f90): undefined reference to `service_ldap2'
hydra.c:(.text+0x5018): undefined reference to `service_ldap3'
hydra.c:(.text+0x50a0): undefined reference to `service_http_head'
hydra.c:(.text+0x5128): undefined reference to `service_ldap3_cram_md5'
hydra.c:(.text+0x51b0): undefined reference to `service_ldap3_digest_md5'
hydra.c:(.text+0x5238): undefined reference to `service_http_get'
hydra.c:(.text+0x52c0): undefined reference to `service_http_get_form'
hydra.c:(.text+0x5348): undefined reference to `service_http_post_form'
hydra.c:(.text+0x53d0): undefined reference to `service_http_proxy'
hydra.c:(.text+0x5458): undefined reference to `service_http_proxy_urlenum'
hydra.c:(.text+0x54e0): undefined reference to `service_cisco'
hydra.c:(.text+0x5568): undefined reference to `service_cisco_enable'
hydra.c:(.text+0x55f0): undefined reference to `service_socks5'
hydra.c:(.text+0x5678): undefined reference to `service_vnc'
hydra.c:(.text+0x5700): undefined reference to `service_rexec'
hydra.c:(.text+0x5788): undefined reference to `service_rlogin'
hydra.c:(.text+0x5810): undefined reference to `service_rsh'
hydra.c:(.text+0x5898): undefined reference to `service_nntp'
hydra.c:(.text+0x5920): undefined reference to `service_icq'
hydra.c:(.text+0x59a8): undefined reference to `service_pcnfs'
hydra.c:(.text+0x5a30): undefined reference to `service_mssql'
hydra.c:(.text+0x5ab8): undefined reference to `service_pcanywhere'
hydra.c:(.text+0x5b40): undefined reference to `service_cvs'
hydra.c:(.text+0x5bc8): undefined reference to `service_snmp'
hydra.c:(.text+0x5c50): undefined reference to `service_smtp'
hydra.c:(.text+0x5cd8): undefined reference to `service_smtp_enum'
hydra.c:(.text+0x5d60): undefined reference to `service_teamspeak'
hydra.c:(.text+0x5e08): undefined reference to `service_xmpp'
hydra.c:(.text+0x5e90): undefined reference to `service_irc'
hydra.c:(.text+0x6124): undefined reference to `port'
hydra.c:(.text+0x6150): undefined reference to `debug'
/tmp/ccZLbjr3.o: In function `hydra_increase_fail_count':
hydra.c:(.text+0x6fac): undefined reference to `debug'
hydra.c:(.text+0x6fd0): undefined reference to `port'
hydra.c:(.text+0x6fd8): undefined reference to `verbose'
/tmp/ccZLbjr3.o: In function `hydra_send_next_pair':
hydra.c:(.text+0x80a8): undefined reference to `verbose'
hydra.c:(.text+0x80e4): undefined reference to `HYDRA_EXIT'
hydra.c:(.text+0x80fc): undefined reference to `debug'
hydra.c:(.text+0x978c): undefined reference to `debug'
hydra.c:(.text+0x979c): undefined reference to `verbose'
/tmp/ccZLbjr3.o: In function `hydra_skip_user':
hydra.c:(.text+0x9bf4): undefined reference to `debug'
/tmp/ccZLbjr3.o: In function `hydra_check_for_exit_condition':
hydra.c:(.text+0x9d44): undefined reference to `debug'
/tmp/ccZLbjr3.o: In function `main':
hydra.c:(.text+0x9f74): undefined reference to `hydra_string_replace'
hydra.c:(.text+0x9fd0): undefined reference to `hydra_string_replace'
hydra.c:(.text+0xa02c): undefined reference to `hydra_string_replace'
hydra.c:(.text+0xa088): undefined reference to `hydra_string_replace'
hydra.c:(.text+0xa0e4): undefined reference to `hydra_string_replace'
/tmp/ccZLbjr3.o:hydra.c:(.text+0xa140): more undefined references to `hydra_string_replace' follow
/tmp/ccZLbjr3.o: In function `main':
hydra.c:(.text+0xaec8): undefined reference to `verbose'
hydra.c:(.text+0xaecc): undefined reference to `found'
hydra.c:(.text+0xaed0): undefined reference to `proxy_string_ip'
hydra.c:(.text+0xaed4): undefined reference to `proxy_string_port'
hydra.c:(.text+0xaed8): undefined reference to `proxy_string_type'
hydra.c:(.text+0xaee0): undefined reference to `proxy_authentication'
hydra.c:(.text+0xaee4): undefined reference to `waittime'
hydra.c:(.text+0xaef8): undefined reference to `colored_output'
hydra.c:(.text+0xaf44): undefined reference to `use_proxy'
hydra.c:(.text+0xaf84): undefined reference to `port'
hydra.c:(.text+0xaf90): undefined reference to `debug'
hydra.c:(.text+0xaf98): undefined reference to `cmdlinetarget'
hydra.c:(.text+0xcefc): undefined reference to `port'
hydra.c:(.text+0xd008): undefined reference to `use_proxy'
hydra.c:(.text+0xf054): undefined reference to `proxy_string_ip'
hydra.c:(.text+0xf058): undefined reference to `proxy_string_ip'
hydra.c:(.text+0xf05c): undefined reference to `proxy_string_ip'
hydra.c:(.text+0xf064): undefined reference to `proxy_string_port'
hydra.c:(.text+0xf074): undefined reference to `proxy_string_type'
hydra.c:(.text+0xf07c): undefined reference to `proxy_authentication'
hydra.c:(.text+0xf0bc): undefined reference to `port'
hydra.c:(.text+0xf0ec): undefined reference to `debug'
hydra.c:(.text+0xf0f4): undefined reference to `use_proxy'
hydra.c:(.text+0xf10c): undefined reference to `fe80'
hydra.c:(.text+0xf124): undefined reference to `verbose'
hydra.c:(.text+0xf19c): undefined reference to `hydra_strcasestr'
hydra.c:(.text+0xf1ec): undefined reference to `hydra_tobase64'
hydra.c:(.text+0x10f5c): undefined reference to `verbose'
hydra.c:(.text+0x10f64): undefined reference to `waittime'
hydra.c:(.text+0x10f88): undefined reference to `debug'
collect2: error: ld returned 1 exit status
THC-HYDRA v.7.4.2 for Android.
You can make a hydra with C4droid+gcc
Maybe someone will want to make GUI?
fann95 said:
THC-HYDRA v.7.4.2 for Android.
You can make a hydra with C4droid+gcc
Maybe someone will want to make GUI?
Click to expand...
Click to collapse
Where did you find THC-Hydra v.7.4.2 for android? And if it ported by you, how did you port THC-Hydra v.7.4.2 to android?
Exuse me for my English, because I'm from Russia.
GUI
fann95 said:
THC-HYDRA v.7.4.2 for Android.
You can make a hydra with C4droid+gcc
Maybe someone will want to make GUI?
Click to expand...
Click to collapse
Hello fann95!
Porting THChydra with a GUI is maybe not a good idea, because THChydra is much more powerful with command lines. I will test the Android version that you've linked, to see if the help is included in the app. The help in command lines is, i think, enough to use THChydra. It is my opinion as Linux purist.
But yes, i saw the difference on Linux, with and without GUI, and the speed is highly increased without the GUI to find the website's login/pass pairs.
Maybe my answer will not help you so much. It is just an opinion.
Kind regards,
Saladin.
All is written.
Crazy_Jlox said:
Where did you find THC-Hydra v.7.4.2 for android? And if it ported by you, how did you port THC-Hydra v.7.4.2 to android?
Exuse me for my English, because I'm from Russia.
Click to expand...
Click to collapse
Hi!
All is written: he's working on it.
Hydra
fann95 said:
THC-HYDRA v.7.4.2 for Android.
You can make a hydra with C4droid+gcc
Maybe someone will want to make GUI?
Click to expand...
Click to collapse
Thanks for the download, it worked great!
A gui would be fun but it is really not that hard to run hydra --help first and learn how to type in the command line arguments.
Need help
fann95 said:
THC-HYDRA v.7.4.2 for Android.
You can make a hydra with C4droid+gcc
Maybe someone will want to make GUI?
Click to expand...
Click to collapse
Could you explain to me step by step on how to install Hydra on Android? Thanks
Could you explain to me step by step on how to install Hydra on Android? Thanks
How to flash these tools?
How to flash these tools?
I connect with my phone. When I open install.bat, it automatically reboot.
And nothing installed. Please fix this problem.
Thanks...
Hello
i want to know how to port hydra to android with c4droid
thanks
I was also searching for installing hydra THC on android .could ani one help me
Sent from my X1 Grand using XDA Free mobile app
fann95 said:
THC-HYDRA v.7.4.2 for Android.
You can make a hydra with C4droid+gcc
Maybe someone will want to make GUI?
Click to expand...
Click to collapse
After dl zips and extracting cant seem to get this going in t.e ?
Sent from my LG-D855 using XDA-Developers mobile app
THC-HYDRA 8.4 android binary download
took me less than 5 minutes to port.
thc-hydra-8.4 android binary
s000.tinyupload.com/?file_id=20379290594400353120
Your welcome,
happy hacking
~ Magizian
Hey is there someone who knows how the use Thc Hydra on a Website I forgot my Passwort for something but sadly I don't know how to use thc hydra :/

[Q]compiling my own android from source

hi guys i need to post here my question because i can't figure it out by myself.. i have already search my problem if there is another person who also struggling in this kind of chaos
did someone know where i did wrong in compiling my android..
kindly check the few part of the error while compiling..
er_mulps'
/root/qrd/external/qemu/target-i386/ops_sse_header.h:145: undefined reference to `helper_mulss'
/root/qrd/external/qemu/target-i386/ops_sse_header.h:145: undefined reference to `helper_mulpd'
/root/qrd/external/qemu/target-i386/ops_sse_header.h:145: undefined reference to `helper_mulsd'
/root/qrd/external/qemu/target-i386/ops_sse_header.h:146: undefined reference to `helper_divps'
/root/qrd/external/qemu/target-i386/ops_sse_header.h:146: undefined reference to `helper_divss'
/root/qrd/external/qemu/target-i386/ops_sse_header.h:146: undefined reference to `helper_divpd'
/root/qrd/external/qemu/target-i386/ops_sse_header.h:146: undefined reference to `helper_divsd'
/root/qrd/external/qemu/target-i386/ops_sse_header.h:147: undefined reference to `helper_minps'
/root/qrd/external/qemu/target-i386/ops_sse_header.h:147: undefined reference to `helper_minss'
/root/qrd/external/qemu/target-i386/ops_sse_header.h:147: undefined reference to `helper_minpd'
/root/qrd/external/qemu/target-i386/ops_sse_header.h:147: undefined reference to `helper_minsd'
/root/qrd/external/qemu/target-i386/ops_sse_header.h:148: undefined reference to `helper_maxps'
/root/qrd/external/qemu/target-i386/ops_sse_header.h:148: undefined reference to `helper_maxss'
/root/qrd/external/qemu/target-i386/ops_sse_header.h:148: undefined reference to `helper_maxpd'
/root/qrd/external/qemu/target-i386/ops_sse_header.h:148: undefined reference to `helper_maxsd'
/root/qrd/external/qemu/target-i386/ops_sse_header.h:149: undefined reference to `helper_sqrtps'
/root/qrd/external/qemu/target-i386/ops_sse_header.h:149: undefined reference to `helper_sqrtss'
/root/qrd/external/qemu/target-i386/ops_sse_header.h:149: undefined reference to `helper_sqrtpd'
/root/qrd/external/qemu/target-i386/ops_sse_header.h:149: undefined reference to `helper_sqrtsd'
/root/qrd/external/qemu/tcg/tcg-op.h:392: undefined reference to `helper_debug'
out/host/linux-x86/obj/STATIC_LIBRARIES/emulator64-target-i386_intermediates/emulator64-target-i386.a(cpu-exec.o): In function `cpu_x86_exec':
/root/qrd/external/qemu/cpu-exec.c:708: undefined reference to `helper_cc_compute_all'
/root/qrd/external/qemu/cpu-exec.c:340: undefined reference to `do_interrupt'
/root/qrd/external/qemu/cpu-exec.c:613: undefined reference to `helper_cc_compute_all'
out/host/linux-x86/obj/STATIC_LIBRARIES/emulator64-target-i386_intermediates/emulator64-target-i386.a(cpu-exec.o): In function `svm_check_intercept':
/root/qrd/external/qemu/target-i386/exec.h:83: undefined reference to `helper_svm_check_intercept_param'
out/host/linux-x86/obj/STATIC_LIBRARIES/emulator64-target-i386_intermediates/emulator64-target-i386.a(cpu-exec.o): In function `cpu_x86_exec':
/root/qrd/external/qemu/cpu-exec.c:450: undefined reference to `do_interrupt'
/root/qrd/external/qemu/cpu-exec.c:428: undefined reference to `do_interrupt'
out/host/linux-x86/obj/STATIC_LIBRARIES/emulator64-target-i386_intermediates/emulator64-target-i386.a(cpu-exec.o): In function `svm_check_intercept':
/root/qrd/external/qemu/target-i386/exec.h:83: undefined reference to `helper_svm_check_intercept_param'
out/host/linux-x86/obj/STATIC_LIBRARIES/emulator64-target-i386_intermediates/emulator64-target-i386.a(cpu-exec.o): In function `cpu_x86_exec':
/root/qrd/external/qemu/cpu-exec.c:463: undefined reference to `do_interrupt'
/root/qrd/external/qemu/cpu-exec.c:432: undefined reference to `do_interrupt'
out/host/linux-x86/obj/STATIC_LIBRARIES/emulator64-target-i386_intermediates/emulator64-target-i386.a(cpu-exec.o): In function `svm_check_intercept':
/root/qrd/external/qemu/target-i386/exec.h:83: undefined reference to `helper_svm_check_intercept_param'
/root/qrd/external/qemu/target-i386/exec.h:83: undefined reference to `helper_svm_check_intercept_param'
out/host/linux-x86/obj/STATIC_LIBRARIES/emulator64-target-i386_intermediates/emulator64-target-i386.a(cpu-exec.o): In function `cpu_x86_exec':
/root/qrd/external/qemu/cpu-exec.c:422: undefined reference to `do_smm_enter'
out/host/linux-x86/obj/STATIC_LIBRARIES/emulator64-target-i386_intermediates/emulator64-target-i386.a(exec.o): In function `__ldb_cmmu':
/root/qrd/external/qemu/softmmu_template.h:184: undefined reference to `tlb_fill'
out/host/linux-x86/obj/STATIC_LIBRARIES/emulator64-target-i386_intermediates/emulator64-target-i386.a(exec.o): In function `slow_ldq_cmmu':
/root/qrd/external/qemu/softmmu_header.h:141: undefined reference to `__stl_mmu'
/root/qrd/external/qemu/softmmu_header.h:141: undefined reference to `__stl_mmu'
/root/qrd/external/qemu/softmmu_header.h:141: undefined reference to `__stl_mmu'
out/host/linux-x86/obj/STATIC_LIBRARIES/emulator64-target-i386_intermediates/emulator64-target-i386.a(tcg.o).rodata+0x3dc0): undefined reference to `__stb_mmu'
out/host/linux-x86/obj/STATIC_LIBRARIES/emulator64-target-i386_intermediates/emulator64-target-i386.a(tcg.o).rodata+0x3dc8): undefined reference to `__stw_mmu'
out/host/linux-x86/obj/STATIC_LIBRARIES/emulator64-target-i386_intermediates/emulator64-target-i386.a(tcg.o).rodata+0x3dd0): undefined reference to `__stl_mmu'
out/host/linux-x86/obj/STATIC_LIBRARIES/emulator64-target-i386_intermediates/emulator64-target-i386.a(tcg.o).rodata+0x3dd8): undefined reference to `__stq_mmu'
out/host/linux-x86/obj/STATIC_LIBRARIES/emulator64-target-i386_intermediates/emulator64-target-i386.a(tcg.o).rodata+0x3de0): undefined reference to `__ldb_mmu'
out/host/linux-x86/obj/STATIC_LIBRARIES/emulator64-target-i386_intermediates/emulator64-target-i386.a(tcg.o).rodata+0x3de8): undefined reference to `__ldw_mmu'
out/host/linux-x86/obj/STATIC_LIBRARIES/emulator64-target-i386_intermediates/emulator64-target-i386.a(tcg.o).rodata+0x3df0): undefined reference to `__ldl_mmu'
out/host/linux-x86/obj/STATIC_LIBRARIES/emulator64-target-i386_intermediates/emulator64-target-i386.a(tcg.o).rodata+0x3df8): undefined reference to `__ldq_mmu'
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/EXECUTABLES/emulator64-x86_intermediates/emulator64-x86] Error 1
Click to expand...
Click to collapse
i already have all the requirements in compiling android.. but i dont know why i still facing that problem..
i am using Linux-3.2.6-x86_64-with-Ubuntu-10.04-lucid
i just want to know what can i do to make does error away..

Building Cyanogenmod Recovery error

Hi, im tryng to buld cyanogenmod recovery from source, but im getting this error when i try "make recoveryimage":
-------------------------------------------------------------------------------------------------------
host Executable: clang (/home/diogo/android/system/out/host/linux-x86/obj/EXECUTABLES/clang_intermediates/clang)
/home/diogo/android/system/out/host/linux-x86/obj/EXECUTABLES/clang_intermediates/cc1_main.o: In function `ForcePassLinking':
/home/diogo/android/system/external/llvm/include/llvm/LinkAllPasses.h:116: undefined reference to `llvm::createProfileMetadataLoaderPass()'
/home/diogo/android/system/external/llvm/include/llvm/LinkAllPasses.h:147: undefined reference to `llvm::createPostDomTree()'
/home/diogo/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMAnalysis_intermediates/libLLVMAnalysis.a(ProfileVerifierPass.o): In function `ReadOrAssert':
/home/diogo/android/system/external/llvm/lib/Analysis/ProfileVerifierPass.cpp:204: undefined reference to `llvm:perator<<(llvm::raw_ostream&, std:air<llvm::BasicBlock const*, llvm::BasicBlock const*>)'
/home/diogo/android/system/external/llvm/lib/Analysis/ProfileVerifierPass.cpp:210: undefined reference to `llvm:perator<<(llvm::raw_ostream&, std:air<llvm::BasicBlock const*, llvm::BasicBlock const*>)'
/home/diogo/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMAnalysis_intermediates/libLLVMAnalysis.a(RegionInfo.o): In function `addRequired<llvm:ostDominatorTree>':
/home/diogo/android/system/external/llvm/include/llvm/PassAnalysisSupport.h:56: undefined reference to `llvm:ostDominatorTree::ID'
/home/diogo/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMAnalysis_intermediates/libLLVMAnalysis.a(RegionInfo.o): In function `initializeRegionInfoPassOnce':
/home/diogo/android/system/external/llvm/lib/Analysis/RegionInfo.cpp:853: undefined reference to `llvm::initializePostDominatorTreePass(llvm:assRegistry&)'
/home/diogo/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMAnalysis_intermediates/libLLVMAnalysis.a(RegionInfo.o): In function `llvm::AnalysisResolver::findImplPass(void const*)':
/home/diogo/android/system/external/llvm/include/llvm/PassAnalysisSupport.h:134: undefined reference to `llvm:ostDominatorTree::ID'
/home/diogo/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMAnalysis_intermediates/libLLVMAnalysis.a(RegionInfo.o): In function `llvm:ostDominatorTree& llvm:ass::getAnalysis<llvm:ostDominatorTree>() const':
/home/diogo/android/system/external/llvm/include/llvm/PassAnalysisSupport.h:132: undefined reference to `llvm:ostDominatorTree::ID'
/home/diogo/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMAnalysis_intermediates/libLLVMAnalysis.a(DomPrinter.o): In function `addRequired<llvm:ostDominatorTree>':
/home/diogo/android/system/external/llvm/include/llvm/PassAnalysisSupport.h:56: undefined reference to `llvm:ostDominatorTree::ID'
/home/diogo/android/system/external/llvm/include/llvm/PassAnalysisSupport.h:56: undefined reference to `llvm:ostDominatorTree::ID'
/home/diogo/android/system/external/llvm/include/llvm/PassAnalysisSupport.h:56: undefined reference to `llvm:ostDominatorTree::ID'
/home/diogo/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMAnalysis_intermediates/libLLVMAnalysis.a(DomPrinter.o):/home/diogo/android/system/external/llvm/include/llvm/PassAnalysisSupport.h:56: more undefined references to `llvm:ostDominatorTree::ID' follow
collect2: ld returned 1 exit status
build/core/host_executable.mk:31: recipe for target '/home/diogo/android/system/out/host/linux-x86/obj/EXECUTABLES/clang_intermediates/clang' failed
make: *** [/home/diogo/android/system/out/host/linux-x86/obj/EXECUTABLES/clang_intermediates/clang] Error 1
-----------------------------------------------------------------------------------------------------------
What this means? How to solve it?
Never had this error before :S

Categories

Resources