Reply to topic

Tellico 3.0.1, Btparse and Fedora/Korora

bitmizer
Registered Member
Posts
8
Karma
0
I'm not a programmer and I am new to Linux. I'm running Korora 25 on a stick as a test bed. I managed to build Tellico 3.0.1 with only one error:

Could NOT find Btparse (missing: Btparse_INCLUDE_DIRS) :o

I did some research and found the perl-Text-BibTeX package and install it, but still have the same problem. :'(

In CMakeLists.txt file, Btparse URL is "https://metacpan.org/release/Text-BibTeX"
In the Korora repository, perl-Text-BibTeX URL is "http://search.cpan.org/dist/Text-BibTeX/"

Though they have different repository names, these are one and the same. Same version and developer. :-\

Is there a way to get perl-Text-BibTeX to be recognized as libbtparse through CMakeLists.txt or FindBtpasre.cmake files? ???
robbystephenson
KDE Developer
Posts
268
Karma
1
OS
bitmizer wrote:I'm not a programmer and I am new to Linux. I'm running Korora 25 on a stick as a test bed. I managed to build Tellico 3.0.1 with only one error:

Could NOT find Btparse (missing: Btparse_INCLUDE_DIRS) :o

I did some research and found the perl-Text-BibTeX package and install it, but still have the same problem. :'(

In CMakeLists.txt file, Btparse URL is "https://metacpan.org/release/Text-BibTeX"
In the Korora repository, perl-Text-BibTeX URL is "http://search.cpan.org/dist/Text-BibTeX/"

Though they have different repository names, these are one and the same. Same version and developer. :-\

Is there a way to get perl-Text-BibTeX to be recognized as libbtparse through CMakeLists.txt or FindBtpasre.cmake files? ???

The package installs the btparse. file, right? Is that location in your path? I don't know how the default path on Korora is set up. CMake is using the cmake/modules/FindBtparse.cmake file to look for the library. The CMakeCache file may have some clues, too.

Also note that Tellico has an internal copy of btparse that it uses if the external library is not found. So you're not actually losing any capability if you continue compilation without finding the external btparse library.
bitmizer
Registered Member
Posts
8
Karma
0
robbystephenson wrote:The package installs the btparse. file, right? Is that location in your path? I don't know how the default path on Korora is set up. CMake is using the cmake/modules/FindBtparse.cmake file to look for the library. The CMakeCache file may have some clues, too.


Yes and no. I looked at CMakeCache, Yum's Package Filelist and verified with Dolphin that perl-Text-BibTeX installs three btparse files at the following locations:
/usr/bin/bibparse - (cmake doesn't look for it)
/usr/lib64/libbtparse.so - (cmake - found)
/usr/share/man/man1/btparse.1.gz - (cmake doesn't look for it)

It does not install the include file:
/usr/include/btparse.h - (cmake - missing)

I'm not sure if copying btparse.h from tellico-3.0.1/src/3rdparty/btparse/ and placing it in /user/include/ would cause a problem, so I guess I won't do that.

Also note that Tellico has an internal copy of btparse that it uses if the external library is not found. So you're not actually losing any capability if you continue compilation without finding the external btparse library.


I guess I'll try that, see what happens and post my results.

Korora = Fedora
[idea=]naming perl-Text-BibTeX package = package path /usr/lib64/perl5/vendor_perl/Text/BibTeX/[/idea]
robbystephenson
KDE Developer
Posts
268
Karma
1
OS
There is a distinction between having the libbtparse library installed (which you do) and having the development headers installed (which you might not). I'm not sure how perl modules work, whether there are -dev packages or not. That's pretty much why the build is failing.
bitmizer
Registered Member
Posts
8
Karma
0
In additon to the btparse error, there were two other errors during the build process and they are:

-- Looking for strlwr - not found
-- Looking for strupr - not found

I also ran make test and failed miserably. Here is what failed:

2:entitytest
3:cuecattest
4:isbntest
5:lccntest
6:lcctest
7:formattest
8:fieldtest
9:comparisontest
10:imagetest
11:collectiontest
12:documenttest
13:filtertest
14:adstest
15:alexandriatest
16:amctest
17:bibtextest
18:bibtexmltest
19:citetest
20:ciwtest
21:csvtest
22:delicioustest
23:filelistingtest
24:gcstartest
25:griffithtest
26:htmlexportertest
27:modstest
28:referencertest
29:ristest
30:tellicoreadtest
31:vinoxmltest
32:pdftest

I looked in some of these test files and saw everyone that had "#include <QObject>" failed. Do I need PythonQt?

I'm using clang, though gcc and gcc++ are installed. What am I missing? What am I doing wrong? :-\
robbystephenson
KDE Developer
Posts
268
Karma
1
OS
bitmizer wrote:I'm not a programmer and I am new to Linux. I'm running Korora 25 on a stick as a test bed. I managed to build Tellico 3.0.1 with only one error

bitmizer wrote:I also ran make test and failed miserably. Here is what failed:

2:entitytest
...
What am I missing? What am I doing wrong? :-\

First, no, PythonQt is not needed. But many Qt5 and KDE Frameworks 5 development libraries are needed. If you were able to successfully build Tellico, that means you do have all those libraries. For example, after you run CMake, you should see a list something like:
Code: Select all
The following REQUIRED packages have been found:
* ECM (required version >= 1.3.0)
* Qt5Core
* Qt5Gui (required version >= 5.7.0)
* Qt5Widgets
* Qt5Xml
...
It's not clear to me if, in fact, you did build Tellico successfully or not. If you did, I would expect those tests to run successfully, too. So I'm not sure what to suggest. If you run something like entitytest directly, what output does it show?
bitmizer
Registered Member
Posts
8
Karma
0
My original problem still exists with btparse. The perl-Text-BibTeX package I found in the Fedora repository only installs /usr/lib64/libbtparse.so which is found during the cmake process. It doe not install /usr/linclude/ btparse.h or /usr/linclude/bt_config.h that libbtparse-dev installs. The Fedora repository does not have libbtparse, libtparse-dev or any package that will install the appropriate files in their needed locations for the build to work. I'll have to wait for the Fedora Repo to provide them or figure out how to compile them myself. Therefore, I accepted your answer to ignored that error and built Tellico using the internal btparse.

As for my build error I posted, let's chalk it up to inexperience. I needed to invoke make before trying make test. Now the tests run, however, I get "Failed" errors or "OTHER_FAULT" errors. I'm not sure if it's because of missing tokens or api keys. One error I do not understand:
Code: Select all
Makefile:127: recipe for target 'test' failed
make: *** [test] Error 8

I don't now enough about how Linux works, file structures or file extensions. Unfortunately, I'm more familiar with Windows.

For this thread, I believe you already supplied the best answer.

I'm going start another topic for compiling Tellico on Fedora/Korora. https://forum.kde.org/viewtopic.php?f=200&t=139389

I compiled and installed Tellico on Korora, but I get runtime errors when launching from the menu and have to use the "Restart App" function provided. Tellico seems to work fine, except the webcam feature doesn't work well. https://forum.kde.org/viewtopic.php?f=200&t=133483#p359079

 
Reply to topic

Bookmarks



Who is online

Registered users: 1ykos, Baidu [Spider], Bing [Bot], bionan, boudewijn, Exabot [Bot], Google [Bot], JesusM, johnguicar, La Ninje, Majestic-12 [Bot], paulus3005, SleepySapphy, Sogou [Bot], Yahoo [Bot]