Package Details: labview-2022 1-5

Git Clone URL: https://aur.archlinux.org/labview-2022.git (read-only, click to copy)
Package Base: labview-2022
Description: A system-design platform and development environment for a visual programming language from National Instruments.
Upstream URL: https://download.ni.com/support/softlib/labview/labview_development_system/2022%20Q3/Patches/f1/Linux/lv2022Q3_f1Patch_full-linux-mac.iso
Licenses: custom:LabVIEW-2022
Submitter: FlashNoob98
Maintainer: FlashNoob98
Last Packager: FlashNoob98
Votes: 3
Popularity: 0.025497
First Submitted: 2022-09-28 21:43 (UTC)
Last Updated: 2023-07-01 00:14 (UTC)

Pinned Comments

FlashNoob98 commented on 2022-09-28 21:50 (UTC) (edited on 2023-06-30 23:32 (UTC) by FlashNoob98)

PKGBUILD Updated (v1-4), now it installs everything

Latest Comments

JazzplayerL9 commented on 2023-06-28 03:17 (UTC)

I had to add: mkdir -p "${pkgdir}/usr/local/bin" on line 132 to get this to package properly.

RealYaddie commented on 2023-06-23 15:56 (UTC)

@FlashNoob98 I needed LabVIEW for a Uni course I recently completed, so I really had my mind set on getting it to work on Linux.

Also I've never really done anything like maintaining a package before so I'd definitely have to pass on that one 😅😅, but I'd be happy to help you out in any way I could tho, like maybe sending you the PKGBUILD I used with the changes I made to it

FlashNoob98 commented on 2023-06-23 13:43 (UTC)

@RealYaddie I have no idea on what the network problem could be caused by.. I like that you solved all the problems in the MAKEPKG, I just copied this file from the labview-2021 aur package, if you want to maintain it there is no problem :')

RealYaddie commented on 2023-05-24 01:30 (UTC) (edited on 2023-05-28 21:06 (UTC) by RealYaddie)

I'm trying to install this version of LabVIEW using the ISO you provided and the PKGBUILD. I had an error with the prepare() function where because the ${srcdir} wasn't surrounded in double quotes it would Abort there.

prepare() {
-    cd ${srcdir}
+    cd "${srcdir}"
    for file in ${source[@]}; do if [ ${file: -4} == ".rpm" ]; then bsdtar -xf "${file#file://}"; fi; done
}

I fixed this and the installation progressed further but now I'm getting this error that's preventing me from going any further.

==> Starting package()...

cp: target 'Linux/rpm/pkg/labview-2022/usr/share/icons/hicolor/48x48/mimetypes/': No such file or directory

==> ERROR: A failure occurred in package(). Aborting...

@FlashNoob98 Do you have any idea of why I'd be getting this error and any possible solutions to this error?

P.S: Not sure if this would change anything, but I'm using EndeavourOS.

Edit

The failure in the package() function was caused by 2 instances of ${pkgdir} on lines 123&124 not being quoted in double-quotes. Once I did that the package was created and successfully installed.

  for file in "${pkgdir}"/opt/natinst/LabVIEW-"2022-64"/etc/desktop/icons/48x48/application-x-*.png; do
-    cp "$file" ${pkgdir}/usr/share/icons/hicolor/48x48/mimetypes/
-    cp "$file" ${pkgdir}/usr/share/icons/hicolor/128x128/mimetypes/
+    cp "$file" "${pkgdir}"/usr/share/icons/hicolor/48x48/mimetypes/
+    cp "$file" "${pkgdir}"/usr/share/icons/hicolor/128x128/mimetypes/

  done

However, I ran into another issue after installing it. When I tried to run the LabVIEW program I got an error that basically said I didn't have permissions to run it, because it was installed in the /opt directory.
I'm not sure if this is safe to do or even if its a best practice or something, but to fix this issue I ran chown on the directory: sudo chown "${USER}" /opt/natinst/ -R and t hat fixed the issue for me.

After I did this everything ran okay for the most part, the only other thing that's bugging me now is that occasionally simple tasks in LabVIEW like right-clicking or even creating a new Project will cause the entire program to freeze for several seconds or even a minute. I'm not sure if this is because of the chown I did or if it's simply just my laptop being old, but aside from that it works fine for me.

@FlashNoob98 thanks for this package 🫰🫰

Edit 2

Program still works for me, I'm able to do anything as long as it doesn't require HTTP Protocols. Whenever I try run any program that has to connect to the internet for anything I get the following error:

Error -1967362015 occurred at LabVIEWHTTPClient.lvlib:OpenHandle.vi:6450001

Possible reasons(s):

OS and Network Services Failed to load library.

Complete call chain: LabVIEWHTTPClient.lvlib:OpenHandle.vi:6450001 Example in Class.vi

FlashNoob98 commented on 2022-12-12 05:10 (UTC)

@hasechris in this version avrually there is a direct link to the ISO file but it's my first package, I'm a newbie and I don't know / I didn't have time to create the script to double extract the files from iso, if you are capable of it make a pull request or I will try it when I will have more time. Unfortunately it's not my fault if the program is licensed and they tends to move the download link sometimes

hasechris commented on 2022-12-12 00:27 (UTC)

Just my humble opinion.

Im really sorry but WTF is this package a bullshit. It doesnt work by just installing it from pamac (does not state i have to do anything special) and by comming to this page i have to find i need the full license account and a seperate download?

What a crap.

FlashNoob98 commented on 2022-11-26 14:47 (UTC)

@Balku I updated the checksums and file list

Balku commented on 2022-11-25 12:13 (UTC)

Hi, rpm versions of PKGBUILD and iso are slightly off. e.g.: PKGBUILD is looking for this: <file://labview-2022-exe-libs-22.3.0.49363-0+f211.x86_64.rpm> Iso has this: <labview-2022-exe-libs-22.3.1.49152-0+f0.x86_64.rpm> Possibly hashes are different too.

Is there any workaround for this?

FlashNoob98 commented on 2022-09-28 21:50 (UTC) (edited on 2023-06-30 23:32 (UTC) by FlashNoob98)

PKGBUILD Updated (v1-4), now it installs everything