moiji-mobile / diag-parser

DIAG parser and to GSMTAP converter
https://moiji-mobile.com
GNU General Public License v3.0
63 stars 32 forks source link

Build File Error , No MakeFile Found and no target specified Ubuntu 16.04 #5

Closed ahmed-gitid closed 6 years ago

ahmed-gitid commented 7 years ago

When building the diag parser using the provided build.sh , after installing all the dependencies the build does not build completely with errors as ..: Libraries have been installed in: /home/ahmed/Downloads/diag-parser-mast/build/deps/libosmocore/../install/lib

If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the '-LLIBDIR' flag during linking and do at least one of the following:

See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages.

make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/home/ahmed/Downloads/diag-parser-mast/build/deps/libosmocore/src/ctrl' make[2]: Leaving directory '/home/ahmed/Downloads/diag-parser-mast/build/deps/libosmocore/src/ctrl' Making install in src/sim make[2]: Entering directory '/home/ahmed/Downloads/diag-parser-mast/build/deps/libosmocore/src/sim' make[3]: Entering directory '/home/ahmed/Downloads/diag-parser-mast/build/deps/libosmocore/src/sim' make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/home/ahmed/Downloads/diag-parser-mast/build/deps/libosmocore/src/sim' make[2]: Leaving directory '/home/ahmed/Downloads/diag-parser-mast/build/deps/libosmocore/src/sim' Making install in tests make[2]: Entering directory '/home/ahmed/Downloads/diag-parser-mast/build/deps/libosmocore/tests' make[3]: Entering directory '/home/ahmed/Downloads/diag-parser-mast/build/deps/libosmocore/tests' make[3]: Nothing to be done for 'install-exec-am'. make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/home/ahmed/Downloads/diag-parser-mast/build/deps/libosmocore/tests' make[2]: Leaving directory '/home/ahmed/Downloads/diag-parser-mast/build/deps/libosmocore/tests' Making install in utils make[2]: Entering directory '/home/ahmed/Downloads/diag-parser-mast/build/deps/libosmocore/utils' make[3]: Entering directory '/home/ahmed/Downloads/diag-parser-mast/build/deps/libosmocore/utils' /bin/mkdir -p '/home/ahmed/Downloads/diag-parser-mast/build/deps/libosmocore/../install/bin' /bin/bash ../libtool --mode=install /usr/bin/install -c osmo-arfcn osmo-auc-gen '/home/ahmed/Downloads/diag-parser-mast/build/deps/libosmocore/../install/bin' libtool: install: /usr/bin/install -c .libs/osmo-arfcn /home/ahmed/Downloads/diag-parser-mast/build/deps/libosmocore/../install/bin/osmo-arfcn libtool: install: /usr/bin/install -c .libs/osmo-auc-gen /home/ahmed/Downloads/diag-parser-mast/build/deps/libosmocore/../install/bin/osmo-auc-gen make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/home/ahmed/Downloads/diag-parser-mast/build/deps/libosmocore/utils' make[2]: Leaving directory '/home/ahmed/Downloads/diag-parser-mast/build/deps/libosmocore/utils' make[2]: Entering directory '/home/ahmed/Downloads/diag-parser-mast/build/deps/libosmocore' make[3]: Entering directory '/home/ahmed/Downloads/diag-parser-mast/build/deps/libosmocore' make[3]: Nothing to be done for 'install-exec-am'. /bin/mkdir -p '/home/ahmed/Downloads/diag-parser-mast/build/deps/libosmocore/../install/lib/pkgconfig' /usr/bin/install -c -m 644 libosmocore.pc libosmocodec.pc libosmovty.pc libosmogsm.pc libosmogb.pc libosmoctrl.pc '/home/ahmed/Downloads/diag-parser-mast/build/deps/libosmocore/../install/lib/pkgconfig' make install-data-hook make[4]: Entering directory '/home/ahmed/Downloads/diag-parser-mast/build/deps/libosmocore' make[4]: Nothing to be done for 'install-data-hook'. make[4]: Leaving directory '/home/ahmed/Downloads/diag-parser-mast/build/deps/libosmocore' make[3]: Leaving directory '/home/ahmed/Downloads/diag-parser-mast/build/deps/libosmocore' make[2]: Leaving directory '/home/ahmed/Downloads/diag-parser-mast/build/deps/libosmocore' make[1]: Leaving directory '/home/ahmed/Downloads/diag-parser-mast/build/deps/libosmocore'

zecke commented 7 years ago

Where is the "cd ../.." coming from and in which directory will you be? The travis-ci script is executing:

./build/build_local.sh

this should work for you too?

ahmed-gitid commented 7 years ago

