Zoltan Padrah | 10 Jul 2012 16:21
Picon

Very easy setup for ktechlab

 Dear all,

I've just finished writing a guide for easy setup for development of
ktechlab. The guide is currently in a branch, waiting for review and
merging. Link:

https://github.com/ktechlab/ktechlab/tree/development-documentation

Pull request:

https://github.com/ktechlab/ktechlab/pull/6

Basically after downloading the source code, ktechlab should be up and
running after issuing 2 commands in a terminal:

 sh simple-setup.sh
 sh simple-launch.sh

Please test; any feedback is welcome.

Best regards,

 Zoltan

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
(Continue reading)

Alan Grimes | 10 Jul 2012 16:51
Favicon

Re: Very easy setup for ktechlab

Build failed. =(

####################

Building CXX object
src/lib/simulator/CMakeFiles/ktlsimulator.dir/messageinfo.o

/home/atg/source/ktechlab/ktl-newpull/src/lib/simulator/messageinfo.cpp:
In copy constructor ‘MessageInfo::MessageInfo(const MessageInfo&)’:
/home/atg/source/ktechlab/ktl-newpull/src/lib/simulator/messageinfo.cpp:34:1:
warning: base class ‘class QObject’ should be explicitly initialized in
the copy constructor [-Wextra]
/home/atg/source/ktechlab/ktl-newpull/src/lib/simulator/languages/asmparser.cpp:34:6:
warning: unused parameter ‘debugger’ [-Wunused-parameter]
/home/atg/source/ktechlab/ktl-newpull/src/lib/simulator/languages/processchain.cpp:
In member function ‘void ProcessChain::compile()’:
/home/atg/source/ktechlab/ktl-newpull/src/lib/simulator/languages/processchain.cpp:96:9:
warning: enumeration value ‘FlowCode_AssemblyAbsolute’ not handled in
switch [-Wswitch]
/home/atg/source/ktechlab/ktl-newpull/src/lib/simulator/languages/processchain.cpp:96:9:
warning: enumeration value ‘FlowCode_Microbe’ not handled in switch
[-Wswitch]
/home/atg/source/ktechlab/ktl-newpull/src/lib/simulator/languages/processchain.cpp:96:9:
warning: enumeration value ‘FlowCode_PIC’ not handled in switch [-Wswitch]
/home/atg/source/ktechlab/ktl-newpull/src/lib/simulator/languages/processchain.cpp:96:9:
warning: enumeration value ‘FlowCode_Program’ not handled in switch
[-Wswitch]
/home/atg/source/ktechlab/ktl-newpull/src/lib/simulator/languages/processchain.cpp:
In member function ‘void ProcessChain::slotFinishedCompile(Language*)’:
/home/atg/source/ktechlab/ktl-newpull/src/lib/simulator/languages/processchain.cpp:156:41:
(Continue reading)

Zoltan Padrah | 10 Jul 2012 17:20
Picon

Re: Very easy setup for ktechlab

I can't see the cause of error in the output. Only a lot of warnings.
Can you please recheck?

2012/7/10 Alan Grimes <agrimes@...>:
> Build failed. =(
>
> ####################
>
> Building CXX object
> src/lib/simulator/CMakeFiles/ktlsimulator.dir/messageinfo.o
>
>
> /home/atg/source/ktechlab/ktl-newpull/src/lib/simulator/messageinfo.cpp:
> In copy constructor ‘MessageInfo::MessageInfo(const MessageInfo&)’:
> /home/atg/source/ktechlab/ktl-newpull/src/lib/simulator/messageinfo.cpp:34:1:
> warning: base class ‘class QObject’ should be explicitly initialized in
> the copy constructor [-Wextra]
> /home/atg/source/ktechlab/ktl-newpull/src/lib/simulator/languages/asmparser.cpp:34:6:
> warning: unused parameter ‘debugger’ [-Wunused-parameter]
> /home/atg/source/ktechlab/ktl-newpull/src/lib/simulator/languages/processchain.cpp:
> In member function ‘void ProcessChain::compile()’:
> /home/atg/source/ktechlab/ktl-newpull/src/lib/simulator/languages/processchain.cpp:96:9:
> warning: enumeration value ‘FlowCode_AssemblyAbsolute’ not handled in
> switch [-Wswitch]
> /home/atg/source/ktechlab/ktl-newpull/src/lib/simulator/languages/processchain.cpp:96:9:
> warning: enumeration value ‘FlowCode_Microbe’ not handled in switch
> [-Wswitch]
> /home/atg/source/ktechlab/ktl-newpull/src/lib/simulator/languages/processchain.cpp:96:9:
> warning: enumeration value ‘FlowCode_PIC’ not handled in switch [-Wswitch]
> /home/atg/source/ktechlab/ktl-newpull/src/lib/simulator/languages/processchain.cpp:96:9:
(Continue reading)

Alan Grimes | 10 Jul 2012 18:57
Favicon

Re: Very easy setup for ktechlab

Weird, On the first try I had set up a multi-threaded build, and my load
average was already in the 7s...

urk, spoke too soon, the thing errored out again, but near the end.
(single threaded build this time).

#######################

Generating circuittransientsimulator.moc
[ 92%] Built target ktlsimulatorplugin_automoc
Scanning dependencies of target ktlsimulatorplugin
[ 93%] Building CXX object
src/plugins/simulator/CMakeFiles/ktlsimulatorplugin.dir/ktlsimulatorplugin_automoc.o
[ 93%] Building CXX object
src/plugins/simulator/CMakeFiles/ktlsimulatorplugin.dir/simulatorplugin.o
[ 94%] Building CXX object
src/plugins/simulator/CMakeFiles/ktlsimulatorplugin.dir/simulatorfactory.o
[ 94%] Building CXX object
src/plugins/simulator/CMakeFiles/ktlsimulatorplugin.dir/circuittransientsimulator.o
/home/atg/source/ktechlab/ktl-newpull/src/plugins/simulator/circuittransientsimulator.cpp:58:11:
warning: unused parameter ‘component’ [-Wunused-parameter]
/home/atg/source/ktechlab/ktl-newpull/src/plugins/simulator/circuittransientsimulator.cpp:64:6:
warning: unused parameter ‘component’ [-Wunused-parameter]
Linking CXX shared module ../../../lib/ktlsimulatorplugin.so
[ 94%] Built target ktlsimulatorplugin
Generating cells.moc
Generating ktlautomaticrouterplugin.moc
[ 94%] Built target ktlautomatic_router_automoc
Scanning dependencies of target ktlautomatic_router
[ 95%] Building CXX object
(Continue reading)

Zoltan Padrah | 12 Jul 2012 17:27
Picon

Re: Very easy setup for ktechlab

 Hi,

the error looks like a problem with the new kdevplatform version --
the plugin API has been changed. The fix is to implement another pure
virtual function, and the ktechlab should compile.

See this branch, as a starting point for the fix; currently it is not working:

https://github.com/ktechlab/ktechlab/tree/kdevplatform-1.3

I need to install a virtual machine on my computer, and then I can
test and do a proper fix.

 Zoltan

2012/7/10 Alan Grimes <agrimes@...>:
> Weird, On the first try I had set up a multi-threaded build, and my load
> average was already in the 7s...
>
> urk, spoke too soon, the thing errored out again, but near the end.
> (single threaded build this time).
>
> #######################
>
> Generating circuittransientsimulator.moc
> [ 92%] Built target ktlsimulatorplugin_automoc
> Scanning dependencies of target ktlsimulatorplugin
> [ 93%] Building CXX object
> src/plugins/simulator/CMakeFiles/ktlsimulatorplugin.dir/ktlsimulatorplugin_automoc.o
> [ 93%] Building CXX object
(Continue reading)

Zoltan Padrah | 28 Jul 2012 19:24
Picon

Re: Very easy setup for ktechlab

Hi,

I've just pushed a few commits into the 'kdevplatform-1.3' branch on github:

https://github.com/ktechlab/ktechlab/tree/kdevplatform-1.3

In my tests ktechlab worked fine on ubuntu 12.04, 64 bit version.
A few ktechlab plugins are disabled by default for some reason, but
after enabling them, ktechlab worked correctly.

As usual, any feedback is welcome.

 Zoltan

2012/7/10 Alan Grimes <agrimes@...>:
> Weird, On the first try I had set up a multi-threaded build, and my load
> average was already in the 7s...
>
> urk, spoke too soon, the thing errored out again, but near the end.
> (single threaded build this time).
>
> #######################
>
> Generating circuittransientsimulator.moc
> [ 92%] Built target ktlsimulatorplugin_automoc
> Scanning dependencies of target ktlsimulatorplugin
> [ 93%] Building CXX object
> src/plugins/simulator/CMakeFiles/ktlsimulatorplugin.dir/ktlsimulatorplugin_automoc.o
> [ 93%] Building CXX object
> src/plugins/simulator/CMakeFiles/ktlsimulatorplugin.dir/simulatorplugin.o
(Continue reading)

Alan Grimes | 28 Jul 2012 21:05
Favicon

Re: Very easy setup for ktechlab

ok, I still instinctively add "-j 6" to all my make commands, after
managing to run single-threaded, here's the spew:

atg <at> tortoise ~/source/ktechlab/ktechlab $ make
[  0%] Built target ktlmath_automoc
Scanning dependencies of target ktlmath
[  1%] Building CXX object src/math/CMakeFiles/ktlmath.dir/ktlmath_automoc.o
Linking CXX shared library ../../lib/libktlmath.so
[  2%] Built target ktlmath
[  2%] Built target mathtest_automoc
Scanning dependencies of target mathtest
[  3%] Building CXX object
tests/math/CMakeFiles/mathtest.dir/mathtest_automoc.o
[  3%] Building CXX object
tests/math/CMakeFiles/mathtest.dir/matrixtester.o

/home/atg/source/ktechlab/ktechlab/tests/math/matrixtester.cpp: In
member function ‘double MatrixTester::differenceOfVectors(const
VectorXd&, const KTechLab::QuickVector&)’:
/home/atg/source/ktechlab/ktechlab/tests/math/matrixtester.cpp:80:36:
warning: comparison between signed and unsigned integer expressions
[-Wsign-compare]
/home/atg/source/ktechlab/ktechlab/tests/math/matrixtester.cpp:85:33:
warning: comparison between signed and unsigned integer expressions
[-Wsign-compare]
Linking CXX executable mathtest
[  3%] Built target mathtest
[  3%] Built target ktlsimulator_automoc
[ 50%] Built target ktlsimulator
[ 50%] Generating moc_simulatortest.cxx
(Continue reading)

Zoltan Padrah | 22 Aug 2012 19:59
Picon

Re: Very easy setup for ktechlab

Hi,

finally I have more free time.

Questions related to this error:
- which repository / branch are you trying to build
(output of "git rev-parse HEAD" and "git status" would be really nice)
- which linux distribution are you using and what version?

I can't reproduce this build failure, so any detail that helps to
reproduce it would be great.

  Zoli

2012/7/28 Alan Grimes <agrimes@...>:
> ok, I still instinctively add "-j 6" to all my make commands, after
> managing to run single-threaded, here's the spew:
>
>
> atg <at> tortoise ~/source/ktechlab/ktechlab $ make
> [  0%] Built target ktlmath_automoc
> Scanning dependencies of target ktlmath
> [  1%] Building CXX object src/math/CMakeFiles/ktlmath.dir/ktlmath_automoc.o
> Linking CXX shared library ../../lib/libktlmath.so
> [  2%] Built target ktlmath
> [  2%] Built target mathtest_automoc
> Scanning dependencies of target mathtest
> [  3%] Building CXX object
> tests/math/CMakeFiles/mathtest.dir/mathtest_automoc.o
> [  3%] Building CXX object
(Continue reading)

Zoltan Padrah | 26 Apr 2013 10:55
Picon

Re: Very easy setup for ktechlab



Hi,

I've added a branch and pull request on github, which should fix the build failure (if not, then I'm out of ideas). Please find the branch here:


and the pull request here:


Best regards,

 Zoli

Zoltan Padrah 2012. augusztus 22., szerda napon a következőt írta:
Hi,

finally I have more free time.

Questions related to this error:
- which repository / branch are you trying to build
(output of "git rev-parse HEAD" and "git status" would be really nice)
- which linux distribution are you using and what version?

I can't reproduce this build failure, so any detail that helps to
reproduce it would be great.

  Zoli


2012/7/28 Alan Grimes <agrimes-zY4eFNvK5D9If6P1QZMOBw@public.gmane.org>:
> ok, I still instinctively add "-j 6" to all my make commands, after
> managing to run single-threaded, here's the spew:
>
>
> atg <at> tortoise ~/source/ktechlab/ktechlab $ make
> [  0%] Built target ktlmath_automoc
> Scanning dependencies of target ktlmath
> [  1%] Building CXX object src/math/CMakeFiles/ktlmath.dir/ktlmath_automoc.o
> Linking CXX shared library ../../lib/libktlmath.so
> [  2%] Built target ktlmath
> [  2%] Built target mathtest_automoc
> Scanning dependencies of target mathtest
> [  3%] Building CXX object
> tests/math/CMakeFiles/mathtest.dir/mathtest_automoc.o
> [  3%] Building CXX object
> tests/math/CMakeFiles/mathtest.dir/matrixtester.o
>
> /home/atg/source/ktechlab/ktechlab/tests/math/matrixtester.cpp: In
> member function ‘double MatrixTester::differenceOfVectors(const
> VectorXd&, const KTechLab::QuickVector&)’:
> /home/atg/source/ktechlab/ktechlab/tests/math/matrixtester.cpp:80:36:
> warning: comparison between signed and unsigned integer expressions
> [-Wsign-compare]
> /home/atg/source/ktechlab/ktechlab/tests/math/matrixtester.cpp:85:33:
> warning: comparison between signed and unsigned integer expressions
> [-Wsign-compare]
> Linking CXX executable mathtest
> [  3%] Built target mathtest
> [  3%] Built target ktlsimulator_automoc
> [ 50%] Built target ktlsimulator
> [ 50%] Generating moc_simulatortest.cxx
> Scanning dependencies of target compiled_simulator
> [ 51%] Building CXX object
> tests/minimal_simulator/CMakeFiles/compiled_simulator.dir/simulatortest.o
> /home/atg/source/ktechlab/ktechlab/tests/minimal_simulator/simulatortest.cpp:
> In member function ‘void
> SimulatorTest::testSourceAnd4ResistanceInParallel()’:
> /home/atg/source/ktechlab/ktechlab/tests/minimal_simulator/simulatortest.cpp:466:5:
> warning: unused variable ‘pin’ [-Wunused-variable]
> /home/atg/source/ktechlab/ktechlab/tests/minimal_simulator/simulatortest.cpp:470:5:
> warning: unused variable ‘wire’ [-Wunused-variable]
> /home/atg/source/ktechlab/ktechlab/tests/minimal_simulator/simulatortest.cpp:
> In member function ‘void SimulatorTest::testComponent_capacitor()’:
> /home/atg/source/ktechlab/ktechlab/tests/minimal_simulator/simulatortest.cpp:859:60:
> warning: comparison between signed and unsigned integer expressions
> [-Wsign-compare]
> /home/atg/source/ktechlab/ktechlab/tests/minimal_simulator/simulatortest.cpp:887:58:
> warning: comparison between signed and unsigned integer expressions
> [-Wsign-compare]
> /home/atg/source/ktechlab/ktechlab/tests/minimal_simulator/simulatortest.cpp:909:58:
> warning: comparison between signed and unsigned integer expressions
> [-Wsign-compare]
> /home/atg/source/ktechlab/ktechlab/tests/minimal_simulator/simulatortest.cpp:
> In member function ‘void SimulatorTest::testComponent_inductor()’:
> /home/atg/source/ktechlab/ktechlab/tests/minimal_simulator/simulatortest.cpp:981:51:
> warning: comparison between signed and unsigned integer expressions
> [-Wsign-compare]
> /home/atg/source/ktechlab/ktechlab/tests/minimal_simulator/simulatortest.cpp:
> In member function ‘void SimulatorTest::testComponent_ecVoltageSignal()’:
> /home/atg/source/ktechlab/ktechlab/tests/minimal_simulator/simulatortest.cpp:1040:56:
> warning: comparison between signed and unsigned integer expressions
> [-Wsign-compare]
> /home/atg/source/ktechlab/ktechlab/tests/minimal_simulator/simulatortest.cpp:
> In member function ‘void SimulatorTest::testComponent_ecCurrentSignal()’:
> /home/atg/source/ktechlab/ktechlab/tests/minimal_simulator/simulatortest.cpp:1100:56:
> warning: comparison between signed and unsigned integer expressions
> [-Wsign-compare]
> /home/atg/source/ktechlab/ktechlab/tests/minimal_simulator/simulatortest.cpp:
> In member function ‘void SimulatorTest::testComponent_ecDiode()’:
> /home/atg/source/ktechlab/ktechlab/tests/minimal_simulator/simulatortest.cpp:1146:18:
> warning: unused variable ‘voltageValues’ [-Wunused-variable]
> [ 51%] Building CXX object
> tests/minimal_simulator/CMakeFiles/com
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Ktechlab-devel mailing list
Ktechlab-devel@...
https://lists.sourceforge.net/lists/listinfo/ktechlab-devel

Gmane