US3 SOMO notes

  • checkout: svn co svn+ssh:// us3_somo
  • latest revision svn:2679
  • in us3_somo/develop
    • copy local.pri.template to local.pri and edit the top settings
    • example templates are available: local.pri.template.linux .win32mingw & .osx which could be copied over instead
    • edit us3_somo/develop/local.pri
      • in particular: only this section
        # ---- user configuration area ----
        # **** make sure the following variables are set for your system ***
        # uncomment exactly one of these:
        # DEBUGORRELEASE = debug
        DEBUGORRELEASE = release
        # path of US3 source base
        US3PATH       =
        # path of US3_SOMO source base
        US3SOMOPATH   =
        # path of the QT
        QTPATH        =
        QWTPATH       =
        # for windows also define the MINGWPATH
        MINGWPATH     =
    • notes:
      • some fields can be left empty
        • e.g. MINGWPATH for non win32/mingw
        • e.g. QTPATH for OSX
      • other system libraries like X11 libs *should* be in the qt/mkspecs/*system*/qmake.conf or it's dependencies, not in the .pro file as these are global qt bits
        • if you insist, flags like QMAKE_CFLAGS += -march=native could go here
      • more cleanup of the pro/pri's is likely possible
  • to compile
    $ cd us3_somo/develop
    $ qmake
    $ make
    $ qmake
    $ make
  • REVISION is in us3_somo/develop/include/us_revision.h and is NOT the same as the subversion reported revision
  • on windows
    • assuming installed in /cygdrive/c/Users/Admin/Documents/us3_somo/
      • extra/windev/ contains the appropriate install bits after compiling
  • on OSX
    • needs us3_somo app link to desktop (?) or app bar (?)
    • icons are in etc/us3_somo.icns
  • this is "alpha" until all testers approve
  • compiler warnings
    • you may get some
    • expect these:
      src/us_pm_objects.cpp:903:11: warning: variable 'theta' set but not used [-Wunused-but-set-variable]
          double theta;
      ^^^ this is a work in progress and it will stay until I finish the code ^^^
      maybe a bunch like this...
      src/us_hydrodyn_other.cpp:6267: warning: format not a string literal and no format arguments
      a lot of these are format strings that are strings (i.e. can change based upon settings) not prespecified const "%.4f" strings etc.
      would have to be rewritten
Last modified 6 years ago Last modified on Mar 4, 2014 6:45:32 PM