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?