Echoprint implementation - c++

I'm implementing echoprint in my iOS 6 app but when I compile my project it gives me errors from Codegen.
Undefined symbols for architecture i386:
"Codegen::Codegen(float const*, unsigned int, int)", referenced from:
codegen_wrapper(float const*, int) in Codegen_wrapper.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

How to compile and run Codegen on iOS is explained here:
Echoprint iOS Missing Framework
Since simulator in XCode uses i386 processor, it fails to link it with object which is compiled in arm7.
While compiling libechoprint-codegen-ios.a choose iPhone Simulator as target, then you will have it compiled in i386. Then it will successfully link it. You can learn whether it is compiled in arm7 or i386 by typing
lipo -info path/libechoprint-codegen-ios.a
source: http://www.verious.com/qa/linker-error-for-echoprint-in-ios/

Related

Qt, clang & PortAudio: what does those errors mean?

I write a cross-platform audio processing program. It uses Qt 5 and PortAudio library. The platform is Mac OS X Yosemite, clang compiler, Qt Creator 3.4.1 IDE. I got those linker errors:
Undefined symbols for architecture x86_64:
"_ellie2", referenced from:
_main in eltst.o
"_hypergl", referenced from:
_main in ltstd.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
What does it mean and what needs to do?

Apple Mach-O linker error: Undefined symbols for architecture i386 Google Protobuf

I am trying to use Protobuf 2.6 with Xcode version 6.3. I've added the libprotobuf-lite.a to my Demo application and added the path to the Header files in the Header Search Paths., but I am getting this error.
Undefined symbols for architecture i386:
"google::protobuf::io::StringOutputStream::StringOutputStream(std::string*)",
referenced from:
attributes::MergePartialFromCodedStream(google::protobuf::io::CodedInputStream*)
in attributes.pb.o ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see
invocation)

Luabind Undefined Symbols/ Luabind::scope::scope

I have just started working with Luabind, and have attempted to run the Hello World test specified at http://www.rasterbar.com/products/luabind/docs.html#calling-lua-functions. However, this provides an undefined symbol error when attempted to compile.
Undefined symbols for architecture x86_64:
"luabind::scope::scope(std::__1::auto_ptr<luabind::detail::registration>)", referenced from:
luabind::scope luabind::def<void (*)(), luabind::detail::null_type>(char const*, void (*)(), luabind::detail::null_type const&) in TestClass.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Other functions such as luabind::open and luabind::call_function work correctly.
I installed both luabind and lua 5.1 through homebrew on osx.
It looks to me like you are compiling your program against libc++ and trying to link to a luabind library that was compiled against the stdlibc++ library.
The clue is std::__1::auto_ptr. This __1 inline namespace is used by libc++ to differentiate it's ABI from stdlibc++
Thus if
luabind::scope::scope(std::__1::auto_ptr<luabind::detail::registration>)
Cannot be found it is likely because libluabind doesn't have it. Dumping it's exported symbols you might find it has
luabind::scope::scope(std::auto_ptr<luabind::detail::registration>)
Instead.
If I am right, simply recompile libluabind targeting libc++ and you should find it works with your test program.

Installing Boost On Mac Issues

Has anyone had this issue on mac while installing boost or know how to fix? I seem to have everything together but this error. I am using OS X 10.10 & and Xcode 6.1.1.
This is what I used for the install and to make the framework.
http://freddy.cellcore.org/post/79587278354/boost-c-libraries-on-osx-xcode-5
https://gist.github.com/faithfracture/c629ae4c7168216a9856
-------------ERROR BELOW---------------
Undefined symbols for architecture x86_64:
"boost::unit_test::unit_test_main(bool (*)(), int, char**)", referenced from:
_main in test.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Cocos2dx 2.2.3 Undefined symbols for architecture arm64 :: WebPInitDecoderConfigInternal

I am developing cocos2dx game. when i run game on simuloator that works good but when start to archive follwing error are produce IN XCODE 6.0
Undefined symbols for architecture arm64:
"_WebPInitDecoderConfigInternal", referenced from:
cocos2d::CCImage::_initWithWebpData(void*, int) in libcocos2dx.a(CCImageCommonWebp.o)
"_WebPGetFeaturesInternal", referenced from:
cocos2d::CCImage::_initWithWebpData(void*, int) in libcocos2dx.a(CCImageCommonWebp.o)
"_WebPDecode", referenced from:
cocos2d::CCImage::_initWithWebpData(void*, int) in libcocos2dx.a(CCImageCommonWebp.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
You have shouldd be cocos2dx V.3.3 to Support arm64..because older cocos2dx version not support arm 64 bit . its only support 32 bit and apple must be approved 64 bit app from 1st february 2015. Thanx
You can upgrade to cocos2d-x v2.2.6. This version supports 64bit.
http://www.cocos2d-x.org/news/386