SLKBUILD cmake Template

You think you have found a bug? Let us know about it.
Post Reply
User avatar
laprjns
Salix Warrior
Posts: 1105
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

SLKBUILD cmake Template

Post by laprjns »

I believe that there is a typo in the cmake SLKBUILD template, see below. Also, there appear to be no sources for slkbuild in the 15.0 source repository,

[Beginning of snippet from cmake SLKBUILD]
# to see available flags.
cmake \
-DCMAKE_C_FLAGS:STRING="$CFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$CXXFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DMAN_INSTALL_DIR=/usr/man \
-DCMAKE_BUILD_TYPE=Release \
.. <==== Typo Here??
make -j $numjobs || return 1
make install DESTDIR=$startdir/pkg

cd ..
[end snippit of cmake SLKBUILD]
“Don’t you see that the whole aim of Newspeak is to narrow the range of thought?"
DidierSpaier
Posts: 518
Joined: 20. Jun 2016, 20:15

Re: SLKBUILD cmake Template

Post by DidierSpaier »

Hi,

assuming you are speaking of https://github.com/gapan/slkbuild/blob/ ... UILD.cmake there is no typo. You run the cmake command from the 'build' sub-directory of $startdir/src/$pkgname-$pkgver but its target is $startdir/src/$pkgname-$pkgver whose relative path is ".." from $startdir/src/$pkgname-$pkgver/build.
User avatar
laprjns
Salix Warrior
Posts: 1105
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: SLKBUILD cmake Template

Post by laprjns »

DidierSpaier wrote: 6. Feb 2023, 13:54 You run the cmake command from the 'build' sub-directory of $startdir/src/$pkgname-$pkgver but its target is $startdir/src/$pkgname-$pkgver whose relative path is ".." from $startdir/src/$pkgname-$pkgver/build.
Ok, thanks. That explains why my build fails.
“Don’t you see that the whole aim of Newspeak is to narrow the range of thought?"
User avatar
gapan
Salix Wizard
Posts: 6238
Joined: 6. Jun 2009, 17:40

Re: SLKBUILD cmake Template

Post by gapan »

Yes, you need this part that comes before the cmake command:

Code: Select all

        mkdir -p build
        cd build
I just added the missing source files in the source repo. No idea why they were missing. You should find them as soon as mirrors sync.
Image
Image
Post Reply