Linux: Error compile DSView 0.96

Help to track any bugs about DSView software
Hello,

I compiled DSView 0.96 (download master 23.08.2016 per download-button ) with Debian 8 and have ERRORs.


Code: Select all
In file included from /home/jo/Downloads/dreamsource_dl_homepage_0_96/DSView-master/DSView/pv/sigsession.cpp:48:0:
/home/jo/Downloads/dreamsource_dl_homepage_0_96/DSView-master/DSView/pv/view/dsosignal.h:252:20: error: ‘DSO_MS_END’ was not declared in this scope
     QRect _ms_rect[DSO_MS_END-DSO_MS_BEGIN];
                    ^
/home/jo/Downloads/dreamsource_dl_homepage_0_96/DSView-master/DSView/pv/view/dsosignal.h:252:31: error: ‘DSO_MS_BEGIN’ was not declared in this scope
     QRect _ms_rect[DSO_MS_END-DSO_MS_BEGIN];
                               ^
/home/jo/Downloads/dreamsource_dl_homepage_0_96/DSView-master/DSView/pv/view/dsosignal.h:256:17: error: ‘DSO_MS_END’ was not declared in this scope
     bool _ms_en[DSO_MS_END-DSO_MS_BEGIN];
                 ^
/home/jo/Downloads/dreamsource_dl_homepage_0_96/DSView-master/DSView/pv/view/dsosignal.h:256:28: error: ‘DSO_MS_BEGIN’ was not declared in this scope
     bool _ms_en[DSO_MS_END-DSO_MS_BEGIN];



Can anywhere help ?


Joerg
jolinux
 
Posts: 13
Joined: Thu Nov 19, 2015 1:33 am

I downloaded today the latest code from the git repository and it compiled without problems on Debian 8 on AMD64.
Maybe try it again if you still have the problem and it could be fixed.
Rainer
 
Posts: 17
Joined: Tue Aug 19, 2014 1:53 am

Hello,

I found my mistake.


The problem is, I want to install the new DSView-Version 0.96 not at the default system-path. I need the old DSView-Verson 0.94 also and this was installed by default at /usr/local/bin/.

The new Libs was config with prefix
./configure --prefix=/home/jo/local_dsview_0_96

but the compiler has the problem to include the new .h-Files (not the correct expanded inc-Path).
So the Error is correct and my mistake.

Also I found a way to install to a local-installdir, but it's complicated !

thank you
Jörg
jolinux
 
Posts: 13
Joined: Thu Nov 19, 2015 1:33 am

I have tried to compile it on Ubuntu 16.04 but it fails on a decoderstack.cpp file. Any idea why?

