SalomePlatform / kernel

GNU Lesser General Public License v2.1
3 stars 0 forks source link

The macro SIZEOF_INT must be defined. #3

Open wrxhardworking opened 3 days ago

wrxhardworking commented 3 days ago
/home/ethan/kernel/src/DSC/DSC_User/Datastream/Calcium/calciumf.c: In function ‘cplin_’:
/home/ethan/kernel/src/DSC/DSC_User/Datastream/Calcium/calciumf.c:174:2: error: #error "The macro SIZEOF_INT must be defined."
  174 | #error "The macro SIZEOF_INT must be defined."
      |  ^~~~~

i have construct the project,but when i use 'make' to complie, this erro happen ,should i modify the source code?

wrxhardworking commented 3 days ago

i have solve this problem , through define macro by myselef

nitawa commented 3 days ago

KERNEL requires several prerequisites among which omniORB. Please use SAT which will ease things or ensure that you compile with omniORB exposed.

Iceman9 commented 3 days ago

OmniORB versions >= 4.3.0 redefines SIZEOF_ macros as OMNISIZEOF.

More specifically in src/DSC/DSC_User/Datastream/Calcium/calciumf.c replace all instances of SIZEOF_ with OMNISIZEOF if you want to fix it manually.

nitawa commented 3 days ago

Are you running Ubuntu 24.04 ?

wrxhardworking commented 1 day ago

NO it's 20,24

wrxhardworking commented 1 day ago

OmniORB 版本 >= 4.3.0 将 SIZEOF_ 宏重新定义为 OMNISIZEOF

更具体地说,在 src/DSC/DSC_User/Datastream/Calcium/calciumf.c 中,如果要手动修复 SIZEOF_,请将其替换为 OMNISIZEOF

i defined SIZEOF_INT and SIZEOF_LONG ,it be OK.

wrxhardworking commented 1 day ago

KERNEL 需要几个先决条件,其中包括 omniORB.请使用 SAT,这将简化操作或确保您在公开 omniORB 的情况下进行编译。

today i use the SAT on windows, when i run the sat by python ,no one log , i don't know whether it is normal.