c++ dynamic library linking in MacOsX - c++

If you want to watch source codes, download them here goo.gl/pGJwn1.
When i've written my program all files were in a unique directory and the compiling was ok.
Now i want to create a dynamic library for each package and link them.
I'm using a MacOsX.
When I compile the "AnalysisFramework" package i use this command
c++-4.8 -std=c++0x -fPIC -shared -o libAnalysisFramework.so *.cc -I../ -I. -Wall and all it's ok.
The problems occurs when i try to compile the "AnalysisObjects" package. In fact, using the same command the compiler returns these errors
Undefined symbols for architecture x86_64:
"Event::minSize()", referenced from:
BraggStatistic::BraggStatistic(int, int) in ccWYudnZ.o
BraggStatistic::BraggStatistic(int, int) in ccWYudnZ.o
BraggStatistic::add(Event const&) in ccWYudnZ.o
BraggStatistic::compute() in ccWYudnZ.o
TotalEnergy::update(Event const&) in ccoA1A2B.o
"Constants::bgMean", referenced from:
BraggStatistic::compute() in ccWYudnZ.o
TotalEnergy::energy() in ccoA1A2B.o
"Event::energy(unsigned int) const", referenced from:
BraggStatistic::add(Event const&) in ccWYudnZ.o
TotalEnergy::update(Event const&) in ccoA1A2B.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
It doesn't find the functions definitions that are in the other directory. Is it normal? How fix?
I've these directory with source codes.
|____AnalysisFramework
| |____AnalysisFactory.cc
| |____AnalysisFactory.h
| |____AnalysisInfo.cc
| |____AnalysisInfo.h
| |____AnalysisSteering.cc
| |____AnalysisSteering.h
| |____Event.cc
| |____Event.h
| |____EventReadFromFile.cc
| |____EventReadFromFile.h
| |____EventSim.cc
| |____EventSim.h
| |____EventSource.cc
| |____EventSource.h
| |____main.cc
| |____SourceFactory.cc
| |____SourceFactory.h
|____AnalysisObjects
| |____BraggStatistic.cc
| |____BraggStatistic.h
| |____TotalEnergy.cc
| |____TotalEnergy.h
|____AnalysisPlugins
| |____BGCalc.cc
| |____BGCalc.h
| |____EnergyDist.cc
| |____EnergyDist.h
| |____EventDump.cc
| |____EventDump.h
|____AnalysisUtilities
| |____Constants.cc
| |____Constants.h
|____braggPlot_v06.txt
|____compile
|____util
| |____.DS_Store
| |____class
| | |____cloneClass
| | |____createClass.cc
| | |____info
| |____include
| | |____.DS_Store
| | |____ActiveObserver.h
| | |____ActiveObserver.hpp
| | |____Dispatcher.h
| | |____Dispatcher.hpp
| | |____LazyObserver.h
| | |____LazyObserver.hpp
| | |____Random.h
| | |____Singleton.h
| | |____Singleton.hpp
| |____info
| |____lib
| |____src
| | |____random
| | | |____base
| | | | |____compile
| | | | |____Random.cc
| | | |____info
| | | |____root
| | | | |____compile
| | | | |____RootRandom.cc
| | | | |____RootRandom.h
| | | |____std
| | | | |____compile
| | | | |____StdRandom.cc
| | | | |____StdRandom.h
| | | |____test
| | | | |____compileRandom
| | | | |____testRandom.cc

Related

Physx - linking problem with come functions (__imp_PxCreateBasePhysics referenced in function...)

