64-bit LDR/STR not 8-byte aligned with Release mode only - objective-c

I'd like to report my problem when build with RELEASE mode.
I do not why it's working fine with DEBUG mode. I also checked in detail the debug mode setting and release mode setting , but there is no reason.
ld: 64-bit LDR/STR not 8-byte aligned: from -[CatchingAction
initWithViewController:] (0x1000425E0) to _num (0x10082EC4C) in
'-[CatchingAction
initWithViewControllerbbw/Build/Intermediates/Myapp.build/Release-iphoneos/Myapp.build/Objects-normal/arm64/CatchingAction.o
for architecture arm64 clang: error: linker command failed with exit
code 1 (use -v to see invocation)
Here is my environment:
1. MacBook Pro : OS X Yosemite 10.10.5
2. Xcode : Version 7.0 ( I have tried to build with 7.1 too)

Related

Install caffe on Mac OS X (Catalina)

I am following the official instructions from http://caffe.berkeleyvision.org/install_osx.html
A couple of things are unclear. Instructions say
"CUDA: Install via the NVIDIA package that includes both CUDA and the bundled driver."
I do not have an Nvidia GPU (am on MacBook Pro 2016 which has amd gpu instead) and plan to use caffe with CPU only.
a) do I have to install CUDA in order to install caffe?
b) inside Makefile.config it have uncommented code that asks to set CUDA directory, saying the following:
# CUDA directory contains bin/ and lib/ directories that we need.
CUDA_DIR := /usr/local/cuda
Seems to suggest that I should have CUDA. It was my impression that I can't have CUDA without Nvidia gpu. (My ultimate goal is to install and work with OpenPose from Spyder.)
Why do I need CUDA uncommented when I am specifying that it will be CPU only
# CPU-only switch (uncomment to build without GPU support).
CPU_ONLY := 1
So far I have left CUDA commands uncommented as they were and proceeded with make all caffe compilation from terminal. I am encountering the following error and not sure how to solve it. Anyone managed please?
LD -o .build_release/lib/libcaffe.so.1.0.0
ld: framework not found vecLib
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [.build_release/lib/libcaffe.so.1.0.0] Error 1
I have tried uninstalling and re-installing Xcode command line tools but that did not help. Now I am trying to find the file from which a call to search for vecLib.framework is made, so that I can edit that file and set the vecLib path correctly. I have found it under Library/Developer section. Does anyone know which file is being used to search for vecLib path?
Next problem:
LD -o .build_release/lib/libcaffe.so.1.0.0
ld: library not found for -lboost_python3
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [.build_release/lib/libcaffe.so.1.0.0] Error 1
I uncommented this line in Makefile.config as per instructions I was following
PYTHON_LIBRARIES := boost_python3 python3.7m
Not sure how to resolve the missing -lboost_python3.
I found and can see the directory of boost_python3 but don't know how/where I shall use it?

I can not build VLCkit

