I try to Install Branch SDK from NuGet and take error
1> Undefined symbols for architecture arm64: 1>
"_BRANCH_REQUEST_KEY_UPDATE", referenced from: 1> -u command line
option 1> ld: symbol(s) not found for architecture arm64 1> clang:
error: linker command failed with exit code 1 (use -v to see
invocation) 1>C:\Program Files (x86)\Microsoft Visual
Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(791,3):
error : Native linking failed, undefined symbol:
_BRANCH_REQUEST_KEY_UPDATE. This symbol was referenced by the managed member IOSNativeBranch.Constants.BRANCH_REQUEST_KEY_UPDATE. Please
verify that all the necessary frameworks have been referenced and
native libraries linked. 1>C:\Program Files (x86)\Microsoft Visual
Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(791,3):
warning : References to 'kernel32' might require additional
-framework=XXX or -lXXX instructions to the native linker 1>C:\Program Files (x86)\Microsoft Visual
Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(791,3):
error : Native linking failed. Please review the build log.
This is Vatsal from Branch.io.
Can you try setting linker behavior with "Framework SDK's only"? It should fix the issue.
Related
I am using Visual Studio Professional 2015, with Intel Parallel Studio (to provide intel fortran compiler) on Windows machine, and I am testing FFTW routines with a Fortran program that works perfectly fine on a Linux machine. I downloaded and installed FFTW on the Windows machine (converted .def to .lib files), and tested a simple C++ code that calls FFTW functions. This test runs fine.
When doing the same with a test-fortran program, I get the following error message:
1>------ Build started: Project: fftw_fortran_test, Configuration: Debug x64 ------
1>Linking...
1>Searching libraries
1> Searching libfftw3-3.lib:
1> Searching C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018\windows\compiler\lib\Intel64_win\ifmodintr.lib:
1> Searching C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018\windows\compiler\lib\Intel64_win\ifconsol.lib:
.....................................
1> Searching C:\Program Files (x86)\Windows Kits\10\Lib\10.0.17763.0\um\x64\uuid.lib:
1>Finished searching libraries
1>fftw_fortran_test.obj : error LNK2019: unresolved external symbol DFFTW_PLAN_DFT_1D referenced in function MAIN__
1>fftw_fortran_test.obj : error LNK2019: unresolved external symbol DFFTW_EXECUTE referenced in function MAIN__
1>fftw_fortran_test.obj : error LNK2019: unresolved external symbol DFFTW_DESTROY_PLAN referenced in function MAIN__
1>x64\Debug\fftw_fortran_test.exe : fatal error LNK1120: 3 unresolved externals
1>
1>fftw_fortran_test - 4 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
It appears that the FFTW library is being searched. I also use the following command to look for symbols inside the library and it appears that the functions are in the library
C:>dumpbin /exports libfftw3-3.lib | more
Microsoft (R) COFF/PE Dumper Version 14.00.24215.1
Copyright (C) Microsoft Corporation. All rights reserved.
Dump of file libfftw3-3.lib
File Type: LIBRARY
Exports
ordinal name
dfftw_cleanup_
dfftw_cleanup__
dfftw_cleanup_threads_
dfftw_cleanup_threads__
dfftw_cost_
dfftw_cost__
dfftw_destroy_plan_
dfftw_destroy_plan__
dfftw_estimate_cost_
dfftw_estimate_cost__
dfftw_execute_
dfftw_execute__
dfftw_execute_dft_
dfftw_execute_dft__
dfftw_execute_dft_c2r_
dfftw_execute_dft_c2r__
dfftw_execute_dft_r2c_
dfftw_execute_dft_r2c__
dfftw_execute_r2r_
dfftw_execute_r2r__
dfftw_execute_split_dft_
dfftw_execute_split_dft__
dfftw_execute_split_dft_c2r_
dfftw_execute_split_dft_c2r__
dfftw_execute_split_dft_r2c_
dfftw_execute_split_dft_r2c__
dfftw_export_wisdom_
dfftw_export_wisdom__
dfftw_flops_
dfftw_flops__
dfftw_forget_wisdom_
dfftw_forget_wisdom__
dfftw_import_system_wisdom_
dfftw_import_system_wisdom__
dfftw_import_wisdom_
dfftw_import_wisdom__
dfftw_init_threads_
dfftw_init_threads__
dfftw_plan_dft_
dfftw_plan_dft_1d_
dfftw_plan_dft_1d__
dfftw_plan_dft_2d_
dfftw_plan_dft_2d__
dfftw_plan_dft_3d_
dfftw_plan_dft_3d__
I am unable to figure out why the code would not compile and link to the FFTW library. Any help is deeply appreciated. Thanks!
Since FFTW is written in C, I tried adding underscore at the end of the function name but that did not help.
I have a static library (.a) whose include "FastPdfKit.framework". (My Xcode project runs correctly)
This static library is included in xamarin project and i have to bind "FastPdfKit.framework".
So i did: project options -> iOS Build -> Additionnal mtouch arguments (--framework:${ProjectDir}/frameworks/FastPdfKit.framework).
But this mani doesn't run, i've got linked error:
ld: warning: ignoring file
/Users/../Documents/XAMARIN/MyApp.IOS/frameworks/FastPdfKit.framework/FastPdfKit,
missing required architecture arm64 in file
/Users/../Documents/XAMARIN/MyApp.IOS/frameworks/FastPdfKit.framework/FastPdfKit
(2 slices) Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_MFDocumentManager", referenced from:
objc-class-ref in MyLib.a(Page.o)
"_OBJC_CLASS_$_ReaderViewController", referenced from:
objc-class-ref in MyLib.a(Page.o)
ld: symbol(s) not found for architecture arm64 clang: error: linker command failed
with exit code 1 (use -v to see invocation)
MTOUCH: error MT5209: Native linking error: warning: ignoring file
/Users/../Documents/XAMARIN/MyApp.IOS/frameworks/FastPdfKit.framework/FastPdfKit,
missing required architecture arm64 in file
/Users/../Documents/XAMARIN/MyApp.IOS/frameworks/FastPdfKit.framework/FastPdfKit
(2 slices) MTOUCH: error MT5211: Native linking failed, undefined
Objective-C class: MFDocumentManager. The symbol
'_OBJC_CLASS_$_MFDocumentManager' could not be found in any of the
libraries or frameworks linked with your application. MTOUCH: error
MT5211: Native linking failed, undefined Objective-C class:
ReaderViewController. The symbol '_OBJC_CLASS_$_ReaderViewController'
could not be found in any of the libraries or frameworks linked with
your application.
MTOUCH: error MT5202: Native linking failed. Please
review the build log.
Can anyone help me???
Thanks,
Yann
OK, i found.
It was architecture problem. I don't know why because I set architecture option correctly, but not all of architecture setting was generated
Use command line "xcrun -sdk iphoneos lipo -info MyLib.a" to check which architecture is generated.
The error is really very clear, the librarty doesn't support the arm64 architecture as is requested by the project, you need a library compatible with your project's architectures.
I used Xcode to build a example of boost, but as you see followed it is failed. And the error
I've got is:
Undefined symbols for architecture x86_64:
"boost::system::system_category()", referenced from:
___cxx_global_var_init2 in sync_client.o
boost::asio::error::get_system_category() in sync_client.o
boost::system::error_code::error_code() in sync_client.o
"boost::system::generic_category()", referenced from:
___cxx_global_var_init in sync_client.o
___cxx_global_var_init1 in sync_client.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I don't know how I can fix it. I've added the include and libs path of boost into Xcode Build Setting. Does anyone have any idea about this problem?
Either link against a pre-built version of libboost-system.so or pull in libs/system/src/error_code.cpp (from your boost source package), into your project.
I'm trying to learn OpenGL and using openglbook.com as my reference. I'm trying to get GLEW and freeglut to work on my computer, and so I'm starting out by going through the steps he lays out for getting them working with Visual Studio here: http://openglbook.com/setting-up-opengl-glew-and-freeglut-in-visual-c. I'm following it to the letter and the only difference is that I'm using Visual Studio 2010 Ultimate.
The issue appears when I try to use GLEW; when this happens I get a linker error. Here's the full text of the error message:
1>------ Build started: Project: gl1, Configuration: Debug Win32 ------
1>Build started 2012/07/28 20:12:19.
1>InitializeBuildStatus:
1> Touching "Debug\gl1.unsuccessfulbuild".
1>ClCompile:
1> All outputs are up-to-date.
1>ManifestResourceCompile:
1> All outputs are up-to-date.
1>main.obj : error LNK2019: unresolved external symbol __imp__glewGetErrorString#4 referenced in function _Initialize
1>main.obj : error LNK2019: unresolved external symbol __imp__glewInit#0 referenced in function _Initialize
1>c:\users\magpie\documents\visual studio 2010\Projects\gl1\Debug\gl1.exe : fatal error LNK1120: 2 unresolved externals
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.84
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Any help? When I first encountered this error, I tried compiling GLEW from source, but that didn't fix it either (assuming I did that correctly).
This error means that the compiler cannot find the implementation of the methods described in the header file. To statically compile GLEW with your application, add the glew32.lib file to the library search directories (project properties -> VC search directories).
I've been attempting to install glew and freeglut to use with Visual Studio 2010. I followed this guide and have backtracked a few times to make sure I followed it correctly but I still get the following errors when I try and compile the example code at the end:
Error 1 error LNK2019: unresolved external symbol _imp_glutMainLoop#0 referenced in function _main c:\Users\Esteban\documents\visual studio 2010\Projects\Chapter 1 Project\Chapter 1 Project\main.obj Chapter 1 Project
Error 2 error LNK2019: unresolved external symbol _imp_glutDisplayFunc#4 referenced in function _InitWindow c:\Users\Esteban\documents\visual studio 2010\Projects\Chapter 1 Project\Chapter 1 Project\main.obj Chapter 1 Project
Error 3 error LNK2019: unresolved external symbol _imp_glutReshapeFunc#4 referenced in function _InitWindow c:\Users\Esteban\documents\visual studio 2010\Projects\Chapter 1 Project\Chapter 1 Project\main.obj Chapter 1 Project
Error 4 error LNK2019: unresolved external symbol _imp_glutInitDisplayMode#4 referenced in function _InitWindow c:\Users\Esteban\documents\visual studio 2010\Projects\Chapter 1 Project\Chapter 1 Project\main.obj Chapter 1 Project
and more just like those. I don't know if its a problem but originally I accidentally grabbed the 64bit version. I realized my mistake and overwrote the files with the 32bit versions, then cleaned and attempted the build again with the same result.
Are you sure that you have done "Step 6: Project Settings (Linker)" in linked guide correctly? It seems that the linker is unable to find symbols that are defined in those libraries (glew and glut32.lib). Also make sure that the Visual Studio knows where to find those libraries (Project->Properties->Configuration properties->VC++ Directories->Library Directories).
All the unresolved external symbols should be found in freeglut.lib. Are you sure that you are properly linking to this library?
Instead of trying to accomplish this in the you could just insert the following line of code in one of your header files:
#pragma comment(lib, "freeglut.lib")
I had this problem too. It turns out I was using the express version of visual studios, so I had to download microsoft sdk to get 64bit openGL libraries. Basically, I found this guide more helpful: http://www.cs.uregina.ca/Links/class-info/315/WWW/Lab1/GLUT/windows.html