More Compiling errors

Technical discussions related to CryptoNote repository and the forking process

More Compiling errors

Postby ikeman32 » Wed Nov 18, 2015 8:22 pm

It appears that Ubuntu 14.04 doesn't like make -j as it will run out of memory even with a 1G swapfile. Using just make to compile works until it runs into this error:

Code: Select all
Linking CXX executable integration_tests
libIntegrationTestLibrary.a(TestNetwork.cpp.o): In function `Tests::TestNetwork::addNode(Tests::TestNodeConfiguration const&)':
TestNetwork.cpp:(.text+0x2358): undefined reference to `Tests::InProcTestNode::InProcTestNode(Tests::TestNodeConfiguration const&, CryptoNote::Currency const&)'
libIntegrationTestLibrary.a(BaseFunctionalTests.cpp.o): In function `Tests::Common::BaseFunctionalTests::launchInprocTestnet(unsigned long, Tests::Common::BaseFunctionalTests::Topology)':
BaseFunctionalTests.cpp:(.text+0x200b): undefined reference to `Tests::InProcTestNode::InProcTestNode(Tests::TestNodeConfiguration const&, CryptoNote::Currency const&)'
libIntegrationTestLibrary.a(BaseFunctionalTests.cpp.o): In function `Tests::Common::BaseFunctionalTests::launchTestnetWithInprocNode(unsigned long, Tests::Common::BaseFunctionalTests::Topology)':
BaseFunctionalTests.cpp:(.text+0x352a): undefined reference to `Tests::InProcTestNode::InProcTestNode(Tests::TestNodeConfiguration const&, CryptoNote::Currency const&)'
collect2: error: ld returned 1 exit status
make[3]: *** [tests/integration_tests] Error 1
make[3]: Leaving directory `/VetCoin/build/release'
make[2]: *** [tests/CMakeFiles/IntegrationTests.dir/all] Error 2
make[2]: Leaving directory `/VetCoin/build/release'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/VetCoin/build/release'
make: *** [build-release] Error 2
ikeman32
 
Posts: 12
Joined: Tue Nov 17, 2015 1:05 am

Re: More Compiling errors

Postby *tech_star* » Fri Nov 20, 2015 1:45 pm

You can try this - in tests/CMakeLists.txt file
you have to find these lines:

target_link_libraries(IntegrationTests IntegrationTestLibrary Wallet NodeRpcProxy InProcessNode P2P Rpc Http Transfers Serialization System CryptoNoteCore Logging Common Crypto BlockchainExplorer gtest upnpc-static ${Boost_LIBRARIES})

and replace those with:

set(IntegrationTestsLibs IntegrationTestLibrary Wallet NodeRpcProxy InProcessNode P2P Rpc Http Transfers Serialization System CryptoNoteCore Logging Common Crypto BlockchainExplorer gtest upnpc-static ${Boost_LIBRARIES})
target_link_libraries(IntegrationTests ${IntegrationTestsLibs} ${IntegrationTestsLibs})

If this doesn't work, you can actually can pass on this mistake, if you're not going to run the tests, as it won't affect daemon and wallet.
*tech_star*
 
Posts: 35
Joined: Fri Mar 28, 2014 9:51 am

Re: More Compiling errors

Postby ikeman32 » Fri Nov 20, 2015 7:44 pm

That seemed to do the trick thanks.
ikeman32
 
Posts: 12
Joined: Tue Nov 17, 2015 1:05 am


Return to Reference Code & Forking

Who is online

Users browsing this forum: No registered users and 1 guest