Cannot compile source code version 22_1 on visual studio

This forum is for programmers who have questions about the source code.
Post Reply
victoracho
Posts: 12
Joined: Sun May 12, 2024 4:49 pm

Cannot compile source code version 22_1 on visual studio

Post by victoracho » Mon May 13, 2024 1:31 am

Hello there, I'm sincerely new to open dental, nevertheless, I read on how to compile it using visual studio. I selected the SLN file, and tried building the openDental project first on release or debug mode. But it fails on the process. I gradually added the missing references, but lastly says 'You must add a reference to assembly, WMPLib, Version = 1.0.0.0, culture= neutral, publicToken = null. Im stuck at this step. Anyone knows what to do ?

victoracho
Posts: 12
Joined: Sun May 12, 2024 4:49 pm

Re: Cannot compile source code version 22_1 on visual studio

Post by victoracho » Mon May 13, 2024 8:43 am

I checked that I had several wanings for cpu mismatch, though I tried compiling it with x86 option, but this error appears now, Tooth does not contain a definition for GetToothLabelGraphic.

User avatar
jsalmon
Posts: 1596
Joined: Tue Nov 30, 2010 12:33 pm
Contact:

Re: Cannot compile source code version 22_1 on visual studio

Post by jsalmon » Mon May 13, 2024 10:12 am

Branch 22_1 compiled just fine for me. Also, OpenDentBusiness.Tooth.GetToothLabelGraphic() seems to be in place:
https://github.com/OpenDental/opendenta ... th.cs#L195
The best thing about a boolean is even if you are wrong, you are only off by a bit.

Jason Salmon
Open Dental Software
http://www.opendental.com

victoracho
Posts: 12
Joined: Sun May 12, 2024 4:49 pm

Re: Cannot compile source code version 22_1 on visual studio

Post by victoracho » Mon May 13, 2024 2:08 pm

Does the version of visual studio has to do with the results of the compiling ?
Im not sure if Im doing it correctly, all I do is opening the sln file with visual, then try to compile it on the different on debug or release for the x86 version. Then adding the missing dll files, but nothing happens.

User avatar
jsalmon
Posts: 1596
Joined: Tue Nov 30, 2010 12:33 pm
Contact:

Re: Cannot compile source code version 22_1 on visual studio

Post by jsalmon » Mon May 13, 2024 2:41 pm

It can indeed; Heed the Build section of our Source Code page:
IDE - Use Visual Studio 2019 on MS Windows computers.
  • (there are some versions around 17 and 18 that use VS 2017)
  • Open Dental versions 15.3 and greater, use Visual Studio 2012 or 2015.
  • Open Dental versions 12.4 to 15.2, use Visual Studio 2012.
  • Open Dental versions 7.4 to 12.3, use Visual Studio 2010.
  • Open Dental versions 7.3 and earlier, use Visual Studio 2008.
Side note: using a version of Visual Studio higher than 2019 should work for 22_1. For example, I'm using Visual Studio 2022.
The best thing about a boolean is even if you are wrong, you are only off by a bit.

Jason Salmon
Open Dental Software
http://www.opendental.com

victoracho
Posts: 12
Joined: Sun May 12, 2024 4:49 pm

Re: Cannot compile source code version 22_1 on visual studio

Post by victoracho » Tue May 14, 2024 2:50 pm

I compiled it on debug mode, and it worked like a charm, thanks for your help brother :mrgreen: :mrgreen:

Post Reply