Page 1 of 2
New installed Purebasic won´t work
Posted: Fri Dec 13, 2024 2:27 pm
by bytegetter
Hi,
I installed purebasic for testing purposes on my mac mini.
Version: PureBasic 6.12 LTS - C Backend (MacOS X - arm64)
Trying to compile a test-file results in following:
Code: Select all
Undefined symbols for architecture arm64:
"_objc_msgSend$AddGadgetItem:text:image:flags:", referenced from:
_PB_AddGadgetItem3 in Gadget.a(AddGadgetItem.o)
_PB_AddGadgetItem2 in Gadget.a(AddGadgetItem.o)
_PB_AddGadgetItem in Gadget.a(AddGadgetItem.o)
"_objc_msgSend$ClearGadgetItems", referenced from:
_PB_ClearGadgetItems in Gadget.a(ClearGadgetItems.o)
...
MAC: Mac mini, Apple M1, 15.1.1 (24B91) (Update to 15.2 keeps the problem)
XCODE:Version 16.1 (16B40) (kam als Autoupdate)
The same install-file works on a MacBook with M2 max and 14.xx MacOs.
Whats wrong?
See also:
https://www.purebasic.fr/german/viewtopic.php?p=367032
Re: New installed Purebasic won´t work
Posted: Sat Dec 14, 2024 12:40 am
by infratec
Have you also installed the xcode command line tools?
You can open a terminal and run:
To install them:
Re: New installed Purebasic won´t work
Posted: Sat Dec 14, 2024 9:52 am
by mk-soft
And ...
Command Line Tools Version
pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
My version ...
package-id: com.apple.pkg.CLTools_Executables
version: 16.1.0.0.1.1729049160
volume: /
location: /
install-time: 1730374632
Re: New installed Purebasic won´t work
Posted: Mon Dec 16, 2024 9:32 pm
by bytegetter
Here you are:
Code: Select all
marc@Mac-mini-2021-von-Marc tickets % xcode-select -p
/Library/Developer/CommandLineTools
marc@Mac-mini-2021-von-Marc tickets % xcode-select --install
xcode-select: note: Command line tools are already installed. Use "Software Update" in System Settings or the softwareupdate command line interface to install updates
marc@Mac-mini-2021-von-Marc tickets % pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
marc@Mac-mini-2021-von-Marc tickets % ls -la /Library/Developer/CommandLineTools
total 0
drwxr-xr-x 5 root wheel 160 25 Mai 2021 .
drwxr-xr-x 7 root wheel 224 11 Dez 10:59 ..
drwxr-xr-x 5 root wheel 160 20 Apr 2021 Library
drwxr-xr-x 6 root wheel 192 25 Mai 2021 SDKs
drwxr-xr-x 7 root wheel 224 20 Apr 2021 usr
marc@Mac-mini-2021-von-Marc tickets % brew config
HOMEBREW_VERSION: 4.4.11
ORIGIN: https://github.com/Homebrew/brew
HEAD: ad356d365837a691a52dfec32b3fb5f282f3aefc
Last commit: 7 days ago
Branch: stable
Core tap JSON: 09 Dec 13:10 UTC
Core cask tap JSON: 09 Dec 13:10 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.ADQoyniXTT/org.xquartz:0
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 3.3.6 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 12.0.5 build 1205
Git: 2.30.1 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 15.2-arm64
CLT: 12.5.0.22.9
Xcode: 16.2
Rosetta 2: false
Re: New installed Purebasic won´t work
Posted: Thu Dec 19, 2024 4:37 pm
by Piero
Maybe PB needs some intel stuff?
Code: Select all
softwareupdate --install-rosetta --agree-to-license
Re: New installed Purebasic won´t work
Posted: Thu Dec 19, 2024 4:50 pm
by Fred
No, PB is a pure arm64 app
Re: New installed Purebasic won´t work
Posted: Thu Dec 19, 2024 5:07 pm
by Piero
Fred wrote: Thu Dec 19, 2024 4:50 pm
No, PB is a pure arm64 app
I dunno Fred, forgive me; was thinking it may have been some "library" or stuff; I saw "Rosetta 2: false" in his "log"...
PS: anyway we invented Pizza
Re: New installed Purebasic won´t work
Posted: Fri Dec 20, 2024 10:50 am
by Lord
Piero wrote: Thu Dec 19, 2024 5:07 pm...
PS: anyway we invented Pizza
With Ananas?
Re: New installed Purebasic won´t work
Posted: Fri Dec 20, 2024 11:21 am
by bytegetter
Installed, no change.
I checked my Notebook:
Commandline-Tools are installed, but not xcode.
Re: New installed Purebasic won´t work
Posted: Fri Dec 20, 2024 2:58 pm
by mk-soft
Only command line tools needed ...
Redownload the Purebasic.dmg install. Perhaps defect
Re: New installed Purebasic won´t work
Posted: Fri Dec 20, 2024 3:05 pm
by bytegetter
I installed the same purebasic.dmg on both machines.
The error-message is well known:
https://www.google.com/search?client=fi ... jc_msgSend
I tried to install XCode 12.x, but its too old.
Re: New installed Purebasic won´t work
Posted: Fri Dec 20, 2024 3:10 pm
by Fred
Does every examples leads to the same error or you can compile some ?
Re: New installed Purebasic won´t work
Posted: Fri Dec 20, 2024 4:09 pm
by bytegetter
I tested of the 10 examples, everytime the same error.
Re: New installed Purebasic won´t work
Posted: Tue Dec 24, 2024 10:41 am
by Piero
Best explanation I can find: seems your "Xcode" (compiler) settings make it try to also build for other architectures…
https://forums.unrealengine.com/t/xcode ... 64/1747571
PS:
Lord wrote: Fri Dec 20, 2024 10:50 am
With Ananas?
Re: New installed Purebasic won´t work
Posted: Tue Dec 24, 2024 1:44 pm
by bytegetter
Is someone running Purebasic with MacOs 15.2?