Actually I have been informed about the project osmo-qcdiag , I want to contribute to it too , I have worked with QMI and diag interfaces before , can you please tell me how to build it as there is no wiki on it or any information on how to compile , I tried building with libosmocore from source and the once from Ubuntu 16.04 repo , but both failed with errors as

cc -g -O0 -Wall pkg-config --cflags libosmocore pkg-config --cflags qmi-glib -o osmo-qcdiag-log diagchar_hdlc.o diag_io.o osmo-qcdiag-log.o diag_msg.o protocol.o diag_cmd.o gprs_l1.c gprs_rlc.o gprs_mac.o diag_gsm.o diag_log.o diag_log_gsm.o diag_log_gprs.o diag_log_wcdma.o diag_log_umts.o diag_log_qmi.o diag_dpl.o diag_log_simcard.o diag_event.o pkg-config --libs libosmocore pkg-config --libs qmi-glib diagchar_hdlc.o: In function osmo_crc16_ccitt_byte': /usr/include/osmocom/core/crc16.h:42: undefined reference to osmo_crc16_ccitt_table' diagchar_hdlc.o: In function crc_check': /home/ahmed/Downloads/Tx/Worki/osmo-qcdiag/src/diagchar_hdlc.c:252: undefined reference toosmo_crc16_ccitt' collect2: error: ld returned 1 exit status Makefile:8: recipe for target 'osmo-qcdiag-log' failed make: *** [osmo-qcdiag-log] Error 1

Can You please help me

On Tue, Feb 28, 2017 at 8:57 AM, Holger Freyther notifications@github.com wrote:

Where is the "cd ../.." coming from and in which directory will you be? The travis-ci script is executing:

./build/build_local.sh

this should work for you too?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/moiji-mobile/diag-parser/issues/5#issuecomment-282935345, or mute the thread https://github.com/notifications/unsubscribe-auth/AVERPF_JfUvMnMhD5-lEiMSNU5E8Rroiks5rg5tEgaJpZM4MNQ80 .

--

Regards, Muhammad Ahmed Android | iOS | Web Services Developer

zecke commented 7 years ago

The tables are generated, maybe check if there is another error before?

ahmed-gitid commented 7 years ago

There is no error before I've tried different versions of libosmocore and lib qmi on 2 different Linux distributions but it gets the same log.

If you have built it can you tell me about your configuration.

Thank you so much for replying On Mar 1, 2017 7:26 AM, "Holger Freyther" notifications@github.com wrote:

The tables are generated, maybe check if there is another error before?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/moiji-mobile/diag-parser/issues/5#issuecomment-283225891, or mute the thread https://github.com/notifications/unsubscribe-auth/AVERPGw44P_r6shVDRyTJUQyK2MhJpb5ks5rhNddgaJpZM4MNQ80 .

zecke commented 7 years ago

What about posting the full build log? Alternatively install libosmocore-dev from the nightly Debian/Ubuntu package feed of the Osmocom project?

ahmed-gitid commented 7 years ago

I have posted the full build trace/log , I cannot find the nightly repo , can you please help and also one more important thing is that I want to Build an interface for this project like QXDM , can you please tell that will this diag interface work with qualcom smartphones like Nexus 5, Galaxy s7 etc?

Also thankyou so so much for replying out of your precious time. I really appreciate :)

On Wed, Mar 1, 2017 at 3:01 PM, Holger Freyther notifications@github.com wrote:

What about posting the full build log? Alternatively install libosmocore-dev from the nightly Debian/Ubuntu package feed of the Osmocom project?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/moiji-mobile/diag-parser/issues/5#issuecomment-283296882, or mute the thread https://github.com/notifications/unsubscribe-auth/AVERPBqfTYH_CJc965DnN-bjDW08Zz8Oks5rhUH7gaJpZM4MNQ80 .

--

Regards, Muhammad Ahmed Android | iOS | Web Services Developer

zecke commented 7 years ago

Where did you post it to?

wget http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_8.0/Release.key 
sha256sum Release.key
=> 487d3c309facae16e83b3863bc042033fd02c41eb7183ced196d83225abb5729

echo "deb http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_8.0/ ./" > /etc/apt/sources.list.d/osmocom-nightly.list

for the Nightly on Debian 8.0. Package name is libosmocore-dev

ahmed-gitid commented 7 years ago

I'll try your suggestion now anyways here is the previous log I tried building with libosmocore from source and the once from Ubuntu 16.04 repo , but both failed with errors as

