Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 227171 - dev-ada/qtada installs wrong project file
Summary: dev-ada/qtada installs wrong project file
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: ada team [OBSOLETE]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-15 13:01 UTC by Philipp Riegger
Modified: 2012-04-06 22:00 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Riegger 2008-06-15 13:01:47 UTC
The file /usr/lib/ada/i686-pc-linux-gnu-gnat-gpl-4.1/gpr/qt_core.gpr contains the following lines:
"
project Qt_Core is
   for Languages use ("Ada");
   for Source_Dirs use ("/usr/include/qtada/core");
   for Library_Name use "qt4ada-core";
   for Object_Dir use "/usr/lib/qtada";
   for Library_Dir use "/usr/lib";
   for Externally_Built use "True";
end Qt_Core;
"

The Source_Dirs and the Object_Dir does not exist. This should either be changed in the project file or the files should be installd there.
Comment 1 Nick Schwindt 2008-07-25 21:26:39 UTC
I attempted to get a qtada demo program (http://download.qtada.com/ada_mine-0.0.1.tar.gz) running and ran into this issue.

After some manual tweaking of files/configurations I was able to play minesweeper.  
--------------------
In /usr/lib/ada/i686-pc-linux-gnu-gnat-gpl-4.1/gpr, for qt_core.gpr  qt_designer.gpr, qt_gui.gpr, qt_sql.gpr, & qt_ui_tools.gpr, I did the following:

1)Changed "for Source_Dirs use ("/usr/include/qtada/....." to "for Source_Dirs  use ("/usr/include/ada/qtada/...."

2)Changed "for Object_Dir use "/usr/lib/qtada" to 
"for Object_Dir use "/usr/lib/ada/i686-pc-linux-gnu-gnat-gpl-4.1/qtada";

3)Changed "for Library_Dir use "/usr/lib" to 
"for Library_Dir use "/usr/lib/ada/i686-pc-linux-gnu-gnat-gpl-4.1/qtada/libs";

After all that, I made a libs directory under /usr/lib/ada/i686-pc-linux-gnu-gnat-gpl-4.1/qtada/ and copied all the .so. and .la files there.  I modified the libdir variable in the .la files 
to point to "/usr/lib/ada/i686-pc-linux-gnu-gnat-gpl-4.1/qtada/libs".

Finally, I manually tweaked /etc/env.d/55gnat... to have /usr/lib/ada/i686-pc-linux-gnu-gnat-gpl-4.1/qtada/libs in the LDPATH.  Reran env-update, sourced /etc/profile & compiled & ran ada_mine without issue.

I did the library copying after reading this info:
http://www.adacore.com/wp-content/files/auto_update/gnat-unw-docs/html/gnat_ugn_12.html#SEC155

I guess the Library_Dir & Object_Dir can't be the same.

Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2012-04-06 22:00:27 UTC
qtada was removed from Portage, see bug 286550 for continuation