LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-07-2016, 06:42 AM   #16
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,705

Rep: Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294

Quote:
moc_main_window.cpp:14:2: error: #error "This file was generated using the moc from 4.7.2. It"
Please read the 'Makefile' : Options = make all, make mocclean, etc.

'make mocclean' will delete the (year 2011) qt-4.7.2 generated file.
... And some action should theoretically generate a new moc_main_window.cpp with moc v4.8.7, from vcc/{files}
 
Old 07-07-2016, 07:15 AM   #17
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 7,819
Blog Entries: 10

Original Poster
Rep: Reputation: Disabled
Quote:
'make mocclean' will delete the (year 2011) qt-4.7.2 generated file.
Running make mocclean is what I need to run?
I don't understand the makefile.

Code:
####### Compiler, tools and options

CC            = gcc
CXX           = g++
DEFINES       = -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
CFLAGS        = -pipe -O2 -Wall -W -D_REENTRANT $(DEFINES)
CXXFLAGS      = -pipe -O2 -Wall -W -D_REENTRANT $(DEFINES)
INCPATH       = -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include -I. -Ivcc -I. -I.
LINK          = g++
LFLAGS        = -Wl,-O1
LIBS          = $(SUBLIBS)  -L/usr/lib64 -lQtGui -lQtCore -lpthread 
AR            = ar cqs
RANLIB        = 
QMAKE         = /usr/bin/qmake
TAR           = tar -cf
COMPRESS      = gzip -9f
COPY          = cp -f
SED           = sed
COPY_FILE     = $(COPY)
COPY_DIR      = $(COPY) -r
STRIP         = 
INSTALL_FILE  = install -m 644 -p
INSTALL_DIR   = $(COPY_DIR)
INSTALL_PROGRAM = install -m 755 -p
DEL_FILE      = rm -f
SYMLINK       = ln -f -s
DEL_DIR       = rmdir
MOVE          = mv -f
CHK_DIR_EXISTS= test -d
MKDIR         = mkdir -p
 
Old 07-07-2016, 07:17 AM   #18
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,668

Rep: Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854
Quote:
I don't understand the makefile
Especially which part?
 
1 members found this post helpful.
Old 07-07-2016, 08:00 AM   #19
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 7,819
Blog Entries: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
Especially which part?
The build rules and all of the directories that are listed.

Code:
###### Build rules

all: Makefile $(TARGET)

$(TARGET): ui_main_window.h $(OBJECTS)  
	$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)

Makefile: vaio-control-center.pro  /usr/lib64/qt4/mkspecs/linux-g++/qmake.conf /usr/lib64/qt4/mkspecs/common/unix.conf \
And the compile section. How do I know what to run?

Code:
helpers.o: vcc/helpers.c vcc/helpers.h
	$(CC) -c $(CFLAGS) $(INCPATH) -o helpers.o vcc/helpers.c

main_window.o: vcc/main_window.cpp vcc/main_window.hpp \
		ui_main_window.h \
		vcc/helpers.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o main_window.o vcc/main_window.cpp

vaio-control-center.o: vcc/vaio-control-center.cpp vcc/main_window.hpp \
		ui_main_window.h \
		vcc/helpers.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o vaio-control-center.o vcc/vaio-control-center.cpp

moc_main_window.o: moc_main_window.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_main_window.o moc_main_window.cpp
 
Old 07-07-2016, 08:07 AM   #20
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,668

Rep: Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854
in short:
Code:
target: prerequisite
   rule
this is how it works:
target is a file to create, prerequisite (or dependency) which should be available to be able to create the current target and rule (or receipt) is the command to construct the target itself.

in general you execute make all, which will create all you need including its dependencies.
 
1 members found this post helpful.
Old 07-07-2016, 01:25 PM   #21
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,705

Rep: Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294
I gave it a try with Fedora 24 : vaio-control-center-0.1 .

cd .VCC/ && qmake-qt4 && make mocclean && make
.. and got a new executable 'vaio-control-center'.

./vaio-control-center :
open_file: can't open /sys/devices/platform/sony-laptop/battery_charge_limiter: No such file or directory.


-

Last edited by knudfl; 07-08-2016 at 10:19 AM.
 
1 members found this post helpful.
Old 07-07-2016, 07:52 PM   #22
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 7,819
Blog Entries: 10

Original Poster
Rep: Reputation: Disabled
Running make all gives me errors.
Trying the commands that you used knudfl returns no such file or dir.

Code:
[linuxcat@localhost Downloads]$ make all
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include -I. -Ivcc -I. -I. -o moc_main_window.o moc_main_window.cpp
moc_main_window.cpp:14:2: error: #error "This file was generated using the moc from 4.7.2. It"
 #error "This file was generated using the moc from 4.7.2. It"
  ^~~~~
moc_main_window.cpp:15:2: error: #error "cannot be used with the include files from this version of Qt."
 #error "cannot be used with the include files from this version of Qt."
  ^~~~~
moc_main_window.cpp:16:2: error: #error "(The moc has changed too much.)"
 #error "(The moc has changed too much.)"
  ^~~~~
Makefile:233: recipe for target 'moc_main_window.o' failed
make: *** [moc_main_window.o] Error 1
[linuxcat@localhost Downloads]$ cd .VCC/ && qmake-qt4 && mocclean && make
bash: cd: .VCC/: No such file or directory
[linuxcat@localhost Downloads]$ cd ~/.VCC && qmake-qt4 && mocclean && make
bash: mocclean: command not found
[linuxcat@localhost .VCC]$
Thank you for your time but I'm just not getting it:-
 