I am trying to build VLCkit with below instruction
https://wiki.videolan.org/VLCKit/
but I met an error which I do not understand as below
[[1;32minfo[0m] Preparing build dirs
Current branch master is up to date.
clang: error: no input files
clang: error: no input files
clang: error: no input files
[[1;32minfo[0m] Building tools
/Users/apple/01_workspace/02_video/VLCKit/buildVLCKit.sh: line 38: pushd: extras/tools: No such file or directory
Could you help me to explain what is this error, and how can I fix it?
I am using Mac OS Sierra version 10.12.6 and Xcode Version 8.3.3

Titanium Hyperloop app does not compile due to too small libhyperloop.a lib file

I can't compile my titanium + hyperloop application. The compiler complains about the filesize of my libhyperloop.a, which is 2 bytes. Does this mean the file is corrupt, and does someone knows a workaround? I have inspected the file in both hyperloop 1.1.0 and 1.2.0 and both have the same file size.
ld: file too small (length=2) file '/Users/david/Projects/app/modules/iphone/hyperloop/1.1.0/libhyperloop.a' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Can it be that my libhyperloop.a is corrupt? And does someone knows where to obtain a fully functional version of the hyperloop module?

OS X - 10.10.4 ld: symbol(s) not found for architecture x86_64

I am installing NS2 2.35 in my macbook having OS X 10.10.4. The Xcode which i have install is Xcode 6.4. While installing I am getting following error:
ld: symbol (s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [octlsh] Error 1
octl-1.14 make failed! Exiting...
From the following link I have downloaded NS2:
https://drive.google.com/file/d/0B7S255p3kFXNSGJCZ2YzUGJDVk0/view
Following steps I have use to install NS2:
Install Xcode
Unzip or untar ns-2.35 using the command "tar zxvf ns-allinone-2.35-xxx.tar.gz" (without quotes)
The ns-2.35 configuration files contains the path to xlibdir and xincdir, so you need not include the path for those directories.
kindly ensure that the path to xlibdir and xincdir are installed on your Mac OS(Xcode)
execute the command ./install inside the directory (~ns-allinone-2.35-xxx/) (use terminal to install) .
Once installed successfully, the path setting information will be provided to you. copy those informations and put it in a file called .profile or .bash_profile (please note that there is a dot in these files)
finally execute the command "source .profile" (wihtout quotes) and logout and login back.
After step 5 i.e. ./install i got above mentioned error.
Kindly help me to solve this problem.
clang: error: linker command failed with exit code 1
The version you got is my "Oct 2014 update" ns-allinone-2.35_gcc482.tar.gz, for gcc/g++ versions 4.6 .. 5.2 . Not clang, AFAIK.
Path´s : # cd ns-2.35/ && make install ; cd ../nam-1.15/ && make install
P.S. : There's a patch for OS X 10 → http://myns2work.blogspot.dk/2013/08/installing-ns-235-on-mountain-lion-and.html
Ref. Google, ns-allinone-2.35 with OS X 10 https://www.google.com/webhp?hl=all&gws_rd=ssl#hl=en&q=ns-allinone-2.35+with+OS+X+10

MonoTouch - Failed to compile interface file

I have a mini mac with Lion osx, I installed Xcode 4.3.2 from the app store, after which I downloaded the mono touch trial software. When I compile a brand new project using mono develop I get the below error:
Failed to compile interface file.
Building: 12 (Debug|iPhoneSimulator)
Building Solution 12
Building: 12 (Debug|iPhoneSimulator)
Performing main compilation...
/Developer/MonoTouch/usr/bin/smcs /noconfig "/out:/Users/aegonaegon/Projects/12/12/bin/iPhoneSimulator/Debug/12.exe" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.dll" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll" /nologo /warn:4 /debug:+ /debug:full /optimize- /codepage:utf8 "/define:DEBUG" /t:exe "/Users/aegonaegon/Projects/12/12/Main.cs" "/Users/aegonaegon/Projects/12/12/AppDelegate.cs" "/Users/aegonaegon/Projects/12/12/12ViewController.cs" "/Users/aegonaegon/Projects/12/12/12ViewController.designer.cs"
Compiling interface definitions
/Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text "/Users/aegonaegon/Projects/12/12/12ViewController.xib" --compile "/Users/aegonaegon/Projects/12/12/bin/iPhoneSimulator/Debug/12.app/12ViewController.nib" --sdk "/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.3.sdk"
/* com.apple.ibtool.errors */
Internal Error:
Description: Illegal invocation. Try 'man ibtool' for more information.
ibtool exited with code 1
Build complete -- 1 error, 0 warnings
---------------------- Done ----------------------
Build: 1 error, 0 warnings
I have un-installed xcode 4.32, mono develop and re-installed but to no success.
Any help on this issue will be helpful.
Thank you.
You might have an old ibtool in /Developer from a previous Xcode install. What does /Developer/usr/bin/ibtool --version show?
You can ensure you're using the latest ibtool by doing this:
sudo /usr/bin/xcode-select -switch /Applications/Xcode.app/Contents/Developer