Error compiling iPhone tweak - jailbreak

I am trying to compile a iPhone tweak I just created and I am getting some errors I can not seem to find a solution for and help would be appreciated.
Undefined symbols for architecture armv6:
"_OBJC_CLASS_$_UIAlertView", referenced from:
objc-class-ref in Tweak.xm.o
ld: symbol(s) not found for architecture armv6
collect2: ld returned 1 exit status
make[2]: *** [obj/tweakTest.dylib] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [tweakTest.all.tweak.variables] Error 2

You need to include the UIKit framework in your project and add #import <UIKit/UIKit.h> in your .xm file.

Related

Makefile:144: recipe for target 'all' failed Error Build Static QT

The command (cia cmd.exe) in Windows 10
configure -release -opensource -confirm-license -prefix C:\Qt\6.1.3\Build
went through without problems, but now I get the following error message with
make -j8
I always get the following error message and it aborts.
make[1]: *** [qtbase/src/tools/androiddeployqt/CMakeFiles/androiddeployqt.dir/all] Error 2
[ 15%] Linking CXX static library ......\lib\libQt6DeviceDiscoverySupport.a
Generating version linker script
[ 15%] Built target DeviceDiscoverySupport
Makefile:144: recipe for target 'all' failed
make: *** [all] Error 2
Thank you, I will do from now on.
Have here times a little of the error message which occurred before with attached, vlt. can someone with it what begin and help me.
C:/Qt/6.1.3/Src/qtbase/src/corelib/text/qstringconverter.h:189:87: internal compiler error: in make_rtl_for_nonlocal_decl, at cp/decl.c:6590
Q_CORE_EXPORT static const Interface encodingInterfaces[Encoding::LastEncoding + 1];
^
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://sourceforge.net/projects/mingw-w64> for instructions.
qtbase\src\tools\androiddeployqt\CMakeFiles\androiddeployqt.dir\build.make:90: recipe for target 'qtbase/src/tools/androiddeployqt/CMakeFiles/androiddeployqt.dir/main.cpp.obj' failed
make[2]: *** [qtbase/src/tools/androiddeployqt/CMakeFiles/androiddeployqt.dir/main.cpp.obj] Error 1
CMakeFiles\Makefile2:12798: recipe for target 'qtbase/src/tools/androiddeployqt/CMakeFiles/androiddeployqt.dir/all' failed
make[1]: *** [qtbase/src/tools/androiddeployqt/CMakeFiles/androiddeployqt.dir/all] Error 2
[ 15%] Linking CXX static library ..\..\..\lib\libQt6DeviceDiscoverySupport.a
Generating version linker script
[ 15%] Built target DeviceDiscoverySupport
Makefile:144: recipe for target 'all' failed
make: *** [all] Error 2

Error in building qtsampleplayer

I am getting the following error in building qtsampleplayer:
ubuntu#ubuntu:~/Libdash/libdash/libdash/qtsampleplayer/build$ make
[ 3%] Automoc for target qtsampleplayer
[ 3%] Built target qtsampleplayer_automoc
Linking CXX executable qtsampleplayer
i386-linux-gnu/libQt5Gui.so.5.2.1:undefined reference to symbol 'inflateInit2_'
/libz.so.1:error adding symbols:DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [qtsampleplayer] Error 1
make[1]: *** [CMakeFiles/qtsampleplayer.dir/all] Error 2
make: *** [all] Error 2
Tried several options like giving path of libz.so in command line but no help
Regards
Mayank
collect2: error: ld returned 1 exit status that means basically that something before went wrong.
/libz.so.1:error adding symbols:DSO missing from command linethat means that he is not finding DSO so you have not included correctly the libz.so BUT before it says: i386-linux-gnu/libQt5Gui.so.5.2.1:undefined reference to symbol 'inflateInit2_' So your problem is not in libz.so, it can be in libQt5Gui .
Do you really have both libraries where your project is looking? Seems the program is not finding them

Did anything change in QT_UI_WRAP

I am trying to wrap QT UI in QT5 using a command
QT5_UI_WRAP (ui_forms/file.h ui_file.ui)
I have include QT5Widgets. Somehow this isn't working. Now everywhere I read, this is what needs to be done but there is always an error saying the .h file was not found. I have included the ui_forms folder in include path. Is there anything more that needs to be done with this. ? Am I missing something ?
fatal error: ui_results_view.h: No such file or directory
compilation terminated.
make[2]: *** [CMakeFiles/location_recognition.dir/src/results_scene.cpp.o] Error 1
make[1]: *** [CMakeFiles/location_recognition.dir/all] Error 2
make: *** [all] Error 2

Qt Compilation with dbus

