TITAN on Cygwin [message #1724383] |
Tue, 23 February 2016 09:00  |
Eclipse User |
|
|
|
Hello,
I tried to install TITAN Eclipse with Cygwin on Windows. I followed the tutorial on YouTube for Cygwin (https:// www. youtube.com/watch?v=6CKxOhZt7Gg), and the readme on GitHub (https:// github .com/eclipse/titan.core/blob/master/README.cygwin), but with no success until now. When I try to compile the TITAN executables, it gives me errors like "'fd_set' does not have a type". That leads me to think that the communicating layer between Windows and Cygwin isn't well configured, or, for example, some Cygwin packages are missing (and I can't figure which). I am using the latest versions of Cygwin (CYGWIN_NT-10.0 DESKTOP-R8L521R 2.4.1(0.293/5/3) 2016-01-24 11:26 x86_64 Cygwin) and TITAN (latest version from GitHub repository, master branch).
On the other side, the Linux version runs very nicely, but as we need it on Windows, we have to use Cygwin (that's what I am trying to do now) , or eventually fall back to a Linux virtual machine.
Thank you in advance.
P.S. I had to break the links with spaces between in order to send the post because it's my first post on eclipse forums.
|
|
|
|
Re: TITAN on Cygwin [message #1724486 is a reply to message #1724483] |
Wed, 24 February 2016 03:29   |
Eclipse User |
|
|
|
Hi Elemer,
I think that I found what may be blocking me from compiling TITAN on Cygwin. The problem was in the file Port.cc/Port.hh. The library that contains the fd_set type is not imported in the file, thus causing the problem. The solution is simple, just add "#include <sys/select.h>" in the beginning of the file(s), and everything will compile without errors. Preferably, we have to add a macro testing for Cygwin compatibility, because under Ubuntu the code as it is now, compiles without errors. A simple macro like this will do the job (I didn't verify if the variables are correct):
#if defined(__CYGWIN__) && !defined(_WIN32)
#include <sys/select.h>
#endif
I didn't create a proper bug report or a Pull request until now, but if you need it, I can do it.
Best regards,
Naum.
[Updated on: Wed, 24 February 2016 03:31] by Moderator
|
|
|
|
Re: TITAN on Cygwin [message #1724811 is a reply to message #1724515] |
Fri, 26 February 2016 04:30   |
Eclipse User |
|
|
|
Hi Elemer,
Thank you for the fast response.
Today, after using normally TITAN for three days under Cygwin, I have noticed a small bug. It isn't blocking for instance, everything works fine (it's not urgent, I just wanted to report it). The only thing I notice is a error in the Error Log in Eclipse with the message "The path:`' could not be converted", in the org.eclipse.titan.common package. Actually, from my little research (I can't debug it, I don't have the tools at the moment), the method convert() from this file (https: //github .com/eclipse/titan.EclipsePlug-ins/blob/master/org.eclipse.titan.common/src/org/eclipse/titan/common/path/PathConverter.java) sends the error message, but I didn't found the origin of the bug.
I have to mention that the Cygwin TITAN path is already in place, with every press of the button (check compiler version, check syntax..) it executes the corresponding task, but also shows the message.
Thanks in advance,
Naum.
|
|
|
|
Re: TITAN on Cygwin [message #1725720 is a reply to message #1724821] |
Mon, 07 March 2016 05:00   |
Eclipse User |
|
|
|
Hi Elemer,
Today I saw your commit to Titan with my suggestion. Thank you for correcting it.
But now, with the latest commit I have the same problem, but in another file, this time in core/Event_Handler.hh. When I add the same line ("#include <sys/select.h"> in that file, everything compiles again. I tested all the combinations, Cygwin without the modification, Cygwin with the modification, Ubuntu without the modification and Ubuntu with the modification, and only in the case of Cygwin without the modification there are errors in compilation.
I understand that this must be something linked to my configuration, but 2 times having the same problem is very strange.
Best regards,
Naum.
|
|
|
|
|
|
|
|
Re: TITAN on Cygwin [message #1802650 is a reply to message #1724483] |
Wed, 13 February 2019 05:12  |
Eclipse User |
|
|
|
Hii Elemer
I am not getting the compiler on the path
showing as The version of the compiler could not be determined
given path is
C/cygwin/home/A/install
Regards
Reepandeep kaur
|
|
|
Powered by
FUDForum. Page generated in 0.31020 seconds