Error During Startup Cannot Load Library Libinet.so
von GoogleAnmeldenAusgeblendete FelderNach Gruppen oder Nachrichten suchen
von GoogleAnmeldenAusgeblendete FelderNach Gruppen oder Nachrichten suchen
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn http://stackoverflow.com/questions/32695871/error-during-startup-cannot-load-library-in-omnet-project-while-using-sql more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow https://dev.omnetpp.org/bugs/view.php?id=102 Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Error during startup: Cannot load library in OMNET++ error during project while using sqlite3 up vote 0 down vote favorite I have an OMNET++ project, CSW, that references other OMNET++ projects via Project->Properties->Project References. The reference to the project CB_CSW_Vehicle works fine. I marked for this project Project->Properties->OMNET++->Makemake->Options->Target as shared library. So I have a libCB_CSW_Vehicle.dll, which is used by the main project CSW. Simulations from CSW run, using CB_CSW_Vehicle without problems. The reference to the other project error during startup CB_CSW_Cloud, doesn't work. I made the same steps for it: marked "create shared library" in OMNET++->Makemake->Options->Target checked the project CB_CSW_Cloud in Properties->Project References of the main project I can build my main project CSW. I can also build libCB_CSW_Cloud.dll. When I run a simulation from project CSW, I receive an error: Error during startup: Cannot load library '../../../CB_CSW_Cloud/src//libCB_CSW_Cloud.dll': The operation completed successfully. The only difference between these two projects, is that CB_CSW_Cloud uses sqlite3 library. I added it to the project with following steps: set Project->Properties->OMNET++->Makemake->Options->Link->Additional Libraries to link with (-l option): sqlite3 set Project->Properties->C/C++General->Paths And Symbols->Library Paths: C:/sqlite Since I don't receive some exact information, why libCB_CSW_Cloud was not loaded, I don't know what causes the problem. I use it in exactly the same way, as other project CB_CSW_Vehicle, that works. This leads me to the suggestion, that the sqlite3 library causes the problem. Is it possible? Can a project CSW have a reference to the other project CB_CSW_Cloud, that itself uses a library sqlite3? Or shall I also add this library to CSW? Can you help me to run the CSW project? Update: I solved my problem with adding sqlite3 library to the run configuration and copying the
simulation launcherpublic2009-09-04 10:132009-10-26 16:39ReporterrhornigAssigned TolevyPrioritynormalSeverityminorReproducibilityalwaysStatusresolvedResolutionfixedPlatformOSOS VersionProduct Version4.0Target VersionFixed in Version4.1Summary0000102: Usability issue when starting a simulation built as a shared libraryDescriptionEvery week 3-4 people are asking help on mailing list about: Error during startup: Cannot load library 'C:/omnetpp-4.0/samples/ inetmanet/src//libinet.dll': The specified module could not be found. OMNeT++ Discrete Event Simulation (C) 1992-2008 Andras Varga, OpenSim Ltd. This is the result, that they are trying to run an example while the build process was unsuccessful. The above message is somewhat misleading for a beginner, and does not tell what is the problem. We should implement an additional check that checks for the required libraries and their existence before trying to lanunch with opp_run. If the library does not exisist it should direct the user to build it (and advise that probably there are errors during build.) Also we should extend our run scripts with a check. They should report meningfule message if the shared lib does not exisit (inseat of blindly starting opp_run)TagsNo tags attached.Attached Files Relationships Relationships Notes (0000191) levy (developer) 2009-10-26 16:02 This bug is similar to 0000103, but it is not the same. There might be other errors preventing the simulation to be successfully started which do not create error markers. An example of that would be insufficient write permissions to the output directory, or something similar which prevents outputting the executable. (0000192) levy (developer) 2009-10-26 16:39 After actually checking this in the IDE it turns out to be resolved by the bug 0000103. In other words, checking the error markers on the related projects seems to be sufficient. Tried with an mkdir command that fails due to an already existing directory. Notes Issue History Date Modified Username Field Change 2009-09-04 10:13 rhornig New Issue 2009-09-04 10:14 rhornig Summary People are => Usability issue when starting a simulation built as a shared library 2009-10-26 16:02 levy Note Added: 0000191 2009-10-26 16:36 levy Assigned To => levy 2009-10-26 16:39 levy Note Added: 0000192 2009-10-26 16:39 levy Status new => resolved 2009-10-26 16:39 levy Fixed in Version => 4.1 2009-10-26 16:39 levy Resolution open => fixed Issue History Copyright © 2000 - 2016 MantisBT Team