[Gambas-user] Gambas on Haiku?

T Lee Davidson t.lee.davidson at gmail.com
Mon Feb 21 19:15:51 CET 2022


On 2/21/22 10:17, Benoît Minisini wrote:
> Le 21/02/2022 à 16:06, Admin a écrit :
>>
>> Isn't this a much more serious problem then just some gtk3 and cairo absence:
>>
>>    CC       gbc3-gbc.o
>> In file included from gbc.c:56:
>> ../share/gb_system_temp.h: In function 'SYSTEM_get_cpu_count':
>> ../share/gb_system_temp.h:58:30: error: expected ')' before numeric constant
>>     58 |         fprintf(stderr, "gbx" GAMBAS_VERSION ": warning: don't know how to return cpu count\n");
>>        |                ~             ^
>>        |                              )
>> Makefile:1259: recipe for target 'gbc3-gbc.o' failed
>> make[4]: *** [gbc3-gbc.o] Error 1
>>
> 
> It should compile now with the latest commit.
> 
> But we must add in this include file a Haiku OS function that returns the number of physical threads the CPU(s) can handle.

https://www.haiku-os.org/docs/api/:
"The Haiku API is based on the BeOS R5 API but changes and additions have been included where appropriate. [... ] A complete 
reference to the BeOS R5 API is available on the web in The Be Book." [1]

The Function Index in that book lists the get_system_info() function [2]. This function returns a system_info structure that 
includes fields such as cpu_count, max_threads, and used_threads.

Is that what we need?


-- 
Lee

[1] https://haiku-os.org/legacy-docs/bebook/
[2] https://www.haiku-os.org/legacy-docs/bebook/TheKernelKit_SystemInfo.html#get_system_info


More information about the User mailing list