chuvanhoang888 / smart_usb

Smart Usb
BSD 3-Clause "New" or "Revised" License
4 stars 10 forks source link

Package is not working on windows #4

Open MuhammadAllam7 opened 9 months ago

MuhammadAllam7 commented 9 months ago

I have an empty project just elevatedbutton in center with onpressed() {

            await SmartUsb.init();
            var deviceList = await SmartUsb.getDeviceList();
            for (var device in deviceList) {
              print(device.identifier);
              print(device.toMap());
              print('-----------------------');
            }
            await SmartUsb.exit();

}

when run build fails with the following message

Launching lib\main.dart on Windows in debug mode... CMake Error at flutter/ephemeral/.plugin_symlinks/smart_usb/windows/CMakeLists.txt:9 (add_library): Cannot find source file:

smart_usb_plugin.cpp

Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .ccm .cxxm .c++m .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc

CMake Error at flutter/ephemeral/.plugin_symlinks/smart_usb/windows/CMakeLists.txt:9 (add_library): No SOURCES given to target: smart_usb_plugin

CMake Generate step failed. Build files cannot be regenerated correctly. Exception: Unable to generate build files

Exited (1).

MalanDev commented 4 months ago

same issue