gavinpugh / vs-android

Integrated development of Android NDK C/C++ software with Microsoft Visual Studio.
Other
119 stars 34 forks source link

Android SanAngeles example will not build #66

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Go to /android-ndk-r7/samples/san-angeles directory
2. Type "ndk-build" at command prompt
3.

What is the expected output? What do you see instead?
Expect to see a successful build.  Instead received following error: 'undefined 
reference to 'sincos'

Command issued and exact output on terminal:
@ubuntu:/opt/Android/android-ndk-r7/samples/san-angeles$ ndk-build
Compile thumb  : sanangeles <= importgl.c
Compile thumb  : sanangeles <= demo.c
Compile thumb  : sanangeles <= app-android.c
SharedLibrary  : libsanangeles.so
./obj/local/armeabi/objs/sanangeles/demo.o: In function `superShapeMap':
/opt/Android/android-ndk-r7/samples/san-angeles/jni/demo.c:180: undefined 
reference to `sincos'
/opt/Android/android-ndk-r7/samples/san-angeles/jni/demo.c:180: undefined 
reference to `sincos'
./obj/local/armeabi/objs/sanangeles/demo.o: In function `camTrack':
/opt/Android/android-ndk-r7/samples/san-angeles/jni/demo.c:741: undefined 
reference to `sincos'
/opt/Android/android-ndk-r7/samples/san-angeles/jni/demo.c:731: undefined 
reference to `sincos'
collect2: error: ld returned 1 exit status
make: *** [obj/local/armeabi/libsanangeles.so] Error 1

What version of the product are you using? On what operating system?
Android-ndk-r7
Android SDK Tools revision 16 / Android SDK Platform Tools revision 10
Android 4.0.3 (API 15)

Operating System:  Ubuntu 11.10
Memory: 7.8 GiB
Processor:  Intel Core i7-2630QM CPU@2.00GHz x 8
Graphics: Unknown
OS type: 32-bit
Disk:  18.3 GB 

Please provide any additional information below.

Original issue reported on code.google.com by michelle...@gmail.com on 15 Feb 2012 at 8:54

GoogleCodeExporter commented 9 years ago
Err... You're using ndk-build and Linux. I'm not sure why you're posting this 
on the vs-android website?

Original comment by gavin.dj.pugh on 17 Feb 2012 at 5:00

GoogleCodeExporter commented 9 years ago
Michelle, I have the same problem...can you help me?

Original comment by xapa...@gmail.com on 8 May 2013 at 3:35