Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » FORTE - Compile your own Function Blocks and code(CMake Error !!!when Compile the forte!)
FORTE - Compile your own Function Blocks and code [message #1776394] Thu, 16 November 2017 07:33 Go to next message
Barry wan is currently offline Barry wanFriend
Messages: 34
Registered: July 2017
Member
hello!
I follows the document https://www.eclipse.org/4diac/en_help.php to Generate files for compiling. Cmake version:3.9.6; MinGW:6.3.0
but i come across a problem as below:

The C compiler identification is GNU 6.3.0
The CXX compiler identification is GNU 6.3.0
Check for working C compiler: D:/MinGW/bin/gcc.exe
Check for working C compiler: D:/MinGW/bin/gcc.exe -- broken
CMake Error at C:/share/cmake-3.9/Modules/CMakeTestCCompiler.cmake:51 (message):
The C compiler "D:/MinGW/bin/gcc.exe" is not able to compile a simple test
program.

It fails with the following output:

Change Dir: C:/Users/wan/org.eclipse.4diac.forte/bin/win32_test/CMakeFiles/CMakeTmp



Run Build Command:"D:/MinGW/bin/make.exe" "cmTC_cbbe7/fast"

D:/MinGW/bin/make.exe -f CMakeFiles/cmTC_cbbe7.dir/build.make
CMakeFiles/cmTC_cbbe7.dir/build
make.exe[1]: Entering directory
'C:/Users/wan/org.eclipse.4diac.forte/bin/win32_test/CMakeFiles/CMakeTmp'
系统找不到指定的路径。
CMakeFiles/cmTC_cbbe7.dir/build.make:65: recipe for target
'CMakeFiles/cmTC_cbbe7.dir/testCCompiler.c.obj' failed
make.exe[1]: *** [CMakeFiles/cmTC_cbbe7.dir/testCCompiler.c.obj] Error 1

make.exe[1]: Leaving directory
'C:/Users/wan/org.eclipse.4diac.forte/bin/win32_test/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_cbbe7/fast' failed
make.exe: *** [cmTC_cbbe7/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:16 (PROJECT)
Configuring incomplete, errors occurred!

See also "C:/Users/wan/org.eclipse.4diac.forte/bin/win32_test/CMakeFiles/CMakeOutput.log".
See also "C:/Users/wan/org.eclipse.4diac.forte/bin/win32_test/CMakeFiles/CMakeError.log".


How to solve this problem? think you!

[Updated on: Thu, 16 November 2017 07:34]

Report message to a moderator

Re: FORTE - Compile your own Function Blocks and code [message #1776395 is a reply to message #1776394] Thu, 16 November 2017 07:35 Go to previous messageGo to next message
Barry wan is currently offline Barry wanFriend
Messages: 34
Registered: July 2017
Member
Barry wan wrote on Thu, 16 November 2017 07:33
hello!
I follows the document https://www.eclipse.org/4diac/en_help.php to Generate files for compiling. Cmake version:3.9.6; MinGW:6.3.0
but i come across a problem as below:

The C compiler identification is GNU 6.3.0
The CXX compiler identification is GNU 6.3.0
Check for working C compiler: D:/MinGW/bin/gcc.exe
Check for working C compiler: D:/MinGW/bin/gcc.exe -- broken
CMake Error at C:/share/cmake-3.9/Modules/CMakeTestCCompiler.cmake:51 (message):
The C compiler "D:/MinGW/bin/gcc.exe" is not able to compile a simple test
program.

It fails with the following output:

Change Dir: C:/Users/wan/org.eclipse.4diac.forte/bin/win32_test/CMakeFiles/CMakeTmp



Run Build Command:"D:/MinGW/bin/make.exe" "cmTC_cbbe7/fast"

D:/MinGW/bin/make.exe -f CMakeFiles/cmTC_cbbe7.dir/build.make
CMakeFiles/cmTC_cbbe7.dir/build
make.exe[1]: Entering directory
'C:/Users/wan/org.eclipse.4diac.forte/bin/win32_test/CMakeFiles/CMakeTmp'
系统找不到指定的路径。
CMakeFiles/cmTC_cbbe7.dir/build.make:65: recipe for target
'CMakeFiles/cmTC_cbbe7.dir/testCCompiler.c.obj' failed
make.exe[1]: *** [CMakeFiles/cmTC_cbbe7.dir/testCCompiler.c.obj] Error 1

make.exe[1]: Leaving directory
'C:/Users/wan/org.eclipse.4diac.forte/bin/win32_test/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_cbbe7/fast' failed
make.exe: *** [cmTC_cbbe7/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:16 (PROJECT)
Configuring incomplete, errors occurred!

See also "C:/Users/wan/org.eclipse.4diac.forte/bin/win32_test/CMakeFiles/CMakeOutput.log".
See also "C:/Users/wan/org.eclipse.4diac.forte/bin/win32_test/CMakeFiles/CMakeError.log".


How to solve this problem? think you!

Re: FORTE - Compile your own Function Blocks and code [message #1776398 is a reply to message #1776395] Thu, 16 November 2017 08:04 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 619
Registered: January 2014
Senior Member
It seams that there is some issue in your MinGW intallation. If you open a console and enter the command "D:/MinGW/bin/gcc.exe" what do you get as output?
Re: FORTE - Compile your own Function Blocks and code [message #1776694 is a reply to message #1776398] Mon, 20 November 2017 14:33 Go to previous messageGo to next message
Barry wan is currently offline Barry wanFriend
Messages: 34
Registered: July 2017
Member
think you! I figure it out that the mingw32-make.exe and make.exe both exist is OK,
I just change mingw32-make.exe into make.exe last time.
But i found a bug that FBDK function block cannot respond when i use IN-EVENT to test
the Blinking Project with version 1.8.4 and 1.9.0M1 . however, in 1.7.4 it can work.
  • Attachment: 1.7.3.png
    (Size: 80.03KB, Downloaded 57 times)
  • Attachment: 1.8.4.png
    (Size: 102.71KB, Downloaded 48 times)
  • Attachment: 1.9.0M1.png
    (Size: 83.90KB, Downloaded 54 times)
Re: FORTE - Compile your own Function Blocks and code [message #1776696 is a reply to message #1776694] Mon, 20 November 2017 14:43 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 619
Registered: January 2014
Senior Member
Unfortunately the 4diac monitoring is not working for FBDK devices. But I noticed in your 1.8.4 screenshot that the Subscribe block was not initalized. This may be the reason that you are not receiving anything from the IN_EVENT.
Re: FORTE - Compile your own Function Blocks and code [message #1776739 is a reply to message #1776696] Tue, 21 November 2017 01:28 Go to previous messageGo to next message
Barry wan is currently offline Barry wanFriend
Messages: 34
Registered: July 2017
Member
hi, professor,think you for your reply.
I do check my test and the subscribe fb was initalized.
although the 4diac monitoring is not working for FBDK devices, the control effect should be reflected in E-CYCLE. but E-CYCLE can't be triggered.
E-CYCLE can work when I trigger event manually.
  • Attachment: 1.8.4-1.png
    (Size: 186.45KB, Downloaded 54 times)
  • Attachment: 1.8.4-2.png
    (Size: 175.55KB, Downloaded 45 times)
Re: FORTE - Compile your own Function Blocks and code [message #1776774 is a reply to message #1776739] Tue, 21 November 2017 13:23 Go to previous messageGo to next message
Barry wan is currently offline Barry wanFriend
Messages: 34
Registered: July 2017
Member
After trying many times, I found the reason for this situation。
because the workspace path contains Chinese character . After changing the path, it works.
And sorry to take your time.
Re: FORTE - Compile your own Function Blocks and code [message #1776805 is a reply to message #1776774] Tue, 21 November 2017 19:33 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 619
Registered: January 2014
Senior Member
No Problem. Thanks to let us know. This is something that we should consider in the future.
Re: FORTE - Compile your own Function Blocks and code [message #1776861 is a reply to message #1776805] Wed, 22 November 2017 10:49 Go to previous messageGo to next message
Barry wan is currently offline Barry wanFriend
Messages: 34
Registered: July 2017
Member
hello,professor
I have a question about the forte overiew.
1 what does the resource mean?
2 what does the remote-resource mean?
is it means remote I/O or local interface driver or something else?
AND what the difference between resource and remote-resource?
3 One device may contains more than one resource in boiler example. how does these
resource work with each other?
sincerely!

[Updated on: Wed, 22 November 2017 12:39]

Report message to a moderator

Re: FORTE - Compile your own Function Blocks and code [message #1776887 is a reply to message #1776861] Wed, 22 November 2017 14:13 Go to previous message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 619
Registered: January 2014
Senior Member
hi,

a resource is defined in IEC 64199 as application container within a device. That means that resources are the target when mapping applications to devices. Devices may have several resources. Resources have to shield the execution within them from other resources. As with nearly all elements in IEC 61499 there are resource types. The different resource types may already provide special functionality for the application they are running in. For more details on the device and resource model please have a look on an IEC 61499 introduction.

The RMT_RES is a special resource defined in the "IEC 61499 Compliance profile for feasibility demonstrations" [1]. The task of this resource is to open up a TCP port so that engineering tools like 4diac-ide can connect to and configure the device.

I hope this helps.

[1] http://www.holobloc.com/doc/ita/index.htm
Previous Topic:Movement commands through 4diac
Next Topic:Accessing the same GPIO PIN on RPI with IX FBs
Goto Forum:
  


Current Time: Tue Aug 21 22:07:32 GMT 2018

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

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

Back to the top