navit icon indicating copy to clipboard operation
navit copied to clipboard

Macos build issues

Open triantos opened this issue 4 years ago • 6 comments

Version: not sure, can't buildCode: I'm on git master as of 37f22dbec from https://github.com/navit-gps/navit.git OS: Big Sur 11.2.1 Xcode version: 12.4, needed for Macports

Problem: It looks like the Mac build isn't updated for the current MacOS + Xcode.

Details:

  1. I think the build docs at readthedocs are outdated (for example the git clone cmd doesn't work as written, it needs to drop the '[email protected]:' from the clone cmd)
  2. The build instructions still suggest using ./autogen.sh though the build apparently now uses cmake
  3. cmake can't find the system includes. It needs to look in /Library/Developer/CommandLineTools/SDKs/*/usr/include

I'm not sure what else might be wrong, because I can't get beyond these issues. I don't know the build setup, etc. to really troubleshoot this too much.

triantos avatar Feb 12 '21 03:02 triantos

Hi triantos, to my knowledge you are right. The MacOS port is not up to date. Reason for that most if not all developers are not using Mac computers. However, with your help maybe one could again make it running with MacOS. Right now at least we are not testing our commits against MacOS. I will see if I manage in some other way to replicate your issue in the coming days.

hoehnp avatar Feb 12 '21 09:02 hoehnp

I know very little about build infrastructure.. I was trying to just test on my Mac before setting up for actual use on a Raspberry Pi in a car. So for now, at least, I won't be the best guy to help with this. I would suggest, perhaps, that someone just update the web site to say you're looking for a maintainer for Mac or something similar. Thank you for the quick response btw!

triantos avatar Feb 12 '21 17:02 triantos

For a working build see my fork. CI passes for all OS builds. There are still some issues with the graphics. I have used gtk_drawing_area with the internal GUI. The refresh of the screen is not working correctly. Next point is the app bundle. It was missing all the libraries, but I was not able to get them inside via the cmake bundle commands, so I did a copy of the /usr/local/lib/navit folder and icons, textures etc. That is only working after a make install has already been done before. Maybe somebody with more knowledge on cmake can adapt it.

OLFDB avatar Feb 25 '21 13:02 OLFDB

Hi @OLFDB,

thanks for making this work. Are you running on Apple Hardware? When you find time, could you please update macos_development.rst again with your findings.

hoehnp avatar Feb 26 '21 13:02 hoehnp

Hello @triantos, did you try compilation for iOS platforms by any chance?

lains avatar Mar 03 '21 10:03 lains

I was trying to run it natively on my Mac, so I hadn't tried an iOS build. I'll re-try with this new fork soon. My real goal is to see if I can re-skin the whole nav to look like an old black&white screen like James Bond had in his car in Dr. No., so running on iOS wasn't as important to me. I'd likely run it on an Android tablet since I need it to fit in a particular form factor in my car dashboard.

triantos avatar Mar 03 '21 16:03 triantos