Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Titan » Titan Installation Issue on Cygwin
Titan Installation Issue on Cygwin [message #1758005] Wed, 22 March 2017 17:41 Go to next message
Ramakrishna Kommineni is currently offline Ramakrishna KommineniFriend
Messages: 12
Registered: March 2017
Junior Member
Hi,

I started Installation of Titan on Windows 7 using Cygwin. I have Installed the Cygwin with required packages as mentioned in the below link:
https://github.com/eclipse/titan.core/blob/master/README.cygwin

After this I have created the below Folder for TITAN installation:
${HOME}/software/titan/

Java is installed in the below location:
/cygdrive/f/Bin/Java/jdk1.8.0_111

Updated the ${HOME}/.bashrc as mentioned below:
export TTCN3_DIR=${HOME}/software/titan
export PATH=${TTCN3_DIR}/bin:${PATH}
export LD_LIBRARY_PATH=${TTCN3_DIR}/lib:${LD_LIBRARY_PATH}

Then executed the below command:
source ${HOME}/.bashrc

Now downloaded the titan.core using the below command:
git clone https://github.com/eclipse/titan.core.git ${HOME}/titan.core

Created the below Makefile.personal:
$ cat Makefile.personal
TTCN3_DIR := ${HOME}/software/titan
JDKDIR := /cygdrive/f/Bin/Java/jdk1.8.0_111
JNI := yes
GUI := yes
GEN_PDF := no
DEBUG := yes

Executed make -j
Output attached.

Executed make install. Below error is noticed:
$ make install
if test -h /home/rkommine/software/titan ; then \
echo /home/rkommine/software/titan is a symlink, you cannot be serious; exit 1; fi
rm -rf /home/rkommine/software/titan
make[1]: Entering directory '/home/rkommine/titan.core/common'
mkdir -p /home/rkommine/software/titan /include
cp version.h memory.h platform.h ttcn3float.hh pattern.hh CharCoding.hh JSON_Tokenizer.hh /home/rkommine/software/titan /include
cp: -r not specified; omitting directory '/home/rkommine/software/titan'
make[1]: *** [Makefile:86: install] Error 1
make[1]: Leaving directory '/home/rkommine/titan.core/common'
make: *** [Makefile:77: install] Error 2

Could anyone please help on this?

Regards,
Ramakrishna
Re: Titan Installation Issue on Cygwin [message #1758019 is a reply to message #1758005] Wed, 22 March 2017 18:47 Go to previous messageGo to next message
Elemer Lelik is currently offline Elemer LelikFriend
Messages: 854
Registered: January 2015
Senior Member
Hi Ramakrishna,

it appears that your 'make' was successful, but 'make install' failed.
Please try the following:

change in Makefile.personal TTCN3_DIR to

TTCN3_DIR := /home/rkommine/titan.core/Install


and run

make install

again.
If it is successful, than Titan components will be copied to ~/Install.
After that, you can copy it to it's intended directory.

BR

Elemer
Re: Titan Installation Issue on Cygwin [message #1758031 is a reply to message #1758019] Wed, 22 March 2017 19:57 Go to previous messageGo to next message
Ramakrishna Kommineni is currently offline Ramakrishna KommineniFriend
Messages: 12
Registered: March 2017
Junior Member
Hi Elemer,

As suggested, I have done the chnages to TTCN3_DIR:

$ cat Makefile.personal
TTCN3_DIR := /home/rkommine/titan.core/Install
JDKDIR := /cygdrive/f/Bin/Java/jdk1.8.0_111
JNI := yes
GUI := yes
GEN_PDF := no
DEBUG := yes

$ cat ~/.bashrc | grep export
export TTCN3_DIR=/home/rkommine/titan.core/Install
export PATH=${TTCN3_DIR}/bin:${PATH}
export LD_LIBRARY_PATH=${TTCN3_DIR}/lib:${LD_LIBRARY_PATH}

Then ran the below commands:

make clean
make -j

When I run the make install again the below error is coming:

$ make install
if test -h /home/rkommine/titan.core/Install ; then \
echo /home/rkommine/titan.core/Install is a symlink, you cannot be serious; exit 1; fi
rm -rf /home/rkommine/titan.core/Install
make[1]: Entering directory '/home/rkommine/titan.core/common'
mkdir -p /home/rkommine/titan.core/Install /include
cp version.h memory.h platform.h ttcn3float.hh pattern.hh CharCoding.hh JSON_Tokenizer.hh /home/rkommine/titan.core/Install /include
cp: -r not specified; omitting directory '/home/rkommine/titan.core/Install'
make[1]: *** [Makefile:86: install] Error 1
make[1]: Leaving directory '/home/rkommine/titan.core/common'
make: *** [Makefile:77: install] Error 2

Regards,
Ramakrishna
Re: Titan Installation Issue on Cygwin [message #1758055 is a reply to message #1758031] Thu, 23 March 2017 08:21 Go to previous messageGo to next message
Jeno Attila Balasko is currently offline Jeno Attila BalaskoFriend
Messages: 57
Registered: September 2013
Location: Budapest, Hungary
Member

Hi,

I can't see problem in the make log at first glance but other aspects are important.

1. You cannot use JNI on cygwin. Therefore JDKDIR is not necessary.
2. Don't use DEBUG = yes as fist attempt to compile titan.
3. titan.core is independent from titan.EclipsePlug-ins, which is the IDE for developing in ttcn3, especially with titan. titan.EclipsePlug-ins uses resources of titan.core to compile, to generate makefile and to run executable.

Therefore follow these steps:
1. Go to ${TTCN3_DIR}
2. make distclean
3. Edit Makefile.personal according to this:
$ cat Makefile.personal
TTCN3_DIR := ${HOME}/software/titan
#JDKDIR := /cygdrive/f/Bin/Java/jdk1.8.0_111
JNI := no
GUI := no
GEN_PDF := no
DEBUG := no
4. make -j
Disturbing false error markers occurs if you use this -j switch but do't bother with it.
5. make install
The compiled titan will be installed into ${TTCN3_DIR} defined in Makefile.personal.
Therefore it is suggested to define the same value in .bashrc. AS I see, this is ok.
If the install is ssuccessful, a test HelloWorld will be executed ( not all testcases will be passed but run)
6. Try compiler -v. If it works, your install seems ok.

Waiting your feedback
Best regards
Jeno
Re: Titan Installation Issue on Cygwin [message #1758115 is a reply to message #1758055] Thu, 23 March 2017 16:48 Go to previous messageGo to next message
Ramakrishna Kommineni is currently offline Ramakrishna KommineniFriend
Messages: 12
Registered: March 2017
Junior Member
Hi Jeno,

Thanks for the update. I have followed the step's mentioned by you.

1. Executed make distclean
2. Created the below Makefile.personal
$ cat Makefile.personal
TTCN3_DIR := /home/rkommine/titan.core/Install
#JDKDIR := /cygdrive/f/Bin/Java/jdk1.8.0_111
JNI := no
GUI := no
GEN_PDF := no
DEBUG := no
3. Executed make -j
4. executed make install. The below error is coming again:
$ make install
if test -h /home/rkommine/titan.core/Install ; then \
echo /home/rkommine/titan.core/Install is a symlink, you cannot be serious; exit 1; fi
rm -rf /home/rkommine/titan.core/Install
make[1]: Entering directory '/home/rkommine/titan.core/common'
mkdir -p /home/rkommine/titan.core/Install /include
cp version.h memory.h platform.h ttcn3float.hh pattern.hh CharCoding.hh JSON_Tokenizer.hh /home/rkommine/titan.core/Install /include
cp: -r not specified; omitting directory '/home/rkommine/titan.core/Install'
make[1]: *** [Makefile:86: install] Error 1
make[1]: Leaving directory '/home/rkommine/titan.core/common'
make: *** [Makefile:77: install] Error 2

Regards,
Ramakrishna

Re: Titan Installation Issue on Cygwin [message #1758160 is a reply to message #1758115] Fri, 24 March 2017 07:19 Go to previous messageGo to next message
Jeno Attila Balasko is currently offline Jeno Attila BalaskoFriend
Messages: 57
Registered: September 2013
Location: Budapest, Hungary
Member

Hi,

from this line:
mkdir -p /home/rkommine/titan.core/Install /include
I conclude that you put an extra space at the end of definition $TTCN3_DIR in Makefile.personal.
Remove it and try it again.

BR
Jeno
Re: Titan Installation Issue on Cygwin [message #1758229 is a reply to message #1758160] Sat, 25 March 2017 03:33 Go to previous message
Ramakrishna Kommineni is currently offline Ramakrishna KommineniFriend
Messages: 12
Registered: March 2017
Junior Member
Hi Jeno,

Thanks a lot for your help.

Yes. There is an extra space added while creating the Makefile.personal for TTCN3_DIR. Now I removed the extra space & repeated the installation procedure.
The Installation is now successfull.

$ compiler -v
TTCN-3 and ASN.1 Compiler for the TTCN-3 Test Executor
Product number: CRL 113 200/6 R1A
Build date: Mar 25 2017 08:38:35
Compiled with: GCC 5.4.0
Using OpenSSL 1.0.2k 26 Jan 2017

Copyright (c) 2000-2017 Ericsson Telecom AB

compiler(29572): memory usage statistics:
total allocations: 3902
malloc/new calls: 3875
free/delete calls: 3875
peak memory usage: 94180 bytes
average block size: 27.3039 bytes

Regards,
Ramakrishna
Previous Topic:oneM2MTester presented at M-to-M Embedded Systems Show
Next Topic:TCCLibraries small issue
Goto Forum:
  


Current Time: Mon Nov 19 09:59:13 GMT 2018

Powered by FUDForum. Page generated in 0.02248 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top