GithubHelp home page GithubHelp logo

markmal / freeship-plus-in-lazarus Goto Github PK

View Code? Open in Web Editor NEW
178.0 178.0 35.0 148.11 MB

FreeShip Plus in Lazarus

License: GNU General Public License v3.0

Pascal 81.28% Shell 0.87% C++ 5.10% GLSL 2.17% Batchfile 0.24% Awk 0.02% Makefile 0.02% HTML 7.78% Rich Text Format 0.74% Python 0.03% PHP 1.76%

freeship-plus-in-lazarus's People

Contributors

markmal avatar speters avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

freeship-plus-in-lazarus's Issues

Release packages depend on libQtPas4, which is not readily accessible.

I'm running into this problem on Ubuntu 18.04 (the current LTS release), so it's not exactly bleeding edge. I can't find any Lazarus/lcl packages that would supply the Qt4 libraries - there are packages for Lazarus 1.8 and 2.0, but they're all built against Qt5.

Would it be possible to build your releases against Qt5 instead?

shade-like transparent splash window.

when start program happens shade-like transparent splash window.
Linux Mint 17.2 Mate edition, 64 bit, Notebook HP Pavilion dv6, screen resolution 1366x768.

problem with layers name

I'm load file after editing it Windows version. If layers name in that file contains not-english characters - they displayed as "???????". I can rename layer use russian characters, save and load file - all ok, displayed like I typed (mix english and russian characters). tomorrow I check this file at my office computer (Win XP), and say what happened with layers names.

p.s. I try add project file, but can't. so I rename -001.fbm to -001.fbm.png - so You can see: first and second layers named in mix-language characters:
"first-первый" and "second-второй"
-001 fbm

Serious memory leak

Just rotating a shaded model screams up the memory usage. Wireframe is ok Each small rotate step takes more 100MB that is never freed. After 10 minutes we are on 10GB. ( Ubuntu 14.04, 16GB, i74770K ). Unusable. Also slow by the way..

m20

Creating a layer in empty project

when I start FreeShip with empty MDI window (without load last project - see issue #10) I see name of first layer - and this is ok, but I can add some next layer (without create new project even)... ok - it funny, but lets see next algorithm:
a) add one or some layer
b) click "new", say "Yes, I want save project first"
c) have crashed application - and this is not funny.

please disable "add layer" button (may be all button on toolbar, exept "new", "open", "exit" and so on [like "help", "about"] - that not affected on existing project) until user load project or create new.

Encoding or interface problems

Forced again to raise the topic, since on Windows 10 x64 the same problem. version 4.1.1.159.

On Windows 7, I did not notice such a problem, so we can conclude that it was solved on this version of the OS.
Снимок
Снимок2

No icons at windows 7

I run FreeShip (FreeShip-exe.zip) on windows 7 and have no icons on toolbox panel of freeship.

I create folder for russian.ini file too. May be create simple install package for windows?
I use mac os and run Freeship at Parallels virtual mashine. So may be someone build FreeShip for native run at mac os ?

Снимок экрана 2019-11-18 в 12 15 14

100% CPU

I deleted all FreeShip ini/config files from old version (not required though - I just simulated a fresh install).
I installed https://github.com/markmal/freeship-plus-in-lazarus/releases/download/3.5.3.21/FreeShip-3.5.3.21_x86-64_linux_qt.zip system wide on ubuntu 14.04 /64.
As long as there's no file opened (even new) FreeShip seems to work fine. If you open a file (or use a new one with defaults), FreeShip v3.5.3.21 uses 100% CPU.

How to reproduce:

  • start FreeShip (from terminal or Unity etc - doesn't matter)
  • if there was no file previously saved (or no ini file) the FreeShip screen will be blank (no viewports) - all is good till now, FreeShip doesn't use CPU on idle (check with System Monitor or alike)
  • File > New > Ok (make a new file/project and accept the defaults)
  • FreeShip uses 100% CPU - thats's not good.

The output when starting FreeShip from terminal (with my comments preceded by ***):

*** Program start
Compiled at 2015/09/21 23:05:42
Compiler version: 2.6.4
Target CPU: x86_64
Target OS: Linux
FreeShip Product version: 3.5.0.0
FreeShip Program version: 3.5.3.21
Last SVN Change Revision: 31
*** All OK till here
*** File > New > OK
*** This comes on terminal:
SaveBinary
Stations:0 pos:0
Buttocks:0 pos:0
Waterlines:0 pos:0
Diagonals:0 pos:0
Markers:0 pos:0
ResistanceDelftData: pos:0
ResistanceKaperData: pos:0
backgroundImages:0 pos:0
Flowlines:0 pos:0
TFreeViewport.Create: done
TFreeViewport.Create: done
TFreeViewport.Create: done
TFreeViewport.Create: done
*** Now FreeShip uses 100% CPU

If there was a previously saved file, FreeShip starts with that file and uses 100% CPU from the start.

Installation Errors

Tried to install in Ubuntu 14.04. But this output:
./install-user.sh
Installation FreeShip into user home
Install executables
cp: cannot stat ‘Manuals’: No such file or directory
cp: cannot stat ‘Ships’: No such file or directory
Install configuration
Install Menu
xdg-icon-resource: file 'freeship-16.png' does not exist
xdg-icon-resource: file 'freeship-24.png' does not exist
xdg-icon-resource: file 'freeship-32.png' does not exist
xdg-icon-resource: file 'freeship-48.png' does not exist
Install MIME
xdg-icon-resource: file 'freeship-16.png' does not exist
xdg-icon-resource: file 'freeship-16.png' does not exist
xdg-icon-resource: file 'freeship-24.png' does not exist
xdg-icon-resource: file 'freeship-24.png' does not exist
xdg-icon-resource: file 'freeship-32.png' does not exist
xdg-icon-resource: file 'freeship-32.png' does not exist
xdg-icon-resource: file 'freeship-48.png' does not exist
xdg-icon-resource: file 'freeship-48.png' does not exist
Update Desktop database
Update MIME database
Done
FreeShip is installed into /home/tom/FreeShip
to uninstall enter into /home/tom/FreeShip and execute uninstall-user.sh

not work Develop Plates

Hi! FreeShip-plus-in-lazarus - it's a very good app!!!
Thank You VERY MUCH - finally I (and more much people) can use this program on home PC with linux-OS.

But I have say few words:

first: if user use linux such as Linux Mint - explain to them, what they need install some package (qt4-dev-tools libqt4-dev libqt4-core libqt4-gui). For example Linux Mint have not QT-based desktop environment, and many people who need this program for calculation / drawing and construction of its DIY ship does not so much understand the configuration of the computer (and Linux in particular), to understand why they can not launch the program.

and second: I only try program, but already find bug - do not working "Develop Plates". I try this function on default ship (File-New) in FreeShip Plus in windows - working, in FreeShip-plus-in-lazarus - crush with "Range check error" message. After then I try this function on other free hulls from HydroShip site, and some user-made project from some internet board... and have "Range check error" message again.

p.s. Thank You very much again - porting this app to linux - very-very cool!!!

Program version 3.5.2.56
SVN Revision 31
Build date 2015/04/26 09:22:58
Compiler version 2.6.4
Target CPU x86_64
Target OS Linux

Installation Manual

This summer I worked a bit on the icons and now, with Christmas holiday, thought to pick up FreeShip again.... but, somehow I cant get it installed in Ubuntu ... Could you point me to the installation guide? Somehow I cant find it in README.md
Maybe installation fails as I try to install in the hidden folder ~/.FreeShip as I dont like to pollute my home folder with executables. Maybe Freeship.desktop hardcoded bug ?

Build Freeship for Mac OS

Поехали!
I will try build FreeShip for Mac OS
I instal pascal, lazarus and..
Me got linking error:

ld: library not found for -lmagic
An error occurred while linking
FreeShip.dpr(311,0) Error: Error while linking`

I have no MAC OS development experience.
Need help!
How setup in Lazarus IDE environment variable for LD_LIBRARY_PATH?
Libmagic was installed over brew before and located at /usr/local/lib as symlink on real library.

Open file

On Windows machines (7&10), can not open a file in 4+ branch of FreShip Lazarus. Open window appears, I can choose a file, even see a preview, but nothing appears in view windows.

Latest install for Linux?

What would the best way to install latest Linux / Ubuntu version? The .deb is no longer here?

( Visiting back after a long time.. Nice to see you still use the icons I once contributed. They seem a bit out-of-date now, don't they? )

Install Windows

Hello, sorry to ask this here, but how do I install Freeship-Plus-in-Lazaro on windows 10.

Access violation trying to use Lackenby transformation

How to reproduce:

  • start FreeShip

  • menu > FIle > New [accept defaults] > Ok (or keep previous project)
    When started from terminal, this is the output after the above commands:

    Compiled at 2015/09/22 22:51:19
    Compiler version: 2.6.4
    Target CPU: x86_64
    Target OS: Linux
    FreeShip Product version: 3.5.0.0
    FreeShip Program version: 3.5.3.24
    Last SVN Change Revision: 31
    LoadBinary
    Stations:20 pos:557
    Buttocks:6 pos:1716
    Waterlines:10 pos:2314
    Diagonals:0 pos:3122
    Markers:0 pos:3123
    FResistanceDelftData: pos:3123
    FResistanceKaperData: pos:3142
    BackgroundImages:0 pos:3153
    Flowlines:0 pos:3154
    TFreeViewport.Create: done
    TFreeViewport.Create: done
    TFreeViewport.Create: done
    TFreeViewport.Create: done

  • menu > Transform > Lackenby
    => a window pops up saying
    <<< Access violation.
    Press OK to ignore and risk data corruption.
    Press Cancel to kill the program. >>>
    Terminal output:

    TFreeViewport.Create: done
    TFreeViewport.Create: done
    SaveBinary
    Stations:20 pos:0
    Buttocks:6 pos:0
    Waterlines:10 pos:0
    Diagonals:0 pos:0
    Markers:0 pos:0
    ResistanceDelftData: pos:0
    ResistanceKaperData: pos:0
    backgroundImages:0 pos:0
    Flowlines:0 pos:0
    TFreeSubdivisionControlFace.Destroy. $33263384
    TFreeSubdivisionControlFace.Destroy. $33264376
    TFreeSubdivisionControlFace.Destroy. $33265112
    TFreeSubdivisionControlFace.Destroy. $33265848
    TFreeSubdivisionControlFace.Destroy. $33266584
    TFreeSubdivisionControlFace.Destroy. $33267352
    TFreeSubdivisionControlFace.Destroy. $33268088
    TFreeSubdivisionControlFace.Destroy. $33268696
    TFreeSubdivisionControlFace.Destroy. $33269304
    TFreeSubdivisionControlFace.Destroy. $33267128
    TFreeSubdivisionControlFace.Destroy. $33270552
    TFreeSubdivisionControlFace.Destroy. $33271288
    TFreeSubdivisionControlFace.Destroy. $33271896
    TFreeSubdivisionControlFace.Destroy. $33272760
    TFreeSubdivisionControlFace.Destroy. $33273368
    TFreeSubdivisionControlFace.Destroy. $33273976
    TFreeSubdivisionControlFace.Destroy. $33274712
    TFreeSubdivisionControlFace.Destroy. $33275320
    TFreeSubdivisionControlFace.Destroy. $33275928
    TFreeSubdivisionControlFace.Destroy. $33276536
    TApplication.HandleException Access violation
    Stack trace:
    $0000000001FA1358
    $000000000085C0E2 line 82 of include/buttonglyph.inc
    $0000000000434BA7 line 278 of ../inc/objpas.inc
    $00000000004D217B line 153 of ../objpas/sysutils/sysutils.inc
    $000000000085D172 line 68 of include/speedbutton.inc
    $000000000066B75E line 512 of ../objpas/classes/compon.inc
    $000000000066B695 line 490 of ../objpas/classes/compon.inc
    $000000000082036F line 131 of lclclasses.pp
    $0000000000487EC9 line 4848 of include/control.inc
    $000000000046B0C6 line 6511 of include/wincontrol.inc
    $000000000048B6CD line 54 of include/customcontrol.inc
    $00000000004997CD line 315 of include/scrollingwincontrol.inc
    $000000000049B0AD line 207 of include/customform.inc
    $000000000066B75E line 512 of ../objpas/classes/compon.inc
    $000000000066B695 line 490 of ../objpas/classes/compon.inc
    $0000000000A45E50 line 16168 of Units/FreeShipUnit.pas
    $000000000066B75E line 512 of ../objpas/classes/compon.inc

qt4 libs are deprecated

any way to get this too install on a new distro?

sudo dpkg -i freeship_3.6.0.16-all_amd64.deb
[sudo] password for nadim:
Selecting previously unselected package freeship.
(Reading database ... 288628 files and directories currently installed.)
Preparing to unpack freeship_3.6.0.16-all_amd64.deb ...
Unpacking freeship (3.6.0.16) ...
dpkg: dependency problems prevent configuration of freeship:
freeship depends on libqt4pas | libqt4pas5 | libqt4pas-dev; however:
Package libqt4pas is not installed.
Package libqt4pas5 is not installed.
Package libqt4pas-dev is not installed.

dpkg: error processing package freeship (--install):
dependency problems - leaving unconfigured
Processing triggers for man-db (2.8.4-2) ...
Processing triggers for desktop-file-utils (0.23-3ubuntu3) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Errors were encountered while processing:
freeship
308 ~/1/downloads i libqt4pas libqt4pas5 libqt4pas-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libqt4pas is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libqt4pas5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libqt4pas-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libqt4pas' has no installation candidate
E: Package 'libqt4pas5' has no installation candidate
E: Package 'libqt4pas-dev' has no installation candidate

100% CPU in Linesplan window mode

How to reproduce:

  • open FreeShip > New (or keep/open an existing project)
  • menu > Project > Linesplan => the new linesplan window pops up => 100%CPU and you can see the cursor rapidly switching from cross to wait mode
    • close the linesplan window and all back to normal.

Encoding or interface problems

Hello, apparently this problem has already been raised in ticket 25 (link), but the person did not describe the problem to the end and did not begin to deal with the problem.

When running on Windows 10 x64 and Windows 7 x64, the text in the dialog boxes is incorrect, and the icons are incorrectly displayed.

The installation script ran. The program and the script run on behalf of the administrator.

Open last project on startup

when start FreeShip loaded (opens) last project. If I rename file of last project (when FreeShip closed, of course) and start app - nothing loaded, opened empty main window (without any project). it's not problem - vice versa - it usually fine option, but (I think) You should make checkbox "Load last project on startup" in option window... and then that not a problem, but fine stuff! ;-)

No desktop icon

Might be to due the slightly corrupted installation procedure, but the freeship.desktop does not show any launcher icon.
screenshot from 2015-05-30 18 25 36

can't run executable

Hello!
I try run FS on Linux Mint 18.1 "Serena" with Xfse 32-bit.
install in both mode (user and system).
but if I click item in menu - nothing happening, and if I run from terminal - error:
cannot execute binary file: Ошибка формата выполняемого файла
translate russian to english (word-word):
cannot execute binary file: error format executable file.
can You check this problem?
can_not_run_fs

Shading model too slow

Seems we are not using the correct hardware accelerated libraries? Shading and rotating a model on Intel i7 /16GB is too slow to use even.... ?

Freeze

Hi and thank you for the developing, I have a installed the latest build but when I execute, after splash screen and open dialog box It freeze with all OS, my system is an old Hp g4 250 with Intel Skylake and GMA 5500 my OS is an Xubuntu 18.04.2

dll error

After installation it appears the missing dll information "libstdc ++ = 6.dll" and libgcc_s_dw2-1.dll "

PROJECT SETTING FAILURE

Hi,
in PROJECT>Project settings>Mains dimensions when you split from Imperial to Meters thye model dimensions are not kept .Same problem when you rescale the hull, dimensions are not updated.
For example when you switch a 33.33ft hull (imperial) to meters ,the lenght became 33.33m instead of 10.1590m.
rgds

Строевая по шпангоутам

Марк привет!

Что-то не заходишь на форум FS-па. Я обновился до последней версии Debian 8.5. Не отрисовывается строевая по шпангоутам и не отображаются характерные точки - ЦВ, ЦТ и т.д.

С уважением,
Владимир.

Michlet file generator, Y1 wave value and Viscous form factor

Hi,

Many thanks for the work being put into this!

I have found an issue with the default values in the Wave tab in the Michlet file generator.

The Y1 Value must be greater than the Y0 value for Michlet to work.
N
ot being a programmer, I think this is what is done in the
FreeMichletOutputDlg.pas, and the first mention I find would be line 242

Also in the exported file, there is one entry missing, a number introduced in the later versions of Michlet. After the entry
"# Skin Friction Method (0=None, 1=ITTC1957, 2=Grigson)"
2

The entry:
"# Viscous Form Factor Method (0=None, 3=Dual)"
3
is needed in the output file.
Not being a programmer, I think this is what is done in the
FreeMichletOutputDlg.pas, and the entry would be around line 1042

MichletWaveDialogue

Sorry for the possibly a bit unstructured explanation.

Kind regards

QT5 build?

Ubuntu 17.10+ has QT5. Release deb package won't recognise the QT5 libs needed. Workaround by installing qt4 libs from 17.04. Can you build against QT5 for the next release?

wrml import file crashes

Hi i tried to import a file from vrml 1 but I had an instantly crashes here the terminal output.

FreeShip in Lazarus
Compiled at 2019/06/01 10:21:16
Compiler version: 3.0.4
Target CPU: x86_64
Target OS: Linux
FreeShip Product version: 4.2.2.0
FreeShip Program version: 4.2.2.175
Last Git Change Revision: 212

(FreeShip:11824): GLib-GIO-CRITICAL **: 09:57:27.176: g_dbus_proxy_new: assertion 'G_IS_DBUS_CONNECTION (connection)' failed
WARNING: TMenuItem.Destroy with LCLRefCount>0. Hint: Maybe the component is processing an event?
Runtime error 219 at $00000000004223D0
$00000000004223D0
$0000000000A0F07F
$00000000004D7479
$0000000000632FDC
$000000000069ED3D
$0000000000632CBF
$000000000069826A
$0000000000432C1F
$0000000000864175
$0000000000906F21

below the file:
Vaporetto_Venezia_01.wrl.zip

Can't save files

I installed https://github.com/markmal/freeship-plus-in-lazarus/releases/download/3.5.3.1/FreeShip-3.5.3.1_x86-64_linux_qt.zip on ubuntu 14.04/64bits (I tested the previous release as well - same thing). The program seems to work ok but I cant save anything.
When I try to save, a window pops up saying:
" Unable to create file "saved_screenshot.jpg".
Press OK to ignore and risk data corruption.
Press Cancel to kill the program."

To reproduce:

  • open Free!Ship Plus
  • new file
  • Save As ... (name, place etc ... click Save)
  • the window with the above mentioned contents pops up.

No file saved and the program seems to continue working fine.

No float value accepted

Hi first of thanks for your work, I discovered an other bug, in the editing panel when I set a value floating with paste or manual input in the length field, Freeship crash.

freeship_input

FreeShip %f
FreeShip in Lazarus
Compiled at 2019/07/01 18:13:08
Compiler version: 3.0.4
Target CPU: x86_64
Target OS: Linux
FreeShip Product version: 4.3.2.0
FreeShip Program version: 4.3.2.191
Last Git Change Revision: 230

(FreeShip:29486): GLib-GIO-CRITICAL **: 22:42:12.513: g_dbus_proxy_new: assertion 'G_IS_DBUS_CONNECTION (connection)' failed
Program exception!
Stacktrace:

Exception class: EConvertError
Message: "18,78" is an invalid float
$00000000004A47FA
$00000000004A47B7
$00000000004ECF6C
$00000000004635D6
$0000000000804730
$000000000045D23C
$0000000000803F11
$0000000000432D0F
$000000000045A18D
$0000000000803FBB
$000000000088F542
$0000000000864C65
$0000000000872169
$00000000007A7B79
$00007F1C7E79B38B
WARNING: TFloatSpinEdit.Destroy with LCLRefCount>0. Hint: Maybe the component is processing an event?
WARNING: TMenuItem.Destroy with LCLRefCount>0. Hint: Maybe the component is processing an event?
[TGtk2WidgetSet.Destroy] WARNING: There are 24 unreleased GDIObjects, a detailed dump follows:
[TGtk2WidgetSet.Destroy] GDIOs: 00007F1C6E45F5C0 00007F1C6E45F140 00007F1C6E45E240 00007F1C6E45D9C0 00007F1C6E45DA40 00007F1C6E45D7C0 00007F1C6E45F7C0
[TGtk2WidgetSet.Destroy] gdiBitmap: 24

Export to IGES missing a piece?

I am using the Export to IGES feature in the latest windows version. It seems to me that for any input, the output IGES always missing a piece. Maybe some 0, 1 index problem on windows?

Design Hydrostatics not working

How to reproduce:

  • start FreeShip
  • menu > File > New [accept defaults] > Ok (or keep existing project)
  • menu > Calculations> Design Hydrostatics
    A window pops up saying:
    <<<Unable to create file "FreeHydrostaticsMode.ShowData.Strings.txt".
    Press OK to ignore and risk data corruption.
    Press Cancel to kill the program.>>>

It woks fine if FreeShip is started from a terminal in a folder where the user has write permission, so I believe it's something like issue #6

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.