I'm trying to implement PhysX into my game engine, but I have got some weird problems with linking the PhysX library. It always fails no matter what I do, but snippets from Nvidia works like a charm. I will try to describe what I did and I hope someone will find what I'm missing.
First of all, I downloaded PhysX 4.1 from Github. Then I changed buildtools settings to those:
<?xml version="1.0" encoding="utf-8"?>
<preset name="vc15win64" comment="VC15 Win64 PhysX general settings">
<platform targetPlatform="win64" compiler="vc15" />
<CMakeSwitches>
<cmakeSwitch name="PX_BUILDSNIPPETS" value="True" comment="Generate the snippets" />
<cmakeSwitch name="PX_BUILDPUBLICSAMPLES" value="True" comment="Generate the samples projects" />
<cmakeSwitch name="PX_GENERATE_STATIC_LIBRARIES" value="True" comment="Generate static libraries" />
<cmakeSwitch name="NV_USE_STATIC_WINCRT" value="False" comment="Use the statically linked windows CRT" />
<cmakeSwitch name="NV_USE_DEBUG_WINCRT" value="True" comment="Use the debug version of the CRT" />
<cmakeSwitch name="PX_FLOAT_POINT_PRECISE_MATH" value="True" comment="Float point precise math" />
</CMakeSwitches>
<CMakeParams>
<cmakeParam name="CMAKE_INSTALL_PREFIX" value="install/vc15win64/PhysX" comment="Install path relative to PhysX SDK root" />
</CMakeParams>
</preset>
Then I used bat script to generate Visual Studio 2017 project for static linking and for runtime static libraries. Then I compiled the project in debug and release version. SnippestHelloWorld works without any problems. So far so good. So I created new project in Visual Studio 2017 and I selected x64 processor architecture (like in PhysX xml configuration). Then I included header files the same way as in SnippestHelloWorld. Here is a tree:
| PxActor.h
| PxAggregate.h
| PxArticulation.h
| PxArticulationBase.h
| PxArticulationJoint.h
| PxArticulationJointReducedCoordinate.h
| PxArticulationLink.h
| PxArticulationReducedCoordinate.h
| PxBatchQuery.h
| PxBatchQueryDesc.h
| PxBroadPhase.h
| PxClient.h
| PxConfig.h
| PxConstraint.h
| PxConstraintDesc.h
| PxContact.h
| PxContactModifyCallback.h
| PxDeletionListener.h
| PxFiltering.h
| PxForceMode.h
| PxFoundation.h
| PxImmediateMode.h
| PxLockedData.h
| PxMaterial.h
| PxPhysics.h
| PxPhysicsAPI.h
| PxPhysicsSerialization.h
| PxPhysicsVersion.h
| PxPhysXConfig.h
| PxPruningStructure.h
| PxQueryFiltering.h
| PxQueryReport.h
| PxRigidActor.h
| PxRigidBody.h
| PxRigidDynamic.h
| PxRigidStatic.h
| PxScene.h
| PxSceneDesc.h
| PxSceneLock.h
| PxShape.h
| PxSimulationEventCallback.h
| PxSimulationStatistics.h
| PxVisualizationParameter.h
| stack.txt
|
+---characterkinematic
| PxBoxController.h
| PxCapsuleController.h
| PxController.h
| PxControllerBehavior.h
| PxControllerManager.h
| PxControllerObstacles.h
| PxExtended.h
|
+---collision
| PxCollisionDefs.h
|
+---common
| | PxBase.h
| | PxCollection.h
| | PxCoreUtilityTypes.h
| | PxMetaData.h
| | PxMetaDataFlags.h
| | PxPhysicsInsertionCallback.h
| | PxPhysXCommonConfig.h
| | PxProfileZone.h
| | PxRenderBuffer.h
| | PxSerialFramework.h
| | PxSerializer.h
| | PxStringTable.h
| | PxTolerancesScale.h
| | PxTypeInfo.h
| |
| \---windows
| PxWindowsDelayLoadHook.h
|
+---cooking
| PxBVH33MidphaseDesc.h
| PxBVH34MidphaseDesc.h
| PxBVHStructureDesc.h
| Pxc.h
| PxConvexMeshDesc.h
| PxCooking.h
| PxMidphaseDesc.h
| PxTriangleMeshDesc.h
|
+---cudamanager
| PxCudaContextManager.h
| PxCudaMemoryManager.h
|
+---extensions
| PxBinaryConverter.h
| PxBroadPhaseExt.h
| PxCollectionExt.h
| PxConstraintExt.h
| PxContactJoint.h
| PxConvexMeshExt.h
| PxD6Joint.h
| PxD6JointCreate.h
| PxDefaultAllocator.h
| PxDefaultCpuDispatcher.h
| PxDefaultErrorCallback.h
| PxDefaultSimulationFilterShader.h
| PxDefaultStreams.h
| PxDistanceJoint.h
| PxExtensionsAPI.h
| PxFixedJoint.h
| PxJoint.h
| PxJointLimit.h
| PxMassProperties.h
| PxPrismaticJoint.h
| PxRaycastCCD.h
| PxRepXSerializer.h
| PxRepXSimpleType.h
| PxRevoluteJoint.h
| PxRigidActorExt.h
| PxRigidBodyExt.h
| PxSceneQueryExt.h
| PxSerialization.h
| PxShapeExt.h
| PxSimpleFactory.h
| PxSmoothNormals.h
| PxSphericalJoint.h
| PxStringTableExt.h
| PxTriangleMeshExt.h
|
+---filebuf
| PxFileBuf.h
|
+---foundation
| | Px.h
| | PxAllocatorCallback.h
| | PxAssert.h
| | PxBitAndData.h
| | PxBounds3.h
| | PxErrorCallback.h
| | PxErrors.h
| | PxFlags.h
| | PxFoundationConfig.h
| | PxIntrinsics.h
| | PxIO.h
| | PxMat33.h
| | PxMat44.h
| | PxMath.h
| | PxMathUtils.h
| | PxMemory.h
| | PxPlane.h
| | PxPreprocessor.h
| | PxProfiler.h
| | PxQuat.h
| | PxSharedAssert.h
| | PxSimpleTypes.h
| | PxStrideIterator.h
| | PxTransform.h
| | PxUnionCast.h
| | PxVec2.h
| | PxVec3.h
| | PxVec4.h
| |
| +---unix
| | PxUnixIntrinsics.h
| |
| \---windows
| PxWindowsIntrinsics.h
|
+---geometry
| PxBoxGeometry.h
| PxBVHStructure.h
| PxCapsuleGeometry.h
| PxConvexMesh.h
| PxConvexMeshGeometry.h
| PxGeometry.h
| PxGeometryHelpers.h
| PxGeometryQuery.h
| PxHeightField.h
| PxHeightFieldDesc.h
| PxHeightFieldFlag.h
| PxHeightFieldGeometry.h
| PxHeightFieldSample.h
| PxMeshQuery.h
| PxMeshScale.h
| PxPlaneGeometry.h
| PxSimpleTriangleMesh.h
| PxSphereGeometry.h
| PxTriangle.h
| PxTriangleMesh.h
| PxTriangleMeshGeometry.h
|
+---geomutils
| GuContactBuffer.h
| GuContactPoint.h
|
+---gpu
| PxGpu.h
|
+---pvd
| PxPvd.h
| PxPvdSceneClient.h
| PxPvdTransport.h
|
+---solver
| PxSolverDefs.h
|
+---task
| PxCpuDispatcher.h
| PxTask.h
| PxTaskDefine.h
| PxTaskManager.h
|
\---vehicle
PxVehicleComponents.h
PxVehicleDrive.h
PxVehicleDrive4W.h
PxVehicleDriveNW.h
PxVehicleDriveTank.h
PxVehicleNoDrive.h
PxVehicleSDK.h
PxVehicleShaders.h
PxVehicleTireFriction.h
PxVehicleUpdate.h
PxVehicleUtil.h
PxVehicleUtilControl.h
PxVehicleUtilSetup.h
PxVehicleUtilTelemetry.h
PxVehicleWheels.h
I think those are all required header files. Then I added this list of lib files for linked (even some of them are unnecessary in my opinion):
PhysX_static_64.lib
PhysXPvdSDK_static_64.lib
PhysXVehicle_static_64.lib
PhysXCharacterKinematic_static_64.lib
CPhysXExtensions_static_64.lib
PhysXCooking_static_64.lib
PhysXCommon_static_64.lib
PhysXFoundation_static_64.lib
SnippetUtils_static_64.lib
SnippetRender_static_64.lib
And then I created a really simple C++ code to test if it works:
#include "PxPhysicsAPI.h"
int main()
{
auto Allocator = physx::PxDefaultAllocator();
auto ErrorCallback = physx::PxDefaultErrorCallback();
auto Foundation = PxCreateFoundation(PX_PHYSICS_VERSION, Allocator, ErrorCallback);
auto PhysXVisualDebugger = PxCreatePvd(*Foundation);
const auto transport = physx::PxDefaultPvdSocketTransportCreate("127.0.0.1", 5425, 10);
PhysXVisualDebugger->connect(*transport, physx::PxPvdInstrumentationFlag::eALL);
auto Physics = PxCreatePhysics(PX_PHYSICS_VERSION, *Foundation, physx::PxTolerancesScale(), true, PhysXVisualDebugger);
physx::PxSceneDesc sceneDesc(Physics->getTolerancesScale());
sceneDesc.gravity = physx::PxVec3(0.0f, -9.81f, 0.0f);
auto Dispatcher = physx::PxDefaultCpuDispatcherCreate(2);
sceneDesc.cpuDispatcher = Dispatcher;
sceneDesc.filterShader = physx::PxDefaultSimulationFilterShader;
auto Scene = Physics->createScene(sceneDesc);
auto pvdClient = Scene->getScenePvdClient();;
pvdClient->setScenePvdFlag(physx::PxPvdSceneFlag::eTRANSMIT_CONSTRAINTS, true);
pvdClient->setScenePvdFlag(physx::PxPvdSceneFlag::eTRANSMIT_CONTACTS, true);
pvdClient->setScenePvdFlag(physx::PxPvdSceneFlag::eTRANSMIT_SCENEQUERIES, true);
}
And... It just doesn't work. I always get this error from linker when I try to compile my simple project:
It might sound funny, but I tried almost everything. I event know which line couses this error, becuase if I remove calling PxCreatePhysics it compiles without any problems. Only this one line has got some weird problem with linking and I do not understand it.
What should I try to resolve this? I do not even know where to look for an answer. I have got compiled PhysX library compiled for correct CPU Architecture and for correct Runtime libraries, with the same sompiler and with the same machine, why examples by Nvidia works and my code doesn't?
I found the answer to my question. You need to add this preprocessor definition:
PX_PHYSX_STATIC_LIB
Or you can include PxConfig.h header file before other imports, but I wouldn't recommend this method, because IDE will be informing you all the time, that this import is unnecessary (which is not true at all).

