Git Product home page Git Product logo

Comments (17)

MetalKnight avatar MetalKnight commented on August 18, 2024

@lizhuoran1019 thanks, issue confirmed.
CreateCoordZFromVector has been recently updated to WGS model while getCartX() etc... are still using spherical coordinates.
I will try to release a patch for you to test probably by the end of this week.

Side effect of #7

from woss.

lizhuoran1019 avatar lizhuoran1019 commented on August 18, 2024

Thank you for your reply.
I'm looking forward to using the updated woss library.

from woss.

MetalKnight avatar MetalKnight commented on August 18, 2024

@lizhuoran1019 patch will have some delay since I'm re-working the coord-to-cart conversion and back.
In the meanwhile, taking the definition of CoordZ::getCoordZFromCartesianCoords from previous WOSS release / git commit, should temporarily solve the issue.
Let me know if this worked for you.

from woss.

MetalKnight avatar MetalKnight commented on August 18, 2024

@lizhuoran1019 I will post the final patch for you to test next week.
Cheers

from woss.

MetalKnight avatar MetalKnight commented on August 18, 2024

@lizhuoran1019 please test the attached .diff file and confirm that the issue is solved also at your side.
After confirmation I will proceed with a new WOSS release.
thanks again
coords_final.zip

from woss.

lizhuoran1019 avatar lizhuoran1019 commented on August 18, 2024

Sorry, I'm not very good at git. When I apply the diff file using the command below, it shows some conflicts. Is there any git command to resolve these conflicts? Or can I just modify these conflicts manually?
image
image
image

from woss.

MetalKnight avatar MetalKnight commented on August 18, 2024

@lizhuoran1019 are you applying the diff to the latest version of woss?

from woss.

MetalKnight avatar MetalKnight commented on August 18, 2024

@lizhuoran1019 please update woss to latest release and copy paste the attached files
woss_patched_files.zip

from woss.

lizhuoran1019 avatar lizhuoran1019 commented on August 18, 2024

Thanks a lot, I installed it successfully.
But when I use the same test code as before in ns3, it shows the following error:

C:\WINDOWS\system32\wsl.exe --distribution ubuntu-20.04-lts --exec /bin/bash -c "cd /home/lzr/ns-3-allinone/ns-3-dev/build/scratch && /home/lzr/ns-3-allinone/ns-3-dev/build/scratch/ns3-dev-woss-coordz-test-debug"
/home/lzr/ns-3-allinone/ns-3-dev/build/scratch/ns3-dev-woss-coordz-test-debug: symbol lookup error: /home/lzr/ns-3-allinone/ns-3-dev/build/lib/libns3-dev-woss-ns3-debug.so: undefined symbol: _ZNK4woss6CoordZ8getCartZEv

进程已结束,退出代码127

from woss.

MetalKnight avatar MetalKnight commented on August 18, 2024

@lizhuoran1019 re-compile re-link and re-install woss-ns3 as well first, then retry again.

from woss.

lizhuoran1019 avatar lizhuoran1019 commented on August 18, 2024

I tried a few times, but it always shows an error like this:
image

from woss.

MetalKnight avatar MetalKnight commented on August 18, 2024

@lizhuoran1019 did you re-compile, re-installed WOSS first, and then woss-ns3 on top of the patched WOSS?
woss-ns3 needs to link against the newly patched WOSS libraries

from woss.

lizhuoran1019 avatar lizhuoran1019 commented on August 18, 2024

Yes, I have recompiled and installed woss according to the instructions in the WOSS/INSTALL file.
Maybe there is some problem with my operation, I will try again.

from woss.

MetalKnight avatar MetalKnight commented on August 18, 2024

I will re-check on my side later during the day.

from woss.

MetalKnight avatar MetalKnight commented on August 18, 2024

@lizhuoran1019 I'm sorry but there is something wrong on your side.

this is what I did on my side, I've:

  • installed WOSS prerequisites as per WOSS instructions (bellhop, NetCDF4 etc...)
  • cloned this very public WOSS repository
  • overwritten the THREE files that I gave you:
    -- woss/woss_def/coordinates-definitions.h
    -- woss/woss_def/coordinates-definitions.cpp
    -- tests/woss-coord-definitions-test.cpp
  • configured it with ./configure --with-pthread --with-ns-allinone=<path> --with-nsmiracle=/<path> --with-netcdf4=<path> --prefix=<path> as written in WOSS doxygen docs
  • performed make then make check then make install

then I've:

  • cloned ns-3-dev repository
  • aligned the repo to release 3.35 with git checkout ns-3.35, which is the last release with waf support. (woss-ns3 will soon have cmake support)
  • cloned woss-ns3 repository into /src and configured it with the correct path, pointing them out to NetCDF4 and WOSS repo previously downloaded
    ./waf configure -d debug --enable-examples --enable-tests --with-woss-source=<path> --with-woss-library=<path> --with-netcdf4-install=<path> CXXFLAGS="-Wall -Werror -Wno-unused-variable"
  • then ran ./waf --run=woss-aloha-example
    -- which gave me the correct output
WossManagerResDbMT::checkConcurrentThreads() 3
WossManagerResDbMT::checkConcurrentThreads() 3
Received a packet of size 1000 bytes
Received a total of 1000 bytes at sink

So please perform these steps first and then continue with your custom scratch test.

from woss.

lizhuoran1019 avatar lizhuoran1019 commented on August 18, 2024

It worked!!!
My problem may be caused by not using --with-ns-allinone=.
Thank you very much for your reply and help.

from woss.

MetalKnight avatar MetalKnight commented on August 18, 2024

@lizhuoran1019 WOSS 1.12.3 has been released with the final fix.
I'm closing this issue

from woss.

Related Issues (12)

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.