Menu

#115 CMake Error: Unable to find Tcl, itcl or Tk libraries depite the fact they are installed and in directories where CMake is searching

release 7.2
open
nobody
5
2016-12-15
2016-12-15
Fadi R
No

Hello,

I'm trying to compile release 7.26.02. I initially got the error:

Code to determine current date and time failed!

So, I went into toplevel/CMakeLists.txt and entered the build date manually:

Line 630 to 640:

Original:

if(TIME_RESULT MATCHES "^0$")
file(READ ${CONFIG_TIME_DAY_FILE} CONFIG_DAY)
string(STRIP ${CONFIG_DAY} CONFIG_DAY)
file(READ ${CONFIG_TIME_MONTH_FILE} CONFIG_MONTH)
string(STRIP ${CONFIG_MONTH} CONFIG_MONTH)
file(READ ${CONFIG_TIME_YEAR_FILE} CONFIG_YEAR)
string(STRIP ${CONFIG_YEAR} CONFIG_YEAR)
set(CONFIG_DATE "${CONFIG_YEAR}${CONFIG_MONTH}${CONFIG_DAY}")
else(TIME_RESULT MATCHES "^0$")
message(FATAL_ERROR "Code to determine current date and time failed!\n")
endif(TIME_RESULT MATCHES "^0$")

Replacement:

if(TIME_RESULT MATCHES "^0$")
file(READ ${CONFIG_TIME_DAY_FILE} CONFIG_DAY)
string(STRIP ${CONFIG_DAY} CONFIG_DAY)
file(READ ${CONFIG_TIME_MONTH_FILE} CONFIG_MONTH)
string(STRIP ${CONFIG_MONTH} CONFIG_MONTH)
file(READ ${CONFIG_TIME_YEAR_FILE} CONFIG_YEAR)
string(STRIP ${CONFIG_YEAR} CONFIG_YEAR)
set(CONFIG_DATE "${CONFIG_YEAR}${CONFIG_MONTH}${CONFIG_DAY}")
else(TIME_RESULT MATCHES "^0$")
set(CONFIG_DATE "161214") #<===== I also tried "20161214"
endif(TIME_RESULT MATCHES "^0$")

After making this substitution, it seems to be working well for 70% of the cmake but then I hit this error where it says that it was unable to find Tcl, itcl or Tk libraries depite the fact they are installed and in directories where CMake was searching (see list below)

Here are the details:

Could not find at least one of Tcl, Itcl or Tk libraries in /usr/lib64,
/usr/lib64/itcl4.0.5, and /usr/lib64

But I have all of these libraries installed and the files are located in the folders that the folders that cmake was verifying. Here are the contents of the different folders:

/usr/lib64/itcl4.0.5/

itclConfig.sh
itclHullCmds.tcl
itcl.tcl
itclWidget.tcl
libitcl4.0.5.so
libitclstub4.0.5.a
pkgIndex.tcl

/usr/lib64/tk8.6/

see this pastebin: http://pastebin.com/kW2Cdig5

/usr/lib64/tcl8.6/

see this: http://pastebin.com/xk1tVTUv

It seems to me, I have all the needed libraries and the correct versions. I have check permission and everyone of the directories has read permissions given to everyone.

Any ideas?

Discussion


Log in to post a comment.