Openedx Django how to remove a country from Country list?

I want to disable a country from country list of my register page ,settings or anywhere country is shown on My Openedx App (OpenEdx is a django based system). But i cannot find country list for removing the country . Where locate the countries? I need to remove it . Django uses django_countries.fields class
Those are my tables on mysql :
+------------------------------------------------------------------+
| Tables_in_edxapp |
+------------------------------------------------------------------+
| api_admin_apiaccessconfig |
| api_admin_apiaccessrequest |
| api_admin_historicalapiaccessrequest |
| assessment_aiclassifier |
| assessment_aiclassifierset |
| assessment_aigradingworkflow |
| assessment_aitrainingworkflow |
| assessment_aitrainingworkflow_training_examples |
| assessment_assessment |
| assessment_assessmentfeedback |
| assessment_assessmentfeedback_assessments |
| assessment_assessmentfeedback_options |
| assessment_assessmentfeedbackoption |
| assessment_assessmentpart |
| assessment_criterion |
| assessment_criterionoption |
| assessment_peerworkflow |
| assessment_peerworkflowitem |
| assessment_rubric |
| assessment_staffworkflow |
| assessment_studenttrainingworkflow |
| assessment_studenttrainingworkflowitem |
| assessment_trainingexample |
| assessment_trainingexample_options_selected |
| auth_group |
| auth_group_permissions |
| auth_permission |
| auth_registration |
| auth_user |
| auth_user_groups |
| auth_user_user_permissions |
| auth_userprofile |
| badges_badgeassertion |
| badges_badgeclass |
| badges_coursecompleteimageconfiguration |
| badges_courseeventbadgesconfiguration |
| block_structure |
| block_structure_config |
| bookmarks_bookmark |
| bookmarks_xblockcache |
| branding_brandingapiconfig |
| branding_brandinginfoconfig |
| bulk_email_bulkemailflag |
| bulk_email_cohorttarget |
| bulk_email_courseauthorization |
| bulk_email_courseemail |
| bulk_email_courseemail_targets |
| bulk_email_courseemailtemplate |
| bulk_email_coursemodetarget |
| bulk_email_optout |
| bulk_email_target |
| catalog_catalogintegration |
| celery_taskmeta |
| celery_tasksetmeta |
| celery_utils_chorddata |
| celery_utils_chorddata_completed_results |
| celery_utils_failedtask |
| certificates_certificategenerationconfiguration |
| certificates_certificategenerationcoursesetting |
| certificates_certificategenerationhistory |
| certificates_certificatehtmlviewconfiguration |
| certificates_certificateinvalidation |
| certificates_certificatetemplate |
| certificates_certificatetemplateasset |
| certificates_certificatewhitelist |
| certificates_examplecertificate |
| certificates_examplecertificateset |
| certificates_generatedcertificate |
| commerce_commerceconfiguration |
| contentserver_cdnuseragentsconfig |
| contentserver_courseassetcachettlconfig |
| contentstore_pushnotificationconfig |
| contentstore_videouploadconfig |
| cors_csrf_xdomainproxyconfiguration |
| corsheaders_corsmodel |
| course_action_state_coursererunstate |
| course_creators_coursecreator |
| course_groups_cohortmembership |
| course_groups_coursecohort |
| course_groups_coursecohortssettings |
| course_groups_courseusergroup |
| course_groups_courseusergroup_users |
| course_groups_courseusergrouppartitiongroup |
| course_groups_unregisteredlearnercohortassignments |
| course_modes_coursemode |
| course_modes_coursemodeexpirationconfig |
| course_modes_coursemodesarchive |
| course_overviews_courseoverview |
| course_overviews_courseoverviewimageconfig |
| course_overviews_courseoverviewimageset |
| course_overviews_courseoverviewtab |
| course_structures_coursestructure |
| courseware_offlinecomputedgrade |
| courseware_offlinecomputedgradelog |
| courseware_studentfieldoverride |
| courseware_studentmodule |
| courseware_studentmodulehistory |
| courseware_xmodulestudentinfofield |
| courseware_xmodulestudentprefsfield |
| courseware_xmoduleuserstatesummaryfield |
| crawlers_crawlersconfig |
| credentials_credentialsapiconfig |
| credit_creditconfig |
| credit_creditcourse |
| credit_crediteligibility |
| credit_creditprovider |
| credit_creditrequest |
| credit_creditrequirement |
| credit_creditrequirementstatus |
| credit_historicalcreditrequest |
| credit_historicalcreditrequirementstatus |
| dark_lang_darklangconfig |
| django_admin_log |
| django_comment_client_permission |
| django_comment_client_permission_roles |
| django_comment_client_role |
| django_comment_client_role_users |
| django_comment_common_coursediscussionsettings |
| django_comment_common_forumsconfig |
| django_content_type |
| django_migrations |
| django_openid_auth_association |
| django_openid_auth_nonce |
| django_openid_auth_useropenid |
| django_redirect |
| django_session |
| django_site |
| djcelery_crontabschedule |
| djcelery_intervalschedule |
| djcelery_periodictask |
| djcelery_periodictasks |
| djcelery_taskstate |
| djcelery_workerstate |
| edxval_coursevideo |
| edxval_encodedvideo |
| edxval_profile |
| edxval_subtitle |
| edxval_video |
| email_marketing_emailmarketingconfiguration |
| embargo_country |
| embargo_countryaccessrule |
| embargo_courseaccessrulehistory |
| embargo_embargoedcourse |
| embargo_embargoedstate |
| embargo_ipfilter |
| embargo_restrictedcourse |
| enterprise_enrollmentnotificationemailtemplate |
| enterprise_enterprisecourseenrollment |
| enterprise_enterprisecustomer |
| enterprise_enterprisecustomerbrandingconfiguration |
| enterprise_enterprisecustomerentitlement |
| enterprise_enterprisecustomeridentityprovider |
| enterprise_enterprisecustomeruser |
| enterprise_historicalenrollmentnotificationemailtemplate |
| enterprise_historicalenterprisecourseenrollment |
| enterprise_historicalenterprisecustomer |
| enterprise_historicalenterprisecustomerentitlement |
| enterprise_historicaluserdatasharingconsentaudit |
| enterprise_pendingenrollment |
| enterprise_pendingenterprisecustomeruser |
| enterprise_userdatasharingconsentaudit |
| experiments_experimentdata |
| experiments_experimentkeyvalue |
| external_auth_externalauthmap |
| grades_computegradessetting |
| grades_coursepersistentgradesflag |
| grades_persistentcoursegrade |
| grades_persistentgradesenabledflag |
| grades_persistentsubsectiongrade |
| grades_visibleblocks |
| instructor_task_gradereportsetting |
| instructor_task_instructortask |
| integrated_channel_enterpriseintegratedchannel |
| lms_xblock_xblockasidesconfig |
| microsite_configuration_historicalmicrositeorganizationmapping |
| microsite_configuration_historicalmicrositetemplate |
| microsite_configuration_microsite |
| microsite_configuration_micrositehistory |
| microsite_configuration_micrositeorganizationmapping |
| microsite_configuration_micrositetemplate |
| milestones_coursecontentmilestone |
| milestones_coursemilestone |
| milestones_milestone |
| milestones_milestonerelationshiptype |
| milestones_usermilestone |
| mobile_api_appversionconfig |
| mobile_api_ignoremobileavailableflagconfig |
| mobile_api_mobileapiconfig |
| notes_note |
| notify_notification |
| notify_notificationtype |
| notify_settings |
| notify_subscription |
| oauth2_accesstoken |
| oauth2_client |
| oauth2_grant |
| oauth2_provider_accesstoken |
| oauth2_provider_application |
| oauth2_provider_grant |
| oauth2_provider_refreshtoken |
| oauth2_provider_trustedclient |
| oauth2_refreshtoken |
| oauth_dispatch_restrictedapplication |
| oauth_provider_consumer |
| oauth_provider_nonce |
| oauth_provider_scope |
| oauth_provider_token |
| organizations_organization |
| organizations_organizationcourse |
| proctoring_proctoredexam |
| proctoring_proctoredexamreviewpolicy |
| proctoring_proctoredexamreviewpolicyhistory |
| proctoring_proctoredexamsoftwaresecurereview |
| proctoring_proctoredexamsoftwaresecurereviewhistory |
| proctoring_proctoredexamstudentallowance |
| proctoring_proctoredexamstudentallowancehistory |
| proctoring_proctoredexamstudentattempt |
| proctoring_proctoredexamstudentattemptcomment |
| proctoring_proctoredexamstudentattempthistory |
| programs_programsapiconfig |
| rss_proxy_whitelistedrssurl |
| sap_success_factors_catalogtransmissionaudit |
| sap_success_factors_historicalsapsuccessfactorsenterprisecus80ad |
| sap_success_factors_learnerdatatransmissionaudit |
| sap_success_factors_sapsuccessfactorsenterprisecustomerconfidb8a |
| sap_success_factors_sapsuccessfactorsglobalconfiguration |
| self_paced_selfpacedconfiguration |
| shoppingcart_certificateitem |
| shoppingcart_coupon |
| shoppingcart_couponredemption |
| shoppingcart_courseregcodeitem |
| shoppingcart_courseregcodeitemannotation |
| shoppingcart_courseregistrationcode |
| shoppingcart_courseregistrationcodeinvoiceitem |
| shoppingcart_donation |
| shoppingcart_donationconfiguration |
| shoppingcart_invoice |
| shoppingcart_invoicehistory |
| shoppingcart_invoiceitem |
| shoppingcart_invoicetransaction |
| shoppingcart_order |
| shoppingcart_orderitem |
| shoppingcart_paidcourseregistration |
| shoppingcart_paidcourseregistrationannotation |
| shoppingcart_registrationcoderedemption |
| site_configuration_siteconfiguration |
| site_configuration_siteconfigurationhistory |
| social_auth_association |
| social_auth_code |
| social_auth_nonce |
| social_auth_partial |
| social_auth_usersocialauth |
| splash_splashconfig |
| static_replace_assetbaseurlconfig |
| static_replace_assetexcludedextensionsconfig |
| status_coursemessage |
| status_globalstatusmessage |
| student_anonymoususerid |
| student_courseaccessrole |
| student_courseenrollment |
| student_courseenrollmentallowed |
| student_courseenrollmentattribute |
| student_dashboardconfiguration |
| student_enrollmentrefundconfiguration |
| student_entranceexamconfiguration |
| student_historicalcourseenrollment |
| student_languageproficiency |
| student_linkedinaddtoprofileconfiguration |
| student_loginfailures |
| student_logoutviewconfiguration |
| student_manualenrollmentaudit |
| student_passwordhistory |
| student_pendingemailchange |
| student_pendingnamechange |
| student_registrationcookieconfiguration |
| student_userattribute |
| student_usersignupsource |
| student_userstanding |
| student_usertestgroup |
| student_usertestgroup_users |
| submissions_score |
| submissions_scoreannotation |
| submissions_scoresummary |
| submissions_studentitem |
| submissions_submission |
| survey_surveyanswer |
| survey_surveyform |
| tagging_tagavailablevalues |
| tagging_tagcategories |
| teams_courseteam |
| teams_courseteammembership |
| theming_sitetheme |
| third_party_auth_ltiproviderconfig |
| third_party_auth_oauth2providerconfig |
| third_party_auth_providerapipermissions |
| third_party_auth_samlconfiguration |
| third_party_auth_samlproviderconfig |
| third_party_auth_samlproviderdata |
| thumbnail_kvstore |
| track_trackinglog |
| user_api_usercoursetag |
| user_api_userorgtag |
| user_api_userpreference |
| user_tasks_usertaskartifact |
| user_tasks_usertaskstatus |
| util_ratelimitconfiguration |
| verified_track_content_verifiedtrackcohortedcourse |
| verify_student_historicalverificationdeadline |
| verify_student_icrvstatusemailsconfiguration |
| verify_student_incoursereverificationconfiguration |
| verify_student_skippedreverification |
| verify_student_softwaresecurephotoverification |
| verify_student_verificationcheckpoint |
| verify_student_verificationcheckpoint_photo_verification |
| verify_student_verificationdeadline |
| verify_student_verificationstatus |
| video_config_coursehlsplaybackenabledflag |
| video_config_hlsplaybackenabledflag |
| waffle_flag |
| waffle_flag_groups |
| waffle_flag_users |
| waffle_sample |
| waffle_switch |
| waffle_utils_waffleflagcourseoverridemodel |
| wiki_article |
| wiki_articleforobject |
| wiki_articleplugin |
| wiki_articlerevision |
| wiki_attachment |
| wiki_attachmentrevision |
| wiki_image |
| wiki_imagerevision |
| wiki_reusableplugin |
| wiki_reusableplugin_articles |
| wiki_revisionplugin |
| wiki_revisionpluginrevision |
| wiki_simpleplugin |
| wiki_urlpath |
| workflow_assessmentworkflow |
| workflow_assessmentworkflowcancellation |
| workflow_assessmentworkflowstep |
| xblock_config_courseeditltifieldsenabledflag |
| xblock_config_studioconfig |
| xblock_django_xblockconfiguration |
| xblock_django_xblockstudioconfiguration |
| xblock_django_xblockstudioconfigurationflag |
+------------------------------------------------------------------+
346 rows in set (0.00 sec)
I have solv this problem!
This is the resource for all countries on openedx /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django_countries/data.py
You need to restart your services after this action.
Good Luck!

