mh
(marc hoffman)
December 14, 2019, 2:33pm
21
wuping:
Also I created an Windows Island Console, added TensorFlow.fx (withOUT calling any tensor flow Apis, just reference it), it won’t compile.
What’s the error?
No, that’s what the Import project is for; we don’t use Delphi-style manual header units (although you can of course manually create imports in code, if needed, in that fashion. But getting the Import project working is the better solution.
One minor issue im seeing is that the .dll isn;'t being copied next to the .fx, even if CopyLocal is set; I’ll investigate and fix that now.
wuping
(wuping)
December 14, 2019, 3:39pm
22
mh:
Ah yes, the import project doesnt know the actual architecture of the .dll, so the project will “build” for i386 and x64, even though the former might not be supported. add an <Architecture>x86_64</Architecture>
tag to the project, like such:
@mh Thank you for the diligent support. Appreciate it!
I followed your advice, and build a x86_64 TensorFlow.fx. But still I got errors (see the figure). Any advice?
mh
(marc hoffman)
December 14, 2019, 4:12pm
23
Yeah, I’m at the same error now after some fixes to how EBuild copies the .dll. I’m afraid this one’s beyond my pay-grade and Carlo will need to answer it on Monday :(.
mh
(marc hoffman)
December 14, 2019, 4:16pm
24
Workaround for now, reference the .lib in the import project, instead of the .dll, and then copy the .dll over next to your final exe manually.
<ImportLinkLibrary Include=".\lib\tensorflow.lib">
<Remote>https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-windows-x86_64-1.15.0.zip</Remote>
<Private>True</Private>
<Target>Island.Windows</Target>
</ImportLinkLibrary>
1 Like
mh
(marc hoffman)
December 14, 2019, 4:59pm
25
in vNext, this will work:
<ImportLinkLibrary Include=".\lib\tensorflow.lib">
<Remote>https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-windows-x86_64-1.15.0.zip</Remote>
<Private>True</Private>
<Target>Island.Windows</Target>
</ImportLinkLibrary>
<ImportCopyLocal Include=".\lib\tensorflow.dll">
<Remote>https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-windows-x86_64-1.15.0.zip</Remote>
<Private>True</Private>
<Target>Island.Windows</Target>
</ImportCopyLocal>
wuping
(wuping)
December 15, 2019, 1:59am
26
I am sorry, but what is “vNext”?
mh
(marc hoffman)
December 15, 2019, 12:25pm
27
The next version/build of Elements.