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

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).

Related

Regular Expression for Census Tracts

I am working on making sure a form input is parsed correctly through google forms and I was trying to use my limited regex knowledge to make sure that people do not input tracts incorrectly.
usually a tract is given in an example such as 5129.01
All tracts in the county start with 5, have a second character that is either a 0 or a 1,and if it is a 1, the third character is either [0 - 3] else its [0-9].
I have a working expression but I would like to ensure that if the second character is a 1 the user wouldn't be able to enter a tract like 5150.01
This is what I have:
^5[0-1]([0-9]{2})(\.([0-9]{2}))?$
and this is what is not working:
^5[0-1](?(?<=1)\d|[0-3])(\.([0-9]{2}))?$
Any help would be appreciated thanks
I hope this answers your question, please comment and I can edit accordingly.
The pattern:
^(?:51[0-3]|50[0-9])[0-9](?:\.[0-9]{1,2})?$
A visual representation:
HTML implementation:
<input name="example" pattern="^(?:51[0-3]|50[0-9])[0-9](?:\.[0-9]{1,2})?$">
Value validation examples:
+----------+--------+
| Value | Status |
+----------+--------+
| 51 | fail |
| 510 | fail |
| 5101 | pass |
| 5111 | pass |
| 5121 | pass |
| 5131 | pass |
| 5141 | fail |
| 5102. | fail |
| 5102.1 | pass |
| 5102.12 | pass |
| 5102.123 | fail |
| 50 | fail |
| 500 | fail |
| 5001 | pass |
| 5011 | pass |
| 5021 | pass |
| 5031 | pass |
| 5041 | pass |
| 5051 | pass |
| 5061 | pass |
| 5071 | pass |
| 5081 | pass |
| 5091 | pass |
| 50911 | fail |
| 5092. | fail |
| 5092.1 | pass |
| 5092.12 | pass |
| 5092.123 | fail |
+----------+--------+

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!

"print_control_identifiers()" function doesn't get any info from a ComboBox on Dolphin Gamecube Emulator

