Error in MiXiM build (Win7 64bit)!

267 views
Skip to first unread message

Mehdi

unread,
May 7, 2012, 3:39:58 AM5/7/12
to omn...@googlegroups.com
Dear All

I had problem with MiXiM installation. I disabled makemake for nicTest 

Go to makemake project-properties (OMNeT++/Makemake) and disable the nicTest build by disabling the Build Makemake option (select "No Makefile" option). 
 
I did but now I am getting another error... I couldn't find any solution. I would appreciate if you can help me! the code is long so i just out the last part where error occurred. 

-Wl,-rpath,`abspath ../../out/gcc-debug/tests/power/utils` -Wl,-rpath,`abspath ../../out/gcc-debug/src/modules`  -L"c:/Users/src/omnetpp-4.2.2/lib/gcc" -L"c:/Users/src/omnetpp-4.2.2/lib" -loppmaind -u _cmdenv_lib -Wl,--no-as-needed -loppcmdenvd -loppenvird -loppsimd -lwsock32 -lstdc++ 
../../out/gcc-debug/tests/decider/DeciderTest.o: In function `SNRThresholdDecider':
c:\Users\src\omnetpp-4.2.2\samples\MiXiM\tests\decider/../../src/modules/phy/SNRThresholdDecider.h:127: undefined reference to `vtable for SNRThresholdDecider'
../../out/gcc-debug/tests/decider/DeciderTest.o: In function `~SNRThresholdDecider':
c:\Users\src\omnetpp-4.2.2\samples\MiXiM\tests\decider/../../src/modules/phy/SNRThresholdDecider.h:130: undefined reference to `vtable for SNRThresholdDecider'
../../out/gcc-debug/tests/decider/DeciderTest.o:DeciderTest.cc:(.rdata$_ZTV26TestSNRThresholdDeciderNew[vtable for TestSNRThresholdDeciderNew]+0x14): undefined reference to `SNRThresholdDecider::getChannelState() const'
../../out/gcc-debug/tests/decider/DeciderTest.o:DeciderTest.cc:(.rdata$_ZTV26TestSNRThresholdDeciderNew[vtable for TestSNRThresholdDeciderNew]+0x24): undefined reference to `SNRThresholdDecider::processNewSignal(AirFrame*)'
../../out/gcc-debug/tests/decider/DeciderTest.o:DeciderTest.cc:(.rdata$_ZTV26TestSNRThresholdDeciderNew[vtable for TestSNRThresholdDeciderNew]+0x2c): undefined reference to `SNRThresholdDecider::processSignalEnd(AirFrame*)'
../../out/gcc-debug/tests/decider/DeciderTest.o:DeciderTest.cc:(.rdata$_ZTV26TestSNRThresholdDeciderNew[vtable for TestSNRThresholdDeciderNew]+0x44): undefined reference to `SNRThresholdDecider::canAnswerCSR(BaseDecider::tCSRInfo const&)'
make[2]: Leaving directory `/c/Users/src/omnetpp-4.2.2/samples/MiXiM/tests/decider'
../../out/gcc-debug/tests/decider/DeciderTest.o:DeciderTest.cc:(.rdata$_ZTV26TestSNRThresholdDeciderNew[vtable for TestSNRThresholdDeciderNew]+0x4c): undefined reference to `SNRThresholdDecider::answerCSR(BaseDecider::tCSRInfo&)'
make[1]: Leaving directory `/c/Users/src/omnetpp-4.2.2/samples/MiXiM/tests'
../../out/gcc-debug/tests/decider/DeciderTest.o:DeciderTest.cc:(.rdata$_ZTV26TestSNRThresholdDeciderNew[vtable for TestSNRThresholdDeciderNew]+0x60): undefined reference to `SNRThresholdDecider::checkIfAboveThreshold(Mapping*, SimTime const&, SimTime const&) const'
collect2: ld returned 1 exit status
make[2]: *** [../../out/gcc-debug/tests/decider/decider.exe] Error 1
make[1]: *** [decider_dir] Error 2
make: *** [tests_dir] Error 2

HAOUARI Noureddine

unread,
May 19, 2012, 9:13:09 AM5/19/12
to omn...@googlegroups.com
Hi, The same problem in my machine, did you find how to fix it? Please if yes let me know how .

