Hello,
I'm attempting to build sam-ba_3.1.4 from source on my linux machine.
I cloned the git repo, https://github.com/atmelcorp/sam-ba
and downloaded all necessary requirements as specified in the BUILD.md file.
When I run "make" I receive the following error:
/home/davis/touchscreen/sam-ba/3.x/sam-ba/src/plugins/connection/jlink/sambaconnectionjlinkhelper.cpp:17:25: fatal error: JLinkARMDLL.h: No such file or directory
#include <JLinkARMDLL.h>
^
compilation terminated.
make[4]: *** [sambaconnectionjlinkhelper.o] Error 1
So I went to the Segger website to grab the JLink SDK.
I ended up downloading the following two files:
JLink_Linux_V612a_arm.tgz
JLink_Linux_V612a_x86_64.tgz
however neither contain the header file: JLinkARMDLL.h
Any idea how to solve this dependency?
Thank you,
Davis
sam-ba 3.1.4 compiler error because JLinkARMDLL.h not found
Moderator: nferre
- blue_z
- Location: USA
Post
Regards
Re: sam-ba 3.1.4 compiler error because JLinkARMDLL.h not fo
That file indicates that the Seggar souce code is not open source.davisroman wrote:I cloned the git repo, https://github.com/atmelcorp/sam-ba
and downloaded all necessary requirements as specified in the BUILD.md file.
Did you purchase a SDK license?davisroman wrote:So I went to the Segger website to grab the JLink SDK.
I ended up downloading the following two files:
Regards
Post
Re: sam-ba 3.1.4 compiler error because JLinkARMDLL.h not fo
Oops, I should have read the BUILD.md file (https://github.com/atmelcorp/sam-ba/blo ... r/BUILD.md) a little more carefully. It indeed says that the Jlink SDK is not public.
In which case I'll just have to connect over serial and do without JTAG for now.
For posterity, here's how I was able to build sam-ba 3.1.4:
Output:
Thanks!
In which case I'll just have to connect over serial and do without JTAG for now.
For posterity, here's how I was able to build sam-ba 3.1.4:
Code: Select all
#!/bin/bash
# Qt development environment needs to be installed on your host machine before you run this script.
# Here's the version I used:
# https://download.qt.io/archive/qt/5.5/5.5.1/qt-opensource-linux-x64-5.5.1.run
PATH_TO_QT_INSTALLED_BINARIES=~/Qt5.5.1/5.5
git clone https://github.com/atmelcorp/sam-ba.git
#Remove support for connectivity over Jlink if Segger's Jlink SDK hasn't been purchased.
#http://shop-us.segger.com/J_Link_SDK_p/8.08.06.htm
sed -i 's/jlink//' sam-ba/src/plugins/connection/connection.pro
mkdir -v BUILD RELEASE
pushd BUILD/
${PATH_TO_QT_INSTALLED_BINARIES}/gcc_64/bin/qmake -r ../sam-ba/sam-ba.pro
make INSTALL_ROOT=$(readlink -f ../RELEASE) install
popd
Code: Select all
davis@devel:/tmp/mywork$ ls -la RELEASE/
total 148
drwxrwxr-x 7 davis davis 4096 Dec 5 20:05 .
drwxrwxr-x 5 davis davis 4096 Dec 5 20:05 ..
-rw-r--r-- 1 davis davis 1577 Dec 5 20:05 CHANGELOG.txt
drwxrwxr-x 5 davis davis 4096 Dec 5 20:05 doc
drwxrwxr-x 8 davis davis 4096 Dec 5 20:05 examples
drwxrwxr-x 2 davis davis 4096 Dec 5 20:05 lib
-rw-r--r-- 1 davis davis 18092 Dec 5 20:05 LICENSE.txt
drwxrwxr-x 2 davis davis 4096 Dec 5 20:05 metadata
drwxrwxr-x 4 davis davis 4096 Dec 5 20:05 qml
-rw-r--r-- 1 davis davis 17 Dec 5 20:05 qt.conf
-rw-r--r-- 1 davis davis 1430 Dec 5 20:05 README.txt
-rwxr-xr-x 1 davis davis 89432 Dec 5 20:05 sam-ba
davis@devel:/tmp/mywork$ ./RELEASE/sam-ba --help
SAM-BA Command Line Tool v3.1.4
Copyright 2015-2016 ATMEL Corporation
Usage: ./RELEASE/sam-ba [options]
Options:
-v, --version Displays version information.
-h, --help Displays this help.
-x, --execute <script.qml> Execute script <script-file>.
-p, --port <port[:options:...]> Communicate with device using <port>.
-d, --device <device> Connected device is <device>.
-b, --board <board> Connected board is <board>.
-m, --monitor <command[:options:...]> Run monitor command <command>.
-a, --applet <applet[:options:...]> Load and initialize applet <applet>.
-c, --command <command[:args:...]> Run command <command>.
davis@devel:/tmp/mywork$
Who is online
Users browsing this forum: No registered users and 1 guest