LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Cmake and configure Help + Sigrok (https://www.linuxquestions.org/questions/slackware-14/cmake-and-configure-help-sigrok-4175468931/)

PeterUK 07-08-2013 06:14 PM

Cmake and configure Help + Sigrok
 
Before start could anyone point me to info how to do the Cmake configuration for Slackware + ./config?

Before start I would like to say I got going today a logic analyzer for less than 7 pounds, 18 lines upto 48Mhz. and so far tested with sigrock-cli and pulseview and it works highly recommended if you do any digital debugging, the board one of those Chinese boards with a CY7C68013A on board..

Let get back to the topic.

I did the installations manually of:

libsigrok
libsigrokdecode
sigrok-cli
PulseView
sigrok-firmware-fx2lafw

from here

I follow the guide from before:
Code:

git clone .....
./autogen.sh
./configure (I am not sure about this step)
make
make check <-- I added this but its was not doing any test
mkdir /tmp/file..
make install DESTDIR=/tmp/file..
cd tmp/file..
makepkg -l y -c n /tmp/libsigrok_eg-1-i686_SBo.tgz
upgradepkg --install-new /tmp/libsigrok_eg-1-i686_SBo.tgz

But that is how the website say but I am sure I missed something in ./configure step, right?

I know I am missing documentation and desktop link, right?

On pulse view was a bit different I used Cmake so it was a following:

Code:

git clone git://sigrok.org/pulseview
went in the folder
cmake -DCMAKE_C_FLAGS:STRING="-O2 -march=i686 -mtune=i686" -DCMAKE_CXX_FLAGS:STRING="-O2 -march=i686 -mtune=i686"  -DCMAKE_INSTALL_PREFIX=/usr
make
make install DESTDIR=/tmp/pulseview
went to that /tmp/pulseview folder and create the package as before. (makepkg .....) and installed

Code:

I left out "    -DLIB_SUFFIX=${LIBDIRSUFFIX} \
    -DCMAKE_BUILD_TYPE=Release .."

But I think this just dont do anything, right?

I know I am leaving out documentation and desktop link also here.

I tried sigrok-cli with the board and it works also pulseview, but one I am not sure I all went well and two I know like to know more about Cmake and ./config parameters, Thanks

gnashley 07-09-2013 12:09 AM

You need at least --prefix=/usr with configure:
./configure --prefix=/usr
To see more possible options, run './configure --help=short'

psionl0 07-09-2013 11:12 AM

The SlackBuild Templates will give you more information.


All times are GMT -5. The time now is 05:39 AM.