Opened 12 years ago

Closed 10 years ago

#36426 closed defect (fixed)

lmms: ZynAddSubFx.cpp:430: error: ‘QDir’ was not declared in this scope

Reported by: deesto (John S. De Stefano Jr.) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: michaelld (Michael Dickens), bordinalberto@…
Port: lmms

Description

Build currently fails on OS X 10.6 after a port selfupdate and clean.

/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_multimedia_lmms/lmms/work/lmms-0.4.13/plugins/zynaddsubfx/ZynAddSubFx.cpp:27:20: error: Qt/QtXml: No such file or directory
/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_multimedia_lmms/lmms/work/lmms-0.4.13/plugins/zynaddsubfx/ZynAddSubFx.cpp: In member function ‘virtual void ZynAddSubFxInstrument::saveSettings(QDomDocument&, QDomElement&)’:
/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_multimedia_lmms/lmms/work/lmms-0.4.13/plugins/zynaddsubfx/ZynAddSubFx.cpp:179: error: ‘QDir’ was not declared in this scope
/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_multimedia_lmms/lmms/work/lmms-0.4.13/plugins/zynaddsubfx/ZynAddSubFx.cpp: In member function ‘virtual void ZynAddSubFxInstrument::loadSettings(const QDomElement&)’:
/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_multimedia_lmms/lmms/work/lmms-0.4.13/plugins/zynaddsubfx/ZynAddSubFx.cpp:240: error: ‘QDir’ was not declared in this scope
/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_multimedia_lmms/lmms/work/lmms-0.4.13/plugins/zynaddsubfx/ZynAddSubFx.cpp: In member function ‘void ZynAddSubFxInstrument::initPlugin()’:
/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_multimedia_lmms/lmms/work/lmms-0.4.13/plugins/zynaddsubfx/ZynAddSubFx.cpp:430: error: ‘QDir’ was not declared in this scope
make[2]: *** [plugins/zynaddsubfx/CMakeFiles/zynaddsubfx.dir/ZynAddSubFx.o] Error 1

Attachments (3)

lmms-port-upgrade.log (344.1 KB) - added by deesto (John S. De Stefano Jr.) 12 years ago.
verbose log
lmms-upgrade-log-latest.txt (344.9 KB) - added by deesto (John S. De Stefano Jr.) 12 years ago.
Upgrading this port remains an issue with latest port list and indeces.
lmms-upgrade-log-latest.tgz (43.6 KB) - added by deesto (John S. De Stefano Jr.) 11 years ago.

Download all attachments as: .zip

Change History (13)

Changed 12 years ago by deesto (John S. De Stefano Jr.)

Attachment: lmms-port-upgrade.log added

verbose log

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: ZynAddSubFx.cpp:430: error: ‘QDir’ was not declared in this scopelmms: ZynAddSubFx.cpp:430: error: ‘QDir’ was not declared in this scope

Changed 12 years ago by deesto (John S. De Stefano Jr.)

Attachment: lmms-upgrade-log-latest.txt added

Upgrading this port remains an issue with latest port list and indeces.

comment:2 Changed 11 years ago by jmroot (Joshua Root)

Cc: michaelld@… added

I guess it should be QtXml/QtXml? Would the location have changed when moving qt4-mac to a framework build?

FYI, you ran portindex in a directory with no portfiles, so it did nothing. But it doesn't matter because selfupdate runs it correctly for you.

comment:3 in reply to:  2 Changed 11 years ago by deesto (John S. De Stefano Jr.)

Replying to jmr@…:

I guess it should be QtXml/QtXml? Would the location have changed when moving qt4-mac to a framework build?

I'm not sure; LMK if there's anything you'd like me to test.

Replying to jmr@…:

FYI, you ran portindex in a directory with no portfiles, so it did nothing. But it doesn't matter because selfupdate runs it correctly for you.

Right; sorry: I had already run a full index and was just trying to show (poorly I suppose) that I'd already done so for that port.

comment:4 Changed 11 years ago by michaelld (Michael Dickens)

lmms installs fine for me on 10.8 using Xcode 4.5.1 and the "new" qt4-mac. Please do:

sudo port clean lmms
sudo port selfupdate
sudo port upgrade lmms

and if that doesn't work then attach the log file; consider compressing it first. Debugging issue such as this are always easier with a complete log especially include the configure stage.

Changed 11 years ago by deesto (John S. De Stefano Jr.)

Attachment: lmms-upgrade-log-latest.tgz added

comment:5 Changed 11 years ago by hihid27@…

I had a similar problem like yours, what I had to do was modify a the

#include <Qt/QtXml>

in a file from the plugin.

What you have to do is do the usual sudo port install lmms and let it try to install lmms, and probably fail (if not, yay!).

Then, find your way to macport's build directory for this (it should be something such as "/opt/local/var/macports/build/" (to open this in finder type open /opt/local/var/macports/build

In that directory, find a file that contains lmms somewhere in it's name. Then in that directory, find your way to plugins/zynaddsubfx.

Find the file named "ZynAddSubFx.cpp", and copy it (or hit command+c).

Open terminal, enter: sudo pico press the spacebar, and then paste (or hit command+v) and hit enter (it should look something like sudo pico /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_lmms/lmms/work/lmms-0.4.13/plugins/zynaddsubfx/ZynAddSubFx.cpp).

Press the down arrow until you see:

#include <Qt/QtXml>

and change that to:

#include <QtXml>

Make sure you save the changes (control+o I believe).

Now run sudo port install lmms again and it should work!

Last edited 11 years ago by hihid27@… (previous) (diff)

comment:6 in reply to:  5 Changed 11 years ago by deesto (John S. De Stefano Jr.)

Thanks hihid27! Editing that plugin file worked and enabled me to upgrade from lmms @0.4.12_0 to lmms @0.4.13_0, and to continue to update my other installed ports. In my case, the file to edit (after the failed upgrade had created the build directory) was:

/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_multimedia_lmms/lmms/work/lmms-0.4.13/plugins/zynaddsubfx/ZynAddSubFx.cpp

So, narrowing the include scope from Qt/QtXml to QtXml in the source seems like it would be a sufficient fix.

comment:7 Changed 11 years ago by wanthalf@…

Yes, it works!

So? How about fixing the port? Anyone still alive?

comment:8 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: bordinalberto@… added

Has duplicate #41838.

comment:9 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned

comment:10 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.