# PackageCompiler create\_library --\> ERROR: LoadError: could not find project at "JuliaTest"

**URL:** <https://discourse.julialang.org/t/packagecompiler-create-library-error-loaderror-could-not-find-project-at-juliatest/119167>\
**Category:** General Usage\
**Created:** [September 7, 2024, 12:58pm UTC](https://discourse.julialang.org/t/packagecompiler-create-library-error-loaderror-could-not-find-project-at-juliatest/119167 "2024-09-07T12:58:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Julian](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@Julian](https://discourse.julialang.org/u/Julian)\
**Post date:** [September 7, 2024, 12:58pm UTC](https://discourse.julialang.org/t/packagecompiler-create-library-error-loaderror-could-not-find-project-at-juliatest/119167/1 "2024-09-07T12:58:21Z")

</div>

I am new to Julia and I am trying to build a simple DLL using PackageCompiler create\_library.

I have a directory JuliaTest which contains the following files:

```julia
Project.toml
Manifest.toml
src/JuliaTest.jl

```

Whenever I run:

```julia
using PackageCompiler
create_library("JuliaTest", "JuliaTestDLL", lib_name="JuliaTest")

```

I get the following error message:

**ERROR** : could not find project at “JuliaTest”

**Project.toml:**

```julia
name = "JuliaTest"
uuid = "e147a1a5-d6e8-4d14-9d02-dcb123456789" # You can generate a new UUID using `uuid4()`
authors = ["Julian"]
version = "0.1.0"

[deps]
PackageCompiler = "9b87118b-4619-50d2-8e1e-99f35a4d4d9d"

[compat]
julia = "1.10" # Specify the version of Julia you're using

```

**Manifest.toml:**

```julia
project_name = "JuliaTest"
julia_version = "1.10" 
targets = [
    "JuliaTest" => ["JuliaTest.jl"]
]

```

So it should work as expected, but it does not.

Note:

```julia
The pwd() command returns:
"e:\\Projects\\Misc\\JuliaTest"

```

That’s exactly where Project.toml and Manifest.toml are located.

Do you have any ideas about what is causing this unexpected behaviour?

Full stack trace:

```julia
could not find project at "JuliaTest"
Stacktrace:
 [1] error(s::String)
   @ Base .\error.jl:35
 [2] create_pkg_context(project::String)
   @ PackageCompiler e:\packages\julia\packages\PackageCompiler\nT5sD\src\PackageCompiler.jl:71
 [3] create_library(package_or_project::String, dest_dir::String; lib_name::String, precompile_execution_file::Vector{String}, precompile_statements_file::Vector{String}, incremental::Bool, filter_stdlibs::Bool, force::Bool, header_files::Vector{String}, julia_init_c_file::String, julia_init_h_file::String, version::Nothing, compat_level::String, cpu_target::String, include_lazy_artifacts::Bool, sysimage_build_args::Cmd, include_transitive_dependencies::Bool, include_preferences::Bool, script::Nothing, base_sysimage::Nothing)
   @ PackageCompiler e:\packages\julia\packages\PackageCompiler\nT5sD\src\PackageCompiler.jl:1063
 [4] top-level scope
   @ REPL[4]:1

```

---

<div class="post-metadata">

**Author:** ![Julian](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@Julian](https://discourse.julialang.org/u/Julian)\
**Post date:** [September 7, 2024, 1:24pm UTC](https://discourse.julialang.org/t/packagecompiler-create-library-error-loaderror-could-not-find-project-at-juliatest/119167/2 "2024-09-07T13:24:31Z")

</div>

Ok, I made some progress:

1. The correct command is:

```julia
create_library(".", "JuliaTest", lib_name="JuliaTest")

```

1. Manifest.toml was incorrect, I deleted it and it was re-generated automatically

Now the challenge is to understand why a minimal JuliaTest source file generates a 186MB DLL, plus 350+MB of other dependencies (DLLs).
