Import Projects

I’m try to use the new ImportProject type to use a C-Dll with Island Windows.
I have simplified the header to be only 1 file for now and the
import project seems to compile.
But somehow I can’t get it to work with a simple Testproject.
Attached is a project. It would be nice if somebody :wink: can look into it and tell me what is wrong and how to setup this correct.
CairoImport.zip (863.9 KB)

Hm your import project works fine for me, Burt the project using it fails with an odd linker error (which I’ll need tom investigate). is that the same error you’re seeing?

               -> Task Link started for CairoTest, Island-Windows.
D:                /Users/mh/Code/Elements/Bin/lld -flavor link "/lldltocache:/Users/mh/Library/Application Support/RemObjects Software/EBuild/Obj/CairoTest-724A0CA7C229BC13C0ED0ABAEEF537B144937312/Debug/Island-Windows/i386/LTO" "/libpath:/Users/mh/Library/Application Support/RemObjects Software/EBuild/Obj/CairoTest-724A0CA7C229BC13C0ED0ABAEEF537B144937312/Debug/Island-Windows/i386" "/out:/Users/mh/Library/Application Support/RemObjects Software/EBuild/Obj/CairoTest-724A0CA7C229BC13C0ED0ABAEEF537B144937312/Debug/Island-Windows/i386/CairoTest.exe" /nodefaultlib:uuid.lib /subsystem:Console /debug "/Users/mh/Library/Application Support/RemObjects Software/EBuild/Obj/CairoTest-724A0CA7C229BC13C0ED0ABAEEF537B144937312/Debug/Island-Windows/i386/CairoTest.o" "/Users/mh/Code/Elements/Bin/Island SDKs/Windows/Windows 10.0.17763.0/i386/gc.lib" /Users/mh/Code/Elements/Bin/References/Island/Windows/i386/Elements.lib /Users/mh/Code/Elements/Bin/References/Island/Windows/i386/Island.lib "/Users/mh/Library/Application Support/RemObjects Software/EBuild/Obj/CairoTest-724A0CA7C229BC13C0ED0ABAEEF537B144937312/Debug/Island-Windows/i386/CairoTest.output.lib" "/Users/mh/Library/Application Support/RemObjects Software/EBuild/Obj/CairoTest-724A0CA7C229BC13C0ED0ABAEEF537B144937312/Debug/Island-Windows/i386/importlib-CairoTest-ADVAPI32.dll.lib" "/Users/mh/Library/Application Support/RemObjects Software/EBuild/Obj/CairoTest-724A0CA7C229BC13C0ED0ABAEEF537B144937312/Debug/Island-Windows/i386/importlib-CairoTest-Kernel32.dll.lib" "/Users/mh/Library/Application Support/RemObjects Software/EBuild/Obj/CairoTest-724A0CA7C229BC13C0ED0ABAEEF537B144937312/Debug/Island-Windows/i386/importlib-CairoTest-OLE32.dll.lib" "/Users/mh/Library/Application Support/RemObjects Software/EBuild/Obj/CairoTest-724A0CA7C229BC13C0ED0ABAEEF537B144937312/Debug/Island-Windows/i386/importlib-CairoTest-OLEAUT32.dll.lib" "/Users/mh/Library/Application Support/RemObjects Software/EBuild/Obj/CairoTest-724A0CA7C229BC13C0ED0ABAEEF537B144937312/Debug/Island-Windows/i386/importlib-CairoTest-SHELL32.dll.lib" "/Users/mh/Library/Application Support/RemObjects Software/EBuild/Obj/CairoTest-724A0CA7C229BC13C0ED0ABAEEF537B144937312/Debug/Island-Windows/i386/importlib-CairoTest-User32.dll.lib" "/Users/mh/Library/Application Support/RemObjects Software/EBuild/Obj/CairoTest-724A0CA7C229BC13C0ED0ABAEEF537B144937312/Debug/Island-Windows/i386/importlib-CairoTest-WINHTTP.dll.lib" "/Users/mh/Library/Application Support/RemObjects Software/EBuild/Obj/CairoTest-724A0CA7C229BC13C0ED0ABAEEF537B144937312/Debug/Island-Windows/i386/importlib-CairoTest-WS2_32.dll.lib" "/Users/mh/Library/Application Support/RemObjects Software/EBuild/Obj/CairoTest-724A0CA7C229BC13C0ED0ABAEEF537B144937312/Debug/Island-Windows/i386/importlib-CairoTest-WSOCK32.dll.lib" cairo
E:                could not open 'cairo': No such file or directory
               <- Task Link failed for CairoTest, Island-Windows, took 0.6695s (0.6696s).

Yes this what i See also

Ah yes, I see Cairo.lib is copied to the final output folder, but *not * to /obj. But Project references grab the files from /obj. I’ll fix (not in time for today’s beta, though); workaround is to no use the project reference but the final .fx from .../CairoImport/Bin/Debug/Windows/cairo.fx, for now.

D:             Generated Files for 'CairoImport' target 'Island-Windows':
D:               cairo.lib (/Users/mh/Downloads/CairoImport/cairo.lib)
D:               i386/CairoImport.fx (/Users/mh/Library/Application Support/RemObjects Software/EBuild/Obj/CairoImport-FDC38A8B95AC8A67C1AFA352028C0B5817D6E3B7/Debug/Island-Windows/i386/CairoImport.fx)
D:               i386/CairoImport.pas (/Users/mh/Library/Application Support/RemObjects Software/EBuild/Obj/CairoImport-FDC38A8B95AC8A67C1AFA352028C0B5817D6E3B7/Debug/Island-Windows/i386/CairoImport.pas)
               Final Output for 'CairoImport':
                 cairo.lib (/Users/mh/Downloads/CairoImport/Bin/Debug/Windows/cairo.lib)
                 CairoImport.fx (/Users/mh/Downloads/CairoImport/Bin/Debug/Windows/i386/CairoImport.fx)
                 CairoImport.pas (/Users/mh/Downloads/CairoImport/Bin/Debug/Windows/i386/CairoImport.pas)

Thanks, logged as bugs://82783

Hm, no, seems there’s more to it, even after my fix for the above. investigations further, sorry.

bugs://82783 got closed with status fixed.