Old 07-08-2016, 12:41 AM   #23
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,668

Rep: Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854
did you execute make mocclean already?
 
Old 07-08-2016, 10:18 AM   #24
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,705

Rep: Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294
Re #22 : Sorry for the typo in post #21.

You are supposed to do : 'qmake-qt4 && make mocclean && make'

No more, no less.




-

Last edited by knudfl; 07-08-2016 at 10:20 AM.
 
1 members found this post helpful.
Old 07-08-2016, 07:26 PM   #25
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 7,819
Blog Entries: 10

Original Poster
Rep: Reputation: Disabled
No errors this time-

Code:
[linuxcat@localhost Downloads]$ qmake-qt4 && make mocclean && make
rm -f moc_main_window.cpp
/usr/lib64/qt4/bin/moc -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include -I. -Ivcc -I. -I. vcc/main_window.hpp -o moc_main_window.cpp
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include -I. -Ivcc -I. -I. -o moc_main_window.o moc_main_window.cpp
g++ -Wl,-O1 -o vaio-control-center helpers.o main_window.o vaio-control-center.o moc_main_window.o    -L/usr/lib64 -lQtGui -lQtCore -lpthread
The makefile says for Install this:
Code:
####### Install

install:   FORCE

uninstall:   FORCE
Now run 'FORCE' or become root and run make install?
 
Old 07-09-2016, 05:22 AM   #26
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,705

Rep: Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294
Re #25.

cd .VCC/ && ./run : Where 'run' is one line = ./vaio-control-center
Please read the file 'run'.

About $ make install : Please try, and the reply probably is "Nothing to be done for 'install' ".
If you want 'vaio-control-center' in a system PATH, suggest : # cp vaio-control-center /usr/local/bin/



-
 
Old 07-09-2016, 08:37 PM   #27
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 7,819
Blog Entries: 10

Original Poster
Rep: Reputation: Disabled
Code:
[root@localhost Downloads]# ./run
Qt: Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
open_file: can't open /sys/devices/platform/sony-laptop/battery_charge_limiter: No such file or directory
[root@localhost Downloads]# ./vaio-control-center
Qt: Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
open_file: can't open /sys/devices/platform/sony-laptop/battery_charge_limiter: No such file or directory
[root@localhost Downloads]# cd .VCC/ && ./run
bash: cd: .VCC/: No such file or directory
Running 'make install' gave me exactly what you said it would. Nothing to be done for install.

I read the run file and the only argument that is in it is:
#./vaio-control-center

Last edited by Ztcoracat; 07-09-2016 at 08:38 PM.
 
Old 07-10-2016, 06:06 AM   #28
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,705

Rep: Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294
Re #27.

You have "extra errors" :
"Authentication Rejected, reason : None of the authentication protocols specified are supported .. "
... may be because of running the start command as root.
Please try : $ ./run (i.e. as unprivileged user.)


Quote:
can't open /sys/devices/platform/sony-laptop/battery_charge_limiter: No such file or directory
Obviously a missing part of "vaio-control-center", or a missing auxiliary application.


-
 
Old 07-10-2016, 07:44 PM   #29
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 7,819
Blog Entries: 10

Original Poster
Rep: Reputation: Disabled
Running ./run as as non root-

Code:
[linuxcat@localhost Downloads]$ ls
'Burrowing Owl Chicks.jpg'
compile
COPYING
faac-1.28-7.fc24.x86_64.rpm
gstreamer-plugins-bad-nonfree-0.10.23-3.fc24.x86_64.rpm
helpers.o
main_window.o
Makefile
moc_main_window.cpp
moc_main_window.o
run
ui_main_window.h
vaio-control-center
vaio-control-center-0.1.tar.bz2
vaio-control-center.o
vaio-control-center.pro
vcc
[linuxcat@localhost Downloads]$ ./run
open_file: can't open /sys/devices/platform/sony-laptop/battery_charge_limiter: No such file or directory
AFAIK I have all the files that came with the vaio control center that came with the tar.bz2.

I looked in the root directory following /sys/devices/platform.
A platform directory doesn't exist:-

Maybe this isn't worth perusing anymore? (due to things missing)
What do you think?
 
Old 07-11-2016, 06:29 AM   #30
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,705

Rep: Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294
Re #29.
Quote:
/sys/devices/platform/sony-laptop/battery_charge_limiter: No such file or directory
1) The sony-vaio utility disk ?
2) Ask sony ?
3) I would search the Internet ....
Example : https://github.com/tvogel/vaio-f11-linux/issues/6
Ref. https://www.google.com/webhp?hl=all&...charge_limiter , 21 hits.


-

Last edited by knudfl; 07-11-2016 at 06:33 AM.
 
  


Reply

Tags
sony-vaio-control-center


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] make: *** No rule to make target `caodv/caodv_rquueue.o', needed by `ns'. Stop. maitanaji Linux - Newbie 5 07-18-2014 06:50 AM
MAKEFILE ERROR:' make: *** No rule to make target `MacroCompletudeExe', needed by all ssica Linux - Newbie 5 04-23-2012 10:56 AM
Error in Makefile:No rule to make target `g++',needed by... stop karthik.c Programming 5 03-09-2009 12:55 AM
Belkin Wirless G RTL8185L make[1]: *** No rule to make target `Makefile'. Stop. SilverRock Linux - Wireless Networking 2 02-11-2007 07:25 AM
No rule to make target `/mkspecs/default/qmake.conf', needed by `Makefile'. Stop Julianus Linux - General 0 12-21-2003 07:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration