Compiling from source

Technical questions regarding the xTIMEcomposer, xSOFTip Explorer and Programming with XMOS.
User avatar
errordeveloper
Active Member
Posts: 50
Joined: Wed Dec 16, 2009 6:04 pm
Location: London

Compiling from source

Postby errordeveloper » Mon Aug 02, 2010 7:38 am

Hi, i'm insterested in compiling XDE from source,
i'm not to sure if OpenOCD, LLVM, LLVM-GCC, GNU binutils and NetBeans have any patches applied to them?
also is NetBeans for people who want to use it instead of eclipse??

the above packages are avaliable in many Linux distros,
is it better to use the versions provided on https://www.xmos.com/products/design-tools-source page,
or any other version can be used?

i have written this Tcl script to get the links for the latest packages:

##get_updates.tcl##
#!/usr/bin/tclsh

package require tls
package require http
package require tdom

#http::config -useragent "Wget/1.12"
http::register https 443 ::tls::socket

set src_site "https://www.xmos.com"
set src_path "/products/design-tools-source"

set tags {h3 download}

set src_htm [http::data [http::geturl $src_site$src_path]]

#puts $src_htm


proc get_file_list {data} {

set doc [dom parse -html $data]

set root [$doc documentElement]


set file_list {}

foreach node [$root selectNodes {descendant::a}] {

if {[$node attributes href] != "" && [$node attributes class] != ""} {

if {[$node getAttribute class] == "download"} then { lappend file_list [$node getAttribute href] }

}
}

$doc delete

return $file_list

}

set file_list [get_file_list $src_htm]

set version [join [lrange [split [lindex [split [file tail [lindex $file_list 0]] "_"] end] "."] 0 1] "."]

puts "found version $version"

set current [lsearch -inline -all $file_list "*$version*"]

foreach archive $current { exec wget -q $src_site$archive }

####

i'm going to write a gentoo ebuild based on the above :)

has anyone tried to compile XMOS tools from source?

Who is online

Users browsing this forum: No registered users and 0 guests