SAS delete keyword deleted everything

I am using the following code to delete some rows from a dataset on a certain condition:
data MK_RETURN;
/*delete some data to solve the beta zero problem*/
if CUM_RETURN<RMIN then delete;
run;
However, I found out that the dataset MK_RETURN became not only empty, but also missing all the variables but CUM_RETURN and return.
Before the delete operation, the dataset contains six ~ seven variables. But after the delete operation, the dataset only contains two (empty variables), i.e. CUM_RETURN, RMIN.
What is wrong here?
The input data is something like
+--------+----------+------+--------------+--------------+-------------+----------+----------------+
| SYMBOL | DATE | time | CUM_RETURN | return_sec | RMIN | one_M | MK_RETURN_RATE |
+--------+----------+------+--------------+--------------+-------------+----------+----------------+
| A | 20130108 | 1 | 0 | | 0.00023571 | 1.90E-11 | 3.130243764 |
| A | 20130108 | 2 | | -0.00117855 | 0.000235988 | 1.90E-11 | 0.000274509 |
| A | 20130108 | 3 | 0.000471976 | 0.000471976 | 0.000235877 | 1.90E-11 | 6.86083E-05 |
| A | 20130108 | 4 | | -0.000471754 | 0.000235988 | 1.90E-11 | 6.86036E-05 |
| A | 20130108 | 5 | -0.000471976 | -0.000943953 | 0.000236211 | 1.90E-11 | 6.85989E-05 |
| A | 20130108 | 6 | | -0.002362112 | 0.000236771 | 1.90E-11 | 0 |
| A | 20130108 | 7 | 0.000711876 | 0.001183852 | 0.000236491 | 1.90E-11 | -0.000137188 |
| A | 20130108 | 8 | | 0.001300698 | 0.000236183 | 1.90E-11 | 0 |
| A | 20130108 | 9 | 0.000711876 | 0 | 0.000236183 | 1.90E-11 | 0 |
| A | 20130108 | 10 | | 0 | 0.000236183 | 1.90E-11 | 0.000137207 |
| A | 20130108 | 11 | 0.000711876 | 0 | 0.000236183 | 1.90E-11 | 0.000137188 |
| A | 20130108 | 12 | | 0.000590458 | 0.000236044 | 1.90E-11 | 6.85848E-05 |
| A | 20130108 | 13 | 0.000711876 | 0 | 0.000236044 | 1.90E-11 | 0 |
| A | 20130108 | 14 | | -0.000118022 | 0.000236072 | 1.90E-11 | -0.0003429 |
| A | 20130108 | 15 | 0.000711876 | 0 | 0.000236072 | 1.90E-11 | -0.000068604 |
+--------+----------+------+--------------+--------------+-------------+----------+----------------+
You didn't declare an input dataset (no set statement) - so you have created a new, empty dataset called MK_RETURN with two variables that were assigned as missing numerics given the absence of a definition.
Try the following (if not too late):
data MK_RETURN;
set INPUTDATASET; /* THIS is the line you need */
/*delete some data to solve the beta zero problem*/
if CUM_RETURN<RMIN then delete;
run;

Cannot link against LibUSB Visual Studio 2013. Linker error 2019 (LNK2019)

Apparently there's nothing I have more difficulty with than flipping switches in VS and using DLLs. No matter how many times I do it, I can never seem to get it right.
Anyway, I'm trying to link LibUSB against a test application. I've downloaded the Windows binaries from LibUSB.info and now I'd like to link it to my test project. My directory structure is as follows:
Folder PATH listing for volume Local Disk
Volume serial number is 00000200 1C56:6A00
C:.
| LibUSBTest.sdf
| LibUSBTest.sln
| out.txt
|
+---Debug
| LibUSBTest.pdb
|
+---ipch
| +---libusbtest-291f707a
| | libusbtest-85afab4d.ipch
| |
| \---libusbtest-e65e4917
| libusbtest-85afab4d.ipch
|
+---libusb
| | libusb-1.0.def
| | README.txt
| |
| +---examples
| | +---bin32
| | | fxload.exe
| | | listdevs.exe
| | | xusb.exe
| | |
| | +---bin64
| | | fxload.exe
| | | listdevs.exe
| | | xusb.exe
| | |
| | \---source
| | ezusb.c
| | ezusb.h
| | fxload.c
| | listdevs.c
| | stdint.h
| | xusb.c
| |
| +---include
| | \---libusb-1.0
| | libusb.h
| |
| +---MinGW32
| | +---dll
| | | libusb-1.0.dll
| | | libusb-1.0.dll.a
| | |
| | \---static
| | libusb-1.0.a
| |
| +---MinGW64
| | +---dll
| | | libusb-1.0.dll
| | | libusb-1.0.dll.a
| | |
| | \---static
| | libusb-1.0.a
| |
| +---MS32
| | +---dll
| | | libusb-1.0.dll
| | | libusb-1.0.lib
| | | libusb-1.0.pdb
| | |
| | \---static
| | libusb-1.0.lib
| |
| \---MS64
| +---dll
| | libusb-1.0.dll
| | libusb-1.0.lib
| | libusb-1.0.pdb
| |
| \---static
| libusb-1.0.lib
|
\---LibUSBTest
| LibUSBTest.cpp
| LibUSBTest.vcxproj
| LibUSBTest.vcxproj.filters
| ReadMe.txt
| stdafx.cpp
| stdafx.h
| targetver.h
|
\---Debug
| LibUSBTest.Build.CppClean.log
| LibUSBTest.log
| LibUSBTest.obj
| LibUSBTest.pch
| stdafx.obj
| vc120.idb
| vc120.pdb
|
\---LibUSBTest.tlog
cl.command.1.tlog
CL.read.1.tlog
CL.write.1.tlog
LibUSBTest.lastbuildstate
link-cvtres.read.1.tlog
link-cvtres.write.1.tlog
link-rc.read.1.tlog
link-rc.write.1.tlog
link.command.1.tlog
link.read.1.tlog
link.write.1.tlog
unsuccessfulbuild
| vc120.idb
| vc120.pdb
|
\---LibUSBTest.tlog
cl.command.1.tlog
CL.read.1.tlog
CL.write.1.tlog
LibUSBTest.lastbuildstate
link-cvtres.read.1.tlog
link-cvtres.write.1.tlog
link-rc.read.1.tlog
link-rc.write.1.tlog
link.command.1.tlog
link.read.1.tlog
link.write.1.tlog
unsuccessfulbuild
At the top of my source code, I've defined #pragma comment(lib, "libusb-1.0.lib") to add the library dependency.
Under Properties->VC++ Directories->Library Directories I've added $(SolutionDir)libusb\MS32\dll\ and for Include Directories I've added $(SolutionDir)libusb\include\libusb-1.0\
Just to be safe, under Properties->C/C++->General->Additional Include Directories I've added $(SolutionDir)libusb\include\libusb-1.0\
Finally, under Linker->General-> Additional Library Directories I've added $(SolutionDir)libusb\MS32\dll\
I'm assuming I need to copy the DLL and/or Lib file somewhere in the project directory, but even doing that manually hasn't helped matters.
Edit: Output Window Results
The output window caused me to reach the character limit, so I unfortunately had to resort to using PasteBin for that part.

