Thanks a lot Kushal. Adding atomicops_internals_x86_gcc.cc file path in 
Android.mk file worked well.

On Tuesday, February 27, 2018 at 4:50:24 PM UTC+5:30, Kushal Umarkar wrote:
>
> Hi Aditya,
>
> Try to manually add the file and path of atomicops_internals_x86_gcc.cc 
> and atomicops_internals_x86_gcc.h  and CXXFLAGS = -DGOOGLE_PROTOBUF_ARCH_X64 
> -DHAVE_THREAD into your makefile  
>
> On Tuesday, 27 February 2018 16:21:50 UTC+5:30, Aditya Deshpande wrote:
>>
>> Hi Kushal,
>>
>> I am getting the same error as - 
>>
>> x86_64] Prebuilt       : libgnustl_shared.so <= 
>> <NDK>/sources/cxx-stl/gnu-libstdc++/4.9/libs/x86_64/
>>
>> [x86_64] SharedLibrary  : libprotobuf.so
>>
>> /Users/aditya.d/Development/DTS/detroit/api-dca-android-working/api-dca-android/extlib-gpb/jni/../src/google/protobuf/stubs/atomicops_internals_x86_gcc.h:273:
>>  
>> error: undefined reference to 
>> 'google::protobuf::internal::AtomicOps_Internalx86CPUFeatures'
>>
>> collect2: error: ld returned 1 exit status
>>
>> make: *** 
>> [/Users/aditya.d/Development/DTS/detroit/api-dca-android-working/api-dca-android/extlib-gpb/obj/local/x86_64/libprotobuf.so]
>>  
>> Error 1
>>
>> Build failed.
>>
>> I checked the atomicops_internals_x86_gcc.cc file and it is available in 
>> src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc
>>
>> I am trying to understand what could be the issue for me? And where 
>> should I provide the flag -DGOOGLE_PROTOBUF_ARCH_X64 -DHAVE_THREAD?
>>
>> On Monday, September 14, 2015 at 12:00:06 PM UTC+5:30, Kushal Umarkar 
>> wrote:
>>>
>>> Thank you Feng. I could resolve issue by adding 
>>> atomicops_internal_x86_gcc.cc file in a build. Actually I am using Jambuild 
>>> so in Jamfile it was miss placed.
>>>
>>> On Friday, 11 September 2015 23:35:38 UTC+5:30, Feng Xiao wrote:
>>>>
>>>>
>>>>
>>>> On Fri, Sep 11, 2015 at 4:44 AM, kushal umarkar <
>>>> kushal.uma...@gmail.com> wrote:
>>>>
>>>>> I have been using Ubuntu 14.04 Lts. 64Bit in Virual Machine on windows.
>>>>> I have some of proto files created for my project, I have been 
>>>>> compiling complete c++ project using g++ compiler along with proto files 
>>>>> but I am facing a compilation error below.
>>>>>
>>>>> /home/auto/Desktop/perforce/depot/project/Research/box/build64/Debug/lib/libprotobuf.a(once.o):
>>>>>  
>>>>> In function `google::protobuf::internal::Acquire_CompareAndSwap(long 
>>>>> volatile*, long, long)':
>>>>> /home/auto/Desktop/perforce/depot/project/Research/box/src/Components/ExternalLibraries/protobuf/2.6.0/stubs/atomicops_internals_x86_gcc.h:273:
>>>>>  
>>>>> undefined reference to 
>>>>> `google::protobuf::internal::AtomicOps_Internalx86CPUFeatures'
>>>>> collect2: error: ld returned 1 exit status
>>>>> ...failed _AWAppBuild 
>>>>> /home/auto/Desktop/perforce/depot/project/Research/box/build64/Debug/runTime/bin/tconduit
>>>>>  
>>>>> ...
>>>>> ...failed updating 1 target(s)...
>>>>>
>>>>> May I know what is wrong happening in compilation. However I tried 
>>>>> adding -DGOOGLE_PROTOBUF_ARCH_X64 -DHAVE_THREAD compiler flags as well 
>>>>> but 
>>>>> no change.
>>>>>
>>>> How did you build the library? It seems you missed 
>>>> atomicops_internals_x86_gcc.cc in your build. Judging from the file path 
>>>> of 
>>>> your build, it doesn't seem like using our provided build files.
>>>>  
>>>>
>>>>>
>>>>> Thanks for help in advance.
>>>>>
>>>>> -- 
>>>>> You received this message because you are subscribed to the Google 
>>>>> Groups "Protocol Buffers" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>>> an email to protobuf+u...@googlegroups.com.
>>>>> To post to this group, send email to prot...@googlegroups.com.
>>>>> Visit this group at http://groups.google.com/group/protobuf.
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to