Error when compiling a cydia tweak - compilation

So I have been working on a simple tweak and it literally took me 5 minutes to get the code written. However, I am getting this error now while I compile the tweak!
Here is the error:
Making all for tweak UltraVipPro...
`Making all for tweak UltraVipPro...
Preprocessing Tweak.xm...
Compiling Tweak.xm...
Linking tweak UltraVipPro...
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_UIAlertView", referenced from:
objc-class-ref in Tweak.xm.9fe5fe6c.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [obj/UltraVipPro.dylib.ba964c90.unsigned] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [UltraVipPro.all.tweak.variables] Error 2
The make file code is here:
export ARCHS = armv7 armv7s arm64
export TARGET = iphone:clang:8.1:8.1
export SDKVERSION=8.1
include theos/makefiles/common.mk
TWEAK_NAME = UltraVipPro
UltraVipPro_FILES = Tweak.xm
UltravipPro_FRAMEWORKS = UIKit
include $(THEOS_MAKE_PATH)/tweak.mk
after-install::
install.exec "killall -9 SpringBoard"
Please help me!

1- Make sure that you have this in your Tweak.xm file:
#import <UIKit/UIKit.h>
2- If that doesn't work, remove that header file import and use this instead:
#interface SpringBoard : NSObject
#end

im using this :
ARCHS = armv7 arm64
instead of this :
export ARCHS = armv7 armv7s arm64
remove the export

Related

Error when trying to build FreeTDS: Undefined symbols for architecture x86_64

When trying to build freeTDS for MacCatalyst, I get the following error in my terminal:
sqlwchar.c:104:2: error: SIZEOF_SQLWCHAR not supported !!
#error SIZEOF_SQLWCHAR not supported !!
I am not so familiar with auto tools, but I tried to have a look at my log file and it looks like some linking is failing, but I am not experienced enough to find the cause or a fix. The log says:
Undefined symbols for architecture x86_64:
"_shl_load", referenced from:
_main in conftest-8b1257.o
ld: symbol(s) not found for architecture x86_64
and many additional errors following like:
ld: library not found for -ldld
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:14459: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "FreeTDS"
I tried to fix using by using this fix without any success. What is the issue? Any help would be very appreciated.

Adding Static Library In Xcode 6

I'm using Xcode 6.0.1 and need to add a library libpt.a to my C project. I cannot figure out how to properly integrate it into my project. I have already done Link Binary With Libraries however I still continue to get this error:
Undefined symbols for architecture x86_64:
"_pt_add_xpage", referenced from:
_main in main.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 am assuming that the above error means that the library has not been integrated correctly. I have already added the header file pt.h and included into my project. What am I doing wrong?

Firefox 35.0.1 and last don`t build on MacOSX 10.8.5

Try to build firefox from source codes without some changes. Just downloaded the sources, unpacked and try. I run bootstrap.py and it install all need. After that i run "./mach build". Building run 66 mins, after that says:
66:27.53 NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
66:27.53 "_ures_getByIndex_52", referenced from:
66:27.53 icu_52::SimpleDateFormat::construct(icu_52::DateFormat::EStyle, icu_52::DateFormat::EStyle, icu_52::Locale const&, UErrorCode&) in libjs_static.a(smpdtfmt.o)
66:27.53 icu_52::DecimalFormatSymbols::initialize(icu_52::Locale const&, UErrorCode&, signed char) in libjs_static.a(dcfmtsym.o)
66:27.53 icu_52::openOlsonResource(icu_52::UnicodeString const&, UResourceBundle&, UErrorCode&) in libjs_static.a(timezone.o)
66:27.53 icu_52::TimeZone::dereferOlsonLink(icu_52::UnicodeString const&) in libjs_static.a(timezone.o)
66:27.53 _ucurr_forLocale_52 in libjs_static.a(ucurr.o)
66:27.53 _uprv_parseCurrency_52 in libjs_static.a(ucurr.o)
66:27.53 "_u_cleanup_52", referenced from:
66:27.53 JS_ShutDown() in libjs_static.a(jsapi.o)
66:27.53 ld: symbol(s) not found for architecture x86_64
66:27.53 clang: error: linker command failed with exit code 1 (use -v to see invocation)
66:27.53 gmake[5]: *** [jsapi-tests] Ошибка 1
66:27.53 gmake[4]: *** [js/src/jsapi-tests/target] Ошибка 2
66:27.53 gmake[3]: *** [compile] Ошибка 2
66:27.53 gmake[2]: *** [default] Ошибка 2
66:27.53 gmake[1]: *** [realbuild] Ошибка 2
66:27.53 gmake: *** [build] Ошибка 2
66:27.53 301 compiler warnings present.
66:27.61 /usr/bin/terminal-notifier -title Mozilla Build System -group mozbuild -message Build complete
I seen string "ld: symbol(s) not found for architecture x86_64" and go to build 32bit variant. Create .mozconfig:
CC="clang -arch i386"
CXX="clang++ -arch i386"
ac_add_options --target=i386-apple-darwin9.2.0
ac_add_options --enable-macos-target=10.5
HOST_CC="clang-4.2"
HOST_CXX="clang++-4.2"
RANLIB=ranlib
AR=ar
AS=$CC
LD=ld
STRIP="strip -x -S"
CROSS_COMPILE=1
And it build 33mins and show error:
33:13.84 clang: warning: unknown warning option '-Wno-tautological-constant-out-of-range-compare'; did you mean '-Wno-tautological-compare'?
33:13.86 warning: unknown warning option '-Wno-tautological-constant-out-of-range-compare'; did you mean '-Wno-tautological-compare'? [-Wunknown-warning-option]
33:13.86 1 warning generated.
33:13.93 1 warning generated.
33:14.08 1 warning generated.
33:14.29 1 warning generated.
33:14.30 libgfx_cairo_cairo_src.a.desc
33:14.38 gmake[3]: *** [compile] Ошибка 2
33:14.38 gmake[2]: *** [default] Ошибка 2
33:14.38 gmake[1]: *** [realbuild] Ошибка 2
33:14.38 gmake: *** [build] Ошибка 2
33:14.39 94 compiler warnings present.
33:14.42 /usr/bin/terminal-notifier -title Mozilla Build System -group mozbuild -message Build complete
Tell me please, what can help me for build FF?
P.S. If i try build last sources from git i this result too.
This is a bit of a strange answer, but I just started poking around in the firefox source and I notice this exact same build failure whenever I do a clobber build. If I proceed to ./mach build again without making any changes then the second build succeeds... shrug hope this helps

