Compiled new type, but type not found [message #1753529] |
Tue, 07 February 2017 09:09  |
Eclipse User |
|
|
|
Hello,
I just setup forte for windows and generated files for a new basic FB type. I followed the instructions at export type help doc. After exporting (new folder called processingstation under src/modules), I did build, and the new source files were not in the target build folder. After some checking I realized I have to make a change to CMakeLists.txt. I added following lines
SET(SOURCE_GROUP "${SOURCE_GROUP_BACKUP}")
SET(SOURCE_GROUP_BACKUP "${SOURCE_GROUP}")
SET(SOURCE_GROUP "${SOURCE_GROUP}/processingstation")
ADD_SUBDIRECTORY("${FORTE_MODULE_DIR}processingstation")
I also added a new CMakeLists.txt in processingstation directory with just 1 line
forte_add_sourcefile_hcpp(AddandSub)
AddandSub is the name of the FB type. I generated forte.exe and I can now see the processingstation directory in the build dir and I also see that file being compiled in VisualStudio.
Now I tried to FBTest and I get UNSUPPORTED_TYPE error.
What am I missing?
[Note] I have used 4diac before and have successfully deployed complex applications, but right now cannot remember if I am missing something and why it would not work.
Thanks for the help
|
|
|
|
|
Re: Compiled new type, but type not found [message #1753618 is a reply to message #1753616] |
Wed, 08 February 2017 03:44  |
Eclipse User |
|
|
|
Great that it works. The documentation is part of the 4diac-ide code. Currently still in the mercurial repository at sourceforge (but we are heavily working on finally moving it to Eclipse's git). You can find it there in the plugins/org.fordiac.ide/html directory. We will also look on where we lost this part of the tutorial. But having more tutorials would be great. Thanks for the offer.
Having the possibility to put fbs and extension libraries (e.g. also communication protocols, new architectures, IO access) into different repositories was the main reason for having this external directory option. I think it is even possible to have several repositories in the external directory as, as far as I understood, the directories will be recursively searched. So your CMake List.txt could also be in sub directory further down the tree. But I haven't tested this yet.
|
|
|
Powered by
FUDForum. Page generated in 0.07095 seconds