Comments (9)
Hi! Could you specify your CPU?
from removebooksdrm.
Hey. its an i7 - 1068NG7
from removebooksdrm.
It looks like you're getting warnings instead of errors. But since you're on an Intel CPU, I'd recommend removing the -arch arm64e
flag from build.sh
from removebooksdrm.
this is what it shows now:
injected.m:152:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
NSLog(baseDirectory);
^~~~~~~~~~~~~
injected.m:152:11: note: treat the string as an argument to avoid this
NSLog(baseDirectory);
^
@"%@",
injected.m:221:1: warning: non-void function does not return a value in all control paths [-Wreturn-type]
}
^
2 warnings generated.
Undefined symbols for architecture x86_64:
"_NSHomeDirectory", referenced from:
_try_decrypt_epub in injected-e9f96f.o
_discoverEPUB in injected-e9f96f.o
"_NSLog", referenced from:
_get_sinf in injected-e9f96f.o
_try_decrypt in injected-e9f96f.o
_write_file in injected-e9f96f.o
_write_file in injected-e9f96f.o
_write_file in injected-e9f96f.o
_make_base_epub_dir in injected-e9f96f.o
_try_decrypt_epub in injected-e9f96f.o
_try_decrypt_epub in injected-e9f96f.o
_try_decrypt_epub in injected-e9f96f.o
_try_decrypt_epub in injected-e9f96f.o
_try_decrypt_epub in injected-e9f96f.o
_try_decrypt_epub in injected-e9f96f.o
_try_decrypt_epub in injected-e9f96f.o
_try_decrypt_epub in injected-e9f96f.o
...
"OBJC_CLASS$_NSConstantArray", referenced from:
in injected-e9f96f.o
in injected-e9f96f.o
"OBJC_CLASS$_NSData", referenced from:
in injected-e9f96f.o
"OBJC_CLASS$_NSFileManager", referenced from:
in injected-e9f96f.o
"OBJC_CLASS$_NSString", referenced from:
in injected-e9f96f.o
"___CFConstantStringClassReference", referenced from:
in injected-e9f96f.o
in injected-e9f96f.o
in injected-e9f96f.o
in injected-e9f96f.o
in injected-e9f96f.o
in injected-e9f96f.o
in injected-e9f96f.o
...
"_objc_alloc", referenced from:
_get_sinf in injected-e9f96f.o
"_objc_enumerationMutation", referenced from:
_try_decrypt_epub in injected-e9f96f.o
"_objc_getClass", referenced from:
_try_decrypt in injected-e9f96f.o
"_objc_msgSend", referenced from:
_get_sinf in injected-e9f96f.o
_get_sinf in injected-e9f96f.o
_get_sinf in injected-e9f96f.o
_get_sinf in injected-e9f96f.o
_get_sinf in injected-e9f96f.o
_get_sinf in injected-e9f96f.o
_get_sinf in injected-e9f96f.o
...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
from removebooksdrm.
Maybe try adding the -lobjc
flag to the clang command.
from removebooksdrm.
now it shows this:
injected.m:152:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
NSLog(baseDirectory);
^~~~~~~~~~~~~
injected.m:152:11: note: treat the string as an argument to avoid this
NSLog(baseDirectory);
^
@"%@",
injected.m:221:1: warning: non-void function does not return a value in all control paths [-Wreturn-type]
}
^
2 warnings generated.
"/Library/Developer/CommandLineTools/usr/bin/ld" -demangle -lto_library /Library/Developer/CommandLineTools/usr/lib/libLTO.dylib -no_deduplicate -dynamic -dylib -arch x86_64 -platform_version macos 14.0.0 14.4 -syslibroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -o injected.dylib -L/usr/local/lib -lobjc /var/folders/qh/dc0_lqxj2791lvymgc_gpctr0000gn/T/injected-8dca0c.o -lSystem /Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/lib/darwin/libclang_rt.osx.a
Undefined symbols for architecture x86_64:
"_NSHomeDirectory", referenced from:
_try_decrypt_epub in injected-8dca0c.o
_discoverEPUB in injected-8dca0c.o
"_NSLog", referenced from:
_get_sinf in injected-8dca0c.o
_try_decrypt in injected-8dca0c.o
_write_file in injected-8dca0c.o
_write_file in injected-8dca0c.o
_write_file in injected-8dca0c.o
_make_base_epub_dir in injected-8dca0c.o
_try_decrypt_epub in injected-8dca0c.o
_try_decrypt_epub in injected-8dca0c.o
_try_decrypt_epub in injected-8dca0c.o
_try_decrypt_epub in injected-8dca0c.o
_try_decrypt_epub in injected-8dca0c.o
_try_decrypt_epub in injected-8dca0c.o
_try_decrypt_epub in injected-8dca0c.o
_try_decrypt_epub in injected-8dca0c.o
...
"OBJC_CLASS$_NSConstantArray", referenced from:
in injected-8dca0c.o
in injected-8dca0c.o
"OBJC_CLASS$_NSData", referenced from:
in injected-8dca0c.o
"OBJC_CLASS$_NSFileManager", referenced from:
in injected-8dca0c.o
"OBJC_CLASS$_NSString", referenced from:
in injected-8dca0c.o
"___CFConstantStringClassReference", referenced from:
in injected-8dca0c.o
in injected-8dca0c.o
in injected-8dca0c.o
in injected-8dca0c.o
in injected-8dca0c.o
in injected-8dca0c.o
in injected-8dca0c.o
...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
also it opens the tmp folder with the epub there, but its unreadable in Calibre.
from removebooksdrm.
also it opens the tmp folder with the epub there, but its unreadable in Calibre.
Yeah it's not going to work until the binary is built for x86_64. At least, it should work.
from removebooksdrm.
I'll try to look into this a bit more this weekend.
from removebooksdrm.
I suppose this one warrants a PR for architecture checks in the build script.
from removebooksdrm.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from removebooksdrm.