Code Monkey home page Code Monkey logo

wxwebmap's Issues

The URL can't be shown

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

image

OS: Ubuntu 23.10

Is it possible to build this project under mingw(msys2)

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.

error: cast from ‘wxMapMarker*’ to ‘int’ loses precision

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.