Compile on ArchLinux

Post in this forum any question related to the installation on any of the supported platforms (Linux, Mac OS X, Windows)
Post Reply
pmsolid
Posts: 1
Joined: Thu Dec 10, 2020 5:47 pm

Compile on ArchLinux

Post 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

admin
Site Admin
Posts: 527
Joined: Mon Aug 13, 2007 11:48 am
Location: ISTerre
Contact:

Re: Compile on ArchLinux

Post 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.

Post Reply