[Kiwiviewer] Link error about iOS app Kiwiviewer.

Casey Goodlett casey.goodlett at kitware.com
Tue Oct 1 15:25:13 EDT 2013


To build KiwiViewer you need to configure VES_USE_LIBARCHIVE and
VES_USE_LIBCURL to ON.   You may be better off using ccmake to configure
rather than cmake so you can see the configuration options.


On Mon, Sep 30, 2013 at 10:12 PM, 高宇 <fightrain at 126.com> wrote:

> Dear Aashish:
>         What's MIDAS support?   I just have tried modify the two variables
> VES_USE_CURL and VES_USE_LIBARCHIVE in the ves-superbuild.cmake file ON.
> But I can't compile the VES successfully.
>         Some days ago  I use the command 'git clone http://XXXXXXX(download
> url)' download the ves. It uses the OpenGL ES 2.0. And Its LICENSE version
> is also 2.0 too. I think it may be the most latest version.
>         My Xcode version is 4.6.2. The MacOS version is 10.8.5.
>
>        Before I  build the example named Kiwiviewer in the dir named iOS
> I just use these commands to compile the frameworks.commands like this:
>                 mkdir <build dir>
>                 cd <build dir>
>                 cmake -DVES_IOS_SUPERBUILD=1 <ves src dir>
>                 make -j4
>         Then I config the build phases in the project target. Of course I
> download the DropboxSDK.framework and pcl.framework from the internet.
> And all files in the dir frameworks are not red. It means I successfully
> import the frameworks.But I meet these link Errors like last E-mail.
>         I am really bored by it. So please help me~   THANK YOU VERY VERY
> MUCH!
>
>
>
>
>
> At 2013-10-01 00:49:27,"Aashish Chaudhary" <aashish.chaudhary at kitware.com>
> wrote:
>
> Are you trying to build VES with MIDAS support intentionally? Also can you
> tell us the VERSION of VES you are tying to use?
>
> Thanks
>
>
>
> On Mon, Sep 30, 2013 at 1:38 AM, 高宇 <fightrain at 126.com> wrote:
>
>>
>> From: "高宇" <fightrain at 126.com>
>> Date: 2013-09-30 10:08:19
>> To: Kiwiviewer at public.kitware.com
>> Subject: Link error about iOS app Kiwiviewer.
>> I meet a problem which bored me for three days.
>>
>> When I build the iOS app kiwiviewer  in VES.     I meet some link
>> errors.  I list the error  info like this including 2 pngs:
>>
>> Ld
>> /Users/gaoyu/Library/Developer/Xcode/DerivedData/KiwiViewer-finjlpjhxfsqvseynhfdbjqhqrta/Build/Products/Debug-iphoneos/kiwiviewer.app/kiwiviewer
>> normal armv7
>>     cd /Users/gaoyu/Desktop/Workspace/Kiwi/KiwiViewer
>>     setenv IPHONEOS_DEPLOYMENT_TARGET 6.0
>>     setenv PATH
>> "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
>>
>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
>> -arch armv7 -isysroot
>> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk
>> -L/Users/gaoyu/Library/Developer/Xcode/DerivedData/KiwiViewer-finjlpjhxfsqvseynhfdbjqhqrta/Build/Products/Debug-iphoneos
>> -F/Users/gaoyu/Library/Developer/Xcode/DerivedData/KiwiViewer-finjlpjhxfsqvseynhfdbjqhqrta/Build/Products/Debug-iphoneos
>> -F../frameworks -filelist
>> /Users/gaoyu/Library/Developer/Xcode/DerivedData/KiwiViewer-finjlpjhxfsqvseynhfdbjqhqrta/Build/Intermediates/KiwiViewer.build/Debug-iphoneos/KiwiViewer.build/Objects-normal/armv7/kiwiviewer.LinkFileList
>> -dead_strip -stdlib=libstdc++ -fobjc-arc -fobjc-link-runtime
>> -miphoneos-version-min=6.0 -framework kiwi -lxml2 -framework Security
>> -framework QuartzCore -lbz2 -lz -framework vtk -framework OpenGLES
>> -framework GLKit -framework UIKit -framework Foundation -framework
>> CoreGraphics -framework DropboxSDK -o
>> /Users/gaoyu/Library/Developer/Xcode/DerivedData/KiwiViewer-finjlpjhxfsqvseynhfdbjqhqrta/Build/Products/Debug-iphoneos/kiwiviewer.app/kiwiviewer
>>
>> Undefined symbols for architecture armv7:
>>   "vesMidasClient::~vesMidasClient()", referenced from:
>>       std::tr1::_Sp_deleter<vesMidasClient>::operator()(vesMidasClient*)
>> const in DocumentsTableViewController.o
>>   "vesKiwiCurlDownloader::downloadUrlToDirectory(std::string const&,
>> std::string const&)", referenced from:
>>       ___61-[DocumentsTableViewController
>> handleItemSelected:indexPath:]_block_invoke in
>> DocumentsTableViewController.o
>>       ___47-[DownloadURLViewController onDownloadTouched:]_block_invoke
>> in DownloadURLViewController.o
>>   "vesMidasClient::renewToken()", referenced from:
>>       -[DocumentsTableViewController handleItemSelected:indexPath:] in
>> DocumentsTableViewController.o
>>   "vesMidasClient::itemDownloadUrl(std::string const&)", referenced from:
>>       -[DocumentsTableViewController handleItemSelected:indexPath:] in
>> DocumentsTableViewController.o
>>   "vesMidasClient::reset()", referenced from:
>>       -[DocumentsTableViewController onMidasLogout] in
>> DocumentsTableViewController.o
>>       -[MidasLoginViewController onLoginTouched:] in
>> MidasLoginViewController.o
>>   "vesMidasClient::vesMidasClient()", referenced from:
>>       -[DocumentsTableViewController viewDidLoad] in
>> DocumentsTableViewController.o
>>   "vesMidasClient::listCommunities()", referenced from:
>>       -[DocumentsTableViewController populateViewThread] in
>> DocumentsTableViewController.o
>>   "vesMidasClient::login(std::string const&, std::string const&)",
>> referenced from:
>>       ___43-[MidasLoginViewController onLoginTouched:]_block_invoke in
>> MidasLoginViewController.o
>>   "vesKiwiCurlDownloader::vesKiwiCurlDownloader()", referenced from:
>>       -[DocumentsTableViewController handleItemSelected:indexPath:] in
>> DocumentsTableViewController.o
>>       ___47-[DownloadURLViewController onDownloadTouched:]_block_invoke
>> in DownloadURLViewController.o
>>   "vesMidasClient::token() const", referenced from:
>>       -[DocumentsTableViewController populateViewThread] in
>> DocumentsTableViewController.o
>>       -[DocumentsTableViewController maybeAddLogoutButton] in
>> DocumentsTableViewController.o
>>       -[DocumentsTableViewController tableView:numberOfRowsInSection:] in
>> DocumentsTableViewController.o
>>       -[DocumentsTableViewController tableView:cellForRowAtIndexPath:] in
>> DocumentsTableViewController.o
>>       -[DocumentsTableViewController onSegueReturned:] in
>> DocumentsTableViewController.o
>>       -[DocumentsTableViewController handleItemSelected:indexPath:] in
>> DocumentsTableViewController.o
>>       -[DocumentsTableViewController tableView:didSelectRowAtIndexPath:]
>> in DocumentsTableViewController.o
>>       ...
>>   "vesMidasClient::listFolderChildren(std::string const&)", referenced
>> from:
>>       -[DocumentsTableViewController populateViewThread] in
>> DocumentsTableViewController.o
>>   "vesMidasClient::setHost(std::string const&)", referenced from:
>>       -[DocumentsTableViewController viewDidLoad] in
>> DocumentsTableViewController.o
>>       -[DocumentsTableViewController onMidasLogout] in
>> DocumentsTableViewController.o
>>       -[MidasLoginViewController onLoginTouched:] in
>> MidasLoginViewController.o
>>   "vesMidasClient::listCommunityChildren(std::string const&)", referenced
>> from:
>>       -[DocumentsTableViewController populateViewThread] in
>> DocumentsTableViewController.o
>>   "vesMidasClient::listUserFolders()", referenced from:
>>       -[DocumentsTableViewController populateViewThread] in
>> DocumentsTableViewController.o
>>   "vesMidasClient::folderNames()", referenced from:
>>       -[DocumentsTableViewController populateViewThread] in
>> DocumentsTableViewController.o
>>   "vesMidasClient::itemNames()", referenced from:
>>       -[DocumentsTableViewController populateViewThread] in
>> DocumentsTableViewController.o
>>   "vesMidasClient::itemIds()", referenced from:
>>       -[DocumentsTableViewController populateViewThread] in
>> DocumentsTableViewController.o
>>   "vesKiwiCurlDownloader::~vesKiwiCurlDownloader()", referenced from:
>>
>> std::tr1::_Sp_deleter<vesKiwiCurlDownloader>::operator()(vesKiwiCurlDownloader*)
>> const in DocumentsTableViewController.o
>>       ___47-[DownloadURLViewController onDownloadTouched:]_block_invoke
>> in DownloadURLViewController.o
>>   "vesKiwiPVRemoteRepresentation::requestScene()", referenced from:
>>       kiwiCloudApp::onAction(std::string const&) in MyGLKViewController.o
>>   "vesMidasClient::itemBytes()", referenced from:
>>       -[DocumentsTableViewController populateViewThread] in
>> DocumentsTableViewController.o
>>   "vesMidasClient::folderIds()", referenced from:
>>       -[DocumentsTableViewController populateViewThread] in
>> DocumentsTableViewController.o
>> ld: symbol(s) not found for architecture armv7
>> clang: error: linker command failed with exit code 1 (use -v to see
>> invocation)
>>
>>
>>
>>
>>
>> I need help!  Thank you all~
>>
>>
>>
>> _______________________________________________
>> Kiwiviewer mailing list
>> Kiwiviewer at public.kitware.com
>> http://public.kitware.com/cgi-bin/mailman/listinfo/kiwiviewer
>>
>>
>
>
> --
> | Aashish Chaudhary
> | R&D Engineer
> | Kitware Inc.
> | www.kitware.com
>
>
>
>
>
>
> _______________________________________________
> Kiwiviewer mailing list
> Kiwiviewer at public.kitware.com
> http://public.kitware.com/cgi-bin/mailman/listinfo/kiwiviewer
>
>


-- 
Casey B. Goodlett, Ph.D.
R&D Engineer
Kitware, Inc. - North Carolina Office
http://www.kitware.com
(919) 969-6990 x310
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/kiwiviewer/attachments/20131001/f4080d3d/attachment.html>


More information about the Kiwiviewer mailing list