Cycling74 / min-devkit

Tools, documentation, and reference implementation of a Max Package built using the Min-API.
MIT License
161 stars 31 forks source link

helloworld project not building on Windows 10 #197

Open mourendxu opened 2 years ago

mourendxu commented 2 years ago

Windows 10 20H2 Visual Studio Community 2019 16.7.4 Cmake v 3.22.0 Ruby 3.0.2p107

I followed "How to Create a new module" and ran the ruby on script/create_package.rb. I ran the build and all, and I got a whole bunch of LNK2019 unresolved external symbol errors.

Here is one of them: npackage_test.hello-world.obj : error LNK2019: unresolved external symbol sysmem_newptr referenced in function "int64 cdecl c74::min::min_attr_getter(struct c74::min::minwrap<class hello_world,void> ,struct c74::max::object ,long ,struct c74::max::atom *)" (??$min_attr_getter@Vhello_world@@@min@c74@@YA_JPEAU?$minwrap@Vhello_world@ @X@01@PEAUobject@max@1@PEAJPEAPEAUatom@41@@Z) [C:\Users\Da Xu\Documents\Max 8\Packages\npackage_test\build\source\projects\npackage_test.hello-world\npackage_test.hello-world.vcxpr oj]

Thank you!

mourendxu commented 2 years ago

Just want to add, I built min-devkit just fine from scratch.

isabelgk commented 2 years ago

Thanks for the report @mourendxu . This is fairly low priority at the moment, but it looks like the Ruby scripts could use some testing on Windows. I notice that there's a \n in the error output you've pasted, so my initial suspicion is that line endings aren't being handled properly.

Glad to know that building from scratch is working though!