C++
How to Build and Run C++ Samples
General Samples
Under the
samples
directory, there is a folder structure "SampleName\PlatformName", which contains the sample files. Open the.sln
file in each folder using Visual Studio.Specify the command arguments in
Project > Properties > Debug > Command Arguments
.Build and run using F5. The execution status will be displayed in the output window.
When executing multiple clients, run multiple clients in separate processes from a terminal, such as the Windows Command Prompt.
Building Samples for iOS Simulator
In Xcode, verify
Product
>Destination
>Destination Architectures
>Show Rosetta Destinations
.Click the run destination on the top bar and select the Rosetta simulator.
Open
Build Settings
>Search Paths
.Adjust the order of search paths so that
../../../platforms/ios/iOS-Simulator/lib_static
is prioritized.
Running Android Samples
Right-click on the project in Visual Studio and open
Properties
.Navigate to
Debugging
.Set the launch arguments in
Launch Flags
. Specify the arguments with the--es
option (intent arguments).e.g.
Last updated
Was this helpful?