Opened 8 years ago
Closed 8 years ago
#4056 closed defect (fixed)
DeviceDrivers on Win32 as FMU
Reported by: | Volker Waurich | Owned by: | Lennart Ochel |
---|---|---|---|
Priority: | high | Milestone: | Future |
Component: | Code Generation | Version: | |
Keywords: | Cc: | Adrian Pop, Willi Braun, Martin Sjölund, Bernhard Thiele |
Description
Hi,
I created a model using the KeyboardKeyInput from Modelica DeviceDrivers which should be exported as an FMU 1.0 ME to be simulated and visualized in realtime.
OMC cannot compile it because User32 is not found in the omc dirs. If I ship this error the pthreads.dll from the DeviceDrivers Ressources causes undefined references. If this is removed the X11 causes runtime errors in the FMU.
The annotation for the external functions is:
annotation(Include = "#include \"MDDKeyboard.h\"", Library = {"X11", "User32"}, __iti_dll = "ITI_MDD.dll", __iti_dllNoExport = true);
Removing X11 and User32 fixes the compilation. These things should be available on a windows system anyway. Am I correct?
Otherwise, the Modelica_DeviceDrivers 1.4.4/Resources/Library/win32 dir is added with -L to the makefile. And we get the problems I described.
How can omc handle this? Modifying the lib works but other tools can compile it without modifications.
Any comments?
This issue is solved for now.