Error installing SimpleIDE on Ubuntu 20.04 Desktop
Macknnations
Posts: 7
in Propeller 1
I’m installing SimpleIDE for Parallax Propeller development on Ubuntu 20.04. The git repository is: https://github.com/parallaxinc/SimpleIDE .
I had a problem initially with qmake. The install script was not detecting qmake / Qt5 properly, but I got past that by installing the latest Qt5 and modding the SimpleIDE Linux installer script slightly.
The install script runs for a long time compiling and linking.
Eventually it bails with the following error message:
...
g++ -Wl,-O1 -o SimpleIDE mainspin.o PortConnectionMonitor.o PropellerID.o editor.o ctags.o mainspinwindow.o cbuildtree.o treemodel.o treeitem.o projecttree.o terminal.o termprefs.o properties.o newproject.o PortListener.o highlighter.o hardware.o help.o console.o asideconfig.o asideboard.o projectoptions.o replacedialog.o aboutdialog.o loader.o qextserialport.o qextserialenumerator.o buildc.o buildspin.o build.o spinhighlighter.o spinparser.o gdb.o highlightc.o hintdialog.o blinker.o buildstatus.o highlightbuild.o directory.o zip.o zipper.o StatusDialog.o workspacedialog.o rescuedialog.o xesp8266port.o qextserialport_unix.o qextserialenumerator_unix.o qrc_resources.o moc_mainspinwindow.o moc_PortConnectionMonitor.o moc_PropellerID.o moc_editor.o moc_ctags.o moc_highlighter.o moc_treemodel.o moc_PortListener.o moc_terminal.o moc_termprefs.o moc_properties.o moc_newproject.o moc_console.o moc_hardware.o moc_help.o moc_projectoptions.o moc_replacedialog.o moc_aboutdialog.o moc_loader.o moc_projecttree.o moc_qextserialenumerator.o moc_buildc.o moc_buildspin.o moc_build.o moc_spinhighlighter.o moc_gdb.o moc_qportcombobox.o moc_hintdialog.o moc_blinker.o moc_zipper.o moc_StatusDialog.o moc_workspacedialog.o moc_rescuedialog.o moc_xesp8266port.o -lz /usr/lib/x86_64-linux-gnu/libQt5Network.so /usr/lib/x86_64-linux-gnu/libQt5PrintSupport.so /usr/lib/x86_64-linux-gnu/libQt5Widgets.so /usr/lib/x86_64-linux-gnu/libQt5Gui.so /usr/lib/x86_64-linux-gnu/libQt5Core.so /usr/lib/x86_64-linux-gnu/libGL.so -lpthread
usr/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
make: *** [Makefile:400: SimpleIDE] Error 1
I had a problem initially with qmake. The install script was not detecting qmake / Qt5 properly, but I got past that by installing the latest Qt5 and modding the SimpleIDE Linux installer script slightly.
The install script runs for a long time compiling and linking.
Eventually it bails with the following error message:
...
g++ -Wl,-O1 -o SimpleIDE mainspin.o PortConnectionMonitor.o PropellerID.o editor.o ctags.o mainspinwindow.o cbuildtree.o treemodel.o treeitem.o projecttree.o terminal.o termprefs.o properties.o newproject.o PortListener.o highlighter.o hardware.o help.o console.o asideconfig.o asideboard.o projectoptions.o replacedialog.o aboutdialog.o loader.o qextserialport.o qextserialenumerator.o buildc.o buildspin.o build.o spinhighlighter.o spinparser.o gdb.o highlightc.o hintdialog.o blinker.o buildstatus.o highlightbuild.o directory.o zip.o zipper.o StatusDialog.o workspacedialog.o rescuedialog.o xesp8266port.o qextserialport_unix.o qextserialenumerator_unix.o qrc_resources.o moc_mainspinwindow.o moc_PortConnectionMonitor.o moc_PropellerID.o moc_editor.o moc_ctags.o moc_highlighter.o moc_treemodel.o moc_PortListener.o moc_terminal.o moc_termprefs.o moc_properties.o moc_newproject.o moc_console.o moc_hardware.o moc_help.o moc_projectoptions.o moc_replacedialog.o moc_aboutdialog.o moc_loader.o moc_projecttree.o moc_qextserialenumerator.o moc_buildc.o moc_buildspin.o moc_build.o moc_spinhighlighter.o moc_gdb.o moc_qportcombobox.o moc_hintdialog.o moc_blinker.o moc_zipper.o moc_StatusDialog.o moc_workspacedialog.o moc_rescuedialog.o moc_xesp8266port.o -lz /usr/lib/x86_64-linux-gnu/libQt5Network.so /usr/lib/x86_64-linux-gnu/libQt5PrintSupport.so /usr/lib/x86_64-linux-gnu/libQt5Widgets.so /usr/lib/x86_64-linux-gnu/libQt5Gui.so /usr/lib/x86_64-linux-gnu/libQt5Core.so /usr/lib/x86_64-linux-gnu/libGL.so -lpthread
usr/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
make: *** [Makefile:400: SimpleIDE] Error 1
Comments
I checked for zlib install and I did have a few, but clearly not all. I ran your command line and it installed the missing ones.
The insatll script got much further, but failed again.
Now it’s looking for proploader and openspin.
It bailed out here:
I’m not sure about openspin, but I think I see proploader folders and can install that.
Why is Parallax’s Linux relase so messy? Is it abandoned?
In the GitHub notes:
Success!!!
I got openspin downloaded. It’s already compiled, just dropped it in /usr/bin.
Then I ran make on the proploader Makefile. It wasn’t detecting the OS.
Maybe I’m in over my head, but it seems like make or the Makefile should detect the OS and set the environment var OS.
I edited Makefile and set OS=linux.
Ran make on Makefile and it successfuly spit out proploader.
Next, went back to SimpleIDE install script and ran it...again.
Completed without errors.
SimpleIDE works on Ubuntu 20.04.