LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   cannot compile qjackctl from slackbuild on slackware64-current (https://www.linuxquestions.org/questions/slackware-14/cannot-compile-qjackctl-from-slackbuild-on-slackware64-current-835375/)

trumpet_tom 09-30-2010 05:02 AM

cannot compile qjackctl from slackbuild on slackware64-current
 
Hi, when I try to compile qjackctl I get this error
Code:

QjackCtl 0.3.4

  Build target . . . . . . . . . . . . . . . . . . .: release

  JACK Audio Connection Kit support  . . . . . . . .: yes
  JACK Realtime support  . . . . . . . . . . . . . .: yes
  JACK Transport support . . . . . . . . . . . . . .: yes
  JACK XRUN delay support  . . . . . . . . . . . . .: yes
  JACK Maximum scheduling delay support  . . . . . .: yes
  JACK MIDI support  . . . . . . . . . . . . . . . .: yes
  ALSA MIDI Sequencer support  . . . . . . . . . . .: yes
  System tray icon support . . . . . . . . . . . . .: yes

  Install prefix . . . . . . . . . . . . . . . . . .: /usr

Now type 'make', followed by 'make install' as root.

make[1]: Entering directory `/tmp/SBo/qjackctl-0.3.4'
/usr/lib/qt/bin/uic src/qjackctlAboutForm.ui -o ui_qjackctlAboutForm.h
/usr/lib/qt/bin/uic src/qjackctlConnectionsForm.ui -o ui_qjackctlConnectionsForm.h
/usr/lib/qt/bin/uic src/qjackctlMainForm.ui -o ui_qjackctlMainForm.h
/usr/lib/qt/bin/uic src/qjackctlMessagesForm.ui -o ui_qjackctlMessagesForm.h
/usr/lib/qt/bin/uic src/qjackctlPatchbayForm.ui -o ui_qjackctlPatchbayForm.h
/usr/lib/qt/bin/uic src/qjackctlSetupForm.ui -o ui_qjackctlSetupForm.h
/usr/lib/qt/bin/uic src/qjackctlSocketForm.ui -o ui_qjackctlSocketForm.h
/usr/lib/qt/bin/uic src/qjackctlStatusForm.ui -o ui_qjackctlStatusForm.h
g++ -c -pipe -O2 -march=i486 -mtune=i686 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/lib/qt/mkspecs/linux-g++ -I. -I/usr/lib/qt/include/QtCore -I/usr/lib/qt/include/QtGui -I/usr/lib/qt/include/QtXml -I/usr/lib/qt/include -Isrc -I/usr/lib/qt/include -I/usr/local/include -I/usr/include -I. -I. -o main.o src/main.cpp
src/main.cpp:1: error: CPU you selected does not support x86-64 instruction set
make[1]: *** [main.o] Error 1
make[1]: Leaving directory `/tmp/SBo/qjackctl-0.3.4'
make: *** [qjackctl] Error 2

I can assure you I have a 64 bit processor. Has anyone else experienced this?

XGizzmo 09-30-2010 05:19 AM

Quote:

Originally Posted by trumpet_tom (Post 4113563)
Hi, when I try to compile qjackctl I get this error
Code:

g++ -c -pipe -O2 -march=i486 -mtune=i686 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/lib/qt/mkspecs/linux-g++ -I. -I/usr/lib/qt/include/QtCore -I/usr/lib/qt/include/QtGui -I/usr/lib/qt/include/QtXml -I/usr/lib/qt/include -Isrc -I/usr/lib/qt/include -I/usr/local/include -I/usr/include -I. -I. -o main.o src/main.cpp
src/main.cpp:1: error: CPU you selected does not support x86-64 instruction set

I can assure you I have a 64 bit processor. Has anyone else experienced this?

You may have a 64bit cpu but you told configure to build a i486 application.

Try this SlackBuild qjackctl

trumpet_tom 09-30-2010 06:40 AM

That's the slackbuild I was using before. Even if I specify "ARCH=x86_64" the error still occurs.

BrZ 09-30-2010 11:19 AM

1 Attachment(s)
Mine was built with this script.

qjackctl.desktop

lyle_s 09-30-2010 12:43 PM

This has been a problem for a long time.

Here's my patch; there's really only one line to change:

--- qjackctl.SlackBuild.orig 2010-04-28 22:34:33.922032119 -0500
+++ qjackctl.SlackBuild.new 2010-04-28 22:33:17.753998927 -0500
@@ -59,6 +59,9 @@
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm
400 \) \
-exec chmod 644 {} \;

+# Tell qmake about our SLACKFLAGS.
+echo "QMAKE_CXXFLAGS_RELEASE=$SLKCFLAGS" >> qjackctl.pro.in
+
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \


Lyle.

trumpet_tom 10-01-2010 12:04 PM

I couldn't get that patch to work but I just installed qjackctl directly from source and it works fine. Does the slackbuild maintainer know about the problem if it has been around for a while?

sahko 10-01-2010 12:22 PM

Did you use custom CFLAGS or the SlackBuilds.org defaults?
You could also have them defined in a file such as ~/.bashrc

trumpet_tom 10-01-2010 12:28 PM

I just used sbopkg which normally leaves me with a 64 bit package without me making any modifications. When I tried using the slackbuild myself, I didn't set any CFLAGS, but it compiled from source fine with just --prefix=/usr and --libdir=/usr/lib64.

XGizzmo 10-01-2010 07:17 PM

Quote:

Originally Posted by trumpet_tom (Post 4114953)
I couldn't get that patch to work but I just installed qjackctl directly from source and it works fine. Does the slackbuild maintainer know about the problem if it has been around for a while?

There is nothing wrong with the SlackBuild so there is nothing to report.
You need to make sure you are using builds for 13.1 and a sbopkg that is
updated for 13.1.

tdos20 01-28-2011 11:53 AM

I had success using the amended line in the patch - thanks - was scratching my head!

BCarey 06-13-2011 12:57 PM

I just had the same problem on 13.37, solved by the additional line. Thanks a lot.

Brian


All times are GMT -5. The time now is 11:53 AM.