/home/salman/Downloads/DSView-master/DSView/pv/data/decoderstack.cpp: In member function ‘void pv::data::DecoderStack::decode_data(uint64_t, uint64_t, unsigned int, srd_session*)’:
/home/salman/Downloads/DSView-master/DSView/pv/data/decoderstack.cpp:486:29: error: invalid use of incomplete type ‘struct srd_session’
for (GSList *d = session->di_list; d; d = d->next) {
^
In file included from /home/salman/Downloads/DSView-master/DSView/pv/data/decoderstack.h:24:0,
from /home/salman/Downloads/DSView-master/DSView/pv/data/decoderstack.cpp:29:
/usr/local/include/libsigrokdecode/libsigrokdecode.h:32:8: note: forward declaration of ‘struct srd_session’
struct srd_session;
^
/home/salman/Downloads/DSView-master/DSView/pv/data/decoderstack.cpp:510:63: error: invalid conversion from ‘uint64_t {aka long unsigned int}’ to ‘const uint8_t* {aka const unsigned char*}’ [-fpermissive]
(chunk_end - i) * unit_size, unit_size, &error) != SRD_OK) {
^
/home/salman/Downloads/DSView-master/DSView/pv/data/decoderstack.cpp:510:63: error: invalid conversion from ‘uint8_t* {aka unsigned char*}’ to ‘uint64_t {aka long unsigned int}’ [-fpermissive]
/home/salman/Downloads/DSView-master/DSView/pv/data/decoderstack.cpp:510:63: error: too many arguments to function ‘int srd_session_send(srd_session*, uint64_t, uint64_t, const uint8_t*, uint64_t)’
In file included from /home/salman/Downloads/DSView-master/DSView/pv/data/decoderstack.h:24:0,
from /home/salman/Downloads/DSView-master/DSView/pv/data/decoderstack.cpp:29:
/usr/local/include/libsigrokdecode/libsigrokdecode.h:278:13: note: declared here
SRD_API int srd_session_send(struct srd_session *sess,
^
/home/salman/Downloads/DSView-master/DSView/pv/data/decoderstack.cpp:515:35: error: ‘struct srd_decoder_inst’ has no member named ‘logic_mask’
if (logic_di && logic_di->logic_mask != 0) {
^
/home/salman/Downloads/DSView-master/DSView/pv/data/decoderstack.cpp:516:42: error: ‘struct srd_decoder_inst’ has no member named ‘cur_pos’
uint64_t cur_pos = logic_di->cur_pos;
^
/home/salman/Downloads/DSView-master/DSView/pv/data/decoderstack.cpp:518:74: error: ‘struct srd_decoder_inst’ has no member named ‘logic_mask’
uint64_t sample = _snapshot->get_sample(cur_pos) & logic_di->logic_mask;
^
/home/salman/Downloads/DSView-master/DSView/pv/data/decoderstack.cpp:519:27: error: ‘struct srd_decoder_inst’ has no member named ‘edge_index’
if (logic_di->edge_index == -1) {
^
/home/salman/Downloads/DSView-master/DSView/pv/data/decoderstack.cpp:524:51: error: ‘struct srd_decoder_inst’ has no member named ‘logic_mask’
if (index != -1 && (logic_di->logic_mask & (1 << index))) {
^
/home/salman/Downloads/DSView-master/DSView/pv/data/decoderstack.cpp:532:62: error: ‘struct srd_decoder_inst’ has no member named ‘edge_index’
bool last_sample = (sample & (1 << logic_di->edge_index)) ? 1 :
^
/home/salman/Downloads/DSView-master/DSView/pv/data/decoderstack.cpp:535:97: error: ‘struct srd_decoder_inst’ has no member named ‘edge_index’
apshot->get_nxt_edge(cur_pos, last_sample, decode_end, 1, logic_di->edge_index)
^
/home/salman/Downloads/DSView-master/DSView/pv/data/decoderstack.cpp:537:73: error: ‘struct srd_decoder_inst’ has no member named ‘logic_mask’
sample = _snapshot->get_sample(cur_pos) & logic_di->logic_mask;
^
/home/salman/Downloads/DSView-master/DSView/pv/data/decoderstack.cpp:538:61: error: ‘struct srd_decoder_inst’ has no member named ‘edge_index’
last_sample = (sample & (1 << logic_di->edge_index)) ? 1 :
^
/home/salman/Downloads/DSView-master/DSView/pv/data/decoderstack.cpp:539:45: error: ‘struct srd_decoder_inst’ has no member named ‘exp_logic’
} while(sample != logic_di->exp_logic);
^
/home/salman/Downloads/DSView-master/DSView/pv/data/decoderstack.cpp: In member function ‘void pv::data::DecoderStack::decode_proc()’:
/home/salman/Downloads/DSView-master/DSView/pv/data/decoderstack.cpp:621:42: error: too many arguments to function ‘int srd_session_start(srd_session*)’
if (srd_session_start(session, &error) == SRD_OK)
^
In file included from /home/salman/Downloads/DSView-master/DSView/pv/data/decoderstack.h:24:0,
from /home/salman/Downloads/DSView-master/DSView/pv/data/decoderstack.cpp:29:
/usr/local/include/libsigrokdecode/libsigrokdecode.h:275:13: note: declared here
SRD_API int srd_session_start(struct srd_session *sess);
^
CMakeFiles/DSView.dir/build.make:1457: recipe for target 'CMakeFiles/DSView.dir/pv/data/decoderstack.cpp.o' failed
make[2]: *** [CMakeFiles/DSView.dir/pv/data/decoderstack.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/DSView.dir/all' failed
make[1]: *** [CMakeFiles/DSView.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
salmanisheikh
 
Posts: 4
Joined: Fri Sep 05, 2014 10:57 am


Return to Bugs Report

Who is online
Users browsing this forum: No registered users and 1 guest