TigerVNC / tigervnc

High performance, multi-platform VNC client and server
https://tigervnc.org
GNU General Public License v2.0
5.14k stars 941 forks source link

How to build vncviewer for macOS? #877

Closed masashi-sato-flect closed 5 years ago

masashi-sato-flect commented 5 years ago

Sorry for newcomer's question... I'm trying to build vncviewer v1.8.0 for macOS (10.15 Catalina). My procedure was..

xcode-select --install
git clone https://github.com/TigerVNC/tigervnc.git
cd tigervnc
git checkout v1.8.0
cmake -G "Unix Makefiles" vncviewer
cd vncviewer
make

Then I encountered the following error.

$ make
[  6%] Building CXX object CMakeFiles/vncviewer.dir/menukey.o
/Users/masashi.sato/github/tigervnc/vncviewer/menukey.cxx:26:10: fatal error: 
      'rfb/keysymdef.h' file not found
#include <rfb/keysymdef.h>
         ^~~~~~~~~~~~~~~~~
1 error generated.

I looked around for rfb header files but I couldn't find how to prepare them. It may be VNC related library, but I couldn't find any way to solve this error... Please help me.

How do your developers build macOS installer?

CendioOssman commented 5 years ago

That's and odd error. That's an internal file for TigerVNC so it should not be missing.

First though, why are you building 1.8.0? Does it work better with 1.9.0 or the current master?

masashi-sato-flect commented 5 years ago

Thanks for your reply. Because v1.9.0 has a critical problem.

Cannot type underscore on v1.9 viewer https://github.com/TigerVNC/tigervnc/issues/692

Then in order to use TigerVNC on macOS 10.15 Catalina, I needs 64 bit build of v1.8.0.

masashi-sato-flect commented 5 years ago

I tried to build v1.9.0 but the build process generated exact the same error. Would anybody tell me exact detailed step to build vncviewer on macOS? I think I was missing any quite basic but important steps that official manual doesn't say about.

appleguru commented 5 years ago

I am also trying to build under OS X 10.15 with the latest Xcode 11.

How did you point to the dependencies? I installed everything via homebrew, and also downloaded the fltk source, but I'm not sure how to include the external dependencies properly...

brew install cmake fltk zlib gnutls gettext libjpeg-turbo
git clone https://github.com/fltk/fltk.git
git clone https://github.com/TigerVNC/tigervnc.git
cd tigervnc
cmake -G "Unix Makefiles" vncviewer
make

gives me:

Scanning dependencies of target desktop
[  5%] Generating vncviewer.desktop
[  5%] Built target desktop
Scanning dependencies of target vncviewer
[ 11%] Building CXX object CMakeFiles/vncviewer.dir/menukey.o
/Users/ag/TeslaGit/tigervnc/vncviewer/menukey.cxx:21:10: fatal error: 'FL/Fl.H' file not found
#include <FL/Fl.H>
         ^~~~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/vncviewer.dir/menukey.o] Error 1
make[1]: *** [CMakeFiles/vncviewer.dir/all] Error 2
make: *** [all] Error 2

I tried including the flak source in my $PATH but it didn't make a difference...

appleguru commented 5 years ago

