tcl

Vitis IDE invalid arguments

别等时光非礼了梦想. 提交于 2020-07-10 10:29:06
问题 I'm trying to create a boot image with TCL script on xsct console. But getting error. I couldn't find where I made a mistake. I couldn't find any results in Xilinx's documents and other forums. ERROR: source /home/nmi/Desktop/load.tcl Invalid arguments, name or processor not specified setws /home/nmi/workspace platform active zc702 app create -name fsbl -hw /home/nmi/Desktop/projeHDF/base_zynq_wrapper.xsa proc ps7_cortexa9_0 -os standalone -template {Zynq FSBL} app build -name fsbl exec

What is the exception that should be thrown when user input is blank?

血红的双手。 提交于 2020-07-09 14:52:32
问题 I've been searching for some time now, and I'm sure I've missed it, is there any documentation that states what should be thrown when a value is incorrect/blank? For example, Python has ValueError and the documentation clearly states when to use it. I have the following method: proc getJobinfo {question} { puts -nonewline "$question: " flush stdout gets stdin answer set cleanedanswer [string trim [string totitle $answer]] if {$cleanedanswer eq ""} { # What error should be thrown? } return

Install TCL/TK without root

别来无恙 提交于 2020-07-09 08:44:38
问题 I'm trying to install TCL/TK as a regular user on RedHat 5: TCL_VERSION=8.6.1 BASE_PATH=/myownpath tar -xzf tcl${TCL_VERSION}-src.tar.gz cd tcl${TCL_VERSION}/unix ./configure \ --prefix=${BASE_PATH} \ --without-tzdata \ --enable-64bit make -j9 sed -e "s@^\(TCL_SRC_DIR='\).*@\1${BASE_PATH}'@" \ -e "/TCL_B/s@='\(-L\)\?.*unix@='\1${BASE_PATH}/lib@" \ -i tclConfig.sh make install make install-private-headers chmod -v 755 ${BASE_PATH}/lib/libtcl*.so So far so good: ${BASE_PATH}/include/tcl.h

Install TCL/TK without root

a 夏天 提交于 2020-07-09 08:44:20
问题 I'm trying to install TCL/TK as a regular user on RedHat 5: TCL_VERSION=8.6.1 BASE_PATH=/myownpath tar -xzf tcl${TCL_VERSION}-src.tar.gz cd tcl${TCL_VERSION}/unix ./configure \ --prefix=${BASE_PATH} \ --without-tzdata \ --enable-64bit make -j9 sed -e "s@^\(TCL_SRC_DIR='\).*@\1${BASE_PATH}'@" \ -e "/TCL_B/s@='\(-L\)\?.*unix@='\1${BASE_PATH}/lib@" \ -i tclConfig.sh make install make install-private-headers chmod -v 755 ${BASE_PATH}/lib/libtcl*.so So far so good: ${BASE_PATH}/include/tcl.h

local machine _tkinter.TclError: couldn't connect to display “:0” [duplicate]

左心房为你撑大大i 提交于 2020-06-28 03:30:28
问题 This question already has an answer here : docker _tkinter.TclError: couldn't connect to display (1 answer) Closed 7 months ago . TLTR: Getting the following error while trying to display tkinter app on my local laptop (running Pop_OS!) _tkinter.TclError: couldn't connect to display ":0" Hello world, First off: Im new to posting questions here so bear with me. If something about my questioning isn't right please tell me. Im also a fresh ubuntu user (for a few months now). Now, onto my problem

dlopen works second time on bad shared library on ubuntu 11.04; does the right thing on centos 5.5

大憨熊 提交于 2020-06-27 05:03:28
问题 I have bad shared library (undefined symbol). When I call dlopen() on it the first time, I get a NULL result with correct error message from dlerror(). If I ignore the error message and call dlopen() using the same arguments, I get a non-null handle the second time (which indicates that the library was successfully loaded). This is obviously wrong. This problem occurs under Ubuntu 11.04 (IIRC, 10.10 did not have this problem). Centos 5.5 doesn't exhibit this problem. In particular, this

Calling proc within a tcl thread

血红的双手。 提交于 2020-05-28 07:55:40
问题 When I try to call a proc within a tcl thread, I get an error stating invalid command name. Following is my tcl code. Pls help in identifying why the proc is not recognized within the thread. Thanks. package require Thread proc CPUload { Start Stop } { for {set i $Start} {$i <= $Stop} {incr i} { set j [expr {sqrt($i)*sqrt($i)}] set k [expr {$i % 123}] } } set id1 [thread::create] catch {thread::send $id1 "CPUload 1 50000000"} ret puts $ret puts $errorInfo while {[llength [thread::names]] > 1}

Calling proc within a tcl thread

做~自己de王妃 提交于 2020-05-28 07:55:20
问题 When I try to call a proc within a tcl thread, I get an error stating invalid command name. Following is my tcl code. Pls help in identifying why the proc is not recognized within the thread. Thanks. package require Thread proc CPUload { Start Stop } { for {set i $Start} {$i <= $Stop} {incr i} { set j [expr {sqrt($i)*sqrt($i)}] set k [expr {$i % 123}] } } set id1 [thread::create] catch {thread::send $id1 "CPUload 1 50000000"} ret puts $ret puts $errorInfo while {[llength [thread::names]] > 1}

Calling proc within a tcl thread

99封情书 提交于 2020-05-28 07:54:20
问题 When I try to call a proc within a tcl thread, I get an error stating invalid command name. Following is my tcl code. Pls help in identifying why the proc is not recognized within the thread. Thanks. package require Thread proc CPUload { Start Stop } { for {set i $Start} {$i <= $Stop} {incr i} { set j [expr {sqrt($i)*sqrt($i)}] set k [expr {$i % 123}] } } set id1 [thread::create] catch {thread::send $id1 "CPUload 1 50000000"} ret puts $ret puts $errorInfo while {[llength [thread::names]] > 1}