CMake fails on crtbegin_dynamic.o: No such file...

241 views
Skip to first unread message

tlk

unread,
Jun 22, 2011, 1:55:24 PM6/22/11
to WS4D-gSOAP Development
Hello,

I am trying to faithfully follow the directions for cross compilation
to Android from an Ubuntu x86_64 box. I downloaded gsoap-2.7.16 and
applied the patch, installed the native ws4d-gsoap according to
instructions, and all appeared to go fine.

When I attempt to cross compile using this command:

cmake -DCMAKE_TOOLCHAIN_FILE=/home/tlk/f/ws4d-gsoap/toolchains/
android_ndk.cmake -DGSOAP_PATH:PATH=/home/tlk/f/gsoap-2.7 -
DDPWS_HOSTEXEC_PATH:PATH=/home/tlk/f/ws4d-gsoap-install -
DCMAKE_INSTALL_PREFIX:PATH=/home/tlk/f/ws4d-gsoap-install-cross ../
ws4d-gsoap


I get...

...
/usr/local/android-ndk-r5c/toolchains/arm-linux-androideabi-4.4.3/
prebuilt/linux-x86/bin/arm-linux-androideabi-gcc
-fPIC -DANDROID -mthumb -Wno-psabi
CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o -o
cmTryCompileExec
-rdynamic


/usr/local/android-ndk-r5c/toolchains/arm-linux-androideabi-4.4.3/
prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/
4.4.3/../../../../arm-linux-androideabi/bin/ld:
crtbegin_dynamic.o: No such file: No such file or directory

collect2: ld returned 1 exit status

make[1]: *** [cmTryCompileExec] Error 1

make[1]: Leaving directory
`/home/tlk/f/ws4d-gsoap-build-cross/CMakeFiles/CMakeTmp'



The NDK is there, the file exists, and I've tried everything I can
think of to get CMake to see a library path where that file is in the
NDK (r5c). I'm using the toolchain file profided with ws4d-gsoap.

I've been searching for hours, but no one else seems to have this
problem. Any pointers as to where I can look for where I've gone awry?

Thanks,
Tom K

Elmar Zeeb

unread,
Jun 23, 2011, 6:52:39 AM6/23/11
to ws4d-gs...@googlegroups.com

Did you set up a standalone toolchain with the
make-standalone-toolchain.sh tool? See
http://trac.e-technik.uni-rostock.de/projects/ws4d-gsoap/wiki/AndroidNDK#ConfigureAndroidNDK
for more information.
I checked the cross compiler setup on my machine and it is a ubuntu
11.04 on x86_64.

Regards,
Elmar

--

*******************************************************************************
Dipl.-Inf. Elmar Zeeb
Universit�t Rostock, Fakult�t f. Informatik und Elektrotechnik
Institut f. Angewandte Mikroelektronik und Datentechnik
University of Rostock, Faculty of CS and EE
Institute of Applied Microelectronics and Computer Engineering,
18051 Rostock
Deutschland/Germany
Tel. : ++49 (0)381 498 - 7262
Fax : ++49 (0)381 498 - 7252
Email: elmar...@uni-rostock.de
www : http://www.imd.uni-rostock.de/, http://www.ws4d.org/
*******************************************************************************

Naveen Murthy

unread,
Jun 23, 2011, 7:36:30 AM6/23/11
to ws4d-gs...@googlegroups.com
Hello Tom K,

I have not used any toolchain for building ws4d-gsoap library for the iPhone. i have use the CCMake IDE and manually entered all the path of compiler and the other linked library. I have compiled if for gcc 4.2

From the error log u have show i can assume that you compiler path is not set properly in your toolchain.
Please share your toolchain file and i can point the place u have to modify for your PC.

Regards,
Naveen Murthy


--
You received this message because you are subscribed to the Google Groups "WS4D-gSOAP Development" group.
To post to this group, send email to ws4d-gs...@googlegroups.com.
To unsubscribe from this group, send email to ws4d-gsoap-de...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ws4d-gsoap-dev?hl=en.


Reply all
Reply to author
Forward
0 new messages