Difficulties installing extender

Hello! I am having difficulties setting up instance of extender. I hope someone can help me figure out where I did mistake.

What is done so far:

On Windows machine I’ve installed VS2022 with following components:

  • SDK_10_VERSION=“10.0.18362.0”
  • MSVC_VERSION=“14.29.30133” - only version available for vs2019
  • C++ v14.29(16.11) ATL for v142 build tools

Edited paths and versions in package_win32_sdk.sh and prepared local sdk archives. Then served them via python webserver

Next on Ubuntu 22.04 (Virtual box machine)
Installed openjdk-11-jre
Cloned extender repository

Edited server/docker-base/Dockerfile. Commented Emscripten, Android, Switch, PS4 sections. For now I need only Windows builds.

Next was this command:

sudo DM_PACKAGES_URL=http://192.168.61.91:9999 ./server/scripts/build.sh -xtest

Setup completed without errors and I was able to start extender Docker:

sudo ./server/scripts/run-local.sh

After that I’ve changed Defold build server to my instance: http://192.168.61.119:9000

And tried to build simple project with extension and have following errors:

This is what printed in Defold editor on Build Errors tab:

/myextension/ext.manifest
	clang++ -DDLIB_LOG_DOMAIN="MYEXTENSION" -DDDF_EXPOSE_DESCRIPTORS -DDM_PLATFORM_WINDOWS -D_CRT_SECURE_NO_WARNINGS -D_WINSOCK_DEPRECATED_NO_WARNINGS -D__STDC_LIMIT_MACROS -DWINVER=0x0600 -DWIN32 -DNOMINMAX  -target x86_64-pc-win32-msvc -m64 -O2 -g -gcodeview -O2 -Wall -Werror=format -fvisibility=hidden -nostdinc++ -std=c++17  -nostdinc++ -isystem /opt/platformsdk/Win32/MicrosoftVisualStudio2019/VC/Tools/MSVC/14.29.30133//include -isystem /opt/platformsdk/Win32/MicrosoftVisualStudio2019/VC/Tools/MSVC/14.29.30133//atlmfc/include -isystem /opt/platformsdk/Win32/WindowsKits/10//Include/10.0.18362.0/ucrt -isystem /opt/platformsdk/Win32/WindowsKits/10//Include/10.0.18362.0/winrt -isystem /opt/platformsdk/Win32/WindowsKits/10//Include/10.0.18362.0/um -isystem /opt/platformsdk/Win32/WindowsKits/10//Include/10.0.18362.0/shared  -Ibuild/myextension/ -Iupload/  -I/var/extender/sdk/f5e114aaebe25c5242db5f0066af2f5189c09f99/defoldsdk//include -I/var/extender/sdk/f5e114aaebe25c5242db5f0066af2f5189c09f99/defoldsdk//sdk/include -I/var/extender/sdk/f5e114aaebe25c5242db5f0066af2f5189c09f99/defoldsdk//ext/include  upload/myextension/src/myextension.cpp -c -o build/myextension.cpp_0.o

This is what printed in extender console (I’ve included full console output just in case)

Using local env: 

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::                (v2.6.6)