I am trying to compile qt with dbus but it gives me the following exception. I have installed the dbus version 1.3 in the system and I am using the following configure command.
Can someone point me as to what should be done.
configure -dbus -I/usr/include/dbus-1.0 -L/usr/local/dbus/lib -ldbus-1 -fast -prefix /home/thwijeth/Software/qt-4.8.1-com-debug -v
thank you in advance.
qdbus_symbols_p.h:39: fatal error: dbus/dbus.h: No such file or directory
compilation terminated.
In file included from qdbusconnection_p.h:51,
from qdbusconnection.cpp:33:
qdbus_symbols_p.h:39: fatal error: dbus/dbus.h: No such file or directory
compilation terminated.
make[1]: *** [qdbuserror.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [qdbusconnection.o] Error 1
In file included from qdbusconnectioninterface.cpp:33:
qdbus_symbols_p.h:39: fatal error: dbus/dbus.h: No such file or directory
compilation terminated.
make[1]: *** [qdbusconnectioninterface.o] Error 1
In file included from qdbusconnection_p.h:51,
from qdbusintegrator.cpp:33:
qdbus_symbols_p.h:39: fatal error: dbus/dbus.h: No such file or directory
compilation terminated.
make[1]: *** [qdbusintegrator.o] Error 1
make[1]: Leaving directory `/home/thwijeth/Software/qt-repo/qt-4.8.1-src/src/dbus'
make: *** [sub-dbus-make_default-ordered] Error 2
verify if /usr/include/dbus-1.0 contains a dbus directory, if it does not, verify whether /usr/include/dbus-1.0 contains dbus.h, if so you need to create a symbolic link to dbus-1.0 as dbus
ln -s dbus-1.0 /usr/include/dbus
and then try to rerun configure.
This solution worked fine for me for this missing header. However, I got then a different error fatal error: dbus/dbus-arch-deps.h: No such file. I worked around this error by copying this file from /usr/lib/x86_64-linux-gnu/dbus-1.0/include/dbus to /usr/include/dbus-1.0/dbus/. I don't know why this header was not in the /usr/include directory from the beginning. But this is my hack to the problem.
Regards

Qt compile error when use tslib with angstrom g++

In the above scenario I am getting the following compile error. Can someone tell me why? I am using the following doc as my guide line
http://billforums.station51.net/viewtopic.php?f=8&t=15
ts_test.o: In function `main':
ts_test.c:(.text+0x1d8): undefined reference to `rpl_malloc'
fbutils.o: In function `open_framebuffer':
fbutils.c:(.text+0xa7c): undefined reference to `rpl_malloc'
collect2: ld returned 1 exit status
make[2]: *** [ts_test] Error 1
ts_harvest.o: In function `main':
ts_harvest.c:(.text+0x5d0): undefined reference to `rpl_malloc'
fbutils.o: In function `open_framebuffer':
fbutils.c:(.text+0xa7c): undefined reference to `rpl_malloc'
collect2: ld returned 1 exit status
make[2]: *** [ts_harvest] Error 1
make[2]: Leaving directory `/home/thwijeth/Downloads/tslib-1.0/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/thwijeth/Downloads/tslib-1.0'
make: *** [all] Error 2
ts_test.o: In function `main':
ts_test.c:(.text+0x1d8): undefined reference to `rpl_malloc'
fbutils.o: In function `open_framebuffer':
fbutils.c:(.text+0xa7c): undefined reference to `rpl_malloc'
collect2: ld returned 1 exit status
make[2]: *** [ts_test] Error 1
ts_harvest.o: In function `main':
ts_harvest.c:(.text+0x5d0): undefined reference to `rpl_malloc'
fbutils.o: In function `open_framebuffer':
fbutils.c:(.text+0xa7c): undefined reference to `rpl_malloc'
collect2: ld returned 1 exit status
make[2]: *** [ts_harvest] Error 1
make[2]: Leaving directory `/home/thwijeth/Downloads/tslib-1.0/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/thwijeth/Downloads/tslib-1.0'
make: *** [all] Error 2
A simple Google search on "rpl_malloc" finds many references to this issue, with suggestions for solutions. The problem is that the Autoconf configure script is having trouble finding malloc for some reason, and tries to fall back to rpl_malloc. There are a couple of suggestions to work around this:
1.) Define the ac_cv_func_malloc_0_nonnull=yes environment variable before you run configure, for instance by running configure (assuming a bash shell) as:
ac_cv_func_malloc_0_nonnull=yes ./configure <your configure options>
or
2.) Manually change the configure script to comment out the rpl_malloc problem AC_FUNC_MALLOC line by prefixing it with a #.
(Reference: this blog post, among others)

Resources