cc -g -O0 -Wall pkg-config --cflags libosmocore pkg-config --cflags qmi-glib -o osmo-qcdiag-log diagchar_hdlc.o diag_io.o osmo-qcdiag-log.o diag_msg.o protocol.o diag_cmd.o gprs_l1.c gprs_rlc.o gprs_mac.o diag_gsm.o diag_log.o diag_log_gsm.o diag_log_gprs.o diag_log_wcdma.o diag_log_umts.o diag_log_qmi.o diag_dpl.o diag_log_simcard.o diag_event.o pkg-config --libs libosmocore pkg-config --libs qmi-glib

diagchar_hdlc.o: In function `osmo_crc16_ccitt_byte':

/usr/include/osmocom/core/crc16.h:42: undefined reference to `osmo_crc16_ccitt_table'

diagchar_hdlc.o: In function `crc_check':

/home/ahmed/Downloads/Tx/Worki/osmo-qcdiag/src/diagchar_hdlc.c:252: undefined reference to `osmo_crc16_ccitt'

collect2: error: ld returned 1 exit status

Makefile:8: recipe for target 'osmo-qcdiag-log' failed

make: *** [osmo-qcdiag-log] Error 1

Can You please help me, also Can it work on Qualcomm based Android devices like nexus 5, On Mar 1, 2017 9:49 PM, "Holger Freyther" notifications@github.com wrote:

Where did you post it to?

wget http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_8.0/Release.key sha256sum Release.key => 487d3c309facae16e83b3863bc042033fd02c41eb7183ced196d83225abb5729

echo "deb http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_8.0/ ./" > /etc/apt/sources.list.d/osmocom-nightly.list

for the Nightly on Debian 8.0. Package name is libosmocore-dev

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/moiji-mobile/diag-parser/issues/5#issuecomment-283397643, or mute the thread https://github.com/notifications/unsubscribe-auth/AVERPD58zOCH0kPTLw7fQbMa9Hyt8iWsks5rhaF2gaJpZM4MNQ80 .

ahmed-gitid commented 7 years ago

Also Please see that attached file , and If you can tell me that this time of qmdl can be parsed using this library or not , It will be very helpful ?

On Wed, Mar 1, 2017 at 9:53 PM, Muhammad Ahmed muhammad.ahmedcs@gmail.com wrote:

I'll try your suggestion now anyways here is the previous log I tried building with libosmocore from source and the once from Ubuntu 16.04 repo , but both failed with errors as

cc -g -O0 -Wall pkg-config --cflags libosmocore pkg-config --cflags qmi-glib -o osmo-qcdiag-log diagchar_hdlc.o diag_io.o osmo-qcdiag-log.o diag_msg.o protocol.o diag_cmd.o gprs_l1.c gprs_rlc.o gprs_mac.o diag_gsm.o diag_log.o diag_log_gsm.o diag_log_gprs.o diag_log_wcdma.o diag_log_umts.o diag_log_qmi.o diag_dpl.o diag_log_simcard.o diag_event.o pkg-config --libs libosmocore pkg-config --libs qmi-glib

diagchar_hdlc.o: In function `osmo_crc16_ccitt_byte':

/usr/include/osmocom/core/crc16.h:42: undefined reference to `osmo_crc16_ccitt_table'

diagchar_hdlc.o: In function `crc_check':

/home/ahmed/Downloads/Tx/Worki/osmo-qcdiag/src/diagchar_hdlc.c:252: undefined reference to `osmo_crc16_ccitt'

collect2: error: ld returned 1 exit status

Makefile:8: recipe for target 'osmo-qcdiag-log' failed

make: *** [osmo-qcdiag-log] Error 1

Can You please help me, also Can it work on Qualcomm based Android devices like nexus 5, On Mar 1, 2017 9:49 PM, "Holger Freyther" notifications@github.com wrote:

Where did you post it to?

wget http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_8.0/Release.key sha256sum Release.key => 487d3c309facae16e83b3863bc042033fd02c41eb7183ced196d83225abb5729

echo "deb http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_8.0/ ./" > /etc/apt/sources.list.d/osmocom-nightly.list

for the Nightly on Debian 8.0. Package name is libosmocore-dev

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/moiji-mobile/diag-parser/issues/5#issuecomment-283397643, or mute the thread https://github.com/notifications/unsubscribe-auth/AVERPD58zOCH0kPTLw7fQbMa9Hyt8iWsks5rhaF2gaJpZM4MNQ80 .

--

Regards, Muhammad Ahmed Android | iOS | Web Services Developer

zecke commented 7 years ago

On 1 Mar 2017, at 21:38, ahmed-gitid notifications@github.com wrote:

Also Please see that attached file , and If you can tell me that this time of qmdl can be parsed using this library or not , It will be very helpful ?

I think attached attachments don't work. You will need to put the output into a block of:

TEXT...