[3party] Optionally allow building with packaged protobuf #3822
No reviewers
Labels
No labels
Accessibility
Accessibility
Address
Address
Android
Android
Android Auto
Android Auto
Android Automotive (AAOS)
Android Automotive (AAOS)
API
API
AppGallery
AppGallery
AppStore
AppStore
Battery and Performance
Battery and Performance
Blocker
Blocker
Bookmarks and Tracks
Bookmarks and Tracks
Borders
Borders
Bug
Bug
Build
Build
CarPlay
CarPlay
Classificator
Classificator
Community
Community
Core
Core
CrashReports
CrashReports
Cycling
Cycling
Desktop
Desktop
DevEx
DevEx
DevOps
DevOps
dev_sandbox
dev_sandbox
Directions
Directions
Documentation
Documentation
Downloader
Downloader
Drape
Drape
Driving
Driving
Duplicate
Duplicate
Editor
Editor
Elevation
Elevation
Enhancement
Enhancement
Epic
Epic
External Map Datasets
External Map Datasets
F-Droid
F-Droid
Fonts
Fonts
Frequently User Reported
Frequently User Reported
Fund
Fund
Generator
Generator
Good first issue
Good first issue
Google Play
Google Play
GPS
GPS
GSoC
GSoC
iCloud
iCloud
Icons
Icons
iOS
iOS
Legal
Legal
Linux Desktop
Linux Desktop
Linux packaging
Linux packaging
Linux Phone
Linux Phone
Mac OS
Mac OS
Map Data
Map Data
Metro
Metro
Navigation
Navigation
Need Feedback
Need Feedback
Night Mode
Night Mode
NLnet 2024-06-281
NLnet 2024-06-281
No Feature Parity
No Feature Parity
Opening Hours
Opening Hours
Outdoors
Outdoors
POI Info
POI Info
Privacy
Privacy
Public Transport
Public Transport
Raw Idea
Raw Idea
Refactoring
Refactoring
Regional
Regional
Regression
Regression
Releases
Releases
RoboTest
RoboTest
Route Planning
Route Planning
Routing
Routing
Ruler
Ruler
Search
Search
Security
Security
Styles
Styles
Tests
Tests
Track Recording
Track Recording
Translations
Translations
TTS
TTS
UI
UI
UX
UX
Walk Navigation
Walk Navigation
Watches
Watches
Web
Web
Wikipedia
Wikipedia
Windows
Windows
Won't fix
Won't fix
World Map
World Map
No milestone
No project
No assignees
2 participants
Due date
No due date set.
Dependencies
No dependencies set.
Reference: organicmaps/organicmaps-tmp#3822
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "protobuf"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Signed-off-by: Ferenc Géczi ferenc.gm@gmail.com
Is protobuf updated to the latest version? Are there any issues with the latest version?
Now, that the macro has been dropped, the version has no impact on this PR, so those questions can be the topic of the separate update PR.
Now we can expect reports about "it doesn't build if I use system package".
@ -151,4 +151,2 @@
add_subdirectory(${OMIM_ROOT}/3party/protobuf ${CMAKE_CURRENT_BINARY_DIR}/protobuf)
target_link_libraries(${PROJECT_NAME}
Isn't the second param necessary?
We can set up a CI with a reference build setup with system packages, and just point towards it.
If a user can't replicate that for whatever reason, then it is not our problem anymore.
@ -151,4 +151,2 @@
add_subdirectory(${OMIM_ROOT}/3party/protobuf ${CMAKE_CURRENT_BINARY_DIR}/protobuf)
target_link_libraries(${PROJECT_NAME}
Necessary for what?
For the build to work? Apparently not.
For some so far (for me) unclear purpose, that you might know about?
Let me know and I put it back immediately.
@ -151,4 +151,2 @@
add_subdirectory(${OMIM_ROOT}/3party/protobuf ${CMAKE_CURRENT_BINARY_DIR}/protobuf)
target_link_libraries(${PROJECT_NAME}
Is it related to generated protoc binary that can be used to recompile changed map styles?
@ -151,4 +151,2 @@
add_subdirectory(${OMIM_ROOT}/3party/protobuf ${CMAKE_CURRENT_BINARY_DIR}/protobuf)
target_link_libraries(${PROJECT_NAME}
The
protoc
binary does not appear to be generated by the currentcmake
+ninja
build process, on themaster
branch:Have I missed something perhaps?
From the
STYLES.md
I don't see how and where that is needed, from that it appears that only the already generated python output is used. Once protobuf is istalled withpip install protobuf
.The one place where I have found usage of
protoc
is thegenerate_proto.sh
, but that just assumes, that theprotoc
is somewhere in thePATH
.@ -151,4 +151,2 @@
add_subdirectory(${OMIM_ROOT}/3party/protobuf ${CMAKE_CURRENT_BINARY_DIR}/protobuf)
target_link_libraries(${PROJECT_NAME}
As far as I remember, protoc shoud be the same version to generate styles properly. @vng @pastk do you install some custom protoc/protobuf version or the latest one works fine with styles generation?
@ -151,4 +151,2 @@
add_subdirectory(${OMIM_ROOT}/3party/protobuf ${CMAKE_CURRENT_BINARY_DIR}/protobuf)
target_link_libraries(${PROJECT_NAME}
I don't seem to have a
protoc
binary in my system even. For the styles compiler to work I just installed python protobuf as per the STYLES doc. ATM I'm using3.19.4
.@ -151,4 +151,2 @@
add_subdirectory(${OMIM_ROOT}/3party/protobuf ${CMAKE_CURRENT_BINARY_DIR}/protobuf)
target_link_libraries(${PROJECT_NAME}
How about you @vng ?
@ -151,4 +151,2 @@
add_subdirectory(${OMIM_ROOT}/3party/protobuf ${CMAKE_CURRENT_BINARY_DIR}/protobuf)
target_link_libraries(${PROJECT_NAME}
I work on MacOS. brew install protobuf is enough for me.
Please rebase and check if it works with the latest system protobuf library.