Skip to content

Commit ccef86b

Browse files
committed
Remove output dir changes so assemble artifacts works.
1 parent c02a5dc commit ccef86b

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

CMakeLists.txt

-6
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@ set(CMAKE_CXX_STANDARD_REQUIRED True)
99
set(DART_DLL_DIR "${PROJECT_SOURCE_DIR}/src")
1010
set(DART_DIR "${PROJECT_SOURCE_DIR}/dart-sdk/sdk")
1111

12-
set(OUTPUT_DEBUG "${OUTPUT_PATH_EXT}/Debug")
13-
set(OUTPUT_RELEASE "${OUTPUT_PATH_EXT}/Release")
14-
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/out/$<$<CONFIG:DEBUG>:${OUTPUT_DEBUG}>$<$<CONFIG:RELEASE>:${OUTPUT_RELEASE}>")
15-
set(EXECUTABLE_OUTPUT_PATH "${PROJECT_SOURCE_DIR}/out/${OUTPUT_PATH_EXT}/${CMAKE_BUILD_TYPE}")
16-
set(LIBRARY_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/out/${OUTPUT_PATH_EXT}/${CMAKE_BUILD_TYPE}")
17-
1812
add_subdirectory(src)
1913
if(BUILD_SAMPLES)
2014
add_subdirectory(examples)

README.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,14 @@ Once Dart is built, you can use CMake to generate build files and / or build the
6868
```bash
6969
cmake -B ./.build .
7070
cmake --build .\.build\ --config release
71-
```
71+
```
72+
73+
### Troubleshooting
74+
75+
#### Unresolved externals building Dart on Linux
76+
77+
Two possible causes of this are having the snap package for Flutter installed, or having `depot_tools` not too far down your path.
78+
79+
First, uninstall the Flutter snap package and remove the dart-sdk build directory at `dart-sdk/sdk/out` and attempt to rebuild Dart.
80+
81+
If that doesn't work, put `depot_tools` at the front of your path, instead of at the end. Clean the dart-sdk build directory, then attempt a rebuild.

0 commit comments

Comments
 (0)