Hello @Rojj ,
I also trying to build the above same Hello world code from github at my end but I’m getting error in ruby console:
SketchUp Pro 23.0.419
Loading 'Debug (2.0)' (x64) build...
F:/SketchUpApp/Ruby_c_SketchUp_Extention/Ruby
F:/SketchUpApp/Ruby_c_SketchUp_Extention
F:/SketchUpApp/Ruby_c_SketchUp_Extention/Debug (2.0)/x64
Requiring F:/SketchUpApp/Ruby_c_SketchUp_Extention/Debug (2.0)/x64/SUEX_HelloWorld.so
File load error (F:\SketchUpApp\Ruby_c_SketchUp_Extention\Ruby\launch_sketchup.rb):
Error: #<LoadError: 126: The specified module could not be found. - F:/SketchUpApp/Ruby_c_SketchUp_Extention/Debug (2.0)/x64/SUEX_HelloWorld.so>
C:/Program Files/SketchUp/SketchUp 2023/Tools/RubyStdLib/rubygems/core_ext/kernel_require.rb:83:in `require'
C:/Program Files/SketchUp/SketchUp 2023/Tools/RubyStdLib/rubygems/core_ext/kernel_require.rb:83:in `require'
F:/SketchUpApp/Ruby_c_SketchUp_Extention/Ruby/launch_sketchup.rb:28:in `block in <top (required)>'
F:/SketchUpApp/Ruby_c_SketchUp_Extention/Ruby/launch_sketchup.rb:26:in `each'
F:/SketchUpApp/Ruby_c_SketchUp_Extention/Ruby/launch_sketchup.rb:26:in `<top (required)>'
Im using Visual Studio 2019 Professional and please help me solve this problem
If the path was incorrect, then the LoadError message would be: #<LoadError: cannot load such file -- F:/SketchUpApp/Ruby_c_SketchUp_Extention/Debug (2.0)/x64/SUEX_HelloWorld.so
I have complied my code with ruby 2.7 and I am using visual studio,errors are not there but I am not able to see any extension there? I am using visual studio 2019.
I assume that was a stand-alone Ruby? How did you build it, or where did you obtain it from?
I think you need an mswin build, but also with a non-standard file name x64-msvcrt-ruby270.dll. Normally it would be named x64-vcruntime140-ruby270.dll.