2023-04-04 06:36:38.482 - INFO 7 --- [           main] com.defold.extender.ExtenderApplication  : Starting ExtenderApplication using Java 11.0.18 on 868f77e1be27 with PID 7 (/app.jar started by extender in /)
2023-04-04 06:36:38.486 - INFO 7 --- [           main] com.defold.extender.ExtenderApplication  : The following 1 profile is active: "dev"
2023-04-04 06:36:39.371 - INFO 7 --- [           main] org.eclipse.jetty.util.log               : Logging initialized @1869ms to org.eclipse.jetty.util.log.Slf4jLog
2023-04-04 06:36:39.489 - INFO 7 --- [           main] o.s.b.w.e.j.JettyServletWebServerFactory : Server initialized with port: 9000
2023-04-04 06:36:39.491 - INFO 7 --- [           main] org.eclipse.jetty.server.Server          : jetty-9.4.45.v20220203; built: 2022-02-03T09:14:34.105Z; git: 4a0c91c0be53805e3fcffdcdcc9587d5301863db; jvm 11.0.18+10-post-Ubuntu-0ubuntu120.04.1
2023-04-04 06:36:39.517 - INFO 7 --- [           main] o.e.j.s.h.ContextHandler.application     : Initializing Spring embedded WebApplicationContext
2023-04-04 06:36:39.518 - INFO 7 --- [           main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 984 ms
2023-04-04 06:36:39.758 - INFO 7 --- [           main] org.eclipse.jetty.server.session         : DefaultSessionIdManager workerName=node0
2023-04-04 06:36:39.758 - INFO 7 --- [           main] org.eclipse.jetty.server.session         : No SessionScavenger set, using defaults
2023-04-04 06:36:39.759 - INFO 7 --- [           main] org.eclipse.jetty.server.session         : node0 Scavenging every 600000ms
2023-04-04 06:36:39.766 - INFO 7 --- [           main] o.e.jetty.server.handler.ContextHandler  : Started o.s.b.w.e.j.JettyEmbeddedWebAppContext@3f07b12c{application,/,[file:///tmp/jetty-docbase.9000.3156052032276260084/],AVAILABLE}
2023-04-04 06:36:39.766 - INFO 7 --- [           main] org.eclipse.jetty.server.Server          : Started @2265ms
2023-04-04 06:36:39.777 - INFO 7 --- [           main] c.d.extender.services.DefoldSdkService   : SDK service using directory /var/extender/sdk with cache size 10
2023-04-04 06:36:39.785 - INFO 7 --- [           main] c.d.extender.cache.DataCacheFactory      : Creating local disk cache in directory /var/extender/cache/data
2023-04-04 06:36:39.791 - INFO 7 --- [           main] c.d.extender.services.GradleService      : GRADLE service using directory /tmp/.gradle with cache size 2048
2023-04-04 06:36:39.794 - INFO 7 --- [           main] c.d.extender.services.CocoaPodsService   : CocoaPodsService service
2023-04-04 06:36:39.888 - INFO 7 --- [           main] c.d.extender.services.UserUpdateService  : UserUpdateService() updateInterval = 900000 usersResource = null
2023-04-04 06:36:39.888 - INFO 7 --- [           main] c.d.extender.services.UserUpdateService  : UserUpdateService - No extender.authentication.users configuration has been set
2023-04-04 06:36:40.002 - INFO 7 --- [           main] o.s.s.web.DefaultSecurityFilterChain     : Will not secure any request
2023-04-04 06:36:40.304 - INFO 7 --- [           main] o.s.b.a.e.web.EndpointLinksResolver      : Exposing 1 endpoint(s) beneath base path '/actuator'
2023-04-04 06:36:40.329 - INFO 7 --- [           main] o.e.j.s.h.ContextHandler.application     : Initializing Spring DispatcherServlet 'dispatcherServlet'
2023-04-04 06:36:40.329 - INFO 7 --- [           main] o.s.web.servlet.DispatcherServlet        : Initializing Servlet 'dispatcherServlet'
2023-04-04 06:36:40.330 - INFO 7 --- [           main] o.s.web.servlet.DispatcherServlet        : Completed initialization in 1 ms
2023-04-04 06:36:40.350 - INFO 7 --- [           main] o.e.jetty.server.AbstractConnector       : Started ServerConnector@20c0a64d{HTTP/1.1, (http/1.1)}{0.0.0.0:9000}
2023-04-04 06:36:40.351 - INFO 7 --- [           main] o.s.b.web.embedded.jetty.JettyWebServer  : Jetty started on port(s) 9000 (http/1.1) with context path '/'
2023-04-04 06:36:40.368 - INFO 7 --- [           main] com.defold.extender.ExtenderApplication  : Started ExtenderApplication in 2.36 seconds (JVM running for 2.868

↑↑↑↑↑↑↑↑↑↑↑
startup here

build there
↓↓↓↓↓↓↓↓↓↓↓



2023-04-04 06:37:14.234 - INFO 7 --- [qtp1390913202-29] c.d.extender.services.UserUpdateService  : UserUpdateService - No extender.authentication.users configuration has been set
2023-04-04 06:37:14.235 - INFO 7 --- [job11837266269759581206] com.defold.extender.ExtenderController   : Starting build: sdk=f5e114aaebe25c5242db5f0066af2f5189c09f99, platform=x86_64-win32 job=job11837266269759581206
2023-04-04 06:37:14.241 - INFO 7 --- [job11837266269759581206] c.d.extender.services.DataCacheService   : Downloading cached files
2023-04-04 06:37:14.242 - INFO 7 --- [job11837266269759581206] c.d.extender.services.DataCacheService   : Downloaded 0 cached files
2023-04-04 06:37:14.242 - INFO 7 --- [job11837266269759581206] com.defold.extender.ExtenderController   : Building engine locally
2023-04-04 06:37:14.336 - INFO 7 --- [job11837266269759581206] c.d.extender.services.DefoldSdkService   : Downloading Defold SDK from http://d.defold.com/archive/stable/f5e114aaebe25c5242db5f0066af2f5189c09f99/engine/defoldsdk.zip ...
2023-04-04 06:37:39.962 - INFO 7 --- [job11837266269759581206] c.d.extender.services.DefoldSdkService   : Using Defold SDK version f5e114aaebe25c5242db5f0066af2f5189c09f99
2023-04-04 06:37:40.043 - INFO 7 --- [job11837266269759581206] com.defold.extender.Extender             : Using context for platform: x86_64-win32
2023-04-04 06:37:40.056 - INFO 7 --- [job11837266269759581206] com.defold.extender.Extender             : Manifest merging not supported by this sdk
2023-04-04 06:37:40.056 - INFO 7 --- [job11837266269759581206] com.defold.extender.Extender             : Building engine for platform x86_64-win32 with extension source /tmp/job11837266269759581206/upload
2023-04-04 06:37:40.056 - INFO 7 --- [job11837266269759581206] com.defold.extender.Extender             : buildPods
2023-04-04 06:37:40.056 - INFO 7 --- [job11837266269759581206] com.defold.extender.Extender             : buildExtension
2023-04-04 06:37:40.061 - INFO 7 --- [job11837266269759581206] com.defold.extender.Extender             : Converting .proto to engine .cpp files for extension myextension
2023-04-04 06:37:40.090 -ERROR 7 --- [job11837266269759581206] com.defold.extender.ExtenderController   : Exception while building or sending response - SDK: f5e114aaebe25c5242db5f0066af2f5189c09f99 , metrics: metrics={job.cache.download=2, job.cache.downloadSize=0, job.receive=4, job.requestSize=17331, job.sdkDownload=25721}
2023-04-04 06:37:40.091 - INFO 7 --- [job11837266269759581206] c.d.extender.services.DataCacheService   : Cached 0 bytes in 0 files
2023-04-04 06:37:40.096 - INFO 7 --- [job11837266269759581206] com.defold.extender.ExtenderController   : Job done
2023-04-04 06:37:40.098 -ERROR 7 --- [job11837266269759581206] com.defold.extender.ExtenderController   : Failed to build extension: clang++ -DDLIB_LOG_DOMAIN="MYEXTENSION" -DDDF_EXPOSE_DESCRIPTORS -DDM_PLATFORM_WINDOWS -D_CRT_SECURE_NO_WARNINGS -D_WINSOCK_DEPRECATED_NO_WARNINGS -D__STDC_LIMIT_MACROS -DWINVER=0x0600 -DWIN32 -DNOMINMAX  -target x86_64-pc-win32-msvc -m64 -O2 -g -gcodeview -O2 -Wall -Werror=format -fvisibility=hidden -nostdinc++ -std=c++17  -nostdinc++ -isystem /opt/platformsdk/Win32/MicrosoftVisualStudio2019/VC/Tools/MSVC/14.29.30133//include -isystem /opt/platformsdk/Win32/MicrosoftVisualStudio2019/VC/Tools/MSVC/14.29.30133//atlmfc/include -isystem /opt/platformsdk/Win32/WindowsKits/10//Include/10.0.18362.0/ucrt -isystem /opt/platformsdk/Win32/WindowsKits/10//Include/10.0.18362.0/winrt -isystem /opt/platformsdk/Win32/WindowsKits/10//Include/10.0.18362.0/um -isystem /opt/platformsdk/Win32/WindowsKits/10//Include/10.0.18362.0/shared  -Ibuild/myextension/ -Iupload/  -I/var/extender/sdk/f5e114aaebe25c5242db5f0066af2f5189c09f99/defoldsdk//include -I/var/extender/sdk/f5e114aaebe25c5242db5f0066af2f5189c09f99/defoldsdk//sdk/include -I/var/extender/sdk/f5e114aaebe25c5242db5f0066af2f5189c09f99/defoldsdk//ext/include  upload/myextension/src/myextension.cpp -c -o build/myextension.cpp_0.o

Have I messed somewhere?

Hi @Mikhail !

Your setup seems good so far.

It’s hard to say what’s going on with only a snippet of the build error.
Please post the log.txt from the build folder, or set the DM_DEBUG_COMMANDS=1 environment variable before running the server.

Hi @Mathias_Westerdahl !

It seems that build.log file created only on successfull build (with https://build.defold.com). If I delete it and try my buildserver directory build\x86_64-win32\ is not even created.

I’ve set DM_DEBUG_COMMANDS but don’t see anything helpful:

Using local env:  -e DM_DEBUG_COMMANDS=1

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::                (v2.6.6)

2023-04-04 07:01:06.195 - INFO 7 --- [           main] com.defold.extender.ExtenderApplication  : Starting ExtenderApplication using Java 11.0.18 on 6d64bb9b5744 with PID 7 (/app.jar started by extender in /)
2023-04-04 07:01:06.197 - INFO 7 --- [           main] com.defold.extender.ExtenderApplication  : The following 1 profile is active: "dev"
2023-04-04 07:01:06.968 - INFO 7 --- [           main] org.eclipse.jetty.util.log               : Logging initialized @1517ms to org.eclipse.jetty.util.log.Slf4jLog
2023-04-04 07:01:07.065 - INFO 7 --- [           main] o.s.b.w.e.j.JettyServletWebServerFactory : Server initialized with port: 9000
2023-04-04 07:01:07.067 - INFO 7 --- [           main] org.eclipse.jetty.server.Server          : jetty-9.4.45.v20220203; built: 2022-02-03T09:14:34.105Z; git: 4a0c91c0be53805e3fcffdcdcc9587d5301863db; jvm 11.0.18+10-post-Ubuntu-0ubuntu120.04.1
2023-04-04 07:01:07.090 - INFO 7 --- [           main] o.e.j.s.h.ContextHandler.application     : Initializing Spring embedded WebApplicationContext
2023-04-04 07:01:07.090 - INFO 7 --- [           main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 853 ms
2023-04-04 07:01:07.274 - INFO 7 --- [           main] org.eclipse.jetty.server.session         : DefaultSessionIdManager workerName=node0
2023-04-04 07:01:07.275 - INFO 7 --- [           main] org.eclipse.jetty.server.session         : No SessionScavenger set, using defaults
2023-04-04 07:01:07.276 - INFO 7 --- [           main] org.eclipse.jetty.server.session         : node0 Scavenging every 600000ms
2023-04-04 07:01:07.282 - INFO 7 --- [           main] o.e.jetty.server.handler.ContextHandler  : Started o.s.b.w.e.j.JettyEmbeddedWebAppContext@3c989952{application,/,[file:///tmp/jetty-docbase.9000.2219728413485608402/],AVAILABLE}
2023-04-04 07:01:07.282 - INFO 7 --- [           main] org.eclipse.jetty.server.Server          : Started @1832ms
2023-04-04 07:01:07.292 - INFO 7 --- [           main] c.d.extender.services.DefoldSdkService   : SDK service using directory /var/extender/sdk with cache size 10
2023-04-04 07:01:07.299 - INFO 7 --- [           main] c.d.extender.cache.DataCacheFactory      : Creating local disk cache in directory /var/extender/cache/data
2023-04-04 07:01:07.304 - INFO 7 --- [           main] c.d.extender.services.GradleService      : GRADLE service using directory /tmp/.gradle with cache size 2048
2023-04-04 07:01:07.308 - INFO 7 --- [           main] c.d.extender.services.CocoaPodsService   : CocoaPodsService service
2023-04-04 07:01:07.390 - INFO 7 --- [           main] c.d.extender.services.UserUpdateService  : UserUpdateService() updateInterval = 900000 usersResource = null
2023-04-04 07:01:07.390 - INFO 7 --- [           main] c.d.extender.services.UserUpdateService  : UserUpdateService - No extender.authentication.users configuration has been set
2023-04-04 07:01:07.489 - INFO 7 --- [           main] o.s.s.web.DefaultSecurityFilterChain     : Will not secure any request
2023-04-04 07:01:07.775 - INFO 7 --- [           main] o.s.b.a.e.web.EndpointLinksResolver      : Exposing 1 endpoint(s) beneath base path '/actuator'
2023-04-04 07:01:07.803 - INFO 7 --- [           main] o.e.j.s.h.ContextHandler.application     : Initializing Spring DispatcherServlet 'dispatcherServlet'
2023-04-04 07:01:07.803 - INFO 7 --- [           main] o.s.web.servlet.DispatcherServlet        : Initializing Servlet 'dispatcherServlet'
2023-04-04 07:01:07.804 - INFO 7 --- [           main] o.s.web.servlet.DispatcherServlet        : Completed initialization in 1 ms
2023-04-04 07:01:07.815 - INFO 7 --- [           main] o.e.jetty.server.AbstractConnector       : Started ServerConnector@1ab06251{HTTP/1.1, (http/1.1)}{0.0.0.0:9000}
2023-04-04 07:01:07.816 - INFO 7 --- [           main] o.s.b.web.embedded.jetty.JettyWebServer  : Jetty started on port(s) 9000 (http/1.1) with context path '/'
2023-04-04 07:01:07.833 - INFO 7 --- [           main] com.defold.extender.ExtenderApplication  : Started ExtenderApplication in 2.035 seconds (JVM running for 2.382)











2023-04-04 07:01:39.146 - INFO 7 --- [qtp1117871068-29] c.d.extender.services.UserUpdateService  : UserUpdateService - No extender.authentication.users configuration has been set
2023-04-04 07:01:39.147 - INFO 7 --- [job4836636283206365720] com.defold.extender.ExtenderController   : Starting build: sdk=f5e114aaebe25c5242db5f0066af2f5189c09f99, platform=x86_64-win32 job=job4836636283206365720
2023-04-04 07:01:39.151 - INFO 7 --- [job4836636283206365720] c.d.extender.services.DataCacheService   : Downloading cached files
2023-04-04 07:01:39.151 - INFO 7 --- [job4836636283206365720] c.d.extender.services.DataCacheService   : Downloaded 0 cached files
2023-04-04 07:01:39.152 - INFO 7 --- [job4836636283206365720] com.defold.extender.ExtenderController   : Building engine locally
2023-04-04 07:01:39.267 - INFO 7 --- [job4836636283206365720] c.d.extender.services.DefoldSdkService   : Downloading Defold SDK from http://d.defold.com/archive/stable/f5e114aaebe25c5242db5f0066af2f5189c09f99/engine/defoldsdk.zip ...
2023-04-04 07:02:04.857 - INFO 7 --- [job4836636283206365720] c.d.extender.services.DefoldSdkService   : Using Defold SDK version f5e114aaebe25c5242db5f0066af2f5189c09f99
2023-04-04 07:02:04.936 - INFO 7 --- [job4836636283206365720] com.defold.extender.Extender             : Using context for platform: x86_64-win32
2023-04-04 07:02:04.950 - INFO 7 --- [job4836636283206365720] com.defold.extender.Extender             : Manifest merging not supported by this sdk
2023-04-04 07:02:04.950 - INFO 7 --- [job4836636283206365720] com.defold.extender.Extender             : Building engine for platform x86_64-win32 with extension source /tmp/job4836636283206365720/upload
2023-04-04 07:02:04.950 - INFO 7 --- [job4836636283206365720] com.defold.extender.Extender             : buildPods
2023-04-04 07:02:04.950 - INFO 7 --- [job4836636283206365720] com.defold.extender.Extender             : buildExtension
2023-04-04 07:02:04.956 - INFO 7 --- [job4836636283206365720] com.defold.extender.Extender             : Converting .proto to engine .cpp files for extension myextension
CMD 0: clang++ -DDLIB_LOG_DOMAIN="MYEXTENSION" -DDDF_EXPOSE_DESCRIPTORS -DDM_PLATFORM_WINDOWS -D_CRT_SECURE_NO_WARNINGS -D_WINSOCK_DEPRECATED_NO_WARNINGS -D__STDC_LIMIT_MACROS -DWINVER=0x0600 -DWIN32 -DNOMINMAX  -target x86_64-pc-win32-msvc -m64 -O2 -g -gcodeview -O2 -Wall -Werror=format -fvisibility=hidden -nostdinc++ -std=c++17  -nostdinc++ -isystem /opt/platformsdk/Win32/MicrosoftVisualStudio2019/VC/Tools/MSVC/14.29.30133//include -isystem /opt/platformsdk/Win32/MicrosoftVisualStudio2019/VC/Tools/MSVC/14.29.30133//atlmfc/include -isystem /opt/platformsdk/Win32/WindowsKits/10//Include/10.0.18362.0/ucrt -isystem /opt/platformsdk/Win32/WindowsKits/10//Include/10.0.18362.0/winrt -isystem /opt/platformsdk/Win32/WindowsKits/10//Include/10.0.18362.0/um -isystem /opt/platformsdk/Win32/WindowsKits/10//Include/10.0.18362.0/shared  -Ibuild/myextension/ -Iupload/  -I/var/extender/sdk/f5e114aaebe25c5242db5f0066af2f5189c09f99/defoldsdk//include -I/var/extender/sdk/f5e114aaebe25c5242db5f0066af2f5189c09f99/defoldsdk//sdk/include -I/var/extender/sdk/f5e114aaebe25c5242db5f0066af2f5189c09f99/defoldsdk//ext/include  upload/myextension/src/myextension.cpp -c -o build/myextension.cpp_0.o
2023-04-04 07:02:04.976 -ERROR 7 --- [job4836636283206365720] com.defold.extender.ExtenderController   : Exception while building or sending response - SDK: f5e114aaebe25c5242db5f0066af2f5189c09f99 , metrics: metrics={job.cache.download=2, job.cache.downloadSize=0, job.receive=3, job.requestSize=17331, job.sdkDownload=25705}
2023-04-04 07:02:04.977 - INFO 7 --- [job4836636283206365720] c.d.extender.services.DataCacheService   : Cached 0 bytes in 0 files
2023-04-04 07:02:04.982 - INFO 7 --- [job4836636283206365720] com.defold.extender.ExtenderController   : Job done
2023-04-04 07:02:04.984 -ERROR 7 --- [job4836636283206365720] com.defold.extender.ExtenderController   : Failed to build extension: clang++ -DDLIB_LOG_DOMAIN="MYEXTENSION" -DDDF_EXPOSE_DESCRIPTORS -DDM_PLATFORM_WINDOWS -D_CRT_SECURE_NO_WARNINGS -D_WINSOCK_DEPRECATED_NO_WARNINGS -D__STDC_LIMIT_MACROS -DWINVER=0x0600 -DWIN32 -DNOMINMAX  -target x86_64-pc-win32-msvc -m64 -O2 -g -gcodeview -O2 -Wall -Werror=format -fvisibility=hidden -nostdinc++ -std=c++17  -nostdinc++ -isystem /opt/platformsdk/Win32/MicrosoftVisualStudio2019/VC/Tools/MSVC/14.29.30133//include -isystem /opt/platformsdk/Win32/MicrosoftVisualStudio2019/VC/Tools/MSVC/14.29.30133//atlmfc/include -isystem /opt/platformsdk/Win32/WindowsKits/10//Include/10.0.18362.0/ucrt -isystem /opt/platformsdk/Win32/WindowsKits/10//Include/10.0.18362.0/winrt -isystem /opt/platformsdk/Win32/WindowsKits/10//Include/10.0.18362.0/um -isystem /opt/platformsdk/Win32/WindowsKits/10//Include/10.0.18362.0/shared  -Ibuild/myextension/ -Iupload/  -I/var/extender/sdk/f5e114aaebe25c5242db5f0066af2f5189c09f99/defoldsdk//include -I/var/extender/sdk/f5e114aaebe25c5242db5f0066af2f5189c09f99/defoldsdk//sdk/include -I/var/extender/sdk/f5e114aaebe25c5242db5f0066af2f5189c09f99/defoldsdk//ext/include  upload/myextension/src/myextension.cpp -c -o build/myextension.cpp_0.o

Just in case screenshopt, only error mesage in Defold:

The file is called log.txtand is always created in your build folder.

However, it won’t show more than what the server does. And for some reason, the compile command produces an error, but no error output.

I guess you have to debug your server to make sure it’s setup correctly.

  • You can use the DM_DEBUG_KEEP_JOB_FOLDER to make sure the job folder is kept after the build finished (or failed).
  • Then you can log in to the server with ./server/scripts/debug-local.sh.
  • Cd into the job folder (the one named like job4836636283206365720)
  • Run your failing command line to see if you gain some more information

Thank you. It seems I found the culprit:
clang++: command not found
Clang is missing. I’ve checked Dockerfile and now I see that clang installation command was commented by me.

So the question now: Should I install exactly clang-llvm-13.0.0 or any newver version would be fine too?

2 Likes

Good find!
It is a bit strange it doesn’t output a better message in that case :thinking:

Well, I think it should work with newer versions, so you could always try.

2 Likes

I’ve managed to build my extention. Some notes:

  • clang+llvm-16.0.0-x86_64-linux-gnu-ubuntu-18.04.tar.xz works fine
  • libtinfo.so.5 was missing so i’ve added libncurses5 to installation list. Not sure what binary needed it, perhaps new Clang.
  • Clang couldn’t open LIBCMT.lib so I’ve added copying libcmt.lib to LIBCMT.lib:
(cd ${WINDOWS_MSVC_2019_DIR}/lib/x64 && cp libcmt.lib LIBCMT.lib) && \
(cd ${WINDOWS_MSVC_2019_DIR}/lib/x86 && cp libcmt.lib LIBCMT.lib)

Thank you again for help <3

4 Likes