[PROJ] Trouble building packages for distribution

Kristian Evers kristian at evers.dev
Mon Feb 23 08:15:04 PST 2026


I had a hunch it was a problem on my end. No clue what it is though… Probably MacOS being difficult again.

I’ve pasted the output from CMake below in case anyone can see a problem in it.

Could one of you send me a copy of the files you produced? At least I can upload those in case I don’t figure
out what’s going today.

/Kristian

$ cmake -D BUILD_TESTING=OFF ..
-- The C compiler identification is AppleClang 17.0.0.17000603
-- The CXX compiler identification is AppleClang 17.0.0.17000603
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Requiring C++17
-- Requiring C++17 - done
-- Requiring C99
-- Requiring C99 - done
-- Configuring PROJ:
-- PROJ_VERSION = 9.8.0
-- Looking for localeconv
-- Looking for localeconv - found
-- Looking for strerror
-- Looking for strerror - found
-- Looking for dladdr in dl
-- Looking for dladdr in dl - found
-- Looking for exp in m
-- Looking for exp in m - found
-- BUNDLEDIR = Applications/OSGEO
-- PROJ_INSTALL_NAME_DIR = @executable_path/../../Library/Frameworks
-- FRAMEWORKDIR = Library/Frameworks
-- nlohmann/json: internal
-- Found SQLite3: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libsqlite3.tbd (found version "3.51.0")
-- Found TIFF: /opt/homebrew/lib/libtiff.dylib (found version "4.7.1")
-- Found CURL: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libcurl.tbd (found version "8.7.1")
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Testing disabled
-- Configuring proj library:
-- ENABLE_IPO = OFF
-- PROJ_OUTPUT_NAME = proj
-- BUILD_SHARED_LIBS = ON
-- PROJ_LIBRARIES = proj
-- PROJ: Configured 'dist' target
-- EMBED_RESOURCE_FILES=OFF
-- Configuring done (2.4s)
-- Generating done (0.1s)
-- Build files have been written to: /Users/kevers/dev/proj/build/PROJ-9.8/_build

$ cmake --build . --target dist
Run CPack packaging tool for source...
CPack: Create package using TGZ
CPack: Install projects
CPack: - Install directory: /Users/kevers/dev/proj/build/PROJ-9.8
CPack: Create package
CPack: - package: /Users/kevers/dev/proj/build/PROJ-9.8/_build/proj-9.8.0.tar.gz generated.
CPack: Create package using ZIP
CPack: Install projects
CPack: - Install directory: /Users/kevers/dev/proj/build/PROJ-9.8
CPack: Create package
CPack: - package: /Users/kevers/dev/proj/build/PROJ-9.8/_build/proj-9.8.0.zip generated.
Built target dist

$ ls -lh proj-*
-rw-r--r-- 1 kevers staff 29B Feb 23 16:31 proj-9.8.0.tar.gz
-rw-r--r-- 1 kevers staff 22B Feb 23 16:31 proj-9.8.0.zip

> On 23 Feb 2026, at 17.01, Javier Jimenez Shaw <j1 at jimenezshaw.com> wrote:
>
> I got this, but it was extremely fast compiling. I think it was using some kind of cache
>
> ls -lh proj-9.8.0*
> -rw-rw-r-- 1 jshaw jshaw 5.8M Feb 23 16:59 proj-9.8.0.tar.gz
> -rw-rw-r-- 1 jshaw jshaw 6.1M Feb 23 16:59 proj-9.8.0.zip
>
> On Mon, 23 Feb 2026 at 16:51, Kristian Evers via PROJ <proj at lists.osgeo.org> wrote:
>
>> I’m in the process of preparing 9.8.0RC1 but seem to have hit a bit of an issue with CMake that I can’t make sense of.
>> In short, empty archives are produced when running "cmake --build . --target dist”.
>>
>> As usual I follow the recipe in HOWTO-RELEASE:
>>
>> $ BRANCH_NAME=9.8
>> $ git clone --depth 1 --branch $BRANCH_NAME https://github.com/OSGeo/PROJ.git PROJ-$BRANCH_NAME
>> $ cd PROJ-$BRANCH_NAME
>> $ mkdir _build && cd _build
>> $ cmake -D BUILD_TESTING=OFF ..
>> $ cmake --build . --target dist
>>
>> Looking at the produced files shows they are empty:
>>
>> $ ls -lh proj-9.8.0*
>> -rw-r--r-- 1 kevers staff 29B Feb 23 16:31 proj-9.8.0.tar.gz
>> -rw-r--r-- 1 kevers staff 22B Feb 23 16:31 proj-9.8.0.zip
>>
>> Oddly enough, if I do a similar thing within my git repo I succeed:
>>
>> $ mkdir build && cd build
>> $ cmake -D BUILD_TESTING=OFF ..
>> $ cmake --build . --target dist
>> $ ls -lh proj-*
>> -rw-r--r-- 1 kevers staff 6.4M Feb 23 16:38 proj-9.8.0.tar.gz
>> -rw-r--r-- 1 kevers staff 6.9M Feb 23 16:38 proj-9.8.0.zip
>>
>> I see that a few things have changed in CMakeLists.txt but nothing that seems related. Could someone try to reproduce this?
>>
>> /Kristian
>> _______________________________________________
>> PROJ mailing list
>> PROJ at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/proj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/proj/attachments/20260223/d0d904f7/attachment-0001.htm>


More information about the PROJ mailing list