UaModeler under Linux does not produce code files

Questions regarding the use of UaModeler

Moderator: uamodeler

Post Reply
Felix Meßmer
Sr. Member
Sr. Member
Posts: 12
Joined: 05 Jul 2011, 15:37

UaModeler under Linux does not produce code files

Post by Felix Meßmer »

Hello,

I tried to use the UaModeler on Linux systems (Ubuntu, both 32 and 64 bit).
Installation works fine for both.
Then, I exactly followed the quickstart guide to generate code files for the exampleproject.
But when I come to compiling the code, there are no files in the OutputDirectory at all.

I was able to generate the code files for the exampleproject under Windows, though.

Is this a known problem? What could I have done wrong?

Best regards,

Felix Meßmer

User avatar
Support Team
Hero Member
Hero Member
Posts: 3068
Joined: 18 Mar 2011, 15:09

Re:UaModeler under Linux does not produce code files

Post by Support Team »

Hello Felix!

First of all please check the Output window on the lower pane of the UaModeler. After pressing the "Compile" button it should have an entry like this: "7 files for Namespace Uri "exampleNamespaceUri" created." That means the files were generated.
Second please check the Output path for the generated files. To do so, please click on the Project name in the Project window (upper left pane). Then you should be able to see the Output path in the Attributes window (upper right pane). Make sure that this path is correct, exists and if you have wright permissions on this path.
If this path is not correct you are able to change the path to a valid one (Attributes window on the upper right side).


Best regards,

Support Team
Best regards
Unified Automation Support Team

Felix Meßmer
Sr. Member
Sr. Member
Posts: 12
Joined: 05 Jul 2011, 15:37

Re:UaModeler under Linux does not produce code files

Post by Felix Meßmer »

Hello,

thanks for the quick response!

The output in the Output window tells me "7 files for Namespace Uri "exampleNamespaceUri" created." - as it should.
The output path is also valid. I have the rights to write to that folder, too (I tested it with "touch").
But still the files are not generated.
Also, I searched for the files whether they were generated somewhere else...They are not in my 'Project' folder nor in the '/opt/unifiedautomation/' folder.

I'm using Ubuntu 10.10 Maverick.

Best regards,
Felix

User avatar
Support Team
Hero Member
Hero Member
Posts: 3068
Joined: 18 Mar 2011, 15:09

Re:UaModeler under Linux does not produce code files

Post by Support Team »

Hi Felix!

You can analyze the problem using strace utility. Install strace if not already installed. (sudo apt-get install strace)
Start uamodeler using this way:
"strace /opt/unifiedautomation/uamodeler/bin/uamodeler >output.txt 2>&1"

In the output.txt you can see all open, read, write, rename syscalls.
Here you can see if something goes wrong and you can also see the paths were the files are created.

Best regards
Support Team
Best regards
Unified Automation Support Team

Felix Meßmer
Sr. Member
Sr. Member
Posts: 12
Joined: 05 Jul 2011, 15:37

Re:UaModeler under Linux does not produce code files

Post by Felix Meßmer »

Hello,

I straced the code file generation of the exampleproject.tt2pro.

However, I still don't see the reason why the code files are not generated.
I ran the process as 'sudo' as well - no files were generated either.

Some things that I did notice in the output.txt is that there are many error messages saying "No such file or directory" referencing the following or similar files (amongst others):
- qt files in the /opt/unifiedautomation/qt-4.6.2 folder
- uamodeler. ini at /home/felix/.config/unifiedautomation/uamodeler.ini and /etc/xdg/unifiedautomation/uamodeler/uamodeler.ini

Does this mean anything?
Is there a chance to upload the output.txt file?


Best regards,
Felix

User avatar
Support Team
Hero Member
Hero Member
Posts: 3068
Joined: 18 Mar 2011, 15:09

Re:UaModeler under Linux does not produce code files

Post by Support Team »

Hi Felix!

Please send a zip file with the following files to support@unifiedautomation.com

- The strace file
- Your *.tt2pro project file
- Your model (the *.xml file)
- Optional: A screenshot of the paths you use in your project

We will analyze this as soon as possible and will answer via this forum.


Best regards,
Support Team
Best regards
Unified Automation Support Team

User avatar
Support Team
Hero Member
Hero Member
Posts: 3068
Joined: 18 Mar 2011, 15:09

Re:UaModeler under Linux does not produce code files

Post by Support Team »

Hello Felix!

After analyzing the files you have sent, we suggest that the problem could be the directory for the output files.
The recommended output directory should be written in lower case for UaModeler 1.0.1. If a part of the path to the output location is upper case the UaModeler will not find the dirctory on linux during the generation of the files. As a workaround please create a folder where the whole path is lowercase and check if all generated files will be placed into this folder.
We will release a new version of the UaModeler within this year, which will also fix this behaviour.

best regards

Support Team
Best regards
Unified Automation Support Team

Felix Meßmer
Sr. Member
Sr. Member
Posts: 12
Joined: 05 Jul 2011, 15:37

Re:UaModeler under Linux does not produce code files

Post by Felix Meßmer »

Indeed, when choosing a output directory path with lower case only the 7 code files are generated.
Thanks for your help!

Felix

User avatar
Support Team
Hero Member
Hero Member
Posts: 3068
Joined: 18 Mar 2011, 15:09

Re:UaModeler under Linux does not produce code files

Post by Support Team »

Hello Felix!

The new version of the UaModeler is now available.

Best Regards,
Unified Automation Support Team
Best regards
Unified Automation Support Team

Post Reply