Michael

unread,
May 21, 2012, 1:11:14 AM5/21/12
to omn...@googlegroups.com
try to disable the tests build, or add following include in DeciderTest.cc: #include "SNRThresholdDecider.h"

Mehdi

unread,
May 22, 2012, 8:32:50 PM5/22/12
to omn...@googlegroups.com

Still have no clue :(

Mehdi

unread,
May 22, 2012, 8:33:30 PM5/22/12
to omn...@googlegroups.com
Thanks for your reply
but it didn't solve my problem. I added   #include "SNRThresholdDecider.h"  to the DeciderTest.cc but again I get exactly same error. I think the problem should come from the "SNRThresholdDecider.h" itself as error says.
Moreover, as you said I disabled tests build, it didn't work either :(
I get the following error:

**** Build of configuration gcc-debug for project MiXiM ****

make MODE=debug CONFIGNAME=gcc-debug all 
cd tests/radioState && make all
make[1]: Entering directory `/c/Users/src/omnetpp-4.2.2/samples/MiXiM/tests/radioState'
g++ -c -g -Wall   -I/usr/include -fno-stack-protector -DXMLPARSER=libxml -DWITH_PARSIM -DWITH_NETBUILDER  -I../../src/base/modules -I../../src/base/phyLayer -I../../src/base/connectionManager -I../../src/base/messages -I../../src/base/utils -I../testUtils -I. -Ic:/Users/src/omnetpp-4.2.2/include -o ../../out/gcc-debug/tests/radioState/TestPhyUtils.o TestPhyUtils.cc
g++ -Wl,--enable-auto-import -shared-libgcc -L/usr/bin -L/usr/lib -Wl,-rpath,c:/Users/src/omnetpp-4.2.2/lib -Wl,-rpath,. -o ../../out/gcc-debug/tests/radioState/radioState.exe  ../../out/gcc-debug/tests/radioState/TestPhyUtils.o  -Wl,--no-as-needed  -L../../out/gcc-debug/src/base -L../../out/gcc-debug/tests/testUtils -L../../out/gcc-debug/tests/power/utils -L../../out/gcc-debug/src/modules  -lmiximbase -lmiximmodules -lmiximtestUtils -Wl,-rpath,`abspath ../../out/gcc-debug/src/base` -Wl,-rpath,`abspath ../../out/gcc-debug/tests/testUtils` -Wl,-rpath,`abspath ../../out/gcc-debug/tests/power/utils` -Wl,-rpath,`abspath ../../out/gcc-debug/src/modules`  -L"c:/Users/src/omnetpp-4.2.2/lib/gcc" -L"c:/Users/src/omnetpp-4.2.2/lib" -loppmaind -u _cmdenv_lib -Wl,--no-as-needed -loppcmdenvd -loppenvird -loppsimd -lwsock32 -lstdc++ 
c:/users/src/omnetpp-4.2.2/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -lmiximbase
make[1]: Leaving directory `/c/Users/src/omnetpp-4.2.2/samples/MiXiM/tests/radioState'
c:/users/src/omnetpp-4.2.2/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -lmiximmodules
c:/users/src/omnetpp-4.2.2/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -lmiximtestUtils
collect2: ld returned 1 exit status
make[1]: *** [../../out/gcc-debug/tests/radioState/radioState.exe] Error 1
make: *** [tests__radioState_dir] Error 2

**** Build Finished **** 
 
On Monday, May 21, 2012 1:11:14 PM UTC+8, Michael wrote:
try to disable the tests build, or add following include in DeciderTest.cc: #include "SNRThresholdDecider.h"

Michael

unread,
May 23, 2012, 5:21:55 AM5/23/12
to omn...@googlegroups.com
To disable the test build you must go to "Project Properties" selecting makemake options and disable the build for the test folder.

Mehdi

unread,
May 23, 2012, 5:37:02 AM5/23/12
to omn...@googlegroups.com
This is exactly what I did! And I get that problem which I posted :(

Michael

unread,
May 23, 2012, 6:39:56 AM5/23/12
to omn...@googlegroups.com
... but if you disabled it in this way, why is make entering the ../MiXiM/tests/ directory?!
Reply all
Reply to author
Forward
0 new messages