N-level tree structure in android implementation

I want to implement a N-level tree structure in android. I have gone through the ExpandableListView, but it is applicable for only 2 or 3 levels. My requirement is as below...
CAR
|
|==Toyota
| |
| |==Sedan
| | |
| | |==Camry
| | | |
| | | |==Manufacture year
| | | |==Body Colour
| | | | |
| | | | |==Black
| | | | |==Blue
| | | | |==Red
| | | |
| | | |==Alloy Wheels
| | | |==CD player
| | | |==Petrol/Diesel
| | |
| | |==Yaris
| | |
| | |==Manufacture year
| | |==Body Colour
| | | |
| | | |==Black
| | | |==Blue
| | | |==Red
| | |
| | |==Alloy Wheels
| | |==CD player
| | |==Petrol/Diesel
| |
| |==Hatch Pack
| | |
| | |==Yaris
| | |
| | |==Manufacture year
| | |==Body Colour
| | | |
| | | |==Black
| | | |==Blue
| | | |==Red
| | |
| | |==Alloy Wheels
| | |==CD player
| | |==Petrol/Diesel
| |
| |
| |
| |==Four Wheel Drive
|
|
|==Mazda
|
| This section will have
| same classification as above
|
|==Nissan
|
| This section will have
| same classification as above
|
|==Ferrari
|
| This section will have
| same classification as above
|
|==Hyundai
|
| This section will have
| same classification as above
|
Do you ppl have any suggestions to implement this in Android. A sample code would be more helpful. Thanks in advance.