CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CONVERGE (https://www.cfd-online.com/Forums/converge/)
-   -   Converge UDF building (https://www.cfd-online.com/Forums/converge/254382-converge-udf-building.html)

salahCFD February 7, 2024 02:49

Converge UDF building
 
any one can help me please with the method how to build a converge cfd UDF on windows using visual studio 2022, i have the source code but i couldn't build the dll file.
i need the steps from the base please

ksrivast February 7, 2024 08:50

Hello Mohamed,

Please refer to our CONVERGE 3.1 UDF Manual, which is available on our Downloads page. It contains step-by-step instructions on how to install, build and execute UDFs.

Sincerely,

salahCFD February 7, 2024 09:49

Quote:

Originally Posted by ksrivast (Post 864337)
Hello Mohamed,

Please refer to our CONVERGE 3.1 UDF Manual, which is available on our Downloads page. It contains step-by-step instructions on how to install, build and execute UDFs.

Sincerely,

i followed all the steps in the manual.
the problem is within visual studio when i compile, i got this message :

Generating Loader: converge_udf_load.c
[2/3] Building C object CMakeFiles\converge_udf.dir\converge_udf_load.c.ob j
C:
\New folder\out\build\x64-Debug\converge_udf_load.c(18): warning C4003: not enough arguments for function-like macro invocation 'BOOST_PP_SEQ_SIZE_I'
[3/3] Linking C shared library converge_udf.dll

ksrivast February 9, 2024 18:20

Hello Mohamed,

That warning is fine. What error message is being displayed when you compile your UDFs? Does it state " Build incomplete " at the end of the process? Please post your entire build log.

Sincerely,

salahCFD February 10, 2024 06:38

Quote:

Originally Posted by ksrivast (Post 864463)
Hello Mohamed,

That warning is fine. What error message is being displayed when you compile your UDFs? Does it state " Build incomplete " at the end of the process? Please post your entire build log.

Sincerely,

when i load my directory in Visual Studio 2022 i got this error : (Severity Code Description Project File Line Suppression State Details
Error CMake Error at C:/Program Files/CONVERGE Explore/CONVERGE/3.1.9/share/cmake/CONVERGE_BUILD:294 (add_library):
No SOURCES given to target: converge_udf_user CONVERGE UDF Development Package C:/Program Files/CONVERGE Explore/CONVERGE/3.1.9/share/cmake/CONVERGE_BUILD 294
)
and when I ignore it and i try to build the project i got this : Warning: the MSVC toolset version has not been determined for one or more projects. To collect data as ordinary user with Visual Studio the MSVC toolset version '14.46.52625' is required. To workaround any issue may occur running Visual Studio as Administrator is recommended.
========== C++ Build Insights ==========
Starting collection…
Collecting data…
Finishing data collection…
Preparing data for analysis…
Warning: The trace collected during this session is empty. The trace contains data only if the MSVC toolset is being used, and only if code compilation occurred and was not skipped by up-to-date checks. A rebuild may be needed to generate data for the trace.
========== C++ Build Insights: failure occurred during data collection ==========

ksrivast February 12, 2024 12:59

Hello Mohamed,

Please note that the error message : No SOURCES given to target : indicates that there is no "src" directory, with available .c UDFs you wish to compile, found in the folder with the CMakeLists.txt file.

Sincerely,


All times are GMT -4. The time now is 13:20.