By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.

Bug 3126

Summary: tdeio-locate: library path to libr omitted resulting in build failure
Product: TDE Reporter: aneejit1
Component: non-core programsAssignee: Timothy Pearson <kb9vqf>
Status: RESOLVED DUPLICATE    
Severity: normal CC: aneejit1, bugwatch
Priority: P5    
Version: R14.0.x [Trinity]   
Hardware: Other   
OS: Linux   
Compiler Version: TDE Version String:
Application Version: Application Name:
Attachments: Patch for tdeio-locate to include the libr library directory

Description aneejit1 2020-06-08 21:58:15 CDT
Created attachment 2969 [details]
Patch for tdeio-locate to include the libr library directory

My build environment is as follows:

- Trinity is installed to /opt/trinity
- TQt3 is installed to /opt/trinity/i686-pc-linux-gnu and /opt/trinity/x86_64-unknown-linux-gnu

The two copies of TQt3 are required to allow both 64-bit and 32-bit binaries to be generated as experience has shown me that this is the simplest and most reliable way to do this is rather than trying to overlay both versions.

When tdelibs is built using libr a dependency is created in later projects for that library which those projects do pick up on. There are, however, many instances where the library path to libr has not been specified in the "link_directories" statement and therefore the build fails because the library file cannot be located. The path specified in "TQT_LIBRARY_DIRS" does not resolve libr's location in this instance and so the build fails.

The patch attached is to rectify this problem. The ConfigureChecks.cmake file is amended to perform a non-mandatory check for the libr library on the system to allow LIBR_LIBRARY_DIRS to be set, if it is found. The CMakeLists.txt changes are to include the LIBR_LIBRARY_DIRS variable in the "link_directories" statement.

This issue was found to occur in the 14.0.8 release. The patch has been applied to a cloned copy of the repository version and has built successfully.
Comment 1 aneejit1 2020-06-15 09:49:49 CDT
To be resolved by making libr a private link in tdelibs (see bugs 3133 and 3135).

*** This bug has been marked as a duplicate of bug 3135 ***