I am using Dolphin 5.0-6711 gcb emulator which is one of the old versions and it use Qt5. I am trying to open "File->Tools->Start Netplay..." and starting a host from this new opened window named "Dolphin NetPlay Setup". I can edit Port, Nickname and select a game from ListBox. But i cannot select any items from "Connection Type" ComboBox which has Direct Connection and Treversal Server options. When I use print_control_identifiers() for "Dolphin NetPlay Setup" window, I could not see any ComboBox items. This is my output from print_control_identifiers() :
Dialog - 'Dolphin NetPlay Setup' (L627, T351, R1277, B854)
[u'Dolphin NetPlay Setup', u'Dialog', u'Dolphin NetPlay SetupDialog']
child_window(title="Dolphin NetPlay Setup", control_type="Window")
|
| Pane - 'panel' (L636, T389, R1268, B845)
| ['Pane', u'panelPane0', u'panelPane1', u'panel', u'panelPane',
u'panel0', u'panel1', u'Pane1', u'Pane0']
| child_window(title="panel", auto_id="-31967", control_type="Pane")
| |
| | Static - 'Connection Type:' (L642, T398, R756, B419)
| | [u'Connection Type:Static', u'Connection Type:1', u'Connection
Type:0', u'Static', u'Connection Type:Static1', u'Connection Type:Static0',
u'Static1', u'Static0', u'Connection Type:']
| | child_window(title="Connection Type:", auto_id="-31966",
control_type="Text")
| |
| | ComboBox - 'Connection Type:' (L762, T395, R950, B423)
| | [u'Connection Type:ComboBox', u'Connection Type:2', 'ComboBox']
| | child_window(title="Connection Type:", auto_id="-31965",
control_type="ComboBox")
| | |
| | | Static - 'Connection Type:' (L3, T3, R164, B25)
| | | [u'Connection Type:3', u'Connection Type:Static2', u'Static2']
| | | child_window(title="Connection Type:", control_type="Text")
| | |
| | | Button - 'Open' (L930, T396, R949, B422)
| | | [u'OpenButton', u'Button1', u'Button0', u'Open', 'Button']
| | | child_window(title="Open", auto_id="DropDown", control_type="Button")
| |
| | Static - 'Nickname:' (L642, T432, R711, B453)
| | [u'Nickname:', u'Nickname:Static', u'Static3']
| | child_window(title="Nickname:", auto_id="-31963", control_type="Text")
| |
| | Edit - 'Nickname:' (L762, T429, R950, B457)
| | [u'', u'0', u'Edit1', u'Nickname:Edit', u'1', 'Edit', u'Edit0']
| | child_window(title="Nickname:", auto_id="-31962", control_type="Edit")
| |
| | Button - 'Quit' (L1162, T804, R1262, B839)
| | ['Button2', u'Quit', u'QuitButton']
| | child_window(title="Quit", auto_id="-31960", control_type="Button")
| |
| | TabControl - '' (L642, T490, R1262, B798)
| | [u'2', u'TabControlHost', u'TabControlConnect', u'TabControl']
| | child_window(auto_id="-31959", control_type="Tab")
| | |
| | | Pane - 'panel' (L646, T519, R1258, B794)
| | | [u'panelPane2', u'panel2', 'Pane2']
| | | child_window(title="panel", auto_id="-31957", control_type="Pane")
| | | |
| | | | Static - 'Port:' (L652, T528, R682, B549)
| | | | [u'Port:', u'Port:Static', u'Static4']
| | | | child_window(title="Port:", auto_id="-31949", control_type="Text")
| | | |
| | | | Edit - 'Port:' (L688, T525, R823, B553)
| | | | [u'3', u'Port:Edit', 'Edit2']
| | | | child_window(title="Port:", auto_id="-31948", control_type="Edit")
| | | |
| | | | Button - 'Host' (L1152, T753, R1252, B788)
| | | | [u'Host1', u'Host0', u'Host', 'Button3', u'HostButton']
| | | | child_window(title="Host", auto_id="-31945", control_type="Button")
| | | |
| | | | ListBox - '' (L652, T559, R1252, B747)
| | | | [u'4', u'ListBox']
| | | | child_window(auto_id="-31944", control_type="List")
| | | | |
| | | | | ListItem - 'CAPCOM VS. SNK 2 EO (GEOE08)' (L654, T561, R1250, B581)
| | | | | [u'ListItem', u'CAPCOM VS. SNK 2 EO (GEOE08)', u'CAPCOM VS. SNK 2 EO (GEOE08)ListItem']
| | | | | child_window(title="CAPCOM VS. SNK 2 EO (GEOE08)", control_type="ListItem")
| | | |
| | | | CheckBox - 'Forward Port (UPnP)' (L829, T529, R991, B549)
| | | | ['CheckBox', u'Forward Port (UPnP)', u'Forward Port (UPnP)CheckBox']
| | | | child_window(title="Forward Port (UPnP)", auto_id="-31943", control_type="CheckBox")
| | |
| | | TabItem - 'Connect' (L644, T492, R710, B517)
| | | [u'ConnectTabItem', 'TabItem', u'Connect', u'TabItem0', u'TabItem1']
| | | child_window(title="Connect", control_type="TabItem")
| | |
| | | TabItem - 'Host' (L710, T492, R770, B517)
| | | [u'Host2', 'TabItem2', u'HostTabItem']
| | | child_window(title="Host", control_type="TabItem")
|
| TitleBar - '' (L656, T354, R1268, B389)
| ['TitleBar', u'5']
| |
| | Menu - 'System' (L636, T360, R664, B388)
| | [u'System0', u'System1', u'System', u'Menu', u'SystemMenu']
| | child_window(title="System", auto_id="MenuBar", control_type="MenuBar")
| | |
| | | MenuItem - 'System' (L636, T360, R664, B388)
| | | [u'System2', u'MenuItem', u'SystemMenuItem']
| | | child_window(title="System", control_type="MenuItem")
| |
| | Button - 'Minimize' (L1090, T352, R1150, B389)
| | ['Button4', u'Minimize', u'MinimizeButton']
| | child_window(title="Minimize", control_type="Button")
| |
| | Button - 'Maximize' (L1150, T352, R1209, B389)
| | ['Button5', u'MaximizeButton', u'Maximize']
| | child_window(title="Maximize", control_type="Button")
| |
| | Button - 'Close' (L1209, T352, R1269, B389)
| | ['Button6', u'CloseButton', u'Close']
| | child_window(title="Close", control_type="Button")
This is my codes for starting a host without selecting any ComboBox items:
from pywinauto.application import Application
app = Application(backend="uia")
app.start(r"./Dolphin-x64/Dolphin.exe")
dlg = app["Dolphin"]
dlg.menu_select("Tools->Start NetP")
netplay = app["Dolphin NetPlay Setup"]
netplay.print_control_identifiers()
netplay.Pane.Edit.set_text(username)
netplay.Pane.TabControl.select("Host")
netplay.Pane.TabControl.Pane.Edit.set_text("9999")
netplay.Pane.TabControl.Pane.ListBox.child_window(title="CAPCOM VS. SNK 2 EO (GEOE08)", control_type="ListItem").select()
netplay.Pane.TabControl.Pane.Button.click()
I want to select the first "Direct Connection" option from the ComboBox. I tried select("Direct Connection") and select(0) but I can't decide which one i should use for navigation.
I even cannot get any info from print_control_identifiers() for main window in the lastest version of Dolphin which is why i am try to this old version.
EDIT:
I found out there was a secret button in that ComboBox. If I click netplay.Pane.ComboBox.Button.click() that button a ListBox and a second secret close button appear inside the ComboBox according to netplay.print_control_identifiers() and even if I select "Direct Connection" item in the ListBox you should close that second secret close button to affect ComboBox change.
This is known problem for some combo boxes (issue #532) fixed in master branch of pywinauto (not released yet, will be in 0.6.6 version soon). You can try the fix out by
pip uninstall pywinauto
pip install https://github.com/pywinauto/pywinauto/archive/master.zip
Also I'm seeing their Qt toolbar has "detouched" children buttons that are visible in Inspect.exe by mouse hovering, but Toolbar doesn't list them as children. We're working on workaround that is relevant to MFC toolbar as well. This is tracked in issue #413.
EDIT1: The issue with the latest version of Dolphin looks very strange and probably it's an app side problem. Inspect.exe shows error for property Children:
Children: [Error: calling getter for this property: hr=0xFFFFFFFF80004005 - Unspecified error]
But it can re-build the hierarchy for the main window children somehow. It's interesting and looks new to me. I'm willing to look into this issue deeper.
EDIT2: We've bypassed Qt5 issue by using RawViewWalker object instead of FindAll() function in MS UI Automation API. If you want to participate in early testing of next major release (beta quality on Windows), you can try to install it this way:
pip uninstall -y pywinauto
pip install https://github.com/pywinauto/pywinauto/archive/atspi.zip
Please note that some backward compatibility is broken, but all error messages should tell you what to replace in your code to make it working. If some error message is unclear, feel free to report a new issue on GitHub. Thanks!

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.