Ok, small progress... Trying to build fltk gave me a libpng dependency. So I downloaded libpng, built that. Then built fltk. Then tried to built TigerVNC explicitly including fltk in its includes, and got the same error as @s-masashi. So then I also explicitly included the common directory in my cmake call (note, you need to clear the cmake cache first! So...

git clean -fdx
cmake -DCMAKE_CXX_FLAGS=-I\ /path/to/fltk\ -I\ /path/to/tigervnc/common -G "Unix Makefiles" vncviewer
make

Which now gives a new error:

tigervnc/vncviewer/Viewport.cxx:1199:30: error: use of undeclared identifier 'LC_MESSAGES'
  fltk_menu_add(contextMenu, p_("ContextMenu|", "E&xit viewer"),
appleguru commented 5 years ago

Adding # include <locale.h> to gettext.h (actually, just removing the __sun if def around it so it gets included) eliminates this error... now I see:

vncviewer/vncviewer.cxx:104:35: error: use of undeclared identifier 'PACKAGE_VERSION'
           (int)sizeof(size_t)*8, PACKAGE_VERSION,
                                  ^
vncviewer/vncviewer.cxx:105:12: error: use of undeclared identifier 'BUILD_TIMESTAMP'
           BUILD_TIMESTAMP, 2019);
           ^
vncviewer/vncviewer.cxx:508:18: error: use of undeclared identifier 'PACKAGE_NAME'
  bindtextdomain(PACKAGE_NAME, LOCALE_DIR);
                 ^
vncviewer/vncviewer.cxx:508:32: error: use of undeclared identifier 'LOCALE_DIR'
  bindtextdomain(PACKAGE_NAME, LOCALE_DIR);
                               ^
vncviewer/vncviewer.cxx:509:14: error: use of undeclared identifier 'PACKAGE_NAME'
  textdomain(PACKAGE_NAME);
             ^
vncviewer/vncviewer.cxx:519:27: error: use of undeclared identifier 'PACKAGE_NAME'
  bind_textdomain_codeset(PACKAGE_NAME, "UTF-8");
                          ^
1 warning and 6 errors generated.

This one is weird, because I would expect cmake to generate a config.h that includes these, as is shown in the CMakeLists.txt:

# Generate config.h and make sure the source finds it
configure_file(config.h.in config.h)
add_definitions(-DHAVE_CONFIG_H)
include_directories(${CMAKE_BINARY_DIR})
masashi-sato-flect commented 5 years ago

@appleguru , Thanks for your help! I'm also struggling with the similar situation. @CendioOssman , Simply, how are you generating daily build for macOS?

bphinz commented 5 years ago

I will post the makefile that I use to generate the OSX builds

-brian

On Thu, Oct 10, 2019 at 8:33 PM Masashi Sato notifications@github.com wrote:

@appleguru https://github.com/appleguru , Thanks for your help! I'm also struggling with the similar situation. @CendioOssman https://github.com/CendioOssman , Simply, how do you generating daily build for macOS?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/TigerVNC/tigervnc/issues/877?email_source=notifications&email_token=AB45M3PR725F7OCCXLBYU7DQN7CVJA5CNFSM4I62AFGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEA6L6BY#issuecomment-540851975, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB45M3L6HDCEJCOZIXOD6JDQN7CVJANCNFSM4I62AFGA .

-- Sent from Gmail Mobile

CendioOssman commented 5 years ago

Ah. I see the issue. You're trying to build just vncviewer. That is very much unsupported. You have to build using the top level directory. That explains why everything is going sideways for you.

So don't do:

$ cmake vncviewer

Do:

$ cmake .
appleguru commented 5 years ago

@bphinz can you still share your makefile?

While building the whole project does generate the config.h file for example, it still doesn't actually build anything useful:

% export PATH=/usr/local/opt/gettext/bin:$PATH
% cmake -G "Unix Makefiles" .
CMake Deprecation Warning at CMakeLists.txt:7 (cmake_policy):
  The OLD behavior for policy CMP0022 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.

-- The C compiler identification is AppleClang 11.0.0.11000033
-- The CXX compiler identification is AppleClang 11.0.0.11000033
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- CMAKE_BUILD_TYPE = Release
-- VERSION = 1.9.80
-- BUILD_TIMESTAMP = 2019-10-11 13:20
-- 64-bit build
-- Found ZLIB: /usr/lib/libz.dylib (found version "1.2.11") 
-- Found Gettext: /usr/local/opt/gettext/bin/msgmerge (found version "0.20.1") 
-- Performing Test ICONV_HAVE_WERROR
-- Performing Test ICONV_HAVE_WERROR - Success
-- Performing Test ICONV_SECOND_ARGUMENT_IS_CONST
-- Performing Test ICONV_SECOND_ARGUMENT_IS_CONST - Failed
-- Found Iconv: /usr/lib/libiconv.dylib
CMake Warning at CMakeLists.txt:174 (message):
  Gettext NOT found.  Native Language Support disabled.

-- Found JPEG: /usr/local/lib/libjpeg.dylib (found version "90") 
-- Performing Test FOUND_LIBJPEG_TURBO
-- Performing Test FOUND_LIBJPEG_TURBO - Failed
-- WARNING: You are not using libjpeg-turbo. Performance will suffer.
-- Found X11: /usr/X11R6/include   
-- Looking for XOpenDisplay in /usr/X11R6/lib/libX11.dylib;/usr/X11R6/lib/libXext.dylib
-- Looking for XOpenDisplay in /usr/X11R6/lib/libX11.dylib;/usr/X11R6/lib/libXext.dylib - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found FLTK: /usr/local/lib/libfltk_images.dylib;/usr/local/lib/libfltk.dylib  
-- Found GnuTLS: /usr/local/lib/libgnutls.dylib  
-- Looking for include file security/pam_appl.h
-- Looking for include file security/pam_appl.h - found
-- Looking for pam_start
-- Looking for pam_start - found
-- Creating static libtool control file for target os
-- Creating static libtool control file for target rdr
-- Creating static libtool control file for target network
-- Creating static libtool control file for target Xregion
-- Creating static libtool control file for target rfb
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
GETTEXT_INCLUDE_DIR
   used as include directory in directory tigervnc/vncviewer
   used as include directory in directory tigervnc/vncviewer
   used as include directory in directory tigervnc/vncviewer
   used as include directory in directory tigervnc/vncviewer
   used as include directory in directory tigervnc/vncviewer
   used as include directory in directory tigervnc/vncviewer
   used as include directory in directory tigervnc/vncviewer
   used as include directory in directory tigervnc/vncviewer
   used as include directory in directory tigervnc/tests/perf
   used as include directory in directory tigervnc/tests/perf
   used as include directory in directory tigervnc/tests/perf
   used as include directory in directory tigervnc/tests/perf
   used as include directory in directory tigervnc/tests/perf
   used as include directory in directory tigervnc/tests/perf
   used as include directory in directory tigervnc/tests/perf
   used as include directory in directory tigervnc/tests/perf
   used as include directory in directory tigervnc/tests/perf
   used as include directory in directory tigervnc/tests/perf
   used as include directory in directory tigervnc/tests/perf

-- Configuring incomplete, errors occurred!
See also "tigervnc/CMakeFiles/CMakeOutput.log".
See also "tigervnc/CMakeFiles/CMakeError.log".

% make
make: *** No targets specified and no makefile found.  Stop.
bphinz commented 5 years ago

Yes, sorry - I was tweaking it Wednesday night trying to upgrade to a newer version of GnuTLS and broke something. I'll send you the previous (working) version when later tonight.

On Fri, Oct 11, 2019 at 9:07 AM appleguru notifications@github.com wrote:

@bphinz https://github.com/bphinz can you still share your makefile?

While building the whole project does generate the config.h file for example, it still doesn't actually build anything useful:

% cmake -G "Unix Makefiles" . CMake Deprecation Warning at CMakeLists.txt:7 (cmake_policy): The OLD behavior for policy CMP0022 will be removed from a future version of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD.

-- CMAKE_BUILD_TYPE = Release -- VERSION = 1.9.80 -- BUILD_TIMESTAMP = 2019-10-11 13:04 -- 64-bit build -- Could NOT find Gettext (missing: GETTEXT_MSGMERGE_EXECUTABLE GETTEXT_MSGFMT_EXECUTABLE) CMake Warning at CMakeLists.txt:174 (message): Gettext NOT found. Native Language Support disabled.

-- WARNING: You are not using libjpeg-turbo. Performance will suffer. -- Creating static libtool control file for target os -- Creating static libtool control file for target rdr -- Creating static libtool control file for target network -- Creating static libtool control file for target Xregion -- Creating static libtool control file for target rfb CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: GETTEXT_INCLUDE_DIR used as include directory in directory tigervnc/vncviewer used as include directory in directory tigervnc/vncviewer used as include directory in directory tigervnc/vncviewer used as include directory in directory tigervnc/vncviewer used as include directory in directory tigervnc/vncviewer used as include directory in directory tigervnc/vncviewer used as include directory in directory tigervnc/vncviewer used as include directory in directory tigervnc/vncviewer used as include directory in directory tigervnc/tests/perf used as include directory in directory tigervnc/tests/perf used as include directory in directory tigervnc/tests/perf used as include directory in directory tigervnc/tests/perf used as include directory in directory tigervnc/tests/perf used as include directory in directory tigervnc/tests/perf used as include directory in directory tigervnc/tests/perf used as include directory in directory tigervnc/tests/perf used as include directory in directory tigervnc/tests/perf used as include directory in directory tigervnc/tests/perf used as include directory in directory tigervnc/tests/perf

-- Configuring incomplete, errors occurred! See also "tigervnc/CMakeFiles/CMakeOutput.log". See also "tigervnc/CMakeFiles/CMakeError.log".

% make make: *** No targets specified and no makefile found. Stop.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/TigerVNC/tigervnc/issues/877?email_source=notifications&email_token=AB45M3IGDELPJNELFDS2UZLQOB27RA5CNFSM4I62AFGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEA7562Q#issuecomment-541056874, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB45M3I4SCOPSJI6VZGUM7TQOB27RANCNFSM4I62AFGA .

bphinz commented 5 years ago

See attached

On Fri, Oct 11, 2019 at 10:31 AM Brian Hinz bphinz@users.sourceforge.net wrote:

Yes, sorry - I was tweaking it Wednesday night trying to upgrade to a newer version of GnuTLS and broke something. I'll send you the previous (working) version when later tonight.

On Fri, Oct 11, 2019 at 9:07 AM appleguru notifications@github.com wrote:

@bphinz https://github.com/bphinz can you still share your makefile?

While building the whole project does generate the config.h file for example, it still doesn't actually build anything useful:

% cmake -G "Unix Makefiles" . CMake Deprecation Warning at CMakeLists.txt:7 (cmake_policy): The OLD behavior for policy CMP0022 will be removed from a future version of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD.

-- CMAKE_BUILD_TYPE = Release -- VERSION = 1.9.80 -- BUILD_TIMESTAMP = 2019-10-11 13:04 -- 64-bit build -- Could NOT find Gettext (missing: GETTEXT_MSGMERGE_EXECUTABLE GETTEXT_MSGFMT_EXECUTABLE) CMake Warning at CMakeLists.txt:174 (message): Gettext NOT found. Native Language Support disabled.

-- WARNING: You are not using libjpeg-turbo. Performance will suffer. -- Creating static libtool control file for target os -- Creating static libtool control file for target rdr -- Creating static libtool control file for target network -- Creating static libtool control file for target Xregion -- Creating static libtool control file for target rfb CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: GETTEXT_INCLUDE_DIR used as include directory in directory tigervnc/vncviewer used as include directory in directory tigervnc/vncviewer used as include directory in directory tigervnc/vncviewer used as include directory in directory tigervnc/vncviewer used as include directory in directory tigervnc/vncviewer used as include directory in directory tigervnc/vncviewer used as include directory in directory tigervnc/vncviewer used as include directory in directory tigervnc/vncviewer used as include directory in directory tigervnc/tests/perf used as include directory in directory tigervnc/tests/perf used as include directory in directory tigervnc/tests/perf used as include directory in directory tigervnc/tests/perf used as include directory in directory tigervnc/tests/perf used as include directory in directory tigervnc/tests/perf used as include directory in directory tigervnc/tests/perf used as include directory in directory tigervnc/tests/perf used as include directory in directory tigervnc/tests/perf used as include directory in directory tigervnc/tests/perf used as include directory in directory tigervnc/tests/perf

-- Configuring incomplete, errors occurred! See also "tigervnc/CMakeFiles/CMakeOutput.log". See also "tigervnc/CMakeFiles/CMakeError.log".

% make make: *** No targets specified and no makefile found. Stop.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/TigerVNC/tigervnc/issues/877?email_source=notifications&email_token=AB45M3IGDELPJNELFDS2UZLQOB27RA5CNFSM4I62AFGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEA7562Q#issuecomment-541056874, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB45M3I4SCOPSJI6VZGUM7TQOB27RANCNFSM4I62AFGA .

appleguru commented 5 years ago

See attached

Don't see an attachment here?

bphinz commented 5 years ago

There was a Makefile attached. I see it on the sent message. Maybe the mailing list stripped it away?

On Mon, Oct 14, 2019 at 11:25 AM appleguru notifications@github.com wrote:

See attached Don't see an attachment here?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/TigerVNC/tigervnc/issues/877?email_source=notifications&email_token=AB45M3LMXVF3O6NQZOG5HRDQOSFM5A5CNFSM4I62AFGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBFGB5I#issuecomment-541745397, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB45M3OMGXNDIXFDPIQKS6DQOSFM5ANCNFSM4I62AFGA .

-- Sent from Gmail Mobile

appleguru commented 5 years ago

@bphinz I don't think GitHub supports email attachments. Can you try to add it directly to the issue here? https://github.com/TigerVNC/tigervnc/issues/877

bphinz commented 5 years ago

Makefile.txt

appleguru commented 5 years ago

Ok, I was able to finally get everything building from source on OS X Catalina (10.15) using a modified version of your makefile @bphinz.

I had to update gnutls to the latest, 3.6.10 and use the --with-included-unistring option to build. I had to add -framework Security to the TigerVNC Build to allow gnutls to link properly. I got rid of the --build tags as "x86_64-apple-darwin10.7.0" in there was pretty meaningless (we're up to Darwin 19.0.0 last I checked...). I also reconfigured the script to pull TigerVNC from git instead of from a source tarball.

First, some pre-requisites... Use homebrew to install libtool, cmake, and libjpeg-turbo: brew install libtool libjpeg-turbo cmake

Make a folder called build and put the attached makefile in it (rename it to makefile or makefile.sh). Inside this folder make a folder called SOURCES

cd to your build folder and run: 1) make sources (this downloads the source code for the pre-requisites we'll be building from source) 2) make prereqs (this builds pkgconfig, gettext, gnutls, and fltk from the source you just downloaded and installs them to /opt/tigervnc 3) make dmg (This actually builds TigerVNC and creates the disk image)

I've added this makefile to my fork for now: https://github.com/appleguru/tigervnc/blob/master/build/makefile.sh

makefile.sh.txt

appleguru commented 5 years ago

@CendioOssman Can you re-open this issue? Despite my efforts so far we still have unresolved issues with building on the latest OS X/SDK.

bphinz commented 5 years ago

On Tue, Oct 15, 2019 at 2:56 AM appleguru notifications@github.com wrote:

I had to add -framework Security to the TigerVNC Build to allow gnutls to link properly.

Ah, thank you. I was trying to get GnuTLS 3.6.10 into the build over the weekend and hadn't figured that part out yet.

Also, code signing the dmg isn't shown in the Makefile because that happens in the CI tool as part of an automated build process.

CendioOssman commented 5 years ago

I think it would be best to open a new one. The initial description for this issue contains an entirely different problem and will cause confusion about what this issue discusses.

Try to be specific in the new issue what goes wrong rather than these kinds of general descriptions.

appleguru commented 5 years ago

Actually, seems to be building fine with the latest 10.15 SDK now too. I used: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -mmacosx-version-min=10.14

stasumansky commented 2 years ago
  1. make sources I'm having the following error.. any idea?

make prereqs rm -rf zlib- && \ tar xzf /Users/stasumansky/bin/tigervnc/build/SOURCES/zlib-1.2.11.tar.gz && \ cd zlib- && \ CC=/usr/bin/llvm-gcc CXX=/usr/bin/llvm-g++ CFLAGS="-I/opt/tigervnc/include -O2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=10.14 -m64" CXXFLAGS="-I/opt/tigervnc/include -O2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=10.14 -m64" LDFLAGS="-L/opt/tigervnc/lib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=10.14 -m64" ./configure --static --prefix=/opt/tigervnc && \ make && \ sudo make install Building static library libz.a version 1.2.11 with /usr/bin/llvm-gcc. Checking for size_t... No. Checking for long long... Yes. Failed to find a pointer-size integer type. ** ./configure aborting. make: *** [zlib] Error 1

bphinz commented 2 years ago

Is this on Apple silicon?

On Tue, Feb 22, 2022 at 8:02 AM Stas Umansky @.***> wrote:

  1. make sources I'm having the following error.. any idea?

make prereqs rm -rf zlib- && tar xzf /Users/stasumansky/bin/tigervnc/build/SOURCES/zlib-1.2.11.tar.gz && cd zlib- && CC=/usr/bin/llvm-gcc CXX=/usr/bin/llvm-g++ CFLAGS="-I/opt/tigervnc/include -O2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=10.14 -m64" CXXFLAGS="-I/opt/tigervnc/include -O2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=10.14 -m64" LDFLAGS="-L/opt/tigervnc/lib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=10.14 -m64" ./configure --static --prefix=/opt/tigervnc && make && sudo make install Building static library libz.a version 1.2.11 with /usr/bin/llvm-gcc. Checking for size_t... No. Checking for long long... Yes. Failed to find a pointer-size integer type. ** ./configure aborting. make: *** [zlib] Error 1

— Reply to this email directly, view it on GitHub https://github.com/TigerVNC/tigervnc/issues/877#issuecomment-1047774284, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB45M3M7OIZAOPPMZ3SGF6LU4OCOVANCNFSM4I62AFGA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

-- Sent from Gmail Mobile

stasumansky commented 2 years ago

Is this on Apple silicon? On Tue, Feb 22, 2022 at 8:02 AM Stas Umansky @.> wrote: 1. make sources I'm having the following error.. any idea? make prereqs rm -rf zlib- && tar xzf /Users/stasumansky/bin/tigervnc/build/SOURCES/zlib-1.2.11.tar.gz && cd zlib-* && CC=/usr/bin/llvm-gcc CXX=/usr/bin/llvm-g++ CFLAGS="-I/opt/tigervnc/include -O2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=10.14 -m64" CXXFLAGS="-I/opt/tigervnc/include -O2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=10.14 -m64" LDFLAGS="-L/opt/tigervnc/lib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=10.14 -m64" ./configure --static --prefix=/opt/tigervnc && make && sudo make install Building static library libz.a version 1.2.11 with /usr/bin/llvm-gcc. Checking for size_t... No. Checking for long long... Yes. Failed to find a pointer-size integer type. * ./configure aborting. make: [zlib] Error 1 — Reply to this email directly, view it on GitHub <#877 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB45M3M7OIZAOPPMZ3SGF6LU4OCOVANCNFSM4I62AFGA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you were mentioned.Message ID: @.***> -- Sent from Gmail Mobile

No, this is on 2.3 GHz Quad-Core Intel Core i7

bphinz commented 2 years ago

It could be that you're targeting 10.14 as the min SDK (the nightly & release binaries target 10.9), but it also looks like you are missing some flags. I'll post the latest makefile when I get home tonight.

On Tue, Feb 22, 2022 at 8:34 AM Stas Umansky @.***> wrote:

Is this on Apple silicon? On Tue, Feb 22, 2022 at 8:02 AM Stas Umansky @.> wrote: 1. make sources I'm having the following error.. any idea? make prereqs rm -rf zlib- && tar xzf /Users/stasumansky/bin/tigervnc/build/SOURCES/zlib-1.2.11.tar.gz && cd zlib- && CC=/usr/bin/llvm-gcc CXX=/usr/bin/llvm-g++ CFLAGS="-I/opt/tigervnc/include -O2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=10.14 -m64" CXXFLAGS="-I/opt/tigervnc/include -O2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=10.14 -m64" LDFLAGS="-L/opt/tigervnc/lib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=10.14 -m64" ./configure --static --prefix=/opt/tigervnc && make && sudo make install Building static library libz.a version 1.2.11 with /usr/bin/llvm-gcc. Checking for size_t... No. Checking for long long... Yes. Failed to find a pointer-size integer type. ./configure aborting. make: [zlib] Error 1 — Reply to this email directly, view it on GitHub <#877 (comment) https://github.com/TigerVNC/tigervnc/issues/877#issuecomment-1047774284>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB45M3M7OIZAOPPMZ3SGF6LU4OCOVANCNFSM4I62AFGA https://github.com/notifications/unsubscribe-auth/AB45M3M7OIZAOPPMZ3SGF6LU4OCOVANCNFSM4I62AFGA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you were mentioned.Message ID: @.***> -- Sent from Gmail Mobile

No, this is on 2.3 GHz Quad-Core Intel Core i7

— Reply to this email directly, view it on GitHub https://github.com/TigerVNC/tigervnc/issues/877#issuecomment-1047802348, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB45M3KPXNIFPDHOKIBOHKDU4OGFDANCNFSM4I62AFGA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

stasumansky commented 2 years ago

Seems like now I have a different error (reinstalled xcode):

... /tigervnc/build/tigervnc/common/rdr/Exception.cxx:39:10: fatal error: 'gnutls/gnutls.h' file not found

include <gnutls/gnutls.h>

     ^~~~~~~~~~~~~~~~~

1 error generated. make[3]: [common/rdr/CMakeFiles/rdr.dir/Exception.cxx.o] Error 1 make[2]: [common/rdr/CMakeFiles/rdr.dir/all] Error 2 make[1]: [all] Error 2 make: [dmg] Error 2

phedoreanu commented 2 years ago

Try brew install gnutls? 😅