"Undefined symbols for architecture x86_64:"

I am attempting to compile this library on mac os x Mavericks 10.9.3 64-bit: http://www.openfec.org/downloads.html
I followed the README exactly, and got this error:
Linking C shared library ../../bin/Release/libopenfec.dylib
Undefined symbols for architecture x86_64:
"_of_add_from_multiple_symbols", referenced from:
_of_linear_binary_code_backward_substitution in of_ml_tool.c.o
"_of_add_to_symbol", referenced from:
_of_linear_binary_code_decode_with_new_symbol in of_it_decoding.c.o
_of_linear_binary_code_simplify_linear_system in of_ml_decoding.c.o
_of_linear_binary_code_col_forward_elimination_pivot_reordering in of_ml_tool.c.o
_of_linear_binary_code_apply_gauss_pivoting in of_ml_tool_2.c.o
_of_linear_binary_code_inject_symbol_in_triangular_system in of_ml_tool_2.c.o
_of_linear_binary_code_solve_triangular_system in of_ml_tool_2.c.o
_of_linear_binary_code_invert_dense_system in of_ml_tool_2.c.o
...
"_of_calloc", referenced from...:
...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: * [../bin/Release/libopenfec.dylib] Error 1
make[1]: * [src/CMakeFiles/openfec.dir/all] Error 2
make: *** [all] Error 2
I simply followed the README for OpenFEC's distro (found at http://www.openfec.org/downloads.html). When attempting to make, this error arises.
I have no idea what the problem is.
This is what I did after untarring the distribution:
(1.): mkdir build
(2.): cd build
(3.): cmake .. -DDEBUG:STRING=OFF
(4.): make
Any ideas?
Edit: Attempted to force cmake to use 64-bit, still didn't work.
(Tried to force it into 32-bit just for kicks, also didn't work)
FYI, if this wasn't resolved. Check that you're linking to your libraries properly.
FIND_LIBRARY(LIB_NAME_LIB lib)
TARGET_LINK_LIBRARIES(my_executable ${LIB_NAME_LIB})
In your CMakeLists.txt file.

How to compiling PJProject for iphone error

I am trying to compile PJSip for iPhoneSDK 5.1. I am running Lion 1.7.3 and Xcode 4.3.3. I did not find any helpful information about compiling it. I am not even sure it's got support for the iphonesdk 5.1. I didn't get any information about it on the project's website. I am not sure if something changed in the compiler from the last iPhoneSDK release but these are the errors i'm getting
I followed the steps on the project's website I change the config_site.h added the lines
#define PJ_CONFIG_IPHONE 1
#include <pj/config_site_sample.h>
Then moved the header to the location pjlib/include/pj/
I the configure-iphone file i've change the line
./aconfigure --host=arm-apple-darwin9 --disable-floating-point --disable-sdl $*
to
./aconfigure --host=arm-apple-darwin10 --disable-floating-point --disable-sdl $*
sow it would compile for iPhoneSDK 5.1
when i rune the configure-iphone everything i get no errors but when i run make sep i get this errors at samples.mak
make -f Samples.mak depend
make[2]: Nothing to be done for `depend'.
and while running make
"_pjsua_aud_subsys_start", referenced from:
_pjsua_media_subsys_start in libpjsua-arm-apple-darwin10.a(pjsua_media.o)
"_pjsua_vid_subsys_start", referenced from:
_pjsua_media_subsys_start in libpjsua-arm-apple-darwin10.a(pjsua_media.o)
ld: symbol(s) not found for architecture armv7
collect2: ld returned 1 exit status
make[2]: * [../bin/pjsua-arm-apple-darwin10] Error 1
make[1]: * [pjsua] Error 2
make: * [all] Error 1
Did anybody solve this problem , or can provide a solution to compile Pjsip for iphonesdk5.1 whit Xcode 4.3.3.
type ./configure-iphone in terminal at your pjsip directory
remember to install command-line tool via Xcode
when configure is done
try to make dep && make clean && make

Resources