Liberation icon indicating copy to clipboard operation
Liberation copied to clipboard

Undefined symbols for architecture armv7

Open sup3rgiu opened this issue 8 years ago • 4 comments

ERROR

 Undefined symbols for architecture armv7:
  "liberation::Patch::CreatePatch(unsigned int, unsigned int)", referenced from:
      Init() in Tweak.xm.9c9f36a7.o
ld: symbol(s) not found for architecture armv7
clang-3.7: error: linker command failed with exit code 1 (use -v to see invocation)

Tweak.xm

#include <Liberation.h>

void Init() {
    Patch *patch1 = Patch::CreatePatch(0x244698, 0x0020);	
    patch1->Apply();
}

Makefile

ARCHS = armv7 arm64
include theos/makefiles/common.mk

TWEAK_NAME = Test
Test_FILES = Tweak.xm
Test_CFLAGS += -std=c++11 -stdlib=libc++ -Os
Test_LDFLAGS += -Wl,-segalign,4000
Test_LIBRARIES = c++ Liberation

include $(THEOS_MAKE_PATH)/tweak.mk

after-install::
	install.exec "killall -9 '-'"

sup3rgiu avatar Feb 13 '17 23:02 sup3rgiu

uhh now might not be the best time to use liberation. it's about to be completely redone

Razzile avatar Feb 14 '17 10:02 Razzile

Oh that's bad.

I was looking for an alternative to writeData because I don't know if it has problem on iOS >=9. Same patch for the same AppVersion works on iOS 8 and not on iOS 9 and 10 :/

Thanks anyway ;)

sup3rgiu avatar Feb 14 '17 19:02 sup3rgiu

there's absolutely no reason why it wouldn't work on iOS 9 or 10

Razzile avatar Feb 14 '17 19:02 Razzile

That's what I think too, but I also see no reason why the patch works on iOS 8 and not on iOS 9 or 10

sup3rgiu avatar Feb 14 '17 20:02 sup3rgiu