this is how I usually do it under ubuntu22

export CC="/usr/bin/clang"
export CXX="/usr/bin/clang++"
export PREFIX="/usr"
export 
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:${PREFIX}/bin"
export PKG_CONFIG_PATH="/usr/lib/pkgconfig/:/usr/local/lib/pkgconfig/"
export RUNTIME_VERSION="gnustep-2.1"
export OBJCFLAGS="-fblocks"
export CFLAGS="-I ${PREFIX}/include"
export LDFLAGS="-fuse-ld=gold"
export GNUSTEP_INSTALLATION_DOMAIN="SYSTEM"


    cd libobjc2
    git submodule init
    git submodule update
    mkdir Build
    cd Build
/usr/bin/cmake  .. -DCMAKE_BUILD_TYPE=RelWithDebInfo -DOLDABI_COMPAT=OFF 
-DBUILD_STATIC_LIBOBJC=1  -DCMAKE_C_COMPILER=${CC} -DCMAKE_CXX_COMPILER=${CXX} 
-DCMAKE_INSTALL_PREFIX=/usr  -DGNUSTEP_CONFIG:FILEPATH=GNUSTEP_CONFIG-NOTFOUND
OLDABI_COMPAT=OFF
    make
    make install



this is before gnustep-make is even installed



> On 2 May 2024, at 21:02, Larry Campbell <larry.campb...@gmail.com> wrote:
> 
> This is on Ubuntu Focal. I have two stumbling blocks:
> 
> ANNOUNCE.2.1 says:
> 
>> The submodule is available from:
>> 
>> https://github.com/Tessil/robin-map/archive/757de82.zip
>> https://github.com/Tessil/robin-map/archive/757de82.tar.gz
>> 
>> This will extract as robin-map-757de829927489bee55ab02147484850c687b620.
>> You must move the contents of that directory into third_party/robin_map in 
>> the
>> libobjc2 tree.
>> 
> 
> 
> However, when I follow the instructions and say "cmake .." from the Build 
> directory, I get this warning:
> 
>> CMake Warning at CMakeLists.txt:118 (find_package):
>>  By not providing "Findtsl-robin-map.cmake" in CMAKE_MODULE_PATH this
>>  project has asked CMake to find a package configuration file provided by
>>  "tsl-robin-map", but CMake did not find one.
>> 
>>  Could not find a package configuration file provided by "tsl-robin-map"
>>  with any of the following names:
>> 
>>    tsl-robin-mapConfig.cmake
>>    tsl-robin-map-config.cmake
>> 
>>  Add the installation prefix of "tsl-robin-map" to CMAKE_PREFIX_PATH or set
>>  "tsl-robin-map_DIR" to a directory containing one of the above files.  If
>>  "tsl-robin-map" provides a separate development package or SDK, be sure it
>>  has been installed.
> 
> Am I missing a step?
> 
> The second problem is that I get this warning:
> 
>> CMake Warning at CMakeLists.txt:6 (message):
>>  WARNING: It is strongly recommended that you compile with clang
> 
> 
> The README.md file says:
> 
>> If you have gcc and clang both installed, then cmake currently defaults to
>> selecting gcc.  You should override this by adding `-DCMAKE_C_COMPILER=clang
>> -DCMAKE_CXX_COMPILER=clang++` to your Objective-C flags.
> 
> 
> But where do I put these flags? Somewhere in CMakeLists.txt? In one of the 
> numerous *.cmake files?
> 
> - lc
> 
> 



  • T... Larry Campbell
    • ... Andreas Fink via Discussion list for the GNUstep programming environment

Reply via email to