patchGNU Octave - Patches: patch #8051, mxe-octave: windows installer

 
 

patch #8051: mxe-octave: windows installer

Submitter:  John Donoghue <lostbard>
Submitted:  Sat 18 May 2013 10:23:57 PM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  lostbard Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Fri 31 May 2013 11:58:15 AM UTC, comment #12: 

I tried it again with a clean and fresh hg clone.
Same error.

If I run
"make nsis"
first and then:
"make octave" or "./mk-dist --installer"
it works. But since testing this always takes many hours I can't really quickly try this or that... Usually I try to double check.. Confirmation would be nice..

Furthermore the "makeinst-script.sh" failed for me with an error message. I found that my Ubuntu uses "dash" for sh. Replacing the sh command in "mk-dist" with bash solved this for me...

Thorsten Liebig <thorsten>
Thu 30 May 2013 06:36:43 PM UTC, comment #11: 

I tried to build the installer, but I still see the NSIS build error:

Failed to build package nsis!
------------------------------------------------------------
ertr000001.o:(.rdata+0x0): undefined reference to `_pei386_runtime_relocator'
collect2: error: ld returned 1 exit status
scons: * [build/release/stub_bzip2/stub_bzip2.exe] Error 1
scons: building terminated because of errors.

Thorsten Liebig <thorsten>
Sun 26 May 2013 02:55:11 AM UTC, comment #10: 
John Donoghue <lostbard>
Group Member
Sat 25 May 2013 04:43:35 PM UTC, comment #9: 

Updated installer patch and one to update nsis, which seems to have issues with 64 bit machines prior to this.

(file #28172, file #28173)

John Donoghue <lostbard>
Group Member
Fri 24 May 2013 01:24:30 PM UTC, comment #8: 

Just a status update:

I played around with the compiling options on the mxe octave build.

The pull in of libuuid occurs because of the fltk-config library   has a LDLIBS string set to contain -luuid.

If I remove the -luuid from the config, octave still compiles ok - I am about to check if it still runs under windows ok like that.

If it does, then a patch to the mxe fltk install? I see that mxe-devel is using a patched fltk-1.3.2, whereas we are using a patched 1.3.1 - I will take a look at differences in that.

John Donoghue <lostbard>
Group Member
Thu 23 May 2013 02:04:53 AM UTC, comment #7: 

Another issue I have seen occasionaly, perhaps related to the same issue is if I have to rebuilds qrupdate for any reason after octave has compiled, qrupdate fails to compile with errors on not finding the blas functions in link:

home/jade/mxe-octave/tmp-qrupdate/qrupdate-1.1.2/src/cch1dn.f:61: undefined reference to `xerbla_'
/home/jade/mxe-octave/tmp-qrupdate/qrupdate-1.1.2/src/cch1dn.f:70: undefined reference to `ctrsv_'
/home/jade/mxe-octave/tmp-qrupdate/qrupdate-1.1.2/src/cch1dn.f:71: undefined reference to `scnrm2_'

It finds blas during the configure:
checking for sgemm_ in -lblas... yes

and if I override the configure for blas with --with-blas=blas, it works again.

John Donoghue <lostbard>
Group Member
Wed 22 May 2013 09:02:58 PM UTC, comment #6: 

That libuuid conversion is a bit of a kluge, but as I recall was necessary for something else later on (linking Octave itself?  I don't remember).  If there is some way to build without that step, then that would be a better solution.  I just remember not knowing what else to do and generating a .dll file for libuuid worked for me.

John W. Eaton <jwe>
Group administrator
Wed 22 May 2013 08:28:08 PM UTC, comment #5: 

I have found where the issue occurs - octave.mk creates libuuid.dll/libuuid.dll.a and installs to usr/i686-pc-ming32/bin as a first step before compiling the octave code.

With the dll library in place nsis fails to compile.

... looking now to see how to make nsis compile with it there.

John Donoghue <lostbard>
Group Member
Sun 19 May 2013 11:18:33 PM UTC, comment #4: 

Hmmm... tried the patch just for fun, but got this:


:
[download] nsis
[build]    nsis

Failed to build package nsis!
------------------------------------------------------------
ertr000001.o:(.rdata+0x0): undefined reference to `_pei386_runtime_relocator'
collect2: error: ld returned 1 exit status
scons: *** [build/release/stub_bzip2/stub_bzip2.exe] Error 1
scons: building terminated because of errors.
make[1]: *** [build-only-nsis] Error 2
make[1]: Leaving directory `/home/philip/devel/octdev/mxe-octave'
real    0m8.887s
user    0m6.310s
sys     0m0.360s
------------------------------------------------------------
[log]      /home/philip/devel/octdev/mxe-octave/log/nsis

make: *** [/home/philip/devel/octdev/mxe-octave/usr/installed/nsis] Error 1
[philip@LX230 mxe-octave]$


Philip Nienhuis <philipnienhuis>
Group Member
Sun 19 May 2013 09:58:51 PM UTC, comment #3: 

Yep, looks like it. I hope it is (still) useful :-)

Philip Nienhuis <philipnienhuis>
Group Member
Sun 19 May 2013 08:01:04 PM UTC, comment #2: 
John Donoghue <lostbard>
Group Member
Sun 19 May 2013 04:33:40 PM UTC, comment #1: 

Thank you for this, it'll make installation of the next stable version a lot easier for the average Windows user.
It may already help for the current stable (3.6.4) version.

Just FYI:
Benjamin Lindner also made a fairly sophisticated NSIS installer for the 3.2.4 MinGW binary, including many OF packages, and detection of CPU type (for the BLAS / Lapack stuff).
His setup (NSIS packaging scripts) should still be somewhere on SourceForge's Octave SVN. Jordi once pointed me to it but I can't find that mail right now.


Philip Nienhuis <philipnienhuis>
Group Member
Sat 18 May 2013 10:23:57 PM UTC, original submission:  

Heres a patch to mxe-octave to use the makensis installer to create a windows installer for octave from the files in the dist folder when running mk-inst.

mk-inst has a new option --installer which will make the installer instead of the zip file and will try to make nsis as part of that process.

The installer installs all the files from the octave folder in the dist folde along with short cuts in the start menu for octave, octave (no gui) and uninstall.

- Hope it is of some use or a starting point.


John Donoghue <lostbard>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #28172:  nsis_installer2.patch added by lostbard (5KiB - text/x-patch)
file #28173:  nsis_update.patch added by lostbard (23KiB - text/x-patch)
file #28105:  nsis_installer.patch added by lostbard (5KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by lostbard (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-05-26 lostbard StatusReady For Test Done
        Open/ClosedOpen Closed
    2013-05-26 lostbard StatusIn Progress Ready For Test
    2013-05-25 lostbard StatusNone In Progress
    2013-05-25 lostbard Attached File- Added nsis_installer2.patch, #28172
        Attached File- Added nsis_update.patch, #28173
    2013-05-22 lostbard Assigned toNone lostbard
    2013-05-18 lostbard Attached File- Added nsis_installer.patch, #28105

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code