Page 1 of 1

Compile on ArchLinux

Posted: Thu Dec 24, 2020 3:07 pm
by pmsolid
Apparently Arch Linux has stopped including /usr/include/sys/sysctl.h in the distribution. Compilation hangs due to missing file. Apparrently, this file is not needed anyway.

SOLUTION:
Comment out line 44 in file CoreApplicationPrivate.cpp which is located in directory:

/usr/local/src/geopsypack-src-3.3.4/QGpCoreTools/src

Kernel version of ArchLinux is

Linux arch 5.9.14-arch1-1 #1 SMP PREEMPT Sat, 12 Dec 2020 14:37:12 +0000 x86_64 GNU/Linux

Re: Compile on ArchLinux

Posted: Mon Dec 28, 2020 8:46 pm
by admin
Thanks for the report.

sysctl() is used only to get the size of the physical memory under MacOS and BSD variants. Under Linux sysconf() is used instead and the include you commented is effectively useless.

I will fix it for the next releases.