Trying to compile "screendump" for iOS 14; "error: import of C++ module '<C++ module>' appears within extern "C" language" #777
Replies: 1 comment
-
(base) zhs@zhsdeMacBook-Pro screendump % cat Makefile include $(THEOS)/makefiles/common.mk TOOL_NAME = screendumpd include $(THEOS_MAKE_PATH)/tool.mk
|
Beta Was this translation helpful? Give feedback.
-
Hello,
This is my first venture into trying to compile an iOS application so sorry for the WoT.
macOS: Ventura 13.6.1 on Apple Silicon (MBP 16" 2021 M1 Pro)
iOS: 15.3.1 on iPhone 7 Plus
Theos: 2.5.0
Jailbreak: palera1n-c
Package manager: Sileo
What am I trying accomplish:
To run the iOS-app (req. jailbreak) "Screendump" to remote control my iPhone.
What I've tried:
https://alias20.gitlab.io/apt/
Read this:
https://www.reddit.com/r/jailbreak/comments/14camur/tutorial_get_screendump_vnc_working_on_ios_15/
did this:
curl https://raw.githubusercontent.com/thesteveway/screendump/master/screendump/en.plist -o en.plist && ldid -Sen.plist /usr/libexec/screendumpd
returns
(ldid: /usr/libexec/screendumpd: No such file or directory)
curl https://raw.githubusercontent.com/thesteveway/screendump/master/screendump/en.plist -o en.plist && ldid -Sen.plist /var/jb//usr/libexec/screendumpd
returns
' '
Ok (now for the theos-part):
git clone https://github.com/julioverne/screendump.git
/Users/InfiniteBSOD/Documents/git/screendump/screendump
executed:
make
returned:
> Making all for tool screendumpd… ==> Error: File /mnt/d/codes/screendump/main.mm does not exist. make[1]: *** [before-screendumpd-all] Error 1 make: *** [screendumpd.all.tool.variables] Error 2
to this:
https://github.com/okanon/iPhoneOS.sdk/tree/master
but then read it didn't include "IOMobileFramebuffer" so downloaded the closest SDK (iPhoneOS11.4.sdk) from here;
https://github.com/theos/sdks
and edited my "Makefile" replacing:
TARGET = iphone:11.2:10.0
with
TARGET = iphone:latest:11.4
"Warning: Building for iOS 11.4, but the current toolchain can’t produce arm64e binaries for iOS earlier than 14.0. More information: https://theos.dev/docs/arm64e-deployment"
TARGET = iphone:latest:11.4
with
TARGET = iphone:latest:14.5
and re-ran "make" which returned;
So I'm trying to resolve:
error: import of C++ module '<C++ module>' appears within extern "C" language linkage specification
but I'm out of luck.
I have never tried to compile a iOS-application from source before, I am doing this because I think it is fun and to learn something new so these errors might be obvious, I might be barking up a wrong tree in that it would not work even if I'm able to "fix" all the errors in the code and "update" it to be able to be compiled for iOS 14.0 but would appreciate help regardless.
Best Regards - InfiniteBSOD
Beta Was this translation helpful? Give feedback.
All reactions