i-conic-vision-ab / wxwebmap Goto Github PK
View Code? Open in Web Editor NEWA C++ library enabling web maps in desktop applications (Windows, Linux, MacOS).
License: Other
A C++ library enabling web maps in desktop applications (Windows, Linux, MacOS).
License: Other
In CMakeLists.txt
I added the -fpemissive
flag:
set(GCC_WARNING_OPTIONS_FLAGS "-fpermissive")
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GCC_WARNING_OPTIONS_FLAGS}")
and then compiled and built:
raphy@raohy:~/wxWidgets/wxWebMap$ cmake --build builddir/
[ 7%] Building CXX object src/CMakeFiles/IconicWebMap.dir/wxMapHtml.cpp.o
[ 15%] Building CXX object src/CMakeFiles/IconicWebMap.dir/wxMapImage.cpp.o
[ 23%] Building CXX object src/CMakeFiles/IconicWebMap.dir/wxMapMarker.cpp.o
/home/raphy/wxWidgets/wxWebMap/src/wxMapMarker.cpp: In constructor ‘wxMapMarker::wxMapMarker(double, double, bool)’:
/home/raphy/wxWidgets/wxWebMap/src/wxMapMarker.cpp:13:18: warning: cast from ‘wxMapMarker*’ to ‘int’ loses precision [-fpermissive]
13 | cLeafletId = (int)this;
| ^~~~~~~~~
[ 30%] Building CXX object src/CMakeFiles/IconicWebMap.dir/wxMapObject.cpp.o
[ 38%] Building CXX object src/CMakeFiles/IconicWebMap.dir/wxMapPolygon.cpp.o
[ 46%] Building CXX object src/CMakeFiles/IconicWebMap.dir/wxWebMap.cpp.o
[ 53%] Linking CXX shared library ../lib/libIconicWebMap.so
[ 53%] Built target IconicWebMap
[ 61%] Building CXX object examples/wxWebMapApp/CMakeFiles/wxWebMapApp.dir/wxWebMapApp.cpp.o
[ 69%] Building CXX object examples/wxWebMapApp/CMakeFiles/wxWebMapApp.dir/wxWebMapFrame.cpp.o
[ 76%] Building CXX object examples/wxWebMapApp/CMakeFiles/wxWebMapApp.dir/SourceViewDialog.cpp.o
[ 84%] Building CXX object examples/wxWebMapApp/CMakeFiles/wxWebMapApp.dir/PolygonReader.cpp.o
[ 92%] Building CXX object examples/wxWebMapApp/CMakeFiles/wxWebMapApp.dir/ImageReader.cpp.o
[100%] Linking CXX executable ../../bin/wxWebMapApp
[100%] Built target wxWebMapApp
But I get : The URL can't be shown
OS: Ubuntu 23.10
Hi, this is a great project.
For me, I'm using the msys2/mingw64 gcc under Windows, so is it possible to build this project under GCC? the wx library can be install by the pacman
command.
Another issue is I see there is a git log message said: remove the boost dependency, but I see in the github homepage, it is still mention the boost library.
raphy@raohy:~/wxWidgets/wxWebMap$ cmake --build builddir
-- Configuring done (0.1s)
-- Generating done (0.0s)
-- Build files have been written to: /home/raphy/wxWidgets/wxWebMap/builddir
[ 7%] Building CXX object src/CMakeFiles/IconicWebMap.dir/wxMapMarker.cpp.o
/home/raphy/wxWidgets/wxWebMap/src/wxMapMarker.cpp: In constructor ‘wxMapMarker::wxMapMarker(double, double, bool)’:
/home/raphy/wxWidgets/wxWebMap/src/wxMapMarker.cpp:13:18: error: cast from ‘wxMapMarker*’ to ‘int’ loses precision [-fpermissive]
13 | cLeafletId = (int)this;
| ^~~~~~~~~
gmake[2]: *** [src/CMakeFiles/IconicWebMap.dir/build.make:104: src/CMakeFiles/IconicWebMap.dir/wxMapMarker.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:131: src/CMakeFiles/IconicWebMap.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2
OS: